Debug BLE code

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

cross mob
Anonymous
Not applicable

Hi, i am trying to debug with  PSOC4200 BLEkit PIONER BASEBOARD, but i have some problems,it seem that PSOC creator doesn't run the program, i press halt key and doesn't do anything. I place breakpoints and doesn't occur anything.

   

I have been thinking, about the program doesn't work properly with big BLE codes....

   

Some experiences whit that?

   

Thanks for all

   

 

   

Carlos

0 Likes
1 Solution
Anonymous
Not applicable

Carlos,

   

 

   

The BLE Device (PSoC 4 BLE/PRoC BLE) can be configured into one of the two modes for debug, viz SWD and GPIO.

   

With SWD mode, the BLE device can be debugged. But enabling this mode means that device draws a certain amount of current continuously (as Debug port is enabled).

   

With GPIO mode, the BLE device disables SWD for debugging which allows low-power mode operation. But with this, debugging cannot be done.

   

Most of the BLE projects have been  configured for low-power mode operation, which means that the Debug option is set to GPIO. To enable debugging, go to CYDWR of your project (you can find this in the Workspace Explorer of PSoC Creator IDE) -> Systems tab -> Set Debug Select to 'SWD'. Now rebuild the project and use the project for debugging.

   

Hope this helps.

View solution in original post

0 Likes
2 Replies
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

When you did your build did you select the debug icon to

   

setup code and Creator for debug ?

   

 

   

Do you show in Debug menu being connected to the board ?

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

Carlos,

   

 

   

The BLE Device (PSoC 4 BLE/PRoC BLE) can be configured into one of the two modes for debug, viz SWD and GPIO.

   

With SWD mode, the BLE device can be debugged. But enabling this mode means that device draws a certain amount of current continuously (as Debug port is enabled).

   

With GPIO mode, the BLE device disables SWD for debugging which allows low-power mode operation. But with this, debugging cannot be done.

   

Most of the BLE projects have been  configured for low-power mode operation, which means that the Debug option is set to GPIO. To enable debugging, go to CYDWR of your project (you can find this in the Workspace Explorer of PSoC Creator IDE) -> Systems tab -> Set Debug Select to 'SWD'. Now rebuild the project and use the project for debugging.

   

Hope this helps.

0 Likes