Page 1 of 2
STM32F407 Demo Can't runing...
Posted: Sat Feb 25, 2012 1:28 pm
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 ?
Re: STM32F407 Demo Can't runing...
Posted: Sat Feb 25, 2012 2:11 pm
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
Re: STM32F407 Demo Can't runing...
Posted: Sat Feb 25, 2012 2:28 pm
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
Re: STM32F407 Demo Can't runing...
Posted: Sat Feb 25, 2012 2:42 pm
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
Re: STM32F407 Demo Can't runing...
Posted: Sat Feb 25, 2012 7:26 pm
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!
Re: STM32F407 Demo Can't runing...
Posted: Sat Feb 25, 2012 8:16 pm
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
Re: STM32F407 Demo Can't runing...
Posted: Sun Feb 26, 2012 3:32 am
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!
Re: STM32F407 Demo Can't runing...
Posted: Sun Feb 26, 2012 8:58 am
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
Re: STM32F407 Demo Can't runing... !!!
Posted: Wed Dec 26, 2012 4:18 pm
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
Re: STM32F407 Demo Can't runing...
Posted: Wed Dec 26, 2012 5:12 pm
by Tectu
Not sure if this is spam and unwanted content in the .rar ...
~ Tectu