pierremolinaro / acan-esp32

An ESP32 CAN 2.0B library
MIT License
47 stars 17 forks source link

use LoopBackDemo, but receive always zero. #14

Closed ShinWeiPeng closed 7 months ago

ShinWeiPeng commented 7 months ago

I use LoopBackDemo, but receive always zero.

This is monitor display below,

My platform is ESP32-S3-DevKitC-1U ACAN_ESP32 version is 1.1.2

I try use ACAN_ESP32 version 2.0.1. Receive also always zero.

17:06:03.605 -> ESP-ROM:esp32s3-20210327 17:06:03.605 -> Build:Mar 27 2021 17:06:03.605 -> rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT) 17:06:03.605 -> SPIWP:0xee 17:06:03.605 -> mode:DIO, clock div:1 17:06:03.605 -> load:0x3fce3808,len:0x44c 17:06:03.624 -> load:0x403c9700,len:0xbe4 17:06:03.624 -> load:0x403cc700,len:0x2a68 17:06:03.624 -> entry 0x403c98d4 17:06:03.799 -> ESP32 Arduino Release: 2_0_11 17:06:03.799 -> ESP32 Chip Revision: 0 17:06:03.799 -> ESP32 SDK: v4.4.5 17:06:03.799 -> ESP32 Flash: 4 MB (external) 17:06:03.799 -> APB CLOCK: 80000000 Hz 17:06:03.799 -> Configure ESP32 CAN 17:06:03.799 -> Bit Rate prescaler: 2 17:06:03.799 -> Time Segment 1: 13 17:06:03.799 -> Time Segment 2: 6 17:06:03.799 -> RJW: 4 17:06:03.799 -> Triple Sampling: no 17:06:03.799 -> Actual bit rate: 1000000 bit/s 17:06:03.799 -> Exact bit rate ? yes 17:06:03.799 -> Distance 0 ppm 17:06:03.799 -> Sample point: 70% 17:06:03.799 -> Configuration OK! 17:06:03.841 -> Sent: 0 Receive: 0 STATUS 0x3C RXERR 0 TXERR 0 17:06:04.092 -> Sent: 1 Receive: 0 STATUS 0x30 RXERR 0 TXERR 0 17:06:04.602 -> Sent: 2 Receive: 0 STATUS 0x30 RXERR 0 TXERR 0 17:06:05.097 -> Sent: 3 Receive: 0 STATUS 0x30 RXERR 0 TXERR 0 17:06:05.609 -> Sent: 4 Receive: 0 STATUS 0x30 RXERR 0 TXERR 0

ShinWeiPeng commented 7 months ago

I use so large CAN Bit Rate. > 1MHz