2700 views|2 replies

11

Posts

0

Resources
The OP
 

PIC32_CANbus cannot receive signal [Copy link]

I am using PIC32MX1/2/5 Starter Kit, Harmony v2.06, and want to implement CAN receiving data.

I selected CANBUS in Harmony Configurator and set it up as shown below.

I think there seems to be no problem, and then send the CAN signal to the microcontroller, but call

When calling the function bool DRV_CAN0_ChannelMessageReceive(CAN_CHANNEL channelNum, int address, uint8_t DLC, uint8_t* message), no information is always received.

Setting a breakpoint at the CAN interrupt has not been activated.

There is already a 120 ohm resistor on the board. I used an oscilloscope to see a signal on the RX pin of the CAN Transceiver, which means there should be no problem with the hardware. The signal has been transmitted, but there is a problem with the microcontroller settings and it is not received.

However, I have tried changing various parameters in MHC, such as Filter, Mask, etc., but still no data is received.

I would like to ask experienced friends, is there anything I have set up incorrectly or somewhere else I can check?

Thank you all for your suggestions~~!

CAN_Config.PNG (187.07 KB, downloads: 0)

CAN_Config.PNG
This post is from Microchip MCU

Latest reply

It is recommended to configure the CAN initialization function directly by yourself. According to the PDF document, configure   Details Published on 2019-7-25 11:16
 

419

Posts

1

Resources
2
 

It is recommended to configure the CAN initialization function directly by yourself. According to the PDF document, configure

This post is from Microchip MCU
 
 
 

11

Posts

0

Resources
3
 

The problem has been solved. After setting all parameters, click Execute after click to calculate CAN configuration values in the above picture.

This post is from Microchip MCU
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews

Room 1530, Zhongguancun MOOC Times Building, Block B, 18 Zhongguancun Street, Haidian District, Beijing 100190, China Tel:(010)82350740 Postcode:100190

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list