2025-11-30 7:39 AM
Nucleo Board STM32F401RE , STM32CubeIDE 1.19
16x2 LCD confirmed to be working using Arduino Uno
Hi, I am just starting with STM32 and trying to figure out my way around it after using Arduino Uno for a long time for simple projects with sensors. I installed IDE , created a new project, selected my board from the first menu and so far everything is OK. I generated code without changing anything related to clock or the pin out. The problem is that even though I have not added any code to the project, the IDE opens a different c file every time I upload code, sometimes with a HAL in the name other times it opens this file startup_stm32f401xe.s and highlights this line
ldr sp, =_estack /* set stack pointer */
I went back and enabled the builtin green LED and added 2 lines in the while to toggle it every 500ms, then uploaded the code but weirdly even after the upload is finished sometimes the LED would start toggling on and off but on the next upload it wouldn`t. the exact same code sometimes works and sometimes it doesn`t , while opening the one of the files I mentioned earlier. I tried connecting a16x2 LCD but failed to make it print anything other than empty boxes on the first line of the screen.
any help is greatly appreciated.