SDK: 12.3.0
SOFTDEVICE: s130_nrf51_2.0.1_softdevice
CHIP: nrf51822 AC 256K flash 32K ram
GCC flags:
hi, I have used both keil and gcc for nRF51822 development.
I found some strange situation. keil compiled product has no problem.
but, gcc product has some problem.
first, when ble connected, hardfault error occur sometimes.
second, In ble connected state or just after disconnect event triggered, I have called ble_advertising_start(BLE_ADV_MODE_IDLE) function for triggering idle event.
but, gcc code always stuck somewhere. never out ble_advertising_start function.
The more weird thing is that second problem disappear after removing CFLAGS optimization flags -O3 -Os -g3 in Makefile.
and I again attached CFLAGS optimization flags -O3 -Os -g3. but second problem never occur. but The first problem still occurs.
I don't understand this situation and I can not be sure of the completeness of the product.
Thank you for your advice.