This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Link static library, RAM gets corrupted

Hi, I developed a static library including drivers for spi, twi, gpio, adc and few others. Now when I create application and link my library it works ok as long as I am using functions from library. Now I need to add FreeRTOS support so I added to application makefile dependencies - all freertos files and drv_clock. Now when I try to run the same code as for freertos blinky application It wont blink. When I debugged code I see that static variable *m_clock_cb* from nrf_drv_clock is not filled with '0' . There is some data which causes to fail drv_clock_init and leads to app_fault. I tried and if I create application that instead of my library it includes sources in makefile everything works fine.

I am using GCC and for writing makefiles I reused from SDK makefile for uecc (for library) and one makefile from examples (for applicaiton).

Regards,

Michał

Parents Reply Children
Related