Skip to content

[CRITICAL REGRESSION] ESP-IDF v5.5.2 TWAI Driver: Message Loss & Broken ISO 11783-6 (IDFGH-17045) #18084

@diplfranzhoepfinger

Description

@diplfranzhoepfinger

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

Subject: [CRITICAL REGRESSION] ESP-IDF v5.5.2 TWAI Driver: Message Loss & Broken ISO 11783-6

@wanckl @Dazza0

Description

I am reporting a critical regression regarding the TWAI (CAN) driver in ESP-IDF release v5.5.2.

I have conducted an A/B comparison using the exact same application code, changing only the TWAI driver implementation (components\CAN1). The results show that the new driver implementation introduced in this release is causing severe instability compared to the previous version.

Test Scenario

  • Release: ESP-IDF v5.5.2
  • Path: Application\components\CAN1
  • Comparison: Tested the same application logic with two different driver implementations (files attached below).

Attachments & Evidence

Component New Driver (Failing) Legacy Driver (Working)
Source NewCanDriver_CAN1.c OldCanDriver_CAN1.c
CMake NewCMakeLists.txt OldCMakeLists.txt

Logs:

Observed Symptoms

With the new CAN driver implementation, we are observing:

  1. Message Loss: Significant dropping of CAN frames.
  2. Protocol Failure: Broken Pool Uploads regarding ISO 11783-6 (ISOBUS).
  3. General Instability: The bus communication is unreliable compared to the legacy driver.

Impact / Severity

[BLOCKER / HIGHEST PRIORITY]
This regression makes the product completely unusable for the end customer.

  • The application cannot perform basic required tasks (ISO 11783-6 compliance).
  • We categorize this as a 100% functional failure of the driver in this context.
  • We currently have to invest a significant amount of work to mitigate these driver issues.

We urgently request a review of the changes made to the TWAI driver in v5.5.2 and a fix for this regression.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions