Search found 305 matches

by jcsbanks
Thu Aug 23, 2018 2:15 pm
Forum: ESP-IDF
Topic: Can bus driver can_transmit gets timeout sometime in high can bus load.
Replies: 14
Views: 14925

Re: Can bus driver can_transmit gets timeout sometime in high can bus load.

Sure. I really want to know if there is an unresolved issue with this driver too. I will test more but I only moved to this driver 2 days ago. I did test sending two messages on high resolution timer callbacks, both at 1ms intervals with queue size of 5 and saw about 1000 messages per sec from each ...
by jcsbanks
Thu Aug 23, 2018 11:15 am
Forum: ESP-IDF
Topic: Can bus driver can_transmit gets timeout sometime in high can bus load.
Replies: 14
Views: 14925

Re: Can bus driver can_transmit gets timeout sometime in high can bus load.

If you have a minimal example with the problem I can test. Also have Kvaser.
by jcsbanks
Wed Aug 22, 2018 10:44 pm
Forum: ESP-IDF
Topic: Can bus driver can_transmit gets timeout sometime in high can bus load.
Replies: 14
Views: 14925

Re: Can bus driver can_transmit gets timeout sometime in high can bus load.

If you get the Tx interrupt to force a context switch like the Rx interrupt it should solve your problem. Works for me - have just flashed BMW engine control unit at over 2000 frames a second. Half the time waiting for the next WiFi message. static void can_intr_handler_tx(can_status_reg_t *status, ...
by jcsbanks
Wed Aug 22, 2018 3:27 pm
Forum: Hardware
Topic: About the CAN controller.
Replies: 175
Views: 307245

Re: About the CAN controller.

by jcsbanks
Wed Aug 22, 2018 1:30 pm
Forum: Hardware
Topic: About the CAN controller.
Replies: 175
Views: 307245

Re: About the CAN controller.

My devkit C works for CAN Rx on pin 34 - just tried it.
by jcsbanks
Tue Aug 21, 2018 9:36 pm
Forum: ESP-IDF
Topic: Avoiding race condition between interrupt on one core and task on the other core
Replies: 5
Views: 7004

Re: Avoiding race condition between interrupt on one core and task on the other core

I think I was mistaken again... and thought it was OK because of how tasks were allocated in that build but the problem reoccurred and only pinning tasks to the same core avoids the problem.

I am hoping the new CAN driver will behave and will not try further to work around the old one.
by jcsbanks
Tue Aug 21, 2018 7:01 pm
Forum: Hardware
Topic: Documentation for ESP WROVER KIT 4.1
Replies: 6
Views: 9598

Re: Documentation for ESP WROVER KIT 4.1

// ** Set the correct configuration for ESP32-WROVER-KIT v4.1 // -------------------------------------------------------- #define DEFAULT_DISP_TYPE DISP_TYPE_ILI9341 #define DEFAULT_TFT_DISPLAY_WIDTH 240 #define DEFAULT_TFT_DISPLAY_HEIGHT 320 #define DISP_COLOR_BITS_24 0x66 #define DEFAULT_GAMMA_CU...
by jcsbanks
Tue Aug 21, 2018 6:36 pm
Forum: Hardware
Topic: Documentation for ESP WROVER KIT 4.1
Replies: 6
Views: 9598

Documentation for ESP WROVER KIT 4.1

Is there any documentation for the above? Particularly looking for any info on the LCD: https://github.com/loboris/ESP32_TFT_library with ESP WROVER KIT preconfig settings doesn't show anything but a white screen even with DIO and 40MHz SPI speed and PSRAM disabled. The application it arrived with j...
by jcsbanks
Tue Aug 21, 2018 8:05 am
Forum: ESP-IDF
Topic: ESP_EARLY_LOG during interrupt and critical section in new CAN driver leads to Guru Meditation
Replies: 3
Views: 4763

Re: ESP_EARLY_LOG during interrupt and critical section in new CAN driver leads to Guru Meditation

Thanks. I think I will keep a separate error task and display at a few Hz instead of a few kHz, but using the new CAN driver I will not need to read the hardware registers directly.