Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 222632

Forum Post: TMS320F280039C: always can error at import sample of Mcan or can

$
0
0
Part Number: TMS320F280039C Other Parts Discussed in Thread: C2000WARE , Tool/software: i always send out can error at can_tx or Mcan_tx while import sample at the board, but i still don't know what wrong. 1) import cab_ex5_transmit_receive, at C2000Ware_5_04_00_00\driverlib\f28003x\examples\can 2)modify the jtag/ SWD/ cJTAG mode to cJTAG 2pin at TMS320F280039C.ccxml at targetconfigs. 3) according to the GPIO, DEVICE_GPIO_CFG_CANTXA. is GPIO-32. i measure the signal of GPIO-32. and bitrate as 500,000. is show can_error. at another Mcan example. i got the same situtation. 1)import mcan_ex9_transmit at C2000Ware_5_04_00_00\driverlib\f28003x\examples\mcan 2) modify the jtag/ SWD/ cJTAG mode to cJTAG 2pin at TMS320F280039C.ccxml at targetconfigs. 3)according to the DEVICE_GPIO_CFG_MCANTXA as GPIO31, 4)i connect to the GPIO-31 and measure the signal. show the same signal at can, which is can_error 5) and according to the excel and source code, bitTimes.nomRatePrescalar = 0x3U; // Nominal Baud Rate Pre-scaler bitTimes.nomTimeSeg1 = 0x9U; // Nominal Time segment before SP bitTimes.nomTimeSeg2 = 0x8U; // Nominal Time segment after SP bitTimes.nomSynchJumpWidth = 0x8U; // Nominal SJW bitTimes.dataRatePrescalar = 0x1U; // Data Baud Rate Pre-scaler bitTimes.dataTimeSeg1 = 0x9U; // Data Time segment before SP bitTimes.dataTimeSeg2 = 0x8U; // Data Time segment after SP bitTimes.dataSynchJumpWidth = 0x8U; // Data SJW it shows the error speed, 33.33MHz, what speed actually it is ? and how can i send out can / mcan data correctly ?

Viewing all articles
Browse latest Browse all 222632

Trending Articles