STM32L476RE based Disco board not running Micropython #13336
-
|
Hi, I have compiled the micropython from the source by making changes to the UART port on which REPL should launch and it generated a .hex file.
I want to flash this to the MCU but I want to do it with STLink/V2 debugger. I tried flashing it but I don't see the REPL running on this UART port. What is the recommended way to flash the micropython hex files onto STM32L476RE MCU? FYI, I have this Eval board - ST25R3911B-DISCO - Discovery kit for the ST25R3911B high performance HF reader / NFC initiator - STMicroelectronics I am trying to do a porting of the NFC libraries of this board to micropython and as a part of my contribution task I tried doing the above. Please help me how to tweak and run the micropython. Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 19 replies
-
|
In my attempts to get REPL working on a STM32WLE5 I was told that REPL uses the LPUART1_TX and LPUART1_RX pins. I then use a ST-Link V2, STM32 Cube Programmer and the SWCLK and SWDIO pins to program it. |
Beta Was this translation helpful? Give feedback.


I do not know what the warning means. Sometimes it is the best to clean the build directory and make a complete new build.
As of the loader script defines: They tell, how much of the flash is used for code, and where the file system starts. The hard fault you have seen in debugging happened in accessing the file system in the FLASH_FS area, which according to your loader settings was outside of the existing flash. The stm32l476xe.ld settings move it into the existing flash range of 512k.