cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot flash hex/elf via UART bootloader, "write address was not acknowledged 0x20000000"

Alert2
Associate

I can't flash hex/elf file with my compiled program via UART bootloader, using CubeProgrammer CLI.

During the download, there occurs an error: 

Alert2_0-1693220885147.png

"Write address was not acknowledged 0x20000000"

and downloading stops.

The project I'm flashing has a few RAM sections added in linker script:

/* used for thread stacks */
.thread_stack :
{
. = ALIGN(4);
. = ABSOLUTE(0x20000000); /* start addres for thread stack area */
*(.ThreadStackSection) /* thread stacks section name */
. = ALIGN(4);
} >DTCMRAM

/* used for network buffers */
.net_buff :
{
. = ALIGN(4);
. = ABSOLUTE(0x2001D800); /* start addres for Tx/Rx network buffers area */
*(.NetworkBufferSection) /* netowrk buffers section name */
. = ALIGN(4);
} >DTCMRAM

/* used for storing network packets (NetXDuo packet pool) */
.nx_section 0x24000000 (NOLOAD):
{
*(.NetXPoolSection)
} > RAM_D1

/* used for events recording (TraceX) */
.trace :
{
. = ALIGN(4); /* start addres for trace buffer */
*(.TraceSection) /* trace buffer section name */
. = ALIGN(4);
} > RAM_D1

 

I guess these sections cause the problem, because that's the only difference between my linker script and one generated with new project. (I am able to program blank new project just fine).

Is there any possibility to make this project bootloadable?

2 REPLIES 2
TDK
Guru

Tread stacks and network buffers shouldn't need to be stored in the hex file. Mark those sections as NOLOAD.

It's unclear if DTCMRAM is a valid address for bootloader commands.

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

As I recall there's a section of RAM that's not available as it's used by the ROM's code. Check docs for KEEP OUT areas

Perhaps create an image that can unpack itself via startup.s style code, like it normally does with FLASH images, and don't have uninitialized sections with data behind them. Check ELF dump for appropriate NOBITS sections.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..