Merge branch 'fix/c5_twai_listen_only_workaround' into 'master'

fix(driver_twai): added ctu_official workaround, fixed error count info

Closes IDFGH-16314, IDFGH-16278, IDFGH-16364, IDFGH-16383, IDFCI-3106, and IDFCI-3107

See merge request espressif/esp-idf!41570
This commit is contained in:
Wan Lei
2025-09-22 16:35:26 +08:00
15 changed files with 96 additions and 85 deletions
@@ -180,6 +180,9 @@ static inline void twaifd_ll_set_mode(twaifd_dev_t *hw, bool listen_only, bool s
twaifd_mode_settings_reg_t opmode = {.val = hw->mode_settings.val};
opmode.stm = self_test;
opmode.bmm = listen_only;
// esp32h4 using `rom` together with `bmm` although errata 0v2 issue 5 is fixed
// see detail in https://github.com/espressif/esp-idf/issues/17461
opmode.rom = listen_only;
opmode.ilbp = loopback;
hw->mode_settings.val = opmode.val;