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

I GOT ERROR 11 when fds_init();

HI

I'm using fds and dfu at the same time with SDK15.3

but it seems that there are some ram conflict or something wrong

my main is look like this

and i get

when the code go to APP_ERROR_CHECK(rc);

I have read some issues in devzone

but i didnt get a solution

please give me some suggestion

thanks

Parents Reply
  • Hi,

    I do not see error 11 in the second project, but I do see error 3 (FDS_ERR_UNALIGNED_ADDR) from call to fds_record_write() in kls_fds_write(). You need to align the data that you pass to this function. Since wait_for_fds_ready() is called regardless of the error returned from fds_record_write(), the application will get stuck here when no write has been scheduled.

    You can solve the error by adding align-attribute to the array definitions:

    uint8_t __attribute__((aligned(4))) default_pwd[9] = { 0xAA,0xA2,0x05,0x48,0x59,0x50,0x52,0x4f }; //HYPRO
    uint8_t __attribute__((aligned(4))) default_record_interval[5] = { 0xBB,0XB1,0x01,0x14,0x00 }; //20
    uint8_t __attribute__((aligned(4))) default_device_name[7] = { 0xCC,0xC3,0x04,0x47,0x54,0x30,0x36 };//GT06

    Best regards,
    Jørgen

Children
Related