Search found 154 matches

by ESP_Dazz
Thu Jan 23, 2020 6:54 am
Forum: ESP32 Arduino
Topic: CAN ...read the status or error-register
Replies: 5
Views: 517

Re: CAN ...read the status or error-register

Is this library the one you are using? If so... If I send a CAN message and there is no CAN bus connected, the program only runs until I send a CAN message the second time. The reason it gets stuck is because CAN_write_frame() internally takes a semaphore with a timeout of portMAX_DELAY . This effec...
by ESP_Dazz
Wed Jan 22, 2020 5:54 pm
Forum: ESP32 Arduino
Topic: CAN ...read the status or error-register
Replies: 5
Views: 517

Re: CAN ...read the status or error-register

But how can I get the information whether a CAN-transmission was sent correctly? Check the Transmission Complete Status (TCS) bit of the status register. Once the TX buffer is freed (meaning that the current transmission is not being retried), the TCS bit should be set to 1 if the transmission was ...
by ESP_Dazz
Fri Jan 03, 2020 11:48 am
Forum: ESP32 IDF
Topic: Unable to trigger CAN bus-off state
Replies: 4
Views: 218

Re: Unable to trigger CAN bus-off state

I tried to abort the transmission when (bus error && TEC is >=128) and I just saw that after calling can_abort_tx() I get a CAN_ALERT_TX_SUCCESS. Not sure which driver you are using. ESP-IDF CAN driver doesn't contain a can_abort_tx() . Regardless, when setting the abort TX bit of the command regis...
by ESP_Dazz
Thu Jan 02, 2020 5:47 pm
Forum: ESP32 IDF
Topic: Unable to trigger CAN bus-off state
Replies: 4
Views: 218

Re: Unable to trigger CAN bus-off state

Yes, this is the intended behavior of the CAN 2.0B protocol to prevent a unconnected transmitting node from putting itself into a BUS OFF state due to lack of acknowledgement. For specifics, see the CAN 2.0B specification (Fault Confinment - Rule 3 and its exceptions): 3. When a TRANSMITTER sends an...
by ESP_Dazz
Wed Dec 18, 2019 7:18 am
Forum: ESP32 IDF
Topic: ESP-IDF and FreeRTOS
Replies: 5
Views: 463

Re: ESP-IDF and FreeRTOS

ESP-IDF does not include this feature because this feature was added in FreeRTOS V9.0.0rc1. ESP-IDF FreeRTOS is based on FreeRTOS v8.2
by ESP_Dazz
Mon Dec 16, 2019 9:26 am
Forum: ESP32 Arduino
Topic: Timer example
Replies: 9
Views: 558

Re: Timer example

Mod Note: Moved to Arduino sub-forum @arkayabt Could you be more specific as to what timer you're talking about, and what you mean by a "process getting a start"? For example, are you expecting to use a software timer or a hardware timer? What order of precision do you need for this timer (e.g. mill...
by ESP_Dazz
Tue Dec 10, 2019 4:52 am
Forum: General Discussion
Topic: CAN frame corruption following FATFS write to FLASH
Replies: 4
Views: 275

Re: CAN frame corruption following FATFS write to FLASH

Some things that would be useful to check/known: What CAN frames were being sent to the ESP32? What data did they have? Were they STD or EXTD ID? Could you check the flags of each received message? Currently, the driver doesn't handle RX FIFO overruns. The following modification to can_intr_handler_...
by ESP_Dazz
Mon Nov 25, 2019 3:07 pm
Forum: General Discussion
Topic: Memory usage of xTaskCreate() within a task
Replies: 6
Views: 658

Re: Memory usage of xTaskCreate() within a task

  • vTaskDelete() itself does not return the memory when deleting a current running task. The memory is instead free in the IDLE task.
  • SPI RAM is not internal
by ESP_Dazz
Thu Nov 21, 2019 3:33 pm
Forum: ESP32 IDF
Topic: station_example_main.c: xEventGroupWaitBits missing?
Replies: 1
Views: 355

Re: station_example_main.c: xEventGroupWaitBits missing?

Seems like you're correct. There should be an xEventGroupWaitBits() call at the end of app_main(). I'll open a ticket to fix this issue.
by ESP_Dazz
Thu Nov 21, 2019 3:23 pm
Forum: General Discussion
Topic: Build idf.py build issue
Replies: 4
Views: 573

Re: Build idf.py build issue

There are a bunch of example projects in esp-idf/examples. I suggest you chose one of the projects in get-started.

Go to advanced search