Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
3 years ago.
mbed boot procedure issue with GCC ARM
I am porting a new target with mbed os. In the boot sequence, the libc_init_array() function is being called from premain in mbed_boot.c . It builds fine and both libgccc and libc are linked properly. However, the binary does not work properly as it crashes when libc_init_array() is called. I am debugging by exporting the project via mbed-cli.
1. Can anybody tell me why is this function call necessary and what does it do?
2. By skipping this function, the mbed main application is reached and is working fine (although its not using any resources at the moment, only an infinite while loop). Can it be skipped?