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.
It always stays in "static void _idle_thread(void *p)" when i suspend the code.
I have not modified anything.
Anyone encounter this kind of problem?
Project RT-STM32F429-DISCOVERY is not work!
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: Project RT-STM32F429-DISCOVERY is not work!
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
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
Re: Project RT-STM32F429-DISCOVERY is not work!
Thanks,First problem solved.
But board is not working properly,Led light is not blinking.
Code can't run over "chThdSleepMilliseconds(1000);".
Just like OS's tick is wrong
But board is not working properly,Led light is not blinking.
Code can't run over "chThdSleepMilliseconds(1000);".
Just like OS's tick is wrong
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: Project RT-STM32F429-DISCOVERY is not work!
Version is chibios161.
I reduce time delays,it is same program,can't step over delay funtion.
I reduce time delays,it is same program,can't step over delay funtion.
Re: Project RT-STM32F429-DISCOVERY is not work!
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.
I have test stm32 official code on STM32F429-DISCOVERY,hardware is normal.
- RoccoMarco
- Posts: 655
- Joined: Wed Apr 24, 2013 4:11 pm
- Location: Munich (Germany)
- Has thanked: 83 times
- Been thanked: 67 times
- Contact:
Re: Project RT-STM32F429-DISCOVERY is not work!
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?
But I have no element to help you! What version of chibistudio are you using? Can you post the motherboard revision id?
Ciao,
RM
RM
Re: Project RT-STM32F429-DISCOVERY is not work!
Thank you for your reply.Maybe board is too old.I bought it three years ago.
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: Project RT-STM32F429-DISCOVERY is not work!
I will give it another try during weekend.
What ChibiOS version are you using exactly?
Giovanni
What ChibiOS version are you using exactly?
Giovanni
- RoccoMarco
- Posts: 655
- Joined: Wed Apr 24, 2013 4:11 pm
- Location: Munich (Germany)
- Has thanked: 83 times
- Been thanked: 67 times
- Contact:
Who is online
Users browsing this forum: No registered users and 3 guests