2025-07-10 6:29 AM
I have developed software on the Nucleo-L433RC-P development board which uses the STM32L433RCT6P MCU (the P defines it has 2 x VDD12 pins for an external SMPS).
However, I have designed a PCB that uses the STM32L433RCT6 (no VDD12 pins) but want to continue developing the software on the development board until my PCB arrives.
To retarget the MCU, I edited the .ioc file and changed STM32L433RCTxP to STM32L433RCTx.
I flashed the software to the Nucleo-L433RC-P board, but I am getting strange and random issues.
It seemed to work to start with, but after several further flashes it stopped working with the error shown below...
I'm not sure but it seems to go to a reset handler in "startup_stm32l433rctxp.s"....
The console shows the following error...
STMicroelectronics ST-LINK GDB server. Version 7.11.0
Copyright (c) 2025, STMicroelectronics. All rights reserved.
Starting server with the following options:
Persistent Mode : Disabled
Logging Level : 1
Listen Port Number : 61234
Status Refresh Delay : 15s
Verbose Mode : Disabled
SWD Debug : Enabled
InitWhile : Enabled
Waiting for debugger connection...
Debugger connected
Waiting for debugger connection...
Debugger connected
Waiting for debugger connection...
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
Log output file: C:\Users\JOHNLI~1\AppData\Local\Temp\STM32CubeProgrammer_a27024.log
ST-LINK SN : 066BFF323355373043142426
ST-LINK FW : V2J46M31
Board : NUCLEO-L433RC-P
Voltage : 3.27V
SWD freq : 4000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x435
Revision ID : Rev Z
Device name : STM32L43xxx/STM32L44xxx
Flash size : 256 KBytes
Device type : MCU
Device CPU : Cortex-M4
BL Version : 0x91
Opening and parsing file: ST-LINK_GDB_server_a27024.srec
Memory Programming ...
File : ST-LINK_GDB_server_a27024.srec
Size : 42.33 KB
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 21]
Download in Progress:
File download complete
Time elapsed during download operation: 00:00:01.504
Verifying...
Error: Data mismatch found at address 0x0800A860 (byte = 0x00 instead of 0x2E)
Time elapsed during verifying operation: 00:00:00.284
Error: Download verification failed
Encountered Error when opening C:\ST\STM32CubeIDE_1.18.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.2.200.202503041107\tools\bin\STM32_Programmer_CLI.exe
Error in STM32CubeProgrammer
Shutting down...
Exit.
When I tried again later in the day, it started working again but then it stopped after several flashes.
The difference in the pin out between the STM32L433RCT6P and STM32L433RCT6 MCU is highlighted in orange below...
STM32L433RCT6....
STM32L433RCT6P