Search found 1335 matches

by mnfisher
Wed Apr 30, 2025 4:26 pm
Forum: General
Topic: Toolchain ESP 5.3!
Replies: 3
Views: 87

Re: Toolchain ESP 5.3!

Further to Ben's suggestion... It's worth opening a Comms port to the esp32 and checking if there is any useful debug info.
It can be things like wdt, spi rate not supported etc

Martin
by mnfisher
Tue Apr 29, 2025 11:32 am
Forum: General
Topic: No work component Webserver if ESP32 work in APSTA mode
Replies: 4
Views: 1010

Re: No work component Webserver if ESP32 work in APSTA mode

Is there a sample program in the espressif framework - if so, it might be possible to leverage that to do what you want. Or see https://github.com/nopnop2002/esp-idf-wifi-apsta for example. Most (all?) of these samples require callbacks - however they are fairly easy to implement in Flowcode (just p...
by mnfisher
Sun Apr 27, 2025 5:11 pm
Forum: Feature Requests
Topic: ESP32 read i2c or i3c in IRQ macro
Replies: 25
Views: 2415

Re: ESP32 read i2c or i3c in IRQ macro

Just tested - and yes. The results look sensible... Saving buffer 0 - (182,1678,-16281) Saving buffer 1 - (154,652,-15675) Saving buffer 0 - (-16348,436,500) Saving buffer 1 - (-16326,482,950) Saving buffer 0 - (-34,16344,-922) Saving buffer 1 - (2,16330,-965) With the board 'aligned' in each of the...
by mnfisher
Fri Apr 25, 2025 11:25 am
Forum: Feature Requests
Topic: ESP32 read i2c or i3c in IRQ macro
Replies: 25
Views: 2415

Re: ESP32 read i2c or i3c in IRQ macro

Thanks Stefan,

That's very helpful - I'll have a look and see if I can spot the pattern in my sensor's returns.

Martin
by mnfisher
Fri Apr 25, 2025 8:15 am
Forum: Feature Requests
Topic: ESP32 read i2c or i3c in IRQ macro
Replies: 25
Views: 2415

Re: ESP32 read i2c or i3c in IRQ macro

For interest - I wanted to see if the accelerometer is returning 'meaningful' data.... I added a 'SaveData' macro - although in this case it outputs the first 4 6 value samples from the save buffer to UART... I went with using accel_data[0..499] as buffer 0 and [500.999] as buffer 1. The ReadSample ...
by mnfisher
Thu Apr 24, 2025 11:22 am
Forum: Feature Requests
Topic: ESP32 read i2c or i3c in IRQ macro
Replies: 25
Views: 2415

Re: ESP32 read i2c or i3c in IRQ macro

Hi Stefan, You need the TaskId from xTaskCreatePinnedToCore - to pass to notify.. I think it is the last but one parameter - and you'll need to pass the address of a FC variable.. So if the variable is SaveToSDTask (needs to be a UINT32) - then pass &FCV_SAVETOSDTASK - the 'drag' variable to the...
by mnfisher
Wed Apr 23, 2025 3:41 pm
Forum: Feature Requests
Topic: ESP32 read i2c or i3c in IRQ macro
Replies: 25
Views: 2415

Re: ESP32 read i2c or i3c in IRQ macro

That's good 😃 Have the 'whiskers' disappeared from the trace?
Also can you save the data fast enough?

The Bluetooth might be struggling for processor time - the co-operative multi-tasking isn't given much time here..

Martin
by mnfisher
Wed Apr 23, 2025 9:40 am
Forum: Feature Requests
Topic: ESP32 read i2c or i3c in IRQ macro
Replies: 25
Views: 2415

Re: ESP32 read i2c or i3c in IRQ macro

Can possibly push a bit faster - using esp_i2c_write_then_read (name from memory) - reduced the delay in the reads. Some thoughts on double buffering.... Assuming a buffer size of 1000 records - increase the receive buffer to 2000 records (note this might be adjusted to suit the 'save' task - maybe ...
by mnfisher
Tue Apr 22, 2025 10:44 pm
Forum: Feature Requests
Topic: ESP32 read i2c or i3c in IRQ macro
Replies: 25
Views: 2415

Re: ESP32 read i2c or i3c in IRQ macro

I also discovered that you can drag and drop a folder to the forum... If that folder is an esp32 project folder this is very much a mistake ! The majority of the files are rejected (phew) - leaving (just) a few for deletion.