Announcements

Help us improve the Power & Sensing Selection Guide. Share feedback

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

cross mob
ChRi_4627521
Level 1
Level 1
First question asked Welcome!

Eclipse IDE for ModusToolbox Version: 2.2.0 Build ID: 2181 CY8CPROTO-062-4343W KitProg3

I've been developing code using FreeRTOS for several months now, and suddenly the debug environment shuts down after programming my application.  No error mesages. I've tried undoing my changes, and the problem still occurs.  

srst_only separate srst_gates_jtag srst_open_drain connect_deassert_srst
Info : SWD DPIDR 0x6ba02477
shutdown command invoked
Info : psoc6.dap: powering down debug domain..

Program runs without pausing at start of main().  Runs as expected. I just can't debug it (no breakpoints, etc).

Problem doesn't occur with Hello World app.

Full capture:

Open On-Chip Debugger 0.10.0+dev-4.1.0.1058 (2020-08-11-03:47)
Licensed under GNU GPL v2
For bug reports, read
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
Info : Using CMSIS loader 'CY8C6xxA_SMIF' for bank 'psoc6_smif0_cm0' (footprint 14672 bytes)
Warn : SFlash programming allowed for regions: USER, TOC, KEY
Info : CMSIS-DAP: SWD  Supported
Info : CMSIS-DAP: FW Version = 2.0.0
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : KitProg3: FW version: 2.10.878
Info : KitProg3: Pipelined transfers enabled
Info : VTarget = 3.298 V
Info : kitprog3: acquiring the device...
Info : clock speed 2000 kHz
Info : SWD DPIDR 0x6ba02477
Info : psoc6.cpu.cm0: hardware has 4 breakpoints, 2 watchpoints
***************************************
** Silicon: 0xE402, Family: 0x102, Rev.: 0x11 (A0)
** Detected Device: CY8C624ABZI-D44
** Detected Main Flash size, kb: 2048
** Flash Boot version: 3.1.0.129
** Chip Protection: NORMAL
***************************************
Info : psoc6.cpu.cm4: hardware has 6 breakpoints, 4 watchpoints
Info : starting gdb server for psoc6.cpu.cm0 on 3333
Info : Listening on port 3333 for gdb connections
Info : starting gdb server for psoc6.cpu.cm4 on 3334
Info : Listening on port 3334 for gdb connections
Info : SWD DPIDR 0x6ba02477
Info : kitprog3: acquiring the device...
psoc6.cpu.cm0 halted due to debug-request, current mode: Thread 
xPSR: 0x41000000 pc: 0x00000190 msp: 0x080ff800
** Device acquired successfully
** psoc6.cpu.cm4: Ran after reset and before halt...
psoc6.cpu.cm4 halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x0000012a msp: 0x080ff800
** Programming Started **
auto erase enabled
Info : Flash write discontinued at 0x100017c8, next section at 0x10002000
Info : Padding image section 0 at 0x100017c8 with 56 bytes (bank write end alignment)
 
[100%] [################################] [ Erasing     ]
 
[100%] [################################] [ Programming ]
Info : Padding image section 1 at 0x10022d05 with 3 bytes
Info : Flash write discontinued at 0x10022d10, next section at 0x101fff00
Info : Padding image section 2 at 0x10022d10 with 240 bytes (bank write end alignment)
 
[  5%] [#                               ] [ Erasing     ]
[  7%] [##                              ] [ Erasing     ]
[ 10%] [###                             ] [ Erasing     ]
[ 13%] [####                            ] [ Erasing     ]
[ 16%] [#####                           ] [ Erasing     ]
[ 19%] [######                          ] [ Erasing     ]
[ 22%] [#######                         ] [ Erasing     ]
[ 25%] [########                        ] [ Erasing     ]
[ 29%] [#########                       ] [ Erasing     ]
[ 32%] [##########                      ] [ Erasing     ]
[ 35%] [###########                     ] [ Erasing     ]
[ 38%] [############                    ] [ Erasing     ]
[ 41%] [#############                   ] [ Erasing     ]
[ 44%] [##############                  ] [ Erasing     ]
[ 47%] [###############                 ] [ Erasing     ]
[ 50%] [################                ] [ Erasing     ]
[ 54%] [#################               ] [ Erasing     ]
[ 57%] [##################              ] [ Erasing     ]
[ 60%] [###################             ] [ Erasing     ]
[ 63%] [####################            ] [ Erasing     ]
[ 66%] [#####################           ] [ Erasing     ]
[ 69%] [######################          ] [ Erasing     ]
[ 72%] [#######################         ] [ Erasing     ]
[ 75%] [########################        ] [ Erasing     ]
[ 79%] [#########################       ] [ Erasing     ]
[ 82%] [##########################      ] [ Erasing     ]
[ 85%] [###########################     ] [ Erasing     ]
[ 88%] [############################    ] [ Erasing     ]
[ 91%] [#############################   ] [ Erasing     ]
[ 94%] [##############################  ] [ Erasing     ]
[ 97%] [############################### ] [ Erasing     ]
[100%] [################################] [ Erasing     ]
 
[ 22%] [#######                         ] [ Programming ]
[ 25%] [########                        ] [ Programming ]
[ 29%] [#########                       ] [ Programming ]
[ 35%] [###########                     ] [ Programming ]
[ 42%] [#############                   ] [ Programming ]
[ 44%] [##############                  ] [ Programming ]
[ 56%] [#################               ] [ Programming ]
[ 66%] [#####################           ] [ Programming ]
[ 78%] [########################        ] [ Programming ]
[ 89%] [############################    ] [ Programming ]
[100%] [################################] [ Programming ]
Info : Section start address 0x101fff00 breaks the required alignment of flash bank psoc6_main_cm0
Info : Padding 256 bytes from 0x101ffe00
Info : Padding image section 3 at 0x101fff04 with 252 bytes (bank write end alignment)
 
[100%] [################################] [ Erasing     ]
 
[100%] [################################] [ Programming ]
wrote 141312 bytes from file C:/Users/crigg/mtw/Firmware/TIB_LRV4_App_v38/build/CY8CPROTO-062-4343W/Debug/TIB_LRV4_App.hex in 4.311832s (32.005 KiB/s)
** Programming Finished **
** Program operation completed successfully **
srst_only separate srst_gates_jtag srst_open_drain connect_deassert_srst
Info : SWD DPIDR 0x6ba02477
shutdown command invoked
Info : psoc6.dap: powering down debug domain...

 

Christian

0 Likes
1 Solution
Ekta_N
Moderator
Moderator
Moderator
750 replies posted First like given 250 solutions authored

Hi @ChRi_4627521 

We have a new version of Modustoolbox already released.
Modustoolbox 3.2 is the latest version of Modustoolbox released. You can download the same from the link: https://www.infineon.com/cms/en/design-support/tools/sdk/modustoolbox-software/#!documents

This version has bug fixes for some of the issues that are seen in MTB2.2.

Can you try using this and see if you are facing the same issue?

Best Regards
Ekta

View solution in original post

0 Likes
1 Reply
Ekta_N
Moderator
Moderator
Moderator
750 replies posted First like given 250 solutions authored

Hi @ChRi_4627521 

We have a new version of Modustoolbox already released.
Modustoolbox 3.2 is the latest version of Modustoolbox released. You can download the same from the link: https://www.infineon.com/cms/en/design-support/tools/sdk/modustoolbox-software/#!documents

This version has bug fixes for some of the issues that are seen in MTB2.2.

Can you try using this and see if you are facing the same issue?

Best Regards
Ekta

0 Likes