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!

Post by zenmedi »

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: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

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

Post by Giovanni »

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!

Post by zenmedi »

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: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

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

Post by Giovanni »

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!

Post by zenmedi »

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!

Post by zenmedi »

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: 655
Joined: Wed Apr 24, 2013 4:11 pm
Has thanked: 83 times
Been thanked: 67 times

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

Post by RoccoMarco »

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?
zenmedi
Posts: 10
Joined: Fri Oct 21, 2016 2:59 am

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

Post by zenmedi »

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: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

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

Post by Giovanni »

I will give it another try during weekend.

What ChibiOS version are you using exactly?

Giovanni
User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Has thanked: 83 times
Been thanked: 67 times

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

Post by RoccoMarco »

Nope same board!
Post Reply