Skip to content

Commit 46f7277

Browse files
committed
make nRF52840 target compilable for ARM compiler
- enable fstorage in sdk config - remove files of modules: bootloader, DFU bootloader and UICR setings
1 parent f0b3cd2 commit 46f7277

File tree

17 files changed

+37
-3389
lines changed

17 files changed

+37
-3389
lines changed

targets/TARGET_NORDIC/TARGET_NRF5_SDK13/TARGET_MCU_NRF52840/sdk/sdk_config.h

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2905,6 +2905,43 @@
29052905
#define CRC32_ENABLED 1
29062906
#endif
29072907

2908+
// <e> FSTORAGE_ENABLED - fstorage - Flash storage module
2909+
//==========================================================
2910+
#ifndef FSTORAGE_ENABLED
2911+
#define FSTORAGE_ENABLED 1
2912+
#endif
2913+
#if FSTORAGE_ENABLED
2914+
// <o> FS_QUEUE_SIZE - Configures the size of the internal queue.
2915+
// <i> Increase this if there are many users, or if it is likely that many
2916+
// <i> operation will be queued at once without waiting for the previous operations
2917+
// <i> to complete. In general, increase the queue size if you frequently receive
2918+
// <i> @ref FS_ERR_QUEUE_FULL errors when calling @ref fs_store or @ref fs_erase.
2919+
2920+
#ifndef FS_QUEUE_SIZE
2921+
#define FS_QUEUE_SIZE 4
2922+
#endif
2923+
2924+
// <o> FS_OP_MAX_RETRIES - Number attempts to execute an operation if the SoftDevice fails.
2925+
// <i> Increase this value if events return the @ref FS_ERR_OPERATION_TIMEOUT
2926+
// <i> error often. The SoftDevice may fail to schedule flash access due to high BLE activity.
2927+
2928+
#ifndef FS_OP_MAX_RETRIES
2929+
#define FS_OP_MAX_RETRIES 3
2930+
#endif
2931+
2932+
// <o> FS_MAX_WRITE_SIZE_WORDS - Maximum number of words to be written to flash in a single operation.
2933+
// <i> Tweaking this value can increase the chances of the SoftDevice being
2934+
// <i> able to fit flash operations in between radio activity. This value is bound by the
2935+
// <i> maximum number of words which the SoftDevice can write to flash in a single call to
2936+
// <i> @ref sd_flash_write, which is 256 words for nRF51 ICs and 1024 words for nRF52 ICs.
2937+
2938+
#ifndef FS_MAX_WRITE_SIZE_WORDS
2939+
#define FS_MAX_WRITE_SIZE_WORDS 1024
2940+
#endif
2941+
2942+
#endif //FSTORAGE_ENABLED
2943+
// </e>
2944+
29082945
// <q> ECC_ENABLED - ecc - Elliptic Curve Cryptography Library
29092946

29102947

targets/TARGET_NORDIC/TARGET_NRF5_SDK13/sdk/libraries/bootloader/ble_dfu/nrf_ble_dfu.c

Lines changed: 0 additions & 1037 deletions
This file was deleted.

targets/TARGET_NORDIC/TARGET_NRF5_SDK13/sdk/libraries/bootloader/ble_dfu/nrf_ble_dfu.h

Lines changed: 0 additions & 120 deletions
This file was deleted.

targets/TARGET_NORDIC/TARGET_NRF5_SDK13/sdk/libraries/bootloader/dfu/nrf_dfu.c

Lines changed: 0 additions & 177 deletions
This file was deleted.

0 commit comments

Comments
 (0)