Firmware update to PCAN router pro FD via pcan dev pack debug apater

Programmable 6-channel router and data logger for CAN and CAN FD with I/O and optional Ethernet interface
User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: Firmware update to PCAN router pro FD via pcan dev pack debug apater

Post by PEAK-Support » Tue 25. Jun 2024, 13:13

Looks OK.
1. Please send us the 3 created json files from the .vscode directory to check ( please from the sample "01_Routing" )
2. Send us a detailed picture how you connect the flex cable to the Board, and to the Debug Adapter !
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: Firmware update to PCAN router pro FD via pcan dev pack debug apater

Post by PEAK-Support » Tue 25. Jun 2024, 13:22

Here how it MUST look like - works perfect
cable_debug_router_pro_fd.jpg
cable_debug_router_pro_fd.jpg (58.79 KiB) Viewed 9223 times
Thats how the Debugger itself must start
Screenshot 2024-06-25 132025.jpg
Screenshot 2024-06-25 132025.jpg (197.07 KiB) Viewed 9223 times
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

manju
Posts: 27
Joined: Mon 24. Jun 2024, 16:09

Re: Firmware update to PCAN router pro FD via pcan dev pack debug apater

Post by manju » Tue 25. Jun 2024, 13:34

.vscode.zip
(2.02 KiB) Downloaded 4693 times
Hello,

I've attached the .json file from 01_routing folder, pls check
Connections I have the exact same connection
But after connection, when I try to debug I'm not able to debug the image you have attached below, I'm not getting that image too.
As mentioned in the document, I'm not able to create the "make clean" and "make all" also
Could you pls tell me what the exact steps are to be followed
Thanks

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: Firmware update to PCAN router pro FD via pcan dev pack debug apater

Post by PEAK-Support » Tue 25. Jun 2024, 13:45

The Steps are clear explained - normally if you follow exact our steps you end up in debuging your code.
The *.json files are all OK - look exactly as it must. So no problem from this side.

For me it looks as you have make a mistake in installing the external debugger or wrong cable connection.
Double proof it - otherwise your debugger is defect or any other local problem on your system is the fault.

You are sure you use the OpenOCD (latest Version V1.12.1)? "ARM Cortex-M GDB Debugger support for VSCode"

You wrote in one of the first posts
"Failed to launch ST-LINK GDB Server: Error: spawn C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin ENOENT"
This is WRONG we do not use the STM32Cube - please double check your setup - all needed info is also part of the json you send
"serverpath": "C:/Users/ManjuBargavi/Downloads/PEAK-DevPack/Debug/OpenOCD/bin/openOCD.exe"
So it is a local problem on your side - have nothing to do with pour Tools - All is tested and work well on customers system.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

manju
Posts: 27
Joined: Mon 24. Jun 2024, 16:09

Re: Firmware update to PCAN router pro FD via pcan dev pack debug apater

Post by manju » Tue 25. Jun 2024, 13:53

Yes, I'm using the exact same version "xxx://marketplace.visualstudio.com/items?itemName=marus25.cortex-debug"
** no external link allowed - see forum rules **

Also, I have 2 ST-Link V2, facing the same issue in both

Could you explain why "make command" is showing this error "make: *** No rule to make target 'clean'. Stop."

I'm also following the exact same steps
Thanks

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: Firmware update to PCAN router pro FD via pcan dev pack debug apater

Post by PEAK-Support » Tue 25. Jun 2024, 13:55

No, we recommend to use a local folder and start from scratch - you have mixed something up on your local environment.
Keep also in mind you open the FOLDER - NEVER a File !! in VSCode
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

manju
Posts: 27
Joined: Mon 24. Jun 2024, 16:09

Re: Firmware update to PCAN router pro FD via pcan dev pack debug apater

Post by manju » Tue 25. Jun 2024, 14:11

"This is WRONG we do not use the STM32Cube - please double check your setup - all needed info is also part of the json you send"
okay, but as per the steps given the document, why I'm not able to build the make functions, I just gave debug function on vs code, the debugger is not activated
Thanks

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: Firmware update to PCAN router pro FD via pcan dev pack debug apater

Post by PEAK-Support » Tue 25. Jun 2024, 14:12

OK - but we do not know what else you setup in your VSCode ?!?
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

manju
Posts: 27
Joined: Mon 24. Jun 2024, 16:09

Re: Firmware update to PCAN router pro FD via pcan dev pack debug apater

Post by manju » Tue 25. Jun 2024, 14:15

everything only related to this, is there in my vs-code
Thanks

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: Firmware update to PCAN router pro FD via pcan dev pack debug apater

Post by PEAK-Support » Tue 25. Jun 2024, 14:25

sorry - we running in cycles - it works fine on x hundred of customers systems.
check this video - for me you have a handling problem using / starting the Debugger
You MUST have installed other Tool as we do not install the Cube Tools ! So please double check - use a clean PC whatever.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

Locked