- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A new psoc6 generic project is created. After changing the chip, j-link is used to program and debug the device. There is no problem with the program. However, after debugging, the breakpoint is not automatically added at the main function. The program runs directly. After manually adding a breakpoint, a check mark is displayed on the breakpoint, but the program does not stop,please Look at the picture.
After manually adding breakpoints, click the debug box to pause, and the warning as shown in the figure is displayed.
How to solve such problems?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In this case, just make sure you set the correct device in PSOC6-GENERIC.mk. No need to change the linker scripts if using the same family.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi 13_4788251,
Can you please let me know if this issue is specific to the application or if it is observed across applications?
After manually adding breakpoints, click the debug box to pause, and the warning as shown in the figure is displayed.
I am not sure I understand this completely. After manually adding breakpoint did you restart the debug process? Can you try running the debugger and place a breakpoint in the main loop and check if the debugger is responding to the breakpoint?
Are you using a custom BSP? If so, can you please let me know if this issue is observed on the standard BSPs too? Is this issue observed using the KitProg3 or MiniProg4?
Can you please share a snapshot of the Debug and Startup tab of the Run Configuration? To do this please follow the steps below -
- Click on Run > Run Configurations.
- Select JLink Debug launch.
- The Debug and Startup tabs will be available in the right panel.
Thanks and Regards,
Rakshith M B
Rakshith M B
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, thank you for your reply
1.This problem occurs in the modus toolbox 2.2 software. At this time, the PC is connected to the circuit board through J-Link.
2.On other boards, the normal situation should be that after debugging, the breakpoint is automatically added at the main function, and the program stops at this breakpoint, as shown in the figure.
In the console window, the command appears to be executed, but it doesn't stop at the breakpoint
In the above figure box are the commands displayed in the console window after manually adding breakpoints.
3.After the breakpoint was added, the program did not stop, so there was no restart debugging. After a manual pause, restart debugging, the same as when debug was just started.
4.No custom BSP is used, as shown
5.The debug and startup configuration is shown in the figure
I look forward to your reply,thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you also change the Makefile and linker scripts? The PSOC6-GENERIC BSP comes with linker scripts for the PSoC 6 BLE. Refer to the:
1) PSOC6-GENERIC.mk: Need to change the DEVICE
2) COMPONENT_CM0 and COMPONENT_CM4 folders: the linker script are targeting the cy8c6xx7 device. Are you still using this family? If not, need to change all the linker scripts to the desired family.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for your reply
1.No changes have been made to makefile and linker scripts.
2.Device has been changed to required.
3.I'm still using cy8c6xx7 device, should I not need to change it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In this case, just make sure you set the correct device in PSOC6-GENERIC.mk. No need to change the linker scripts if using the same family.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Confirmed. Thank you