Search found 45 matches
- Thu Aug 29, 2024 12:36 pm
- Forum: General Discussion
- Topic: I2C burst read corrupting data
- Replies: 10
- Views: 2845
Re: I2C burst read corrupting data
Thanks for that clarification.
- Wed Aug 28, 2024 9:47 pm
- Forum: General Discussion
- Topic: I2C burst read corrupting data
- Replies: 10
- Views: 2845
Re: I2C burst read corrupting data
Seems like you should be able to override t well how about that... -DI2C_BUFFER_LENGTH=255 in the build_flags of my platformio.ini did work. I had tried using #define I2C_BUFFER_LENGTH 255 in my main.cpp before including Wire.h and for reasons I cannot explain, that did not work. Also, the "junk by...
- Wed Aug 28, 2024 5:04 pm
- Forum: General Discussion
- Topic: I2C burst read corrupting data
- Replies: 10
- Views: 2845
Re: I2C burst read corrupting data
@MicroController There are two ways so far that I found to fix this... and I don't particularly like either. 1) in Wire.h one can change the size of the I2C_BUFFER_LENGTH but this would be overwritten if the library were to be updated. #ifndef I2C_BUFFER_LENGTH #define I2C_BUFFER_LENGTH 255 //128 //...
- Tue Aug 27, 2024 9:21 pm
- Forum: General Discussion
- Topic: I2C burst read corrupting data
- Replies: 10
- Views: 2845
Re: I2C burst read corrupting data
Here are the scope traces and decoding of the I2C stream in the region of the "glitch". What reason would we be consistently seeing the break in the 192 byte data stream here? 1- The 192 byte read is interrupted right before the "11" (decimal) value which we saw in line 21 of the raw data mentioned ...
- Tue Aug 27, 2024 5:46 pm
- Forum: General Discussion
- Topic: I2C burst read corrupting data
- Replies: 10
- Views: 2845
Re: I2C burst read corrupting data
A reasonable question. The read is initiated after the processor receives an interrupt I dictating that the buffer is full. There s also a register which provides the number of samples in the buffer. I have checked that register to also confirm the buffer is full. If you look at the raw data, there ...
- Tue Aug 27, 2024 2:40 pm
- Forum: General Discussion
- Topic: I2C burst read corrupting data
- Replies: 10
- Views: 2845
I2C burst read corrupting data
I am attempting to read 192 bytes of data from the FIFO buffer of an MMA8451Q accelerometer using an ESP32-S3-Devkit-U1. This should be pretty simple... write to the appropriate register and then conduct the 192 reads. #define use14bit true #define MMA8451_FIFO_REG 0x01 #uint8_t FIFObuffer[192]; boo...
- Fri Apr 12, 2024 2:28 pm
- Forum: General Discussion
- Topic: Any good books using Espressif tools?
- Replies: 8
- Views: 8574
Re: Any good books using Espressif tools?
A nice book with code examples: FreeRTOS for ESP32-Arduino - Practical Multitasking Fundamentals (by Warren Gay) :?: I have been considering buying this book but note that it has not been updated since being published in January 2020. Do you find that this book is still accurate considering how muc...
- Wed Feb 28, 2024 3:41 pm
- Forum: General Discussion
- Topic: can't printf with ESP32-S2 ESP-IDF 5.1
- Replies: 5
- Views: 57439
Re: can't printf with ESP32-S2 ESP-IDF 5.1
Missing the point altogether. Let me try again... For this ONE PROCESSOR, this functionality, being able to print equally with Serial.print(), ESP_LOG*, or printf(), does not work whereas it works for EVERY OTHER ESP family processor I have used, which are many.
- Sun Dec 10, 2023 9:39 pm
- Forum: General Discussion
- Topic: mqtt_server.crt.S' not found, needed by target .. mqtt_server.crt
- Replies: 0
- Views: 30230
mqtt_server.crt.S' not found, needed by target .. mqtt_server.crt
Using - framework-arduinoespressif32 @ 3.0.0+sha.2b521e5 - framework-espidf @ 3.50102.0 (5.1.2) Not wanting to use ESP-Insight but I have yet to succeed at disabling it from the build. sdkconfig: # ESP Insights # # CONFIG_ESP_INSIGHTS_ENABLED is not set CONFIG_ESP_INSIGHTS_TRANSPORT_MQTT=y # CONFIG_...
- Sat Dec 09, 2023 1:50 pm
- Forum: General Discussion
- Topic: can't printf with ESP32-S2 ESP-IDF 5.1
- Replies: 5
- Views: 57439
Re: can't printf with ESP32-S2 ESP-IDF 5.1
As far as I know, printf will not work in Arduino frameworks. That is not correct as I am able to use printf and ESP_LOG with other projects buildt boards other than ESP32-S2 lolin_S2_mini with the exact same code and in the Arduino mode. In fact... not even the following absolutely minimal project...