Search found 621 matches

by PeterR
Sun Aug 09, 2020 1:20 am
Forum: General Discussion
Topic: Is it possible to have data corruption just after a soft restart?
Replies: 20
Views: 15537

Re: Is it possible to have data corruption just after a soft restart?

You must upgrade. No question, none. The overflow issue has been there since the original driver. Understandably as the hardware API was not clear. Now IDF have moved on & fixeds lots. Invite mongoose to step up. IMHO overflow lock out is a school boy issue & unacceptable in a commercial offer. If ...
by PeterR
Sat Aug 08, 2020 1:09 am
Forum: General Discussion
Topic: Is it possible to have data corruption just after a soft restart?
Replies: 20
Views: 15537

Re: Is it possible to have data corruption just after a soft restart?

You must upgrade. No question, none. Even if using latest IDF then look at my posts & check that you have the ESP CAN silicon driver patches included. You're original driver is very much broke, that's not a criticism, the hardware was not documented & more power to the coder for getting CAN off the ...
by PeterR
Fri Aug 07, 2020 2:35 pm
Forum: General Discussion
Topic: ESP-IDF branching model
Replies: 0
Views: 1164

ESP-IDF branching model

Dear ESP, The ESP-IDF git branching model seems to allow convenient & semi automatic version number generation along with support for developing multiple versions. I see the overview but details like when you tag, how you branch/manage/merge a change which applies to multiple versions escape me. Wou...
by PeterR
Fri Aug 07, 2020 2:26 pm
Forum: General Discussion
Topic: does esp_log_set_vprintf() work with arduino framework?
Replies: 2
Views: 3872

Re: does esp_log_set_vprintf() work with arduino framework?

Seems that you are not sending anything to the service!

You call vprintf() which sends to stdout.
Instead vsnprintf() and then send the string to both stdout and your network device.
by PeterR
Fri Aug 07, 2020 2:18 pm
Forum: General Discussion
Topic: Is it possible to have data corruption just after a soft restart?
Replies: 20
Views: 15537

Re: Is it possible to have data corruption just after a soft restart?

CAN not working after a soft reset is a driver issue rather than the controller hardware. It is the driver's responsibility to clean initialise, so latest driver is a good idea. But yes, there are mechanism is the original ESP CAN driver which could explain. The most obvious mechanism would be overf...
by PeterR
Thu Aug 06, 2020 11:23 pm
Forum: General Discussion
Topic: Is it possible to have data corruption just after a soft restart?
Replies: 20
Views: 15537

Re: Is it possible to have data corruption just after a soft restart?

Double stacks. Reboot after upload. You have done a firmware upgrade so reboot is legit even desirable e.g. prove your software works after boot and after upload (which is why most just reboot). There may be some underlying issue with your firmware that is further 'tempted' by the upload. Double sta...
by PeterR
Thu Aug 06, 2020 1:13 am
Forum: General Discussion
Topic: Which is the Best Operating System for ESP 32
Replies: 8
Views: 34794

Re: Which is the Best Operating System for ESP 32

Sprite is right. It depends. Its all good until you run out of RAM or hit latency issues. I use IDF/C++ because I can & I can because I have moderate volumes, moderate complexity, moderate throughput & so I can use ESP (with C++). Some use C/Asm & M2 etc because they must - they have high(er) volume...
by PeterR
Thu Aug 06, 2020 12:17 am
Forum: General Discussion
Topic: Reduce time between two consecutive SPI transfers
Replies: 16
Views: 11580

Re: Reduce time between two consecutive SPI transfers

Hey, Not sure about Ardunio but DMA under IDF adds a 20uS+ (ish) hit. A key point is the construction of the SPI transaction. IDF you can create this 'command' on the fly or you can create a command and then reuse. The performance difference is very important as frequency increaces... I am not sure ...
by PeterR
Mon Aug 03, 2020 12:26 am
Forum: General Discussion
Topic: UART hardware flow control
Replies: 5
Views: 7771

Re: UART hardware flow control

Hi, Left field: Why do you think that you need such tight DTR/DSR? They are really old school signals for back in the day 8080 etc limited processing equipment & perhaps without hardware 8251 support. I have not needed either since the 80's. The ESP should always be DTR (and I would bet large that a...
by PeterR
Tue Jul 28, 2020 7:54 pm
Forum: General Discussion
Topic: How do you setup a UART Rx interrupt on a ESP32-S2?
Replies: 5
Views: 12903

Re: How do you setup a UART Rx interrupt on a ESP32-S2?

Idle scrolling but: int length = uart_read_bytes(uart_num, &rxbuf, rx_fifo_len, 100); Looks weird. Why would you offer a pointer to a pointer when you just want the client library to return data? This is an idle post so if the documentatiobn says other then shoot me down. Just seemed a very strange ...