I try to use OAD feature, but I found one issue. My steps are:
1. First I make a big hex file consist of BIM + imgA + imgB,
2. I load firmware (with version 0) into device.
3. Open BLE Device Monitor for OAD. Find my device and enable OAD.
4. It shows me that imgB is active, I choose imgA.bin firmware (with version 1) to load device and it goes well. But then it 100% all is stuck. It preserves the connection and do not resets. If I reset it manually the firmware will be old.
----------------------------------------------------------------------
I discovered why it's happening with debbuger, but I don't know how to solve it:
By some reason CRC and CRC shadow are different, so bootloader never resets here:
Any ideas why this is happening? I using IAR 8.30.3 and BLE stack 1.4. For OAD manager I used CC2540 USB Dongle. Target device based on CC2541F256.
Also I can add, that then I made a file with BIM + imgA, load it into the device, and try to program with OAD imgB everything is fine, it's resets and starts a new imgB firmware. But after that all the same, it cannot load imgA.