Post
by mosi » Thu Mar 15, 2018 10:19 am
1) Compiled micropython loboris on ESP32 WROVER
2) Enabled support for inline xtensa assembler in mpconfigport.h
#define MICROPY_EMIT_INLINE_XTENSA (1)
3) tried this simple code, ( nop() operation is not supported it seems )
fail.
Any ideas?
>>> @micropython.asm_xtensa
... def adcw(a2,a3):
... sub(a2, a2, a3)
...
>>> adcw(2,3)
Guru Meditation Error: Core 1 panic'ed (InstrFetchProhibited)
. Exception was unhandled.
Core 1 register dump:
PC : 0x3f813ae0 PS : 0x00060730 A0 : 0x800ec894 A1 : 0x3ffb8130
A2 : 0x3f8137f0 A3 : 0x00000002 A4 : 0x3f813ae0 A5 : 0x3ffb822c
A6 : 0xffffffc0 A7 : 0x00000001 A8 : 0x800f1595 A9 : 0x3ffb8100
A10 : 0x00000002 A11 : 0x00000003 A12 : 0x00000002 A13 : 0x00000002
A14 : 0x00000000 A15 : 0x00000000 SAR : 0x0000000c EXCCAUSE: 0x00000014
EXCVADDR: 0x3f813ae0 LBEG : 0x400996ac LEND : 0x400996b7 LCOUNT : 0x00000000
Backtrace: 0x3f813ae0:0x3ffb8130 0x400ec891:0x3ffb8150 0x400fa8c3:0x3ffb8170 0x400f1452:0x3ffb8210 0x400ec891:0x3ffb8280 0x400ec8be:0x3ffb82a0 0x400de455:0x3ffb82c0 0x400de6ed:0x3ffb8370 0x400d7ba0:0x3ffb83b0
CPU halted.