Hi
I have designed a board with cc2541 chip on it and some external sensors. I have written some programs which more or less worked and read my data. The next step in my project is to use BLE so here is my questions:
1. How do I set IAR software so it can be used as debugger? So far I only used SmartRF Flash Programmer to program chip with hex files. I'd really want to debug the code rather than just see if it works or not.
2. How do I use SimpleBLEPeripheral or other in my main code? The chip is to be controlled by LabVIEW program. How I see the program work is this:
From Chip's point of view, it continuously looks for a connection.
When connected
Case 1: LabView request data to be transferred, for further processed
chip read data at an internal interrupts, and sends read data
Case 2: LabView sends processed data
chip uses this data as control variables
I'd assume that SimpleBLEPeripheral takes care of everything (QFSK,handshake,freq hopping etc.)and that there is a simple library function call named let's say 'TransmitBLEData xxx' or 'ReadBLEData', but I don't seen to be able to find it.
I'm still reading the BLE_Software_Development guide but it has loads of information in it. I'm looking for some hints and suggestion on how to use existing application/example to make this task simpler.