Search found 28 matches

by RMandR
Mon Jul 29, 2019 2:32 pm
Forum: Hardware
Topic: I2C transmission errors. Rounded I2C clock edge from ESP module?
Replies: 6
Views: 360

Re: I2C transmission errors. Rounded I2C clock edge from ESP module?

Final Update: Ok, so this whole did not have anything to do with pull up resistor settings. The reason I was getting CRC errors was that i2c_master_cmd_begin was returning an error and I was not checking it. For those who are interested: i2c_get_data_timing(0, &sample_time, &hold_time); shows that E...
by RMandR
Mon Jul 29, 2019 2:29 pm
Forum: ESP32 IDF
Topic: How to check for I2C bus status. ESP_ERR_TIMEOUT with multiple transactions
Replies: 0
Views: 119

How to check for I2C bus status. ESP_ERR_TIMEOUT with multiple transactions

I sometimes get ESP_ERR_TIMEOUT from i2c_master_cmd_begin(I2C_NUM, cmd, 1000 / portTICK_PERIOD_MS) when sending multiple I2C read write sequences. It also seems that i2c_master_cmd_begin returns with the bus busy error before the 1000ms tick timeout. Inserting an arbitrary delay in between the trans...
by RMandR
Sun Jul 28, 2019 1:39 pm
Forum: Hardware
Topic: I2C transmission errors. Rounded I2C clock edge from ESP module?
Replies: 6
Views: 360

Re: I2C transmission errors. Rounded I2C clock edge from ESP module?

Update: I place 2.2K Ohm pull ups which reduces the clock rise time to below 1us (750ns) which is the minimum for 100KHz I2C clock according to the standard and this app note from TI: http://www.ti.com/lit/an/slva689/slva689.pdf I'm still getting the same rate of CRC errors (~10%) where I wasn't get...
by RMandR
Sat Jul 27, 2019 12:32 pm
Forum: Hardware
Topic: I2C transmission errors. Rounded I2C clock edge from ESP module?
Replies: 6
Views: 360

Re: I2C transmission errors. Rounded I2C clock edge from ESP module?

Are you using x10 probes to view these signals?
Didn't know 10X was better.

I still get the CRC errors on I2C when the probe is not attached. And, I normally see clean clock edges with the same probe and different chip. It can't be probe.
by RMandR
Fri Jul 26, 2019 8:21 pm
Forum: Hardware
Topic: I2C transmission errors. Rounded I2C clock edge from ESP module?
Replies: 6
Views: 360

I2C transmission errors. Rounded I2C clock edge from ESP module?

I have I2C configured for PIN 32 SDL and 33 SCL. There are external 10K pull-ups resistors, and I've tried a few different boards including connecting DEV-KIT-C to an Adafruit and SparkFun boards with simple copper traces. int i2c_master_port = I2C_NUM; i2c_config_t conf; conf.mode = I2C_MODE_MASTER...
by RMandR
Mon Jul 22, 2019 1:27 pm
Forum: ESP32 IDF
Topic: HTTPS OTA error: Passive OTA partition not found
Replies: 2
Views: 234

Re: HTTPS OTA error: Passive OTA partition not found

What am I doing wrong?
In case anyone else trips onto this: partition.csv is not read by default.

Code: Select all

" choose “Custom partition table CSV” in menuconfig"
by RMandR
Sat Jul 20, 2019 3:40 pm
Forum: ESP32 IDF
Topic: HTTPS OTA error: Passive OTA partition not found
Replies: 2
Views: 234

HTTPS OTA error: Passive OTA partition not found

I have built and flashed my application using "make flash monitor" (windows 7, ESP_IDF 3.2). The partition table is as below and I'm getting a "Passive OTA partition not found" after the call to esp_https_ota(&config) . What am I doing wrong? Thanks in adance! partition.csv # Name, Type, SubType, Of...
by RMandR
Mon Jun 10, 2019 6:48 pm
Forum: General Discussion
Topic: Is it possible to receive GPIO edge type in an interrupt handler (ISR)?
Replies: 5
Views: 614

Re: Is it possible to receive GPIO edge type in an interrupt handler (ISR)?

So then there would have to be some kind of hardware queue for edge types That's exactly it. Most MCU architectures pass the edge type to the interrupt handler as an argument. For example //NOT ESP32 CODE: static void IRAM_ATTR gpio_isr_handler(int pin, int egeType) That way even with interrupt lat...
by RMandR
Sun Jun 09, 2019 3:30 pm
Forum: General Discussion
Topic: Is it possible to receive GPIO edge type in an interrupt handler (ISR)?
Replies: 5
Views: 614

Re: Is it possible to receive GPIO edge type in an interrupt handler (ISR)?

@username thank you for your suggestion.

It's possible that the pin value will have returned to it's original value between the trigger time and when the handler runs (interrupt latency). This means you can see gpio level 0 for rising edges and gpio level 1 for falling edge triggers.
by RMandR
Fri Jun 07, 2019 5:36 pm
Forum: General Discussion
Topic: Is it possible to receive GPIO edge type in an interrupt handler (ISR)?
Replies: 5
Views: 614

Is it possible to receive GPIO edge type in an interrupt handler (ISR)?

I'd like to set up a few gpio inputs pins to trigger on both rising and falling edges. Once the ISR is called, I'd like to know what exactly triggered the interrupt. The gpio interrupt example shows how to the GPIO pin that triggered, but reading the status of said gpio at the time of ISR execution ...

Go to advanced search