Comments (2)
Yes, in the example there is a bug in the interrupt handler.
You cannot call printf()
directly from an interrupt handler. Instead, you need to use either the FreeRTOS queue or event groups. You can see how to do this correctly in the example for tca95x5.
I'm leaving this issue open until I fix the bug in the mcp23017 example.
from esp-idf-lib.
Thank you. I think, my question is closed. I use code like this
static void IRAM_ATTR intr_handler(void *arg)
{
if (!interrupt_running)
{
interrupt_running = true;
xTaskCreate(read_interrupt, "read_interrupt", configMINIMAL_STACK_SIZE * 6, NULL, 5, NULL);
}
}
and if I need to print - I use ESP_DRAM_LOGx functions
from esp-idf-lib.
Related Issues (20)
- cmake fails HOT 3
- Encoder: Example panics HOT 2
- HX711: Calibration factor (float required) HOT 1
- Redundant i_expected_max parameter when calibrating ina219
- Write to config register triggers start conversion on ADS1115
- Support for BQ27441-G1
- Having issues using the TCA9548 code for my VEML7700
- SHT4x often gives "i2cdev: Could not read from device [0x44 at 0]" error on measurement HOT 2
- Strange behavior with BME280 + MAX17048 HOT 4
- Problem with nested structs in BME680-Driver / IĀ²C-init
- error in bme680_convert_temperature() when temperature is below 0 HOT 2
- Unable to read from HX711 with esp-idf-lib HOT 2
- Watchdog timer reset after BME280 initialization on ESP32C3 HOT 1
- INA219 - Wrong current reading
- Integration Proposal for Software Testing using Wokwi Simulator CI in esp-idf-lib
- [sht3x]: i2cdev: Could not write to device [0x44 at 0] HOT 6
- I2C driver is old driver in i2cdev HOT 2
- mcp23x17 Interrupt Mirroring HOT 1
- Ultrasonic hogs the CPU HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp-idf-lib.