cancel
Showing results for 
Search instead for 
Did you mean: 

I'm using STM32F446RE with STM32Cubeide. After I run my project (in cubeide) STM32F446RE board reads sensors and runs motors. But after I plug out the board and replug it. STM32F446RE does not do those things. Am I loading the code to wrong place(RAM).

HUnlu.1
Associate

I'm new to Cubeide pls give detail to solution.

Thank you so much.

4 REPLIES 4
Pavel A.
Evangelist III

>  Am I loading the code to wrong place(RAM).

Only you know where your code is loaded. But let's assume it is in RAM.

What do you think will happen to this code after you plug out the board?

Code will be deleted and bord won't work.

How can i load the code to ROM. Where is the setting for that in Cubeide?

TDK
Guru

Code is loaded into FLASH by default, which is in specified the *_FLASH.ld linker script.

After you power cycle the board, connect with STM32CubeProgrammer and verify the program is in FLASH, which is very likely the case. If it is, there's a bug somewhere. You can connect under debug to determine where the processor is at. If it has power (and NRST is high), it's running something.

If you feel a post has answered your question, please click "Accept as Solution".

Custom board?

Make sure BOOT0 is pulled LOW​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..