cancel
Showing results for 
Search instead for 
Did you mean: 

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

Davi
Associate II

[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

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

Mark that section as NOLOAD in your linker script.

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

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

1 REPLY 1
TDK
Guru

Mark that section as NOLOAD in your linker script.

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

If you feel a post has answered your question, please click "Accept as Solution".