Closed lyusupov closed 5 years ago
Be sure to load the right csv bin file for the configuration. Which one do you used? Without csv conf file a wrover cannot works because of the gpio16 & 17 used by the external ram now. These gpio are used in the default configuration of KaRadio32 for the encoder0. Please read https://github.com/karawin/Ka-Radio32/blob/master/HardwareConfig.md
lolin32pro.bin may be the right one I am looking at the TTGO T8 V1.7 (not found the 1.8) and i see that the gpio21 is noted led. That may be a problem because in lolin32pro it is for P_LCD_RST,data,u8,21 Change it.
Send it here if it is yours personal csv.
Try to flash this file at 0x3a2000 http://karadio.karawin.fr/test/ttgot8.bin I changed the gpio16 by gpio15 and gpio17 by gpio27
@karawin I use default one (standard_adb.bin) since it works fine to me with KaRadio32v1.5r5.bin:
$ esptool.py --chip esp32 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_freq 80m --flash_size detect 0x1000 bootloader.bin 0x8000 partitions.bin 0x10000 KaRadio32v1.5r5.bin 0x1D0000 KaRadio32v1.5r5.bin 0x3a2000 standard_adb.bin
This gives me nice output over UART:
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:3564
load:0x40078000,len:9372
ho 0 tail 12 room 4
load:0x40080400,len:5848
entry 0x400806d8
E (60) esp_core_dump: No core dump partition found!
I (61) main: starting app_main()
I (61) main: RAM left: 159680
E (61) main: Running partition type 0 subtype 17 (offset 0x001d0000)
I (101) main: Partition init done...
Log level is now ESP_LOG_ERROR
E (1911) vs1053: NO VS1053 detected
E (1911) main: LCD Type 5
X: 128, YY: 64, Y: 9
WIFI TRYING TO CONNECT TO SSID 1
E (3771) wifi: esp_wifi_disconnect 955 wifi not start
E (5111) event: invalid static ip
E (5111) main:
Wifi connected
DNS: 192.168.157.1
IP: 192.168.157.228
Init .......... Done
READY. Type help for a list of commands
And the radio works perfect!
When I change main firmware binary argument(s) for esptool.py from KaRadio32v1.5r5.bin onto KaRadio32.bin :
esptool-2.5.1/esptool.py --chip esp32 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_freq 80m --flash_size detect 0x1000 bootloader.bin 0x8000 partitions.bin 0x10000 KaRadio32.bin 0x1D0000 KaRadio32.bin 0x3a2000 standard_adb.bin
Do you mean that "default" pins mapping conflicts with internal WROVER's PSRAM chip wiring ? 1.5r5 is not using PSRAM, so the conflict does not cause any issues with it, right?
Exactly And you don't have an encoder because gpio16 & 17 are not available on a wrover board.
@karawin Just in case I've tried lolinpro mapping - with no success. I2S sound was broken. So I've unmapped GPIOs 16 and 17 from default layout:
$ diff standard_adb.csv ttgot8.csv
11,12c11,12
< P_ENC0_A,data,u8,16
< P_ENC0_B,data,u8,17
---
> P_ENC0_A,data,u8,255
> P_ENC0_B,data,u8,255
15c15
< P_ENC1_B,data,u8,17
---
> P_ENC1_B,data,u8,255
then I've built the binary and re-flashed it. It works good now!
I've rolled back comments to this ticket and seen that you've updated your posts with new information. I was not aware that you will decide to behave this way, so I've missed your updates initially. Now I can see them. Thank you! I'll try out your binary as well.
Thank you very much for your prompt support! 👍 Happy New Year!
@karawin
Could it make sense for you to :
I made a boards directory for that with csv and bin in subdir built. Not described for the moment. I will suggest to all the community to feed this directory for any kind of boards the found. I cannot do it myself. Thanks for the suggestion of a md file. I will try, but the config is in fact in the csv.
Board: TTGO T8 v1.8 (with ESP32-WROVER "classic") It works great with KaRadio32v1.5r5.bin !
However every of upgrades onto 1.6 R0, R1, R2, R3... has failed.
This is an example of the failure (with "raw" stack) with 1.6R0:
an this one with most recent binary of 1.6R3:
Looked through history of closed tickets with no success. Any clues on how to work this out ?