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.

LAUNCHXL-F2800157: Unable to Flash Blinking-LED Program via CAN on F2800157 LaunchPad

Part Number: LAUNCHXL-F2800157

Tool/software:

Hi,

I am trying to flash a "blinking-led" program via CAN into my LaunchPad F2800157. I have followed the steps given in the document: "CAN Flash Programming of C2000 Microcontrollers", but the program is not being flashed. I have followed the following steps:

1. Setting the correct Boot Mode by setting GPIO32 (DOWN)-> 0 and GPIO24 (UP) ->1
2. Setting S4 DOWN to XCVR.
3. Connected HI / LO pins of the transceiver at J14 of the LaunchPad to Channel 1 of PCAN-USB Pro.
4. Importing the "flash_kernel_ex5_dcan_flash_kernel.c" project and adding a Predefined Symbol "_LAUNCHXL_F2800157" in C2000 Compiler Properties.
5. Adding  "${CG_TOOL_HEX}" "${BuildArtifactFileName}" -boot -sci8 -a -o "${BuildArtifactFileBaseName}.txt" to the "flash_kernel_ex5_dcan_flash_kernel.c" project.
6. Enabling the C2000 Hex Utility and adding the flags: --diag_wrap=off --boot --sci8 --ascii in the "flash_kernel_ex5_dcan_flash_kernel.c" project.
7. Adding the "${CG_TOOL_HEX}" "${BuildArtifactFileName}" -boot -sci8 -a -o "${BuildArtifactFileBaseName}.txt" to the blinking-led project.
8. Enabling the C2000 Hex Utility and adding the flags: --diag_wrap=off --boot --sci8 --ascii in the blinking-led project.
9. Copying the generated two txt files to the "dcan_flash_programmer" directory and running the command: dcan_flash_programmer.exe -d f280015x -k dcan_flash_kernel.txt -a application_firmware.txt -v
10. The cmd window shows "Kernel Loaded" and "Application Load Completed" messages but the led application is not being loaded.

For troubleshooting and checking the hardware connections:

1. I tried the "can_ex5_transmit_receive" example in both the receiving mode as well as the transmitting mode. The connections between the Peak-USB Pro and LaunchPad were the same as described above. I could see the messages in PCAN-View when using LaunchPad in the transmitting mode. 
2. I could see the messages received in the CCS WATCH window when using the LaunchPad in the receiving mode and sending messages from the PCAN-View Software.
3. I compared the PIN configurations and decided to make the following changes in the DCAN_Boot.c:

        case CAN_BOOT:
        case CAN_BOOT_SENDTEST:
        default:
            //
            // GPIO4 = CANATX
            // GPIO5 = CANARX
            //
            gpioTx = 4U; //Changed from 7 to 4
            gpioRx = 5U;
            gpioTxPinConfig = GPIO_4_CANA_TX; //Changed from GPIO_7_CANA_TX;
            gpioRxPinConfig = GPIO_5_CANA_RX;

Still it does not work: I am using the API with the following Configurations:

EntryAddr = DCAN_Boot(CAN_BOOT, 0, 1, 20,
                     WE_Protection_A_Mask, WE_Protection_B_Mask, WE_Protection_UO_Mask);


Note: While the kernel and the application image is being downloaded into the LaunchPad, the CAN1 LED turns "RED" and keeps blinking unitl the "Application Load Completed" message is shown (Suggesting a CAN issue maybe?)

Are there additional debugging steps or configurations I might be missing?