TI CC3200 WIFI Training Development Kit (OURS-SDK-WFB) IAR for ARM7.8 Debugging 2————Familiar with IAR for ARM and running the first program on the development board
I posted on csdn, but I got so tired of waiting for the review that I spent the whole night waiting for the review. I'll try posting on eeworld
The data downloaded are these three
/*******************************************************************************
Development board driver installation and viewing, connect to the computer via a normal Android micro USB data cable
*******************************************************************************/
Win+R, enter devmgmt.msc to open the computer's device manager, as shown in the figure below. If the serial port device has CC3200LP Dual Port, it is OK.
If not, check if there is an unidentified device with a "!" number, and unplug and plug the data cable to test whether it is the device corresponding to the development board. As shown in the figure below, mine is unidentified, that is, there is no corresponding driver, and the name may not be the same as mine.
Make sure this is the device corresponding to the board, right-click and select Update Driver, and follow the steps shown in the figure below.
Select the directory of the downloaded data***\Codes\tools\ftdi
Select ftdiport.inf or ftdibus.inf → Open; if one doesn't work, try the other. I tested both and they worked.
After the driver is installed, you can see the serial port device CC3200LP Dual Port as shown in the figure below
The development board driver installation is complete.
/*******************************************************************************
Set up the IAR environment, open the installed IAR, and open the first project blinky.eww
*******************************************************************************/
Direct compilation results in the following error:
As shown in the figure below, re-comment the first line of the file pinmux.c, or press Ctrl + K to compile successfully. I don't know why, so I won't go into it.
/*******************************************************************************
Program download and debugging
*******************************************************************************/
Right click on the project file → Option to open the project settings
Follow the steps shown in the figure to set up
Then, select JTAG
The project setup is complete.
/*******************************************************************************
Development board mode selection, program download and debugging
*******************************************************************************/
Take off the small board on the development board
There is a dip switch on the back of the board. Turn the third one up.
OK, put the small board back, be careful not to install it upside down, the upper and lower Micro USB ports are in the same direction
Back to IAR,
/******Note, if it is a new development board, after downloading and debugging, the program in the board will be overwritten***************/
After compiling as shown below, select Download and Debug
Select single-step run for debugging. When running to the following lines of program, you can see that the RGB on the board is on and off, and the initial debugging of the development board is OK.
GPIO_IF_LedOn(MCU_ALL_LED_IND); This line of code was added by myself.
This is the end of the simple test. The basic environment and driver have been set up, and the first program has been run. The first step has been completed.
This content is originally created by EEWORLD forum user light-s. If you want to reprint or use it for commercial purposes, you must obtain the author's consent and indicate the source
I also wish all my female compatriots a happy holiday today!
Origin: Women are willing to accept
Why is the general a husband?
---------------------Jianghu Yeyu Piaolingke, March 8, 2020 22:14:43