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).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-25 11:54 PM
I'm new to Cubeide pls give detail to solution.
Thank you so much.
- Labels:
-
RAM
-
STM32CubeIDE
-
STM32F4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-26 2:23 AM
> 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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-26 2:26 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-26 4:57 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-26 5:10 AM
Custom board?
Make sure BOOT0 is pulled LOW​
Up vote any posts that you find helpful, it shows what's working..
