Tool/software:
Dear Tech Support,
I’m trying to set up the LAUNCHXL F28379D development board’s CANB peripheral on GPIO pins 12 (Tx) and 17 (Rx) using Code Composer 11.0.0.00012. Upgrading to a newer version is not an option due to compatibility with the customers development environment. I’m using only CPU1. The first code I wrote was:
#include "F2837xD_device.h"
#include "F2837xD_can.h"
int main(void)
{
while(1);
return 0;
}
It compiled without errors, but did warn of unreachable code since the wait command blocks the return command.
I looked at the CanbRegs through the onboard debugger. All values were 0x00000000, but the data sheet indicated some registers should not be 0x00000000. I then looked at the Memory Browser view. Starting at data address 0x0004A000, the data reported back was “----“, when I hovered the mouse over the first word of the data field. The following message also popped up, “Memory map prevented reading 0x0004A000@Data.” I searched the chat groups for a solution and tried adding the following line to the debugger’s *.gel file:
GEL_MapAddStr(0x0004A000,1, 0x0800, "R|W|AS4",0); /* CANB */
I recompiled, and all the “----” and “Memory map prevented…” went away. Unfortunately, all of CanbRegs registers in the Register view and Memory Browser view were still 0x00000000 instead of their default values.
As a sanity check, I programmed the Piccolo Control Card F28035 with the same while(1) command in main(), and was able to see the correct default values for the ECAN registers.
What do I need to do to see the correct default values of CanbRegs on the LAUNCHXL F28379D using Register view and Memory Browser view?
Thank you,
Mark Prosachik


