Part Number: TMDSCNCD280049C
Other Parts Discussed in Thread: C2000WARE
Tool/software: Code Composer Studio
Hello,
I can't establish communication with the CAN controller in CAN boot mode. I'm using
- 280049C control card with docking station,
- IXXAT USB-to-CAN II module
- an old PCA82C250 CAN transceiver with 3V3 to 5V signal level adapter.
- code composer 9, CGT 18.12.4
In this configuration, "can_ex3_external_transmit" T.I. provided example works as expected after light modifications.
In this context, I set the different values in expressions window:
- (unsigned long*)0xD00 <= 0xA5FFFFFF i.e. EMU-BOOTPIN-CONFIG key to select one boot mode
- (unsigned long*)0xD04 : 0x00000022 i.e. EMU-BOOTDEF-LOW value for CAN boot mode with GPIO4(TXA - HSEC50) and GPIO5(RXA - HSEC-52)
Then I reset with realtime emulation control / run_realtime_with_reset
DSP reset, CAN boot mode is executing, waiting for 0x08AA key value
Then I send the expected key value AA08 ; Id 1, with USB_TO_CAN module, but at this stage, any data send at any speed cause CAN errors in USB-To-Can module interface. (parameters : Can protocol Standard at 100 Kbits/s)
What I've done after :
- loaded symbols of Bootrom from C2000ware (F28004X_ROM_PG2.0_2_7_17) to follow program execution after reset : init is done correctly, pins are configured correctly for CAN boot, waiting at
"if (DCAN_GetWordData() != 0x08AA)"
- tested different CAN pins (the ones corresponding to 0x2 / 0x22 / 0x42)
- tested with optional "DCAN_BOOT_SENDTEST" enabled (0xA2 instead of 0x22 for CAN boot mode). This time, USB_TO_CAN module interface received errors
- tested : loading the can_ex3_external_transmit program after POR (which configures clk XTAL / PLL) the performed emulator reset (run->CPU_reset)
- tested : NOT loading the can_ex3_external_transmit program after POR. So in this case, only EMU-BOOTPIN-CONFIG / EMU-BOOTDEF-LOW are modified before reset, and default PLL are the loaded.
- Tested : changed can speed on USB_TO_CAN inferface from 20 kb/s to 500 kb/s. But default values with controlcard at reset should be at 100 kb/s, right ?
- Tested : another 280049 controlcard...
In any cases, Tx | other error or Rx | Other error or stuff errors are displayed in USB_TO_CAN interface modules.
Any advice ? where I'm wrong ?
Thanks by avance,
David