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.

Using the CC2540's MCU

Other Parts Discussed in Thread: CC2540, BLE-STACK

I've been using development boards such as the BLE Mini board (uses the CC2540) for quite a while with AVRs. However, I'd like to make it more efficient.

Have you got any tips or pointers as to how to move the code away from the second AVR and compile it together onto the CC2540's MCU? I'm really only pulling a pin high (linked to a mosfet) when a character has been received from my iPhone app, and sending another character to my phone app when a button is pressed on my prototype.

Another thing I'm struggling with is what device can I use to flash/program the chip? Can I simply upload via SPI?

Any pointers would be grateful.

Sam

  • You can download and install TI BLE stack from http://www.ti.com/tool/ble-stack?DCMP=lprf-stdroid&HQS=lprf-stdroid-pr-tf2 . There is a SimplePeripheral example insides. Since you just need to use GPIO function on your application, you. can refer to hal_ key.c which show you GPI and hal_led show you GPO usage. To flasg/program cc254x, you will need cc debugger.