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.

PAN1721 development starter guide

Other Parts Discussed in Thread: CC2540, CC2541

Hi everyone, I hope you can guide me in the process of developing some firmware.

This is my case, I have developed my own electronic design with the PAN1721 integrated on it, and after checking that it works, I need to develop the firmware but I am a bit (or very) lost.

I have taken a look to the "CC2540/41 BLE Software Developers Guide" and I become familiar with the BLE Protocol stack. I want to achieve something very similar to the example "HostTestRelease" with a SPI communication with an ARM processor. In conclussion, I need to send something via bluetooth through the PAN1721 that previously has been sent by the ARM processor (via SPI) to the PAN module. (I hope you can understand the main idea...)

I have the next tools:

  • IAR Embedded Workbench (30 days evaluation)
  • CC Debugger
  • Bluetooth USB adapter connected to the PC.
  • Other software: "BTool", "BLE Device Monitor", "Packet Sniffer, Smart RF Studio 7" and "Flash programmer"

At this point I am a bit lost. These are the steps I would like to follow:

  1. First of all I would like to check that I can link the PC with the PAN1721. (It seems it happens because the Bluetooth device finds the "BlueMod +P2x/G2..." ). Am I right?
  2. Secondly I would like to check that some example packets from the PAN1721 are received in the PC. Could you suggest me something to develop this task?
  3. After that I should develop the specific firmware (based on the "HostTestRealease" example). Could you guide me in the first steps of this task?

Any of your suggestions would be very useful for me, as I have told you I am lost at this point.

Thank you very much.

  • Hi Al_Spain,

    I would recommend getting a CC2540 USB Dongle to use as a packet sniffer. That way you can easily detect what you PAN module is transmitting (and what kind of response it gets). That should take care of #1 and #2.

    For #3, I would just have to refer to the SW Developers Guide.

    Cheers,
    Fredrik
  • Hi Fredrick,

    Thank you very much for your suggestion, but do you think it would be possible to use the generic Bluetooth USB adapter and a programme acting as a bluetooth Sniffer (a programme such as the USBPcap)?

    Regarding #3 could you suggest me something to change the HostTestRelease example to configure the PAN module for receiving packets via SPI?

    Thank you very much, I really appreciate your suggestions.
  • Hello. For #3, do you just want to use HostTestRelease for SPI? There is a SPI configuration of HostTestRelease included with the installer.
  • Thank you Tim,
    As I told you I am new with the development of this type of firmware, so I would appreciate if you guide me in the process of selecting the SPI configuration and programing the PAN module.

    Thank you very much.
  • If you open the HostTestRelease project ($INSTALL$\Projects\ble\HostTestApp\CC2541\HostTestRelease.eww) you can select the SPI configuration:

    I would recommend reading through the software developer's guide ($INSTALL$\Documents\TI_BLE_Software_Developer's_Guide.pdf) to become familiar with IAR projects and the stack.