Hello!
I have been trying to implement the serialization for STM32L476. During my development I discovered that the deserialization of the SD_BLE_GAP_ADV_SET_CONFIGURE response in ble_gap_adv_set_configure_rsp_dec caused a Hard Fault. To trouble shoot, I built and loaded the Nordic example ble_app_hrs application (unmodified) and connectivity application(also unmodified) on two PCA10040 boards as outlined below. I noticed that the example application run on the Nordic hard faults in the same location. This should be easy to reproduce.
Using SDK 15.3 & GCC toolchain (6.3.1 20170620) on MacOS (10.14.5)
Following instructions provided in SDK Serialization Documentation
Build connectivity application (examples/connectivity/ble_connectivity/pca10040/ser_s132_uart/armgcc) and load onto a PCA10040 with SB17 shorted (using make flash and make flash_softdevice)
Build connectivity application (examples/ble_peripheral/ble_app_hrs/pca10040/ser_s132_uart/armgcc) and load onto another PCA10040 (using make flash).
Connect the two boards per the documentation. Power on both boards.
I ran ble_app_hrs using Ozone debugger, with break point set on Hard Fault handler.
It seems the hard fault happens in the function uint8_t_dec, after ble_gap_adv_set_configure_rsp_dec.
Please advise.
Thank you,
Jeff