Hello!
I have encountered an interesting issue:
When I use compiler flags (GCC CFLAGS) -Os or -O0 together with -flto the pstorage function pstorage_block_identifier_get() fails with error NRF_ERROR_INVALID_PARAM.
If I remove the -flto or if I use it together with -O3 it works fine again.
- Any idea why?
- Is it a good idea to use -flto flag? When? (I am confused about this)
I am using SDK9.0.0 and S130 softdevice with nrf51 (16KB RAM / 256 FLASH)
Thanks!