- In CCS, import and build the CPU1
kernel project.
- Launch the target configuration
file.
- Connect to CPU1.
- Load the gel file provided in the
project folder to the project. Right click on CPU1 in the target configuration
and select "Open GEL Files View".
- In the "GEL Files" tab, click on
GEL Files. Right click in the "Script" window and select "Load GEL...". Navigate
to the project folder and load the gel file.
- In emulation mode, the following
memory locations need to be set to enable MCAN boot mode:
- Location 0xD00 with
0xFFFF
- Location 0xD01 with
0x5AFF
- Location 0xD04 with
0x00XX where XX is the boot mode for MCAN Boot – 0x08, 0x28, or 0x48.
The SENDTEST MCAN Boot modes of 0x68, 0x88, and 0xA8 use the same pins
as the first three configurations, respectively, and they also send out
two CAN-FD frames. In evaluation mode, using one of the SENDTEST modes
ensures that the MCAN module does not time out before the host starts
sending the flash kernel over. To learn more about the SENDTEST modes,
consult the MCAN boot source file located in C2000Ware
(C2000Ware_x_xx_xx_xx > driverlib > f28003x > examples
> flash > MCAN_Boot.c).
Figure 6-6 shows an example implementation of these memory locations. Once these locations
have been programmed, reset the device and click resume. The F28003x device should
now be waiting in MCAN boot mode in ROM.
The PEAK CAN analyzer needs to be
connected to the PC as well. No initialization needs to be done beforehand.
After this, the following command
should be entered into the command line in the directory where the
can_flash_programmer is:
can_flash_programmer.exe -d f28003x -k -a
The host initializes the CAN analyzer
and opens up the flash kernel file to transfer to the MCAN bootloader. Once the
entire file has been sent over, the host delays for 5 seconds before sending over
the firmware image.