hi professor,
I add the CONFIG_NO_OPTIMIZATIONS=y but ble connection timeout In my pheripheral project .When I delete CONFIG_NO_OPTIMIZATIONS=y, the ble will connection success. Do I have to turn on optimization if I use the Bluetooth?
hi professor,
I add the CONFIG_NO_OPTIMIZATIONS=y but ble connection timeout In my pheripheral project .When I delete CONFIG_NO_OPTIMIZATIONS=y, the ble will connection success. Do I have to turn on optimization if I use the Bluetooth?
Seems like the timings changed or you have some stack corruptions when there are no optimizations. Try to increase the stack size configurations of your app as well modules that use stack for buffer. Also spend some more time understanding the overall stack usage for your application.
Seems like the timings changed or you have some stack corruptions when there are no optimizations. Try to increase the stack size configurations of your app as well modules that use stack for buffer. Also spend some more time understanding the overall stack usage for your application.
hi professor,
I added CONFIG_NO_OPTIMIZATIONS=y to peripheral_ht sample of nrf connect sdk 1.4.99 . It made ble connection timeout.That is to say, the samplein the SDK must be optimized to work normally.I tried to add the CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE, but the same connection timeout.
I have seen similar in the older SDK. Can you please try to use latest nRF Connect SDK v1.6.1 and see if it is still the same? As far as I know, some issues like this with very tight stack usage have been fixed for some samples.