Incompatibility between nrf sdk 17.1.0 and nrf mdk 8.62.0

Greetings,

we are using the nrf52832 in our products and want to keep our toolchain up to date, but we got problems to use newer nrf mdk versions with gcc-arm. Build process is fine but after flashing the nrf_storage module cannot write or read any more because of strange adresses which are passed to former named functions.

To analyze the issue and keep things simple, i have build the nrf_storage example from nrf sdk 17.1.0 and compared the output between the former nrf mdk and a newer mdk version (8.62.0). The result is that with the newer mdk even the example project can not be used anymore (https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/fstorage_example.html?cp=9_1_4_6_10).

So the only part of the toolchain which differs when building the example project is the nrf mdk. 

Output logs from example project:

<info> app: fstorage example started.

<info> app: SoftDevice not present.

<info> app: Initializing nrf_fstorage_nvmc implementation...

<info> app: ========| flash info |========

<info> app: erase unit:         4096 bytes

<info> app: program unit:       4 bytes

<info> app: ==============================

<info> app: Writing "BADC0FFE" to flash.

<error> nrf_fstorage: addr_is_within_bounds(p_fs, dest, len) check failed in nrf_fstorage_write() with value 0x10.

<error> app: Fatal error

<warning> app: System reset

<info> app: fstorage example started.

<info> app: SoftDevice not present.

<info> app: Initializing nrf_fstorage_nvmc implementation...

<info> app: ========| flash info |========

<info> app: erase unit:         4096 bytes

<info> app: program unit:       4 bytes

<info> app: ==============================

<info> app: Writing "BADC0FFE" to flash.

<error> nrf_fstorage: addr_is_within_bounds(p_fs, dest, len) check failed in nrf_fstorage_write() with value 0x10.

<error> app: Fatal error

<warning> app: System reset

So the example project is stucked within an infinte loop of system resets.

Details from toolchain:

nrf sdk: 17.1.0

nrf mdk: 8.62.0

gcc-arm: 10.2.1

Is there a solution to fix it so we can use newer nrf mdk versions?

Best regards 

Albert Herdt

Related