NRF522832 FreeRTOS can't start.

Hi everyone:

I developed an application based on freertos, but when I download it, I found it can not start, but when I use the RTT to connect my device, It worked.

The commend is

nrfutil settings generate --family NRF52 --application app.hex --application-version 0 --bootloader-version 0 --bl-settings-version 2 settings.hex
nrfjprog --eraseall -f NRF52
nrfjprog --program mbr_nrf52_2.4.1_mbr.hex --verify -f NRF52
nrfjprog --program nrf52832_xxaa_mbr.hex --verify -f NRF52
nrfjprog --program app.hex --verify -f NRF52
nrfjprog --program settings.hex --verify -f NRF52
nrfjprog --reset -f NRF52

SDK is 17.1.0.

Best regards,

Lurn.

Parents Reply
  • Ok, I found the problem, but I don't know why.

    Before the tasks create, I init the clock, when I  use the code, my device won't start.

    {
        ...
        
        nrf_drv_clock_lfclk_request(NULL);
        
        while(!nrf_clock_lf_is_running()){;}
        
        ...
    }

    I used the code because the example flash_fstorage include it, but when I delete it, my device turned on, and logs doesn't seem to have any effect.

    So, Why does this affect device startup?

    BR

    Lurn

Children
Related