Using SCAN_INTERVAL and SCAN_WINDOW at 1600 vill make the flash write and erase come out with a error, the fstorage is working fine before the SD is initialised.
/** @brief Application main function. */
/** @brief Parameters used when scanning. */
// OBS OBS changing scan parameters to 1000/0.625 will make the flash write come out with an error!!!?? RIM 20181003
#define SCAN_INTERVAL 0x00A0 // (1000.0 / 0.625) /**< Determines scan interval in units of 0.625 millisecond. */
#define SCAN_WINDOW 0X00A0 // (1000.0 / 0.625) /**< Determines scan window in units of 0.625 millisecond. */
#define SCAN_DURATION 0x0000 /**< Timout when scanning. 0x0000 disables timeout. */
static ble_gap_scan_params_t const m_scan_params =
{
.active = 1,
.interval = SCAN_INTERVAL,
.window = SCAN_WINDOW,
.timeout = SCAN_DURATION,
.scan_phys = BLE_GAP_PHY_1MBPS,
.filter_policy = BLE_GAP_SCAN_FP_ACCEPT_ALL,
};
With the sugestion to increase the SCAN_INTERVAL if flash storage was a problem this is not the first place to look for the error.
Is there some parameters like timeout that I have overlooked?
regards CRIM.