cancel
Showing results for 
Search instead for 
Did you mean: 

Debug 'ITCM' code with STM32CubeIDE & STLINK not success (solved)

Roger_Li
Associate

Not the issue of debug probe, just change 'Reset behaviour' to 'None' could solve this.

2 REPLIES 2
Aimen1
ST Employee

Hello @Roger_Li,

Are you reporting an issue with STM32CubeIDE? If yes, please can you share further details?

Regards.

 


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Roger_Li
Associate

Hi, @Aimen1  ,

I have not reporting this issue with STM32CubeIDE.

The detail like this (maybe not correct for time been too long )

1, program only use ITCM & DTCM, SRAM, text run in ITCM, links script link this

MEMORY
{
  ITCMRAM (xrw) : ORIGIN = 0x00000000,  LENGTH = 256K
  DTCMRAM (xrw) : ORIGIN = 0x20000000,  LENGTH = 128K
  /* FLASH (rx)    : ORIGIN = 0x08000000,  LENGTH = 1024K */
  RAM_D1 (xrw)  : ORIGIN = 0x24000000,  LENGTH = 128K
  RAM_D2 (xrw)  : ORIGIN = 0x30000000,  LENGTH = 32K
  RAM_D3 (xrw)  : ORIGIN = 0x38000000,  LENGTH = 16K
}


 note:

1.1 options bits are programd by STM32CubeProgrammer to change ITCM size form 64K to 256K

1.2 text code use 224kb of ITCM

 

2, code (HEX or AXF) load to ITCM by JLink or STM32CubeProgrammer, read back verification passed and program run normal.

 

3, code debug by STM32CubeIDE with JLink, ITCM read back verification passed and program run normal.

 

4, code debug by STM32CubeIDE with STLink v2/v3-set, ITCM read back verification not passed and program run abnormal. the reason is the text data after specifying location (30K+ or 60K+, not sure) is incorrect if 'Reset behaviour' not change to 'None' (default is "Connect under reset")

 

I think maybe the reason is "Reset behaviour" cause ITCM data lose after reset. not sure it's a issue or not (It seems that this feature will be working normally in 2024 for i was mantain old product and have not meet this issue before)