OSK5912 Setmac Example
Setmac is included for the purpose of setting the Ethernet MAC address when the original MAC address has been overwritten. The MAC address is set on each board when shipped, with the written value on the front of the OSK5912 labeled MAC ADDRESS 00-0E-99-##-##-##.
Perform the following steps to run setmac:
Load Project
Open the setmac.pjt Code Composer project using Project -> Open and selecting setmac.pjt. It is in the directory:
c:\ti\boards\osk5912\examples\setmac
Here is a screenshot of setmac.pjt when loaded on Code Composer.
 Click Image to Enlarge
Modify MAC Address
Scroll down to function main( ) in setmac.c. In main( ), go to where MAC_newaddr[ ] is being set. Modify those 6 entries in the array correspond to the 6 numbers on the front of the OSK5912.
NOTE: To avoid conflicting with another board’s MAC address, the MAC_newaddr[ ] array must be the same value on the label.
Compile Project
Select Project -> Build. If no errors are found during compiling of the project proceed to the next step.
Load Program
Load the setmac.out executable file. Select File -> Load Program. It will open a file browser dialog. Select the setmac.out file in the setmac\Debug directory in the file browser and hit "Open" to load the executable file.
Run Program
Select the Debug -> Run option under the Debug menu. The results will be shown in the ‘Output Window’.
|