Sysprogs forums › Forums › VisualGDB › STM32F4 Release Image
Tagged: Bootloader, stm32
- This topic has 4 replies, 2 voices, and was last updated 10 years ago by
jenko_1080.
-
AuthorPosts
-
October 11, 2015 at 14:45 #7057
jenko_1080
ParticipantI’m hoping that I’ve missed something simple and will feel like a fool when an answer appears…
Up until recently I’ve been stuck on Atmel chips using Atmel’s AVR Studio which just did things without my needing to know much about them, but now I’m at a stage where I think I need to know.
I have finally got a version of code that is stable and ready to sit on the chip until I decide to change something again, but I have reached a roadblock in that I don’t know how to load the code on to the chip in such a way that it will stay there and boot into this program. The only way I can get it to run is with a debugger attached.
Is there a flag I’ve missed somewhere that will make this code ‘start’ when the board is powered up.
For background I’m using an STM32F407VG with very little else attached.
Thanks in advance.
October 13, 2015 at 03:56 #7060support
KeymasterAre you creating a normal VisualGDB proejct using the VisualGDB wizard, or importing some existing code? Are you selecting “FLASH” as the primary memory in the wizard?
October 13, 2015 at 04:43 #7063jenko_1080
ParticipantG’day Bazis,
I created a normal VisualGDB project for the STM32F407 with stdlib and copied some C++ code across- only classes that were separate from the core stm32f4xx packages.
And I did select Flash as the primary memory.
This problem occurs on both my main Pc and laptop.This might help with a bit of diagnosis (though some config files may be missing):
https://bitbucket.org/jenko_1080/ele4epa
* Excuse some of the bad/rushed code, many mechanical hardware modifications caused delays as they always do with a university project.
I’m also having a separate problem that appears to be unrelated to the initial problem:
I run VisualGDB on my PC at home, and Laptop when I’m working elsewhere. The project I’m working on is sync’d using OneDrive to make life easier- and it has been until today. When I open the project and attempt to open “Project > VisualGDB Project Properties” I get no window open.The Fix i’m about to attempt is to create a new project and load my current classes in. If this fixes either problem I’ll report back, there are far too many things that can go wrong.
Both systems are running VS2013, PC is Win8 / Laptop is Win10.October 13, 2015 at 20:26 #7066support
KeymasterHi,
We would recommend creating a basic LEDBlink project and testing whether it still runs without debugger. If not, something is wrong with your FLASH programming setup. If yes, try gradually adding features from your current program to the LEDBlink project to see which one breaks the flow.
October 17, 2015 at 07:42 #7077jenko_1080
ParticipantSounds like an excellent plan, thanks for the help 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.