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

sd_flash_write only once

I'm attaching a function where I use the sd function :

    void edit_speed_ID(uint8_t speed)
    {		
uint32_t value;//, err_code;
value=5  * speed;
while(sd_flash_write(address,(uint32_t *) & value,1)==NRF_ERROR_BUSY);
nrf_delay_ms(1000);
pattern_ID_3();
     }

the problem is that, when I call this function for the first time, it works fine & if I try to call this function its call is done correctly but the sd_flash_write doesn't overwrite the written value for the first time even I don't change the address passed to the sd_flash_write

Parents Reply Children
No Data
Related