Project RT-STM32F429-DISCOVERY is not work!

Discussions and support about ChibiStudio, the free development environment for ARM.
zenmedi
Posts: 10
Joined: Fri Oct 21, 2016 2:59 am

Project RT-STM32F429-DISCOVERY is not work!

Postby zenmedi » Fri Oct 21, 2016 1:24 pm

I test chibios RT-STM32F429-DISCOVERY demo on my STM32F429I-DISCOVERY board.
Demo build is ok,but it is not working properly,stop on wrong location at beginning.
wrong.png

It always stays in "static void _idle_thread(void *p)" when i suspend the code.
wrong2.png

I have not modified anything.
Anyone encounter this kind of problem?

User avatar
Giovanni
Site Admin
Posts: 10213
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 212 times
Been thanked: 197 times
Contact:

Re: Project RT-STM32F429-DISCOVERY is not work!

Postby Giovanni » Fri Oct 21, 2016 1:29 pm

hi,

It is working as intended.

The system spends most of its time in the idle thread, when all other threads are waiting so you will almost always find the system in there when suspending.

About the other problem.

It looks like it stops in another function at start because functions inlining, if you look at the stack trace in your picture you can see that you are actually in the main that called halInit that called hal_lld_init, being the code inlined the three are one and the same. If you want to see things "normally" then you need to compile using -O0 in the Makefile, this disables optimizations.

Giovanni

zenmedi
Posts: 10
Joined: Fri Oct 21, 2016 2:59 am

Re: Project RT-STM32F429-DISCOVERY is not work!

Postby zenmedi » Fri Oct 21, 2016 2:08 pm

Thanks,First problem solved.
wrong4.png

But board is not working properly,Led light is not blinking.
wrong6.png

wrong5.png

Code can't run over "chThdSleepMilliseconds(1000);".
Just like OS's tick is wrong

User avatar
Giovanni
Site Admin
Posts: 10213
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 212 times
Been thanked: 197 times
Contact:

Re: Project RT-STM32F429-DISCOVERY is not work!

Postby Giovanni » Fri Oct 21, 2016 2:17 pm

Hi,

Which version are you using?

Giovanni

zenmedi
Posts: 10
Joined: Fri Oct 21, 2016 2:59 am

Re: Project RT-STM32F429-DISCOVERY is not work!

Postby zenmedi » Fri Oct 21, 2016 2:59 pm

Version is chibios161.
I reduce time delays,it is same program,can't step over delay funtion.

zenmedi
Posts: 10
Joined: Fri Oct 21, 2016 2:59 am

Re: Project RT-STM32F429-DISCOVERY is not work!

Postby zenmedi » Fri Oct 21, 2016 3:13 pm

My other two boards,STM32F051-DISCOVERY and STM32F302R8-NUCLEO chibios demos work fine,but STM32F429-DISCOVERY.
I have test stm32 official code on STM32F429-DISCOVERY,hardware is normal.

User avatar
RoccoMarco
Posts: 557
Joined: Wed Apr 24, 2013 4:11 pm
Location: Salerno (Italy)
Has thanked: 65 times
Been thanked: 50 times
Contact:

Re: Project RT-STM32F429-DISCOVERY is not work!

Postby RoccoMarco » Fri Oct 21, 2016 3:17 pm

Just tested. It works quite well to me. This is strange.

But I have no element to help you! What version of chibistudio are you using? Can you post the motherboard revision id?
Ciao,
RM

zenmedi
Posts: 10
Joined: Fri Oct 21, 2016 2:59 am

Re: Project RT-STM32F429-DISCOVERY is not work!

Postby zenmedi » Fri Oct 21, 2016 3:32 pm

Thank you for your reply.Maybe board is too old.I bought it three years ago.
IMG_20161021_222248.jpg

IMG_20161021_222317.jpg

User avatar
Giovanni
Site Admin
Posts: 10213
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 212 times
Been thanked: 197 times
Contact:

Re: Project RT-STM32F429-DISCOVERY is not work!

Postby Giovanni » Fri Oct 21, 2016 3:35 pm

I will give it another try during weekend.

What ChibiOS version are you using exactly?

Giovanni

User avatar
RoccoMarco
Posts: 557
Joined: Wed Apr 24, 2013 4:11 pm
Location: Salerno (Italy)
Has thanked: 65 times
Been thanked: 50 times
Contact:

Re: Project RT-STM32F429-DISCOVERY is not work!

Postby RoccoMarco » Fri Oct 21, 2016 3:40 pm

Nope same board!
Ciao,
RM


Return to “ChibiStudio”

Who is online

Users browsing this forum: No registered users and 2 guests