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.

CC2541 programming via I2C

Other Parts Discussed in Thread: CC2541

Hi,

We are designing a board with the CC2541 device and ST microcontroller which we want to control the system.

We wish to design the board without the CC debugger connector and configure the CC2541 with the I2C interface using the ST microcontroller. In other words, the CC2541 only connection is the I2C to the microcontroller, ST is the master and CC2541 is the slave.

Is it possible to configure the CC2541 device via I2C on power up? I saw on the userguide that the default I2C state is to be disabled.

Please advise me if it it possible or what else could fit.

Thank you,

Doron

  • Hello Doron,

    You must program the initial code through the debug interface. Refer to the following app note called Flash Programming of CC253x/4x devices. This shows how you can implement parts of the debug interface on your micro-controller. You can find it here:

    http://www.ti.com/general/docs/litabsmultiplefilelist.tsp?literatureNumber=swra410

    The only viable solution I can think of for using a I2C interface only would be to make a custom boot-loader based on I2C and program the devices in production before PCB assembly. This production programming is a service that our distributors is typically capable of doing for you, probably at an extra cost.

  • Hi Erik, Thank you for your reply.
    I understand that the preferred way for configuring the CC2541 through external MCU is using the debug interface (Reset-n, CC, DC).
    In this approach We will connect the CC2541 only to the MCU, with the debug interface (and I2C). This will give us the the option to fully configure the CC2541 Flash and all the registers. Please correct me if I misunderstood.

    After we finish the development with a first board, we are going to mass production. Is this programming method is suitable for mass production, or what other options TI suggest?
    Regards,
    Doron
  • Hello Doron,
    This is correct. But you have to make the debug interface application on your µC.
    My suggestion would be to add test points to the debug lines (DD, DC, RESET, GND and CC2541 VDD). Then it is possible to create a pogo-pin type test jig and use professional production programmers.

    Although this list was composed for older devices, some might provide support for CC2541 as well:
    e2e.ti.com/.../recommended-programmers-for-production-programming-soc
    Also check out these post:
    e2e.ti.com/.../1005075
    e2e.ti.com/.../709514