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.

[FAQ] CC1352P7: Is ti-wisunfantund working with the newly released BeaglePlay? (yes)

Part Number: CC1352P7

Hello all E2E Community Members,

Lately, we have been asked a lot whether ti-wisunfantund would work on the BeaglePlay using its embedded CC1352P7, or not.

The answer is yes, it does work, even from the default Debian image that comes loaded in its eMMC memory. No need to create a bootable SD card.

Here is a quick start guide that describes the process:

  1. Disable the bcfserial driver, and reboot the BeaglePlay according to the following instructions:

    This will allow us to gain access to /dev/ttyS4, which is the UART interface connected to the embedded CC1352P7.

  2. Flash the embedded CC1352P7 with the ns_br example, from the SIMPLELINK-LOWPOWER-F2 SDK:
    1. Using the TagConnect JTAG connection present on the BeaglePlay.
    2. Using the cc2538-bsl.py script mentioned in the BeaglePlay documentation. This will flash the chip using its internal bootloader.
  3. With the BeaglePlay connected to Internet, install libcoap2-bin from apt, to acquire coap-client:
    Fullscreen
    1
    sudo apt install libcoap2-bin
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

After completing all of the above steps, follow the instructions from https://github.com/TexasInstruments/ti-wisunfantund/blob/release/INSTALL.md, and you should have a working ti-wisunfantund setup!

NOTE: In ti-wisunfantund/ti-wisun-webapp/server/src/AppConstants.js, we recommend changing the default CONSTANTS to the following:

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/**
* Program-wide options
*/
const CONSTANTS = {
OUTPUT_DIR_PATH: '/tmp/ti-wisun-webapp/output',
PING_RESULTS_FILE_NAME: 'PingResults.csv',
WFANTUND_PATH: '/usr/local/sbin/wfantund',
BR_FILE_PATH: '/dev/ttyS4',
PROPERTY_UPDATE_INTERVAL: 1000, // in ms
TOPOLOGY_UPDATE_INTERVAL: 10000, // in ms
MANUAL_DEV_MODE: false,
PORT: 81,
HOST: ['192.168.8.1', 'localhost', '192.168.7.2']
};
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

This will automatically using /dev/ttyS4, and expose the web server on most of the BeaglePlay's network interfaces.

  • Thank you for this guide, it helps a lot!

  • This is great! The Beagle Play can be found here: www.digikey.com/.../17398989

  • Some more details on flashing the CC1352P7 with the cc2538-bsl.py script:

    1. In Code Composer Studio, in the ns_br project, enable the Arm Objcopy Utility

    2. Now, we have to rename the bin file so that it gets the .bin extension:

    3. Specify the format of the .bin file. It has to be "binary"
    4. Let’s build the project now, and copy the resulting .bin file to the Beaglebone.

    We should now be able to flash the binary using the script:

    Fullscreen
    1
    debian@BeaglePlay:~/wisun$ build/play/cc2538-bsl.py ns_br_src_LP_CC1352P7_1_tirtos7_ticlang.bin
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX