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

PSoC™ 6 SDK Forum Discussions

ravo
Level 5
Level 5
5 solutions authored 100 replies posted 250 sign-ins

Dears

Very often I have problem to start debugger on customer board with USB Audio FreeRTOS demo. It ends with

I have only setup some breakpoints in audio_out_endpoint_callback

Warn : SFlash programming allowed for regions: USER, TOC, KEY

another application I can debug and program normally

-------------------------------------------------------
Started by GNU MCU Eclipse
Open On-Chip Debugger 0.11.0+dev-4.4.0.2134 (2022-09-08-13:07)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
kitprog3 set_latest_version: C:/Users/xxx/ModusToolbox/tools_3.0/fw-loader 2.40.1241
Info : auto-selecting first available session transport "swd". To override use 'transport select <transport>'.
adapter speed: 2000 kHz
adapter srst delay: 25
adapter srst pulse_width: 25
** Auto-acquire enabled, use "set ENABLE_ACQUIRE 0" to disable
cortex_m reset_config sysresetreq
cortex_m reset_config sysresetreq
Warn : SFlash programming allowed for regions: USER, TOC, KEY
-------------------------------------------------------

after few seconds it will popup an error message

Error in final launch sequence
Failed to execute MI command:
-target-select remote localhost:3333
Error message from debugger back end:
localhost:3333: Connection timed out.
Failed to execute MI command:
-target-select remote localhost:3333
Error message from debugger back end:
localhost:3333: Connection timed out.
localhost:3333: Connection timed out.

What could be wrong ?

Regards

Radim

0 Likes
2 Replies
Ekta
Moderator
Moderator
Moderator
250 solutions authored 100 likes received 250 sign-ins

Hi @ravo 

Could you please help me with the answers to the questions below:

1. Could you please let me know if you are getting this error only while debugging the issue or does this occur while programming as well?

2. Please confirm the PSoC 6 device you are using.

3. Can you try disabling all the breakpoints and enable them only after you enter the debug mode? Let me know if this helps.

Best Regards
Ekta

0 Likes
ravo
Level 5
Level 5
5 solutions authored 100 replies posted 250 sign-ins

Dears,

1. It will remain only when start debugging. Programming seems ok. But prior to do this I must replag PSoC programmer 4.0.

2. CY8C6247BZI-D54

3. I tried removed all breakpoints and it is same. But after restarting debug process it is working ...

So I think that it is hard to find the root case for this problem.

But still if I have put breakpoint on line convert_24_to_32_array(audio_out_usb_buffer, audio_out_to_i2s_tx, data_to_write); in audio_out_endpoint_callback located in file audio_out.c

the IDE will freeze and I am not able to see variable contents as I described here https://community.infineon.com/t5/ModusToolbox-General/Expressions-in-Modus-Toolbox-3-0/m-p/388953#M...

the Expressions view did not update its content:

ravo_0-1671794874221.png

Regards

Radim

0 Likes