Hi
1. I develop BLE application on CC2541 MCU and I base my application on SimpleBLEPeripheral
2. I want to use DMA flash writing for some of my data as demonstrated in flash_c254x example from CC2541_43_44_45_Peripherals_Software_Examples.
3. The flash example alone works perfect.
4. However when I have implemented that code in SimpleBLEPeripheral, the data that is written to the flash seems corrupted (it is read and displayed after writing) and it is possible to write the data only once. When trying to write second time the code is stuck at while (!(DMAIRQ & DMAIRQ_DMAIF0));
5. I thought the problem is in the link file, so I have used lnk51ew_CC2541F256_banked.xcl that is used in flash_c254x example , but when I link I get the following error
Fatal Error[e72]: Segment BANKED_CODE must be defined in a segment definition option (-Z, -b or -P)
6. Appreciate any help