chThdSleep strange behaviour

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

am3syl
Posts: 11
Joined: Wed Jan 13, 2016 12:37 pm

Re: chThdSleep strange behaviour

Post by am3syl »

Yes I use the stm32f429 ld file but its the same family

In the map file I see VectorB0 (systick vector) is linked at std_lld.o, its seems ok

But its like VectorB0 is not implemented, the flag is set but is never processed.
I looked to the nvic registry, interrupt is set and flag too.

I will reinstall Chibios from scratch to eliminate the risk of modified files but with no great hope.
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: chThdSleep strange behaviour

Post by Giovanni »

I suggest you see it working in an existing demo on a supported board before attempt to port it.

At very least you would have two things to compare.

Giovanni
am3syl
Posts: 11
Joined: Wed Jan 13, 2016 12:37 pm

Re: chThdSleep strange behaviour

Post by am3syl »

Good idea, I have flashed the F429 demo on my board without change expect HSI use and systick ISR is called!

Now I have to replace file by file to see where is the problem.
am3syl
Posts: 11
Joined: Wed Jan 13, 2016 12:37 pm

Re: chThdSleep strange behaviour

Post by am3syl »

Ok I got it.

Well the chconf used contains CORTEX_VTOR_INIT at the last line and I didn't see it.
The line relocate vector outside the flash. Costly mistake.

Thanks for your support!!
Post Reply