Max Prokhorov
Max Prokhorov
@brunnwart Can you please decode the backtrace? Not sure if it is entirely related. If you are using ArduinoIDE, there is a GUI for it: https://github.com/me-no-dev/EspExceptionDecoder
How do you set up the Encoder object? If based on examples here, note that ESP32 boards cannot normally use pins 6 to 11 EspExceptionDecoder releases has pre-built jar btw...
-> [EspExceptionDecoder-1.1.0.zip](https://github.com/me-no-dev/EspExceptionDecoder/releases/download/1.1.0/EspExceptionDecoder-1.1.0.zip) It was manually added, not generated like the "source code" archive.
Can you try idf_monitor.py script instead? It will behave just as normal serial monitor *plus* decode any backtrace it finds in real time. You just need to manually specify correct...
Good to hear. Please also check out how #39 is working. I'm inclined to believe #39 is a better approach, to avoid mixing ESP8266/ESP32-specific code with original arduino api (based...
Same error as above with `dangerous relocation: l32r: literal placed after use: .literal._ZN7Encoder4isr#Ev` for each isr method, as gcc-xtensa still goes insane from the `__attribute__((section(...)))` in the header Moving the...
@PaulStoffregen updated PR with the changes above Since section attribute can't appear in the header shared between .ino and lib .cpp, now it is only specified in the .cpp file...
> Hopefully this resolves the issue? [eb73cf7](https://github.com/PaulStoffregen/Encoder/commit/eb73cf763504c6d0159fc2326fc9142a801e4e8a) Not fully. For some reason, with recent arduino-esp32 (2.0.2) `ICACHE_RAM_ATTR` (what encoder header declares via `#define ENCODER_ISR_ATTR ICACHE_RAM_ATTR`) no longer gets translated into...
It is still not buildable though. I raised a question in espressif/arduino-esp32 gitter chat about this issue. https://gitter.im/espressif/arduino-esp32?at=5cc95f25990feb451831fdb9 ``` Linking .pioenvs/lolin32/firmware.elf .pioenvs/lolin32/src/Basic.pde.cpp.o: In function `Encoder::update(Encoder_internal_state_t*)': Basic.pde.cpp:(.iram1[Encoder::update(Encoder_internal_state_t*)]+0x3d): dangerous relocation: l32r: literal...
Important thing about examples and ESP8266/ESP32 - we **cannot** use the pins 6-11 (inclusive). [From wroom datasheet](https://www.espressif.com/sites/default/files/documentation/esp32-wroom-32_datasheet_en.pdf): > * Pins SCK/CLK, SDO/SD0, SDI/SD1, SHD/SD2, SWP/SD3 and SCS/CMD, namely, GPIO6 to...