STM32F3 Discovery - IAR

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32F3 Discovery - IAR

Post by Giovanni »

F3 must use SPIv2, adjust the path.

Please refer to the F3's platform.mk in order to understand what the correct paths are, each STM32 is different.

Giovanni
midihenry
Posts: 13
Joined: Sun Oct 13, 2013 12:51 pm

Re: STM32F3 Discovery - IAR

Post by midihenry »

Thank you :)
Well I finally could get rid of all errors but the code doesn't seem to be downloaded to the board :/
Is there anything else that I must enable in the halconf.h file?
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32F3 Discovery - IAR

Post by Giovanni »

Code loading is not related to OS settings.

Play with the IAR options.

Giovanni
midihenry
Posts: 13
Joined: Sun Oct 13, 2013 12:51 pm

Re: STM32F3 Discovery - IAR

Post by midihenry »

Well I managed to get rid of all errors finally :D
But when I download the code it just doesn't run on the board.. I was using the demo main.c provided for the STM32F3 Discovery board.
That's awkward..
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32F3 Discovery - IAR

Post by Giovanni »

The project contains several settings that should be modified in the linker section, note that F3 and F4 have different RAM sizes, you need to change some addresses/sizes there.

You should also be able to debug, does the program at least enter the main function?

Giovanni
midihenry
Posts: 13
Joined: Sun Oct 13, 2013 12:51 pm

Re: STM32F3 Discovery - IAR

Post by midihenry »

No it doesn't enter the main function,In fact I can't even debug step by step ..
midihenry
Posts: 13
Joined: Sun Oct 13, 2013 12:51 pm

Re: STM32F3 Discovery - IAR

Post by midihenry »

Thank you Giovani I really appreciate your help and especially your patience :D
I got it working finally.
I realised tha I missed out on those settings.
Image
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32F3 Discovery - IAR

Post by Giovanni »

Good, please look all the tabs in the linker section and compare with the F4 project.

Giovanni
Post Reply