Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] STM32f4 Discovery and IAR: template project\workspace

Status
Not open for further replies.

Araxnid

Newbie level 6
Joined
Aug 14, 2012
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,366
Hello everyone, so i was working with discovery board via IAR ide.
Everything worked perfect, but now i'm trying to create new project( want to understand how to build smh from white list). Im adding all libraries that was in examples, all files and etc, but when im start to write my firmwire and after it - nothing happens. It looks like im starting not from main function and i think its because of "startup_stm32f4xxx.s" file, where all memory vectors init.
I cant understand where i should write something to start my programm from "startup", can someone help me?
Or show me some tutorials how to build workspace for stm32 in IAR? I find many about others IDE, but cant use them right now because of work.
 

Hello everyone, so i was working with discovery board via IAR ide.
Everything worked perfect, but now i'm trying to create new project( want to understand how to build smh from white list). Im adding all libraries that was in examples, all files and etc, but when im start to write my firmwire and after it - nothing happens. It looks like im starting not from main function and i think its because of "startup_stm32f4xxx.s" file, where all memory vectors init.
I cant understand where i should write something to start my programm from "startup", can someone help me?
Or show me some tutorials how to build workspace for stm32 in IAR? I find many about others IDE, but cant use them right now because of work.


Hi Araxnid,

The start-up sequence is:
1. SystemInit
2. IAR startup and then to main

So IAR will automatically jump you to main.c and you don't need to handle it.

MCU LÜfter
 

Ok, hm, i think you missunderstand me.

Im creating project and workspace with all options like in examples(preprocess, linker and etc), im adding all .. er.. "standart" files from examples, but when im try to launch my firmware with my main function, its downloading without errors and then nothing happens. Its just start's in empty place of memory..I even dont need to click "f5" to run programm, it's starts immediatly after download, because its points to notning in memory.

Of course i can work with example workspace, just delete everthing else, but i want to understand how to create workspace and project for stm32..
 

Ok, hm, i think you missunderstand me.

Im creating project and workspace with all options like in examples(preprocess, linker and etc), im adding all .. er.. "standart" files from examples, but when im try to launch my firmware with my main function, its downloading without errors and then nothing happens. Its just start's in empty place of memory..I even dont need to click "f5" to run programm, it's starts immediatly after download, because its points to notning in memory.

Of course i can work with example workspace, just delete everthing else, but i want to understand how to create workspace and project for stm32..

Hi Araxnid,

Are you sure you are downloading the code into flash memory. It could you are using
be the simulator
Check Project->Options-> Debugger . it should be ST-Link if you are using the STM32F4 discobery

MCU Lüfter
 

Yeah, i check every option in my project with example project.
Im attach myproject file, but without standart stm libraries (too big for forum i think)
Maybe this will help :(

And why all templates from stm going with some stm32_eval files? Really, this is just templates, why the hell they put some other code there :(

Thanks for help anyway!
 

Attachments

  • MyProject.rar
    78.4 KB · Views: 97

Hi,

I think I found the issue:
in Project->Debugger->Download
check use flashloader and verify download
I didn't test it but I suspect it.

MCU Lüfter
 
Oh, thank you, man this really help me!
Big, big thank!
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top