This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

custom board BLE communication cc2541

Other Parts Discussed in Thread: CC2541

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. 

  • Hi Kamil,

    When you open an existing project like the SimpleBLEPeripheral in IAR it should set up all the project options correctly so you can download and debug through IAR.

    You should not try to incorporate SimpleBLEPeripheral into your code, but rather do it the other way around. Start off with SimpleBLEPeripheral and add your specific application code.

    Cheers,
    Fredrik

  • Hi Kamil,

    I have the same question with you that how to do transmit data base on SimpleBLEPeripheral code. I have a CC2541 on my circuit and trying to transmit the output of my circuit to laptop. I want to use one of the I/O port of CC2541 as a input which is connected to the output of my circuit. And I want to use UART mode to transmit my output to laptop. 

    I assume this could be done by modifying SimpleBLEPeripheral application but I couldn't find an exact way to do this. 

    Could you please give me some suggestion or hint on how to achieve this?

    Thank you very much!

    Lola