我的CAN程序是根据SDK drivers中的CAN和automotive_toolbox中lab0005_object_data_over_can这两个程序写的。
IWR1642BOOST硬件部分有做更改,但是还是没有输出。
我想问一下我的程序有没有错误,是不是程序写错了所以没输出?
我的CAN程序是根据SDK drivers中的CAN和automotive_toolbox中lab0005_object_data_over_can这两个程序写的。
IWR1642BOOST硬件部分有做更改,但是还是没有输出。
我想问一下我的程序有没有错误,是不是程序写错了所以没输出?
CAN Unit Test Menu
Please select the type of test to execute:
1. DCAN Internal loopback test
2. DCAN External loopback test
3. DCAN Parity test
4. DCAN Tx/Rx test
这四项测试都做了,1和2都显示通过。
3和4有问题,以下是console的报文:
*******************************************************
CAN Unit Test Menu
Please select the type of test to execute:
1. DCAN Internal loopback test
2. DCAN External loopback test
3. DCAN Parity test
4. DCAN Tx/Rx test
*******************************************************
> Enter your selection: Debug: parity testing
Error: ECC error status check failed. Single bit error 0 Double bit error 1 Message Number 49
Feature: Parity testing: Failed
Debug:CAN testing failed
*******************************************************
CAN Unit Test Menu
Please select the type of test to execute:
1. DCAN Internal loopback test
2. DCAN External loopback test
3. DCAN Parity test
4. DCAN Tx/Rx test
*******************************************************
> Enter your selection: Debug: External transmit testing
第四个测试一直卡在Debug: External transmit testing处,我把gDisplayStats设为1后显示如下:
Please select the type of test to execute:
1. DCAN Internal loopback test
2. DCAN External loopback test
3. DCAN Parity test
4. DCAN Tx/Rx test
*******************************************************
> Enter your selection: Debug: External transmit testing
Debug: External transmit testing Passed
Debug: Number of iterations : 1
Debug: Number of messages transmitted : 0
Debug: Number of messages received : 0
Debug: Number of messages lost : 0
Debug: Error Status Interrupt : 1
Debug: Message object number : 1
Debug: Direction : Transmit
Debug: Number of interrupts received : 0
Debug: Number of messages processed : 1
Debug: Message object number : 2
Debug: Direction : Receive
Debug: Number of interrupts received : 0
Debug: Number of messages processed : 0
Debug: Receive passive error : 0
Debug: Transmit Error Counter : 136
Debug: Receive Error Counter : 0
我把S2开关拨到CAN ON,J3的CANH和CANL连接到了一个CAN-USB转换器上,然后连接电脑并打开了对应软件。
我用示波器去看CANH和CANL,发现没有CAN的波形出现。
我不知道为什么会失败,所以来这里问下哪里可能有问题?
也就是说SDK里的CAN Unit Test Menu 需要DEVPACK才能做?是不是意味着IWR1642要连接硬件板DEVPACK才能用CAN输出?
还有一个问题,IWR1642-EVM PROC011 REV B这块板子如果要用CAN,硬件部分是不是只用把S2拨到CAN ON就行了?
有工程师跟我说除了S2还需要改动电路,但是另一个工程师又说REV B这块板子只用把S2拨到CAN ON就行了。
这里有点矛盾,我想确定一下我的硬件改动是不是对的?
我实在没有头绪,不知道问题出在哪。对于现在这种情况有什么建议吗?
你好,
can信号必须要连接在can总线上检测,如果悬空是测量不到信号的。
J6上1/2引脚没有电压是正常的,R115,R130电阻都没有焊接。