Hi
I use both, linker script and startup, i disabled built-in toolchain startup.
I know about Makefile, but do not like this way.
chThdSleepMilliseconds doesnt return
Moderator: RoccoMarco
- 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
If the Makefile works then it must be something in the project setup, cannot help there.
Giovanni
Giovanni
Re: chThdSleepMilliseconds doesnt return
Hi
just for clarification, i have hang at 241 line in chcore_v7m.c
i will double check Makefile example.
Regards.
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.
- 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
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
Giovanni
Re: chThdSleepMilliseconds doesnt return
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
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