chThdSleepMilliseconds doesnt return

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

Moderator: RoccoMarco

Legath
Posts: 21
Joined: Thu Oct 17, 2013 3:24 pm

Re: chThdSleepMilliseconds doesnt return

Post by Legath »

Hi

I use both, linker script and startup, i disabled built-in toolchain startup.
I know about Makefile, but do not like this way.
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: chThdSleepMilliseconds doesnt return

Post by Giovanni »

If the Makefile works then it must be something in the project setup, cannot help there.

Giovanni
Legath
Posts: 21
Joined: Thu Oct 17, 2013 3:24 pm

Re: chThdSleepMilliseconds doesnt return

Post by Legath »

Hi

just for clarification, i have hang at 241 line in chcore_v7m.c

Code: Select all

 asm volatile ("vpush   {s16-s31}" : : : "memory");

i will double check Makefile example.


Regards.
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: chThdSleepMilliseconds doesnt return

Post by Giovanni »

Careful, you are hitting code related to the FPU, if you define CORTEX_USE_FPU=TRUE in your project then you also have to give the appropriate options to the compiler (-mfloat-abi=softfp -mfpu=fpv4-sp-d16 -fsingle-precision-constant), please examine all the logic related to the FPU in the Makefile.

Giovanni
Legath
Posts: 21
Joined: Thu Oct 17, 2013 3:24 pm

Re: chThdSleepMilliseconds doesnt return

Post by Legath »

Hi Giovanni,

many thanks, after adding -fsingle-precision-constant all works.

[update]
now i have hang at the end of stm32_clock_init(void).
if i just run board all works.

Regards
Post Reply