SWRU455M February 2017 – October 2020 CC3120 , CC3120MOD , CC3130 , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3230S , CC3230SF , CC3235MODAS , CC3235MODASF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
Add the following lines to your initialization code (for example, in your main thread next to SPI_init()):
// If your application already has UART0 configured, no need for this line MAP_PRCMPeripheralClkEnable(PRCM_UARTA0, PRCM_RUN_MODE_CLK);
// Mux Pin 62 to mode 1 for outputting NWP logs
MAP_PinTypeUART(PIN_62, PIN_MODE_1);
The following header files must be included to enable a clean compilation:
#include <ti/devices/cc32xx/inc/hw_types.h>
#include <ti/devices/cc32xx/driverlib/rom_map.h>
#include <ti/devices/cc32xx/driverlib/pin.h>
#include <ti/devices/cc32xx/driverlib/prcm.h>
Make sure there are no conflicts with pin 62.
Extract P1.62 and connect it to a serial-to-USB convertor. If you have a CC31XXEMUBOOT, connect the signal to pin P4.7.
If you are using the CC3120 BoosterPack module and it is mounted on the CC31XXEMUBOOT, no action is required in this step.