cancel
Showing results for 
Search instead for 
Did you mean: 

Flash programming alignment error on Nucleo-L4R5ZI

Philipp Legrum
Associate II
Posted on March 07, 2018 at 01:28

Hello, when trying to flash a Nucleo-L4R5ZI through Atollic TrueStudio 9.0.0 on a most recent Debian stable, I keep getting the error below.

I am using STLink Firmware V2J30M19 (newest). Does anybody have an idea? Thanks.

----------

Atollic TrueSTUDIO gdbserver for ST-Link. Version 4.2.0 (LINUX64 2018-01-16 10:57:14 15656)

Copyright (c) 2018, STMicroelectronics. All rights reserved.

Starting server with the following options:

        Persistant Mode            : Disabled

        LogFile Name               : /home/.....................

        Logging Level              : 31

        Listen Port Number         : 61234

        Status Refresh Delay       : 15s

        Verbose Mode               : Enabled

        SWD Debug                  : Enabled

Atollic TrueSTUDIO gdbserver for ST-Link. Version 4.2.0 (LINUX64 2018-01-16 10:57:14 15656)

Hardware watchpoint supported by the target

STM32 device: Flash size =2048

Enter STM32_AppReset() function

NVIC_DFSR_REG = 0x00000009

NVIC_CFGFSR_REG = 0x00000000

XPSR = 0x01000000

ST_LINK Major version =2 Jtag version =30

ST_LINK VID=1155 PID=14155

ST_LINK device status: HALT_MODE

ST_LINK detects target voltage =3.24 Volt

ST-Link device initialization OK

Waiting for debugger connection...

Waiting for connection on port 61234...

Waiting for connection on port 61235...

Accepted connection on port 61234...

Debugger connected

ST_LINK device status: HALT_MODE

Reading 0x4 bytes of memory from addr 0x8000514

Reading 0x2 bytes of memory from addr 0x8000510

Reading 0x2 bytes of memory from addr 0x8000512

Reading 0x4 bytes of memory from addr 0x8000548

Accepted connection on port 61235...

Flash erase: Address= 0x8000000, Length=24576

Flash write: Address= 0x8000000, Length=444

Programming flash..

STM32 device: flash programming successful 0x8000000

Flash write completed in 0.083000 seconds, 5.224025kB/s

Flash write: Address= 0x80001c0, Length=2992

Programming flash..

STM32 device: flash programming successful 0x80001bc

Programming flash..

STM32 device: flash programming successful 0x80001c0

Flash write completed in 0.228000 seconds, 12.815245kB/s

Flash write: Address= 0x8000d70, Length=2928

Programming flash..

STM32 device: flash programming successful 0x8000d70

Flash write completed in 0.155000 seconds, 18.447584kB/s

Flash write: Address= 0x80018e0, Length=2960

Programming flash..

STM32 device: flash programming successful 0x80018e0

Flash write completed in 0.160000 seconds, 18.066423kB/s

Flash write: Address= 0x8002470, Length=2960

Programming flash..

STM32 device: flash programming successful 0x8002470

Flash write completed in 0.154000 seconds, 18.770287kB/s

Flash write: Address= 0x8003000, Length=3008

Programming flash..

 Flash programming alignment error

Flash write completed in 0.125000 seconds, 23.500000kB/s

Reading 0x20 bytes of memory from addr 0xe00fffd0

Reading 0x40 bytes of memory from addr 0x8000540

Reading 0x40 bytes of memory from addr 0x8000500

Enter STM32_AppReset() function

NVIC_DFSR_REG = 0x00000009

NVIC_CFGFSR_REG = 0x00000000

XPSR = 0x01000000

Debugger connection lost.

Shutting down...

#nucleo-l4r5zi-flash-programming-alignment-error
2 REPLIES 2
Uwe Bonnes
Principal II
Posted on March 07, 2018 at 10:39

Probably this is Atollic TrueSTUDIO gdb-server specific.

Aurelian Lazarut
Associate II
Posted on June 06, 2018 at 13:46

Same problem here - (I'm surprised that nobody from ST bothered to look into this)

Atollic Studio 9.0

Nucleo-L4R5ZI

Aurelian Lazarut

Adaptive Design ltd.

Ireland