Page 2 of 2
Re: chThdSleepMilliseconds doesnt return
Posted: Thu Oct 17, 2013 8:45 pm
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.
Re: chThdSleepMilliseconds doesnt return
Posted: Thu Oct 17, 2013 9:19 pm
by Giovanni
If the Makefile works then it must be something in the project setup, cannot help there.
Giovanni
Re: chThdSleepMilliseconds doesnt return
Posted: Fri Oct 18, 2013 7:09 am
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.
Re: chThdSleepMilliseconds doesnt return
Posted: Fri Oct 18, 2013 9:10 am
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
Re: chThdSleepMilliseconds doesnt return
Posted: Tue Oct 22, 2013 11:33 am
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