Search found 85 matches

by RobMeades
Mon May 15, 2023 4:42 pm
Forum: General Discussion
Topic: i2c_master_cmd_begin() and error code 263 (timeout)
Replies: 18
Views: 6003

Re: i2c_master_cmd_begin() and error code 263 (timeout)

@andreko: agreed that it might turn out to be different but it seems that things are washing around somewhat in the ESP-IDF I2C world so it is certainly worth you watching what's going on; no harm in you raising your problem as a separate case though. @microcontroller: talking with Espressif support...
by RobMeades
Sun May 14, 2023 4:39 pm
Forum: General Discussion
Topic: i2c_master_cmd_begin() and error code 263 (timeout)
Replies: 18
Views: 6003

Re: i2c_master_cmd_begin() and error code 263 (timeout)

Yeah, saw those fields but didn't fancy poking around in the dark; I guess there must be an explanation of how one is supposed to approach them somewhere? Must admit it seems strange to have to fiddle with them though, when I've never had to do anything like that with any other chipset and the Salea...
by RobMeades
Sat May 13, 2023 5:20 pm
Forum: General Discussion
Topic: i2c_master_cmd_begin() and error code 263 (timeout)
Replies: 18
Views: 6003

Re: i2c_master_cmd_begin() and error code 263 (timeout)

Good try with experimenting with the I2C timeouts, at least we have attempted that. I have now run my tests on an ESP32-S3 Devkit board and the outcome is the same as it is on our own HW. Probing the I2C bus, it seems as though the ESP32-S3 is simply choosing not to continue clocking the bus. Here i...
by RobMeades
Fri May 12, 2023 7:27 am
Forum: General Discussion
Topic: i2c_master_cmd_begin() and error code 263 (timeout)
Replies: 18
Views: 6003

Re: i2c_master_cmd_begin() and error code 263 (timeout)

<There isn't a big enough smiley, just picture an unshaved old bloke smiling very broadly /> That's an _excellent_ contribution, thanks very much for posting. Nice to have more people in the boat :-). You have got rather further than me in your investigations; yesterday I ordered a perfectly standar...
by RobMeades
Thu May 11, 2023 1:02 pm
Forum: General Discussion
Topic: i2c_master_cmd_begin() and error code 263 (timeout)
Replies: 18
Views: 6003

Re: i2c_master_cmd_begin() and error code 263 (timeout)

I think we probably need an Espressif person to comment. I was looking at the SoC header for S3, which says that the register which i2c_timeout_set() ultimately writes-to is in APB clock cycles, not core clock cycles: https://github.com/espressif/esp-idf/blob/master/components/soc/esp32s3/include/so...
by RobMeades
Thu May 11, 2023 12:28 pm
Forum: General Discussion
Topic: i2c_master_cmd_begin() and error code 263 (timeout)
Replies: 18
Views: 6003

Re: i2c_master_cmd_begin() and error code 263 (timeout)

Hmm, yes: if I read the header file correctly I believe that the I2C timeout in HW is disabled by default. The more I think about this the more I realize I just need to get a probe on the HW; improved visibility is always a more likely route to success. I will report back here on how this works itse...
by RobMeades
Thu May 11, 2023 11:07 am
Forum: General Discussion
Topic: i2c_master_cmd_begin() and error code 263 (timeout)
Replies: 18
Views: 6003

Re: i2c_master_cmd_begin() and error code 263 (timeout)

Ah, that's interesting, thanks for the swift response and the link. I'd kinda assumed that since i2c_master_cmd_begin() necessarily has to block until it has finished with the bus, that any glitch-handling stuff would be over by then, but maybe it is cleverer than that and does stuff asynchronously ...
by RobMeades
Thu May 11, 2023 9:32 am
Forum: General Discussion
Topic: "noreturn attribute ignored" warning with ESP-IDF v5.0.1
Replies: 3
Views: 1312

Re: "noreturn attribute ignored" warning with ESP-IDF v5.0.1

Great, thanks for confirming, it is currently being ignored.
by RobMeades
Thu May 11, 2023 9:24 am
Forum: General Discussion
Topic: i2c_master_cmd_begin() and error code 263 (timeout)
Replies: 18
Views: 6003

i2c_master_cmd_begin() and error code 263 (timeout)

What things might cause i2c_master_cmd_begin() to return a "timeout" error code (263)? My understanding was that the timeout, in the sense of the parameter passed to i2c_master_cmd_begin() , is just a timeout on putting the I2C sequence into a queue internally so that it can be sent. Hence, if there...