I am using PCAN-FD USB, PCAN-Explorer 6 and STM32F429.
The following are my bit timing settings:
Clock = 42Mhz
Prescaler = 4
Baudrate = 500kbps
SJW = 1
TSEG1 = 16
TSEG2 = 4
But in PCAN Explorer I couldn't find 42Mhz as clock. I tried the other settings but unfortunately PCAN Explorer interprets the message as error frames.
Could you please give some hint to solve this issue?
Note: I already checked with logic analyzer that my MCU is transmitting.
Thanks in advance,
Which Sample Point does your board use ? This is very importend to know.
Simply use our Bitrate Calculation Tool to evaluate the best Setting ( link )
Technical Support Team
The issue is fixed. Below are the details so that others don't run to the same issue in future.
* The clock initialising function from ST (SPL) waits for HSE (external crstal oscillator) for a finite time. This time wasn't enough for the oscillator to startup therefore the default internal RC oscillator was activated. This led to change in the input clock to CAN hence it did not work.
* After I increased the waitime the HSE oscillator was up and I could communicate with PCAN Explorer as well as PCAN view without any effort.
Thanks Peak Team for the response and the amazing product...