My problem is that the BLE stack misbehaves when the application SW is started via a bootloader.
When there is no bootloader (application started directly) BLE works correctly.
The problem: BLE scanning (RX) reports in invalid (gapScannedDevice_t) length, advEventType and payload.
BLE advertisment (TX) works correctly even when started from bootloader.
Is there something RAM address dependent regarding Gap_StartScanning/gapScannedDevice_t parameter?
Bootloader should be transparent to application, so it considered as a clean start. (stack reset, bss cleared..)
Bootloader seems to be working correctly, also rest of the application too, only the BLE part fails.
Bootloader (no BLE stack) at flash address: 0x21000000
jump to app
vector_p = 0x21019000
SCB->VTOR = vector_p
Application flash address: 0x21019000
binary image shifted by 0x19000
MCUXpresso SDK v2.2.0