Ruslan V. Uss

Results 34 comments of Ruslan V. Uss

It crashing because of `ESP_ERROR_CHECK` macro. The `sfa30_reset()` function tries to write command to I2C device with address 0x5d, but fails. So we need to scan the entire I2C bus...

So, the reset function doesn't work (timeout during writing, the device does not responding by ACK) and we cannot read the marking (CRC error), but the start of measurements and...

> When the ESP_ERROR_CHECK is there it crashes. Of course, this is the main purpose of `ESP_ERROR_CHECK()` macro.

> The driver swaps bytes before calculating the CRC when reading the marking and this may be wrong. No I was wrong. @PopherTheG could you set default log level to...

Please comment out the line 27 in example: ```C ... //ESP_ERROR_CHECK(sfa3x_reset(&dev)); ... ``` and run example again.

So, we have a problem here: your module does not respond to the "reset" and "read marking" commands. Considering that the datasheet contains a "preliminary" mark, there is most likely...

I'm sorry, but I can't reproduce this error with the latest esp-idf. What version of esp-idf do you use?

Yep, this is known bug with ESP-IDF versions below 4.0. What can you do: - Update ESP-IDF (recommended, v3.x is waaaaay too old) - Disable mutexes in `i2cdev` as described...

Hmm. Let's see: the assert on line 1447 of queue.c looks like this: ```C / * Check the queue pointer is not NULL. * / configASSERT ((pxQueue)); ``` Its argument...