STM32F407 Demo Can't runing...

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

zfsdk
Posts: 4
Joined: Sat Feb 25, 2012 12:53 pm

STM32F407 Demo Can't runing...

Post by zfsdk »

I Download ChibiOS 2.5.0, I have a STM32F407 board just only UART1 , DP83848 RMII connect and jtag.
I change STM32F4 Demo just enable UART1 ; compile IAR 6.30.6 Eval When I download and debug os crash; same as use keil 4.23 ? how ?
Attachments
ChibiOS_2.4.0.7z
IAR and Keil project
(254.05 KiB) Downloaded 489 times
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: STM32F407 Demo Can't runing...

Post by Giovanni »

Hi,

I am unable to uncompress the archive you posted. Anyway, you should provide more details, at which point does the program crash? are you able to reach the main function using the debugger?

Giovanni
zfsdk
Posts: 4
Joined: Sat Feb 25, 2012 12:53 pm

Re: STM32F407 Demo Can't runing...

Post by zfsdk »

7z tools: http://www.7-zip.org/

Can't goto main, when enter debug model app crash...
no main
no cstarup.s __iar_program_start
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: STM32F407 Demo Can't runing...

Post by Giovanni »

Can you try to run the unmodified demo provided in the ChibiOS zip file? it seems that the startup file is not included in your project, is it possible it got corrupted?

Giovanni
zfsdk
Posts: 4
Joined: Sat Feb 25, 2012 12:53 pm

Re: STM32F407 Demo Can't runing...

Post by zfsdk »

unmodify project same as modify project,

The demo tested use STM32F407 Discovery board? can you send me a bin to test ?

if download the demo(modify or unmodify) and run, my board must power off and on , otherwise j-link can't download bin again!
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: STM32F407 Demo Can't runing...

Post by Giovanni »

Attached there are the binaries compiled with IAR 6.30. It is the STM32F4-Discovery demo from ChibiOS/RT 2.4.0.

Giovanni
Attachments
ch.zip
(65.22 KiB) Downloaded 496 times
zfsdk
Posts: 4
Joined: Sat Feb 25, 2012 12:53 pm

Re: STM32F407 Demo Can't runing...

Post by zfsdk »

STM32F407 Discovery use USART3 but my board use USART1, I can't see any output info.
could you change STM32F407 Demo USART3 to USART1 ? Thank your!
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: STM32F407 Demo Can't runing...

Post by Giovanni »

I tried compiling the project you posted, found the following errors:

1) IAR issues an error dialog when opening the workspace because a wrong option but it then continues.
2) The directory ./os/hal/playforms/STM32 is missing, I added it.
3) The SPI driver is disabled in halconf.h but the project still requires it, the compilation stops with errors. I stopped trying here.

Basically the binaries are not even generated, you should have seen those errors too.

Probably the demo is too complex for you to modify, you could try modifying ./testhal/STM32F4xx/IRQ_STORM instead, it is a much simpler application.

Giovanni
nihat
Posts: 1
Joined: Sat Sep 08, 2012 2:57 pm

Re: STM32F407 Demo Can't runing... !!!

Post by nihat »

** ChibiOS is great, demo is working.

Download from svn (trunk) copy os files to project directory

chibios
- demos ---------> Keil project working.!!!
- boards
- test
- os <==== from trunk

There is serial detail in readme.txt file
Attachments
chibios.rar
(73.29 KiB) Downloaded 364 times
User avatar
Tectu
Posts: 1225
Joined: Thu May 10, 2012 9:50 am

Re: STM32F407 Demo Can't runing...

Post by Tectu »

Not sure if this is spam and unwanted content in the .rar ...


~ Tectu
Post Reply