- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I'll make a bootloader for the PSOC 4 BLE. I have a workspace with 2 project example BLE_Shared_Memory_Bootloader and Bootloadable.
It works well with BootloaderHost tool. But I would like to debug my bootloadable app with PSoC Creator 3.2 SP1. In the project Bootloadable I can not Debug (F5).
How to debug without going back each time by BootloaderHost?
Thanks,
Eric
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Debugging Bootloadable Projects
In the PSoC Creator bootloader system, the bootloader project executes first and
then the bootloadable project. The jump from the bootloader to the bootloadable
project is done through a software controlled device reset; see Appendix A for
details. This resets the debugger interface, which means that the bootloadable
project cannot be run in debugger mode.
To debug a bootloadable project, convert it to Application Type Normal (Figure 14),
debug it, and then convert it back to Bootloadable after debugging is done. Another
option is to program the Bootloadable project .hex file onto the device and then use
the Attach to running targe option for debugging, while the bootloadable project is
running. In this case, you can debug the bootloadable project only from the point
where debugger is attached to the device.
http://www.cypress.com/documentation/application-notes/an73854-psoc-3-psoc-4-and-psoc-5lp-introducti... AN73503 PSoC® 3, PSoC 4, and PSoC 5LP Introduction To Bootloaders
http://www.cypress.com/documentation/application-notes/an68272-psoc-3-psoc-4-and-psoc-5lp-uart-bootl... AN68272 UART BL PSOC 3, 4, 5LP
http://www.cypress.com/documentation/application-notes/an60317-psoc-3-and-psoc-5lp-i2c-bootloader AN60317 I2C BL PSOC 3, 5LP
http://www.cypress.com/documentation/application-notes/an73503-usb-hid-bootloader-psoc-3-and-psoc-5l... AN73503 USB HID BL with GUI Host PSOC 3, 5LP
http://www.cypress.com/documentation/application-notes/an86526-psoc-4-i2c-bootloader AN86526 - PSoC® 4 I2C Bootloader
http://www.cypress.com/documentation/application-notes/an68272-psoc-3-psoc-4-and-psoc-5lp-uart-bootl... AN68272 - PSoC® 3, PSoC 4 and PSoC 5LP UART Bootloader
http://www.cypress.com/forum/psoc-3-known-problems-and-solutions/multi-application-bootloader
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Debugging Bootloadable Projects
In the PSoC Creator bootloader system, the bootloader project executes first and
then the bootloadable project. The jump from the bootloader to the bootloadable
project is done through a software controlled device reset; see Appendix A for
details. This resets the debugger interface, which means that the bootloadable
project cannot be run in debugger mode.
To debug a bootloadable project, convert it to Application Type Normal (Figure 14),
debug it, and then convert it back to Bootloadable after debugging is done. Another
option is to program the Bootloadable project .hex file onto the device and then use
the Attach to running targe option for debugging, while the bootloadable project is
running. In this case, you can debug the bootloadable project only from the point
where debugger is attached to the device.
http://www.cypress.com/documentation/application-notes/an73854-psoc-3-psoc-4-and-psoc-5lp-introducti... AN73503 PSoC® 3, PSoC 4, and PSoC 5LP Introduction To Bootloaders
http://www.cypress.com/documentation/application-notes/an68272-psoc-3-psoc-4-and-psoc-5lp-uart-bootl... AN68272 UART BL PSOC 3, 4, 5LP
http://www.cypress.com/documentation/application-notes/an60317-psoc-3-and-psoc-5lp-i2c-bootloader AN60317 I2C BL PSOC 3, 5LP
http://www.cypress.com/documentation/application-notes/an73503-usb-hid-bootloader-psoc-3-and-psoc-5l... AN73503 USB HID BL with GUI Host PSOC 3, 5LP
http://www.cypress.com/documentation/application-notes/an86526-psoc-4-i2c-bootloader AN86526 - PSoC® 4 I2C Bootloader
http://www.cypress.com/documentation/application-notes/an68272-psoc-3-psoc-4-and-psoc-5lp-uart-bootl... AN68272 - PSoC® 3, PSoC 4 and PSoC 5LP UART Bootloader
http://www.cypress.com/forum/psoc-3-known-problems-and-solutions/multi-application-bootloader
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ok, that's what I did. But this is not useful.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That used to be the way to debug a bootloadable proejct, but they added a command in the Debug drop down. "Attach to running target". If you do that, it will jump to the running bootloadable project and it halts execution. You never know where, so I always hit the Reset Icon to set the PC to the beginning of the application and debug from there.
Best Regards,
Mike Roberts
Arrow, PSoC Specialist.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My PSoC doesn't show up in the "Attached Targets" field. I'm using CY8CKIT-049-42xx and am running a bootloadable application. Any reason why this might be?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do not forget to press the switch when insertin the kit into the USB port. You need to use the Bootloader Host to program the kit.
What is the state of the LEDs? Frequency??
Bob