Search found 6 matches

by dragondgold
Wed Feb 13, 2019 7:44 pm
Forum: ESP-IDF
Topic: I²C clock problem
Replies: 18
Views: 23895

Re: I²C clock problem

I managed to get my bq27441 working with I2C at 400 kHz. As noted in the datasheet to get this working with speeds higher than 100 kHz there's some special sequence needed: https://i.imgur.com/Wu2bAVK.png I started experiencing this problem after having my I2C bus working at 400 kHz and then added t...
by dragondgold
Sat Feb 09, 2019 5:14 pm
Forum: General Discussion
Topic: High frequency GPIO Interrupt
Replies: 4
Views: 8986

Re: High frequency GPIO Interrupt

Hi, thank you for your response! I'm using the latest release/v3.1 branch. Here is some more code: main.c: https://pastebin.com/iG74a6wi power_monitor.c: https://pastebin.com/vc52Yqnj sdkconfig: https://pastebin.com/E6C7h5GG The ESP32 is communicating with a PIC16 microcontroller through an I2C bus....
by dragondgold
Sat Feb 09, 2019 5:03 am
Forum: General Discussion
Topic: High frequency GPIO Interrupt
Replies: 4
Views: 8986

High frequency GPIO Interrupt

I'm having a problem with "high-frequency" GPIO interrupt. I have a signal coming from another microcontroller that generates a 50us low pulse every 12ms and I capture this pulse using a falling-edge interrupt to send a task notification to a task with the highest priority in all my program. The GPI...
by dragondgold
Tue Feb 05, 2019 6:18 pm
Forum: ESP-IDF
Topic: -fstack-usage support
Replies: 2
Views: 5186

Re: -fstack-usage support

This is very neat, how do I not know this feature existed!? I was able to get .su files for a component's source files with the following additions to component.mk (for GNU make based build system): CFLAGS += -fstack-usage ( Reference ) And the following addition to CMakeLists.txt (for CMake based ...
by dragondgold
Tue Feb 05, 2019 6:01 pm
Forum: ESP-IDF
Topic: I²C clock problem
Replies: 18
Views: 23895

Re: I²C clock problem

@persan666 did you find any solution to the problem? I'm using a bq27441 fuel gauge and I'm experiencing the exact same problem, DFS is disabled and I increased the timeout time, I have no errors, just inconsistent clock when using 400 kHz.
by dragondgold
Thu Jan 31, 2019 3:09 pm
Forum: ESP-IDF
Topic: -fstack-usage support
Replies: 2
Views: 5186

-fstack-usage support

I'm using ESP-IDF v3.1.2 trying to use the -fstack-usage compiler flag. I'm basically trying to achieve what this page explains https://mcuoneclipse.com/2015/08/21/gnu-static-stack-usage-analysis/ . I want this compiler flag to optimize the stack usage of my tasks because in large and complex codeba...