Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

PSoC™ Creator & Designer Forum Discussions

ErBU_1372276
Level 2
Level 2
First like received

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
 

0 Likes
1 Solution
ETRO_SSN583
Level 9
Level 9
100 sign-ins 5 likes given 1000 replies posted

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.
 

View solution in original post

0 Likes
5 Replies
ETRO_SSN583
Level 9
Level 9
100 sign-ins 5 likes given 1000 replies posted

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.
 

0 Likes
ErBU_1372276
Level 2
Level 2
First like received


Ok, that's what I did. But this is not useful.

   

Thanks.
 

0 Likes
MiRo_263836
Level 5
Level 5
100 replies posted 50 likes received 50 replies posted

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.

0 Likes
Anonymous
Not applicable

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?

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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
 

0 Likes