2020-11-04 12:23 AM
[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
Solved! Go to Solution.
2020-11-04 05:43 AM
Mark that section as NOLOAD in your linker script.
https://mcuoneclipse.com/2014/04/19/gnu-linker-can-you-not-initialize-my-variable/
2020-11-04 05:43 AM
Mark that section as NOLOAD in your linker script.
https://mcuoneclipse.com/2014/04/19/gnu-linker-can-you-not-initialize-my-variable/