Comments (7)
I_GPIO_HOLD_DIS is intended to initialise a ulp_insn_t, which is an instruction for the ULP coprocessor. The wake stub is executed by one of the main CPUs when waking from deep sleep.
These are completely separate things. The ULP has nothing to do with the wake stub.
The error is correct, the macro is basically unexpected garbage to the compiler.
from hulp.
oh, i see, but do you know a way to disable the hold from the wake stub? the wakeup stub uses ULP instructions.
from hulp.
Follow gpio_hold_dis() until you reach the low level register operations. You can then replicate this using the usual macros (eg. REG_SET_FIELD) or with your own functions that you ensure are in RTC memory (eg. using RTC_IRAM_ATTR).
from hulp.
yes, that is what i tried to do, sadly the only reference i could find is in the map and for a compiled library libdriver.a, cant seem to find any source
from hulp.
ok i found it manually, for somereason vscode is not capable to find the file but its in rtc_io.c
from hulp.
It should be easy to find, you might need to tweak your IDE intellisense settings.
Anyway, it boils down to rtcio_ll_force_hold_disable, for which you'll need the RTC GPIO number for the digital GPIO you're using. See hulp_gtr in this repo for an example of how to do that, or you can simply look it up and hard code it.
Ensure everything is inlined and/or any function you use is in RTC memory else it will not be available in the wake stub.
from hulp.
OK i found it in your source indeed, but i realize GPIO16 is not an RTC GPIO, so i have to find another way.
from hulp.
Related Issues (20)
- undefined reference error in example code for simple debugging HOT 4
- support for mpu6050 HOT 2
- problems reading sht3x i2c sensor HOT 10
- How can I make this work with Arduino? HOT 3
- touch, ULP FSM instructions, without macros
- is i2c bitbang limited to RTC GPIOs ?? HOT 2
- Arduino ide8.16 compilation error on Mac HOT 6
- Variable gets a value as if the shift command had not been executed HOT 4
- Possible confrontation with some libraries HOT 7
- HULP ADC read problem while wake up HOT 2
- HULP I2C Hardware Read Wemos Ambient Light sensor BH1750 question HOT 5
- I2C bitbang CRC third byte does not match HOT 23
- Measuring pulse length in milliseconds HOT 5
- ESP32 Not Waking On I_WAKE() HOT 3
- feature request: UART with parity bit HOT 2
- ADC example, comparing if value is wihin a range, rather than just under a threshold HOT 3
- Is HULP compatible with ESP32-S3? HOT 2
- Add librairies in Arduino ide HOT 11
- Pulse counter HOT 17
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 hulp.