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.

LAUNCHXL-CC2640R2: Merge 'Multi-role' and 'spi_slave' sample projects

Part Number: LAUNCHXL-CC2640R2

Hi,

I have two CC2640R2 launchPads and already got 'Spi_Master' and 'Spi_Slave' sample projects running on them. It worked fine.

I also got 'Multi-Role' project running.

Right now, I need to merge the 'Multi-Role' and 'Spi_slave' project.

In other words, I need one LaunchPad running 'Spi_Master' and another one running 'Multi-Role' with 'Spi_slave' interface.

Any suggestion how to merge them?

Do I have to reconfigure any pin when I merge the 'Multi-Role' and 'Spi_slave' projects?

Thanks,

Steven

  • Hi Steven,
    I suggest using the "Multi-Role" project as base and adding in the "Spi_slave" functionality. Depending on how you intend to use the SPI slave, the code (initialization, execution) can go into different locations. You will still have to run the SPI PIN configuration as in the spi slave example.
  • Hi Joakin,

    Thanks for the reply.

    That was what I planned to do to use 'Multi-Role' as the base.

    After merged, I plan to run 'Spi_master' on one LaunchPad and 'Multi-Role/Spi_slave" on another one. Then, use an iPad BLE application to write data to 'Multi-Role/Spi_savel' LaunchPad. Eventually, the data should be displayed on the terminal of the LaunchPad running 'Spi_Master' if everything is correct.

    Do you think the Pin will have some conflicts when I merge 'Multi-Role' and 'Spi_slave' projects?
    In other words, is there any pin that is used as different function in these two projects?

    Thanks,

    Steven
  • Hi Steven,
    The multi-role project has LCD or UART display output (as part of the menu feature) that might be using the same PIN(s). I suggest you look into the configuration and compare to the SPI example. Note that any IO can be configure to use SPI, so there is no hard limit.
  • Hi,
    Thanks for the reply. At this moment, I am going to work on a different issue. So, I am going to mark it as resolved.

    Thanks,

    Steven