Search found 308 matches

by ESP_Dazz
Fri Oct 08, 2021 9:34 am
Forum: ESP-IDF 中文讨论版
Topic: ESP32S2的HNP功能HAL或者DRIVER预计在哪个版本发布
Replies: 7
Views: 7981

Re: ESP32S2的HNP功能HAL或者DRIVER预计在哪个版本发布

@ Michael2021_esp

你是指 USB OTG 协议里的 HNP 功能吗?
by ESP_Dazz
Fri Oct 01, 2021 2:31 pm
Forum: ESP-IDF
Topic: How do i interpret this backtrace message?
Replies: 2
Views: 2674

Re: How do i interpret this backtrace message?

@pacha14

You can run addr2line to decode backtrace addresses:

Code: Select all

xtensa-esp32-elf-addr2line -e path_to_your.elf 0x400d144c:0x3ffb1e60 0x400d6a1d:0x3ffb1fb0 0x4008b1a6:0x3ffb1fd0
See the backtrace documentation for more details
by ESP_Dazz
Mon Sep 27, 2021 3:05 am
Forum: ESP-IDF
Topic: TWAI ACCEPTANCE CODE differences in soft and hardware documentation
Replies: 2
Views: 1758

Re: TWAI ACCEPTANCE CODE differences in soft and hardware documentation

@MacWyznawca Both are right. The SDK documentation says that both masks also filter after 4 bits from the first byte of the standard frame. The SDK diagram indicates that two 4-bits being filtered are bits [0:3] and bits [4:7] of the data byte for filter 1 only Also note, the SDK filter is not a one...
by ESP_Dazz
Wed Sep 22, 2021 8:32 am
Forum: ESP-IDF
Topic: TWAI/CAN am I using the functions correctly?
Replies: 3
Views: 5177

Re: TWAI/CAN am I using the functions correctly?

@nhedlund Seems like it's not the first time users have run into fake VP230 transceivers. Leaving the following to a related post in case anyone runs into the same issue (images included in discussion thread).
by ESP_Dazz
Mon Aug 30, 2021 3:18 am
Forum: ESP-IDF
Topic: TWAI and TWAI_MSG_FLAG_DLC_NON_COMP flag
Replies: 2
Views: 1655

Re: TWAI and TWAI_MSG_FLAG_DLC_NON_COMP flag

The TWAI_MSG_FLAG_DLC_NON_COMP DOES NOT allow for more than 8 bytes to sent. The underlying hardware is limited to 8 bytes. Enabling the flag simply allows the DLC to be set to a value > 8, but the actual number of bytes will still be 8 bytes. If compatibility with other devices is not a concern, yo...
by ESP_Dazz
Wed Aug 25, 2021 4:06 pm
Forum: ESP-IDF
Topic: TWAI Extended Frame Format packets filtering
Replies: 4
Views: 4249

Re: TWAI Extended Frame Format packets filtering

Assuming you are using a single filter, as shown in the documentation, you need to set your acceptance code to match your target ID based on the bit fields in the diagram, and set the acceptance mask to ignore all unrelated bit fields. single_filter_mode.png For example, if I only want to receive an...
by ESP_Dazz
Mon Jul 19, 2021 11:57 am
Forum: ESP-IDF
Topic: ESP-C3 TWAI module on GPIO18 and GPIO19
Replies: 2
Views: 3540

Re: ESP-C3 TWAI module on GPIO18 and GPIO19

@marchino81

Try only calling

Code: Select all

CLEAR_PERI_REG_MASK(USB_DEVICE_CONF0_REG, USB_DEVICE_USB_PAD_ENABLE);
before calling

Code: Select all

twai_install()
.
by ESP_Dazz
Mon Jul 19, 2021 8:46 am
Forum: ESP-IDF
Topic: Corrupted CAN frames
Replies: 4
Views: 2632

Re: Corrupted CAN frames

Could you share more information about this issue such as: What type of board/module of ESP32 you are using? What revision is the ESP32 chip? What GPIOs are using to route TX and RX? What transceiver are you using? What bit rate are you operating at? What commit/version of ESP-IDF are you using? Any...
by ESP_Dazz
Thu Jul 15, 2021 5:32 pm
Forum: ESP-IDF
Topic: Calling a function stored as a function pointer: How is it linked?
Replies: 5
Views: 4107

Re: Calling a function stored as a function pointer: How is it linked?

This is logged from your application using ESP_LOGI I (2862) pub_sub: calling function 0x400db6cc This is printed by IDF monitor automatically, not from an ESP_LOG. 0x400db6cc: ps_subscribe at C:\dev\aurora-esp32-firmware\build/../components/pub_sub/pub_sub.c:144 IDF monitory will basically try to r...
by ESP_Dazz
Tue Jun 08, 2021 5:01 pm
Forum: ESP-IDF
Topic: Interrupt behaviour, when more then one interrupt happen
Replies: 2
Views: 2319

Re: Interrupt behaviour, when more then one interrupt happen

Not sure about the Arduino API. But in IDF, if a particular interrupt-A is being process (i.e., it's ISR-A is being run), and at the same time an interruptB of the same priority occurs, ISR-B will be run after ISR-A returns. If the priority of ISR-B is higher that ISR-A, ISR-B will interrupt ISR-A (...