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.

CC2540: Connect Atmega to CC2540 by SPI and send data then wireless

Part Number: CC2540
Other Parts Discussed in Thread: CC-DEBUGGER, CC2541, BLE-STACK

Hi everybody,

I use an Atmega88PA and send resistance values by UART to a PC. I already have a working code, which is programmed in AtmelStudio 6.2.

I would like to transmit the data from the Atmega88PA to the SoC CC2540F256 by SPI. And then send the resistance values by Bluetooth Low Energy to a HM-10 Modul or to an existing App. Thus, I wouldn't need the UART. The Atmega88PA should be the Master and the CC2540F256 the Slave. I already read that the CC2540 can be only programmed with IAR Workbench and that I should use the Test Release Project from TI. 

Now I have the following questions:

-  Is it possible that I program the Atmega88PA with AtmelStudio 6.2, including SPI, and the CC2540F256 with IAR Workbench?

- When I use the Release Project from TI, is there already an App where I can directly see data without changing the code?

- I have the CC-Debugger from TI and installed SmartRF Flash Programmer and SmartRF Studio 7. Which program should I use to program the SoC CC2540?

Thank you very much in advance for your help,

Lisa

  • Hello Lisa,

    I'm not an expert on the Atmega88PA or AtmelStudio 6.2 but you will likely program these devices individually. I.e, use the CC Debugger with the CC2541 + SmartRF Flash Programmer. If you develop in IAR, you can program directly from IAR.

    If you are using the HostTestRelease project, you will need to develop your Bluetooth application on the host MCU using the Vendor Specific HCI commands that are described in the aptly named named TI Vendor Specific HCI Guide found in the BLE-Stack SDK.

    Best wishes