linuxthor / Hackers-TTGO-Watch

Firmware for a ttgo-watch2020-v1 / ttgo-watch2020-v2 / ttgo-watch2020-v3 smartwatch based on ESP32 from LilyGo.
GNU General Public License v2.0
68 stars 7 forks source link

json psram failed #1

Closed brannik closed 3 years ago

brannik commented 3 years ago

Hello im trying to upload master branch on ttgo t-watch 2020. Without touching anything, code is uploaded but there is only black screen and this error - [E][json_psram_allocator.h:16] allocate(): allocate 0 bytes (0x0) json psram failed. Any advance how to make it work will be nice. Sory for my bad english

ipendle commented 3 years ago

I also get the same outcome: black screen and un-responsive ttgo t-watch 2020 using the master branch. If I use sharandac/My-TTGO-Watch it works fine.

brannik commented 3 years ago

It works fine under linux owe reinstalled entire pc just to test and working fine with arduino ide under ubuntu

ipendle commented 3 years ago

I got it to build and run on my watch by taking the json_psram_allocator.h file from the main on sharandac/My-TTGO-Watch. They have have slightly different functions defined for allocate(). It is working perfectly for me now. I'm building on a Mac.

linuxthor commented 3 years ago

I am very grateful to @ipendle for troubleshooting this issue and have incorporated the fix described. Apologies for the delay - I had some very time consuming paid work here so have had zero spare time for fun stuff!