ESP32:
I have an interrupt service routine written in Assembly
I am trying to call a C function and get a double exception error.
Any Idea?
movi a14, intFunc
callx0 a14
extern "C" void IRAM_ATTR intFunc()
{
counter2++;
}
Calling a C function from Assembly
-
- Posts: 9725
- Joined: Thu Nov 26, 2015 4:08 am
Re: Calling a C function from Assembly
The ESP32 uses the windowed ABI; rather than callx0 you should use one of callx4, callx8 or callx12. Note that if you want to pass arguments to the C function, this also shifts the registers these argument are passed in.
Re: Calling a C function from Assembly
Thanks for your answer ...
I am aware of it
Tried all options, still same starnge behaviuor
I am aware of it
Tried all options, still same starnge behaviuor
Who is online
Users browsing this forum: No registered users and 43 guests