Comments (13)
Same here looping after frequency: 4000000
CalEPD component version 0.9.8
Gdeh116Z91() constructor injects IO and extends Adafruit_GFX(960,640) Pix Buffer[76800]
Available heap after Epd bootstrap:30768
I (370) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
CalEPD version: 0.9.8
Fonts-demo. Free heap: 143108 (After epaper instantiation)
DRAM : 143108
Gdeh116Z91::init(debug:1)
MOSI: 23 CLK: 18
SPI_CS: 32 DC: 27 RST: 26 BUSY: 35
EpdSPI started at frequency: 4000000
E (10380) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:
E (10380) task_wdt: - IDLE (CPU 0)
E (10380) task_wdt: Tasks currently running:
E (10380) task_wdt: CPU 0: main
E (10380) task_wdt: CPU 1: IDLE
E (10380) task_wdt: Print CPU 0 (current core) backtrace
Backtrace:0x400D8E00:0x3FFB0810 0x400823AD:0x3FFB0830 0x400D5732:0x3FFDAD60 0x400D5A03:0x3FFDAD80 0x400D54D3:0x3FFDADA0 0x400E9954:0x3FFDAEB0 0x40087CED:0x3FFDAED0
0x400d8e00: task_wdt_isr at /Users/adrien/Dev/esp/esp-idf/components/esp_common/src/task_wdt.c:187
0x400823ad: _xt_lowint1 at /Users/adrien/Dev/esp/esp-idf/components/freertos/port/xtensa/xtensa_vectors.S:1105
0x400d5732: Gdeh116Z91::fillScreen(unsigned short) at /Users/adrien/Dev/epaper/cale-idf/build/../components/CalEPD/models/color/gdeh116Z91.cpp:39
0x400d5a03: Gdeh116Z91::init(bool) at /Users/adrien/Dev/epaper/cale-idf/build/../components/CalEPD/models/color/gdeh116Z91.cpp:27
0x400d54d3: app_main at /Users/adrien/Dev/epaper/cale-idf/build/../main/demos/demo-fonts.cpp:65
0x400e9954: main_task at /Users/adrien/Dev/esp/esp-idf/components/freertos/port/port_common.c:133 (discriminator 2)
0x40087ced: vPortTaskWrapper at /Users/adrien/Dev/esp/esp-idf/components/freertos/port/xtensa/port.c:168
E (10380) task_wdt: Print CPU 1 backtrace
from cale-idf.
Thanks Adrien,
I don't have this epaper Model to test that is the problem. So I guess the best move here would be to install ESP-IDF to @atc1441
and I can then connect and debug remotely.
Other than that, if you find what it is, feel free to make a Merge request and I will merge it so it's available for the rest. Thanks a lot for trying CALE-IDF is the first time I make a component for the Espressif Framework
from cale-idf.
esptool.py v3.0-dev
Generated /home/martin/esp/projects/cale-idf/build/cale-epd.bin
Replace /home/martin with your own path to home. Here are the bin files:
atc.zip
Project build complete. To flash, run this command:
/home/martin/.espressif/python_env/idf4.2_py3.8_env/bin/python ../../esp-idf/components/esptool_py/esptool/esptool.py -p (PORT) -b 460800 --before default_reset --after hard_reset --chip esp32 write_flash --flash_mode dio --flash_size detect --flash_freq 40m 0x1000 build/bootloader/bootloader.bin 0x8000 build/partition_table/partition-table.bin 0x10000 build/cale-epd.bin
I guess you can also flash this with another tool or if you manage to install IDF then just run:
idf.py flash
from cale-idf.
Tested the firmware but it does not boot,
the watchdog gets triggered
from cale-idf.
Mh strange. Watchdog usually does trigger after boot, and usually you get the alert and keeps on working.
Tell me when you have time and I will setup the toolchain for you in Ubuntu
from cale-idf.
Other than that @atc1441 this called my attention:
Available heap after Epd bootstrap:30768 -> That is around 30 Kb Heap. Can be that the 9606402 is eating all the RAM?
GFX RAM Usage (Black,red):
960*640/8 = 76800 also 76 Kb * 2 = 152 Kb approx. to handle GFX. That's a bit too much. Maybe that's a reason why it hangs? We are just eating with our huge GFX array all the available RAM in ESP32?
Maybe it's totally different. Should be since you got it working :)
from cale-idf.
@martinberlin couldnt you test the bare .bin on your system till it runs, even without the display it should boot for you. Just thinking about that
from cale-idf.
Hey I discovered what it was, the fillscreen() Method was using a uint16 unsigned, that holds max 65535, that generated a never ending dead loop since:
for (uint16_t x = 0; x < sizeof(_buffer); x++)
x was never going to arrive to 76800 that is the buffer size per color in this display. @adrien3d can you try it?
If it works for you then I will generate a new bin for Aaron. But just tell me one afternoon and I install you IDF, since you will need it to test the touch epaper I'm sending you soon.
from cale-idf.
Ok, so the good news is that it is actually doing something (although I noticed I had to connect the FPC the other way around). But it just shows a noisy picture.
With my code (just a straightforward implementation of atc's): https://github.com/adrien3d/gdeh116Z91-test/blob/master/main/epaper_main.c, I made it "working" by putting 0xF7
instead of atc 0xC7
for register 0x22
.
I am trying few things (more inspired by good-display code) and will keep you updated in case of progress.
from cale-idf.
Great but at least does something. Let's wait for @atc1441 feedback for sure we will get it working soon :)
Feel free to modify the commands and check them with Aaron example. It's very possible that I forgot something or there is a command missing. I'm also not sure if it's better to do a software reset or a hardware reset (With the RST pin)
Anyways I'm a bit disabled since I can compile it on an ESP32 but I don't have any test epaper so it's hard to debug it.
By the way try my IDF take and send just a fillscreen(EPD_WHITE) and just do a return in main.cpp check if at least we can fill the screen with one color :)
from cale-idf.
Hey @atc1441 and @adrien3d any interest to close this one?
If it does not work just point me where to get one of this or send me one. But I would like to either implement it to the end or discard it if there is no interest and close this issue
from cale-idf.
So far it can be closed from my side so you dont habe the opened issue here, when the time has come i will try it out :)
from cale-idf.
No problem leaving it on hold will close at the end of this month. Thanks
Update: Closing I will reopen when I get an epaper and I can test it myself, or someone has the time to take over
from cale-idf.
Related Issues (20)
- Add display.printf like function HOT 1
- Add new display GDEY073D46, 7 colors, 800*480 pixels HOT 3
- Add new display GDEY0213B74. 250*122 4 grays HOT 2
- Add new display GDEQ04Z21 Red/Black ink HOT 1
- Add Gdey0293T74 2.9" 296x128 epaper display HOT 1
- Add GDEY027T91 with support for partial update
- Adafruit GFX needs an update HOT 1
- FT6X36 ISR routine HOT 3
- Add 4 small epapers
- Add 3.7" GDEQ037T31 and 2.9" GDEM029E97 epapers from Good-Display HOT 7
- Fail to find the reason,Why come out an extra black line near the right boarder in Gdey029T94's screan HOT 3
- legal problems HOT 1
- Add waveshare 3.7in epaper display HOT 8
- To Fasani corp and all CALE-IDF supportors regarding 7.5 inch #GDEW075T7 / #GDEY0757T/ #GDEY075Z08 and #GDEW075T8 HOT 2
- Add GDEW0583Z83 648*480 B/R HOT 1
- Add DKE 7.5" B/Red presumably UltraChip UC8179
- Wave12I48RB Build Errors HOT 5
- Add GDEQ042T81 400x300 Black/White HOT 3
- Mirrored text HOT 5
- Partial refresh failure on GDEY075T7 HOT 5
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 cale-idf.