Skip to main content
Davi
Associate II
November 4, 2020
Solved

[STM32H750] Can not upgrade the firmware by STM32CubeProgrammer when I have used the DTCMRAM section

  • November 4, 2020
  • 1 reply
  • 782 views

[STM32H750]  

Can not upgrade the firmware by STM32CubeProgrammer when I have used the DTCMRAM section

just add this code : the STM32CubeProgrammer will upgrade failed:

__attribute__((section(".DTCMRAM"))) uint8_t buf[2400] = {0};

int main(void){

xxxx....

buf[0] = 1;

}

STM32CubeProgrammer logs:

16:04:30:813 : downloading data

16:04:30:823 : sending packet nbr: 80

16:04:30:823 : downloading data

16:04:30:827 : Segment[0] downloaded successfully

16:04:30:827 : Size : 21208 Bytes

16:04:30:827 : Address : 0x20000000 

16:04:30:828 : setting the address pointer to address: 0x20000000

16:04:31:335 : received memory address is wrong or unsupported

16:04:31:336 : Error: failed to download Segment[1]

16:04:31:337 : Error: failed to download the File

This topic has been closed for replies.
Best answer by TDK

Mark that section as NOLOAD in your linker script.

https://mcuoneclipse.com/2014/04/19/gnu-linker-can-you-not-initialize-my-variable/

1 reply

TDK
TDKBest answer
Super User
November 4, 2020
"If you feel a post has answered your question, please click ""Accept as Solution""."