This is my environment
- IDE: VSC
- SDK: NCS v2.2.0
- nRF52832 on custom hardware
This is what I am trying to do:
- Monitor the analog signal on one of my AIN pins using the COMP functionality
- Trigger an interrupt when that signal either goes above a reference level or below a reference level
The signal itself will normally sit at 1.0V, but when it gets a stimulus (its basically a Hall Effect sensor, so reacts to changing B-fields) I want to be able to capture that and see how far off set point it has gone (will do some fast ADC at this point).
This is how I have set up my COMP
This is my proj.conf:
And in my main.c, this is how I set things up:
I've been using this ticket as a guide as to how to get things working.
Problem I am having, is I am getting a bunch of build errors associated with the code that attempts to call IRQ_CONNECT():
If I dive into the irq.h header, it looks like there is an issue with the check on ZERO_LATENCY_LEVELS. So, I basically added this to my proj.conf
This seems to overcome the build errors. Interestingly, if I set CONFIG_ZERO_LATENCY_LEVELS < 7, the build errors remain.
However, with those settings, my code isn't actually running!
So, clearly I've no idea what I'm doing, and could do with a bit of assistance in getting what, on the surface, seems like a pretty simple function working
Thanks and regards,
Mike