cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L432KC Nucleo GPIOA resets to 0xABFF FFEF instead of 0xABFF FFFF

Karel
Associate

STM32L432KC Nucleo GPIOA resets to 0xABFF FFEF instead of 0xABFF FFFF

I can't write 0 to $4800 0000 [GPIOA_MODER]

Ports B and C behave as expected: the correct reset values and it is possible to write 0x0000 0000 to B and C.

How can I resolve this?

Or has GPIOA died?

Firmware version: V2J45M31

ST-LINK/V2-1

2 REPLIES 2
Amel NASRI
ST Employee

Hi @Karel ,

It looks like PA2 is configured as alternate function in your case.

Can you try the following:

  • Use STM32CubeProgrammer to read GPIOA_MODER register 
  • Perform a mass erase it remains the same
  • Try an ST-Link firmware upgrade if needed.

-Amel

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

KnarfB
Principal III

works for me in VS code and CubeProgrammer. Same Firmware version.

KnarfB_0-1745420866159.png

bare metal assembly to switch the GPIO clock(s) on, nothing else:

_start: ldr r0, =0x40021000 movs r1, #3 str r1, [r0, #0x4C]

KnarfB