2018-12-03 10:41 AM
Hello,
I am porting the BlueNRG-MS to use a non ST based MCU and believe I have most of the porting issues resolved but am receiving a surprising error code when running the BLE_Beacon sample.
I am using the BLE_Beacon sample as stock as possible. This system is a custom design and the SPI communication appears to be working fine with the BlueNRG-MS. I am able to send aci_hal_write_config_data() as well as aci_gatt_init() and get responses from the chip that indicate success. However, when I send aci_gap_init() I receive a 0x4A error which translates to "Flash Write Failed" in the tBleStatus types.
Could someone say why this particular error seems to be returned? I feel confident my SPI code is ported correctly and that I'm handling the interrupts coming from the BlueNRG-MS correctly using HCI_Isr().
Thank you!