pebri86 / esplay-base-firmware

Bootloader or sdcard flasher for ESPlay HW ESP32 based device, based on odroid go base firmware
56 stars 22 forks source link

bootloader problem #4

Closed reinholdPL closed 4 years ago

reinholdPL commented 4 years ago

Hello, I flashed your firmware to my custom esp32-wrover board. Everything is working perfectly. When I hold 'menu' button and reset it goes to 'ESPLAY MICRO BOOTLOADER' and I can flash *.fw files from sd card. Emulators and rest works great.

But now when I try to enter programming mode (pull GPIO0 down, and reset board) it just bootloops and throws this onto console:

rst:0x1 (POWERON_RESET),boot:0xb (HSPI_FLASH_BOOT)                                                                                                                               
flash read err, 1000                                                                                                                                                             
ets_main.c 371                                                                                                                                                                   
ets Jun  8 2016 00:22:57                                                                                                                                                         

rst:0x10 (RTCWDT_RTC_RESET),boot:0xb (HSPI_FLASH_BOOT)                                                                                                                           
flash read err, 1000                                                                                                                                                             
ets_main.c 371                                                                                                                                                                   
ets Jun  8 2016 00:22:57     

What might be the cause of this? Do I need to restore original bootloader for this method of programming to work?

reinholdPL commented 4 years ago

I'm so blind.. This is what bootstrap jumper is for... sd_dat0 is connected to gpio2 which needs to be pulled low for serial boot... :)

pebri86 commented 4 years ago

Hi, glad to see you solve the problem. Yes it is because to use sdcard in sdio mode we should put 10K pull up at gpio 2 which should keep low when bootup to enter bootloader mode. So i add jumper that to gpio 0, so it will pull to ground when entering bootloader mode.

Strugglemeat commented 1 year ago

what/where is the bootstrap jumper?

image

is it one of these locations? what am I supposed to do? I want to upload new firmware, overwriting the bootloader

reinholdPL commented 1 year ago

jp1 is for bootstrap. bridge it and then you can program esp32.

Strugglemeat commented 1 year ago

so I need to solder each of the pads of jp1 together, or I need to solder from jp1 to ground? I'm still learning about this stuff, thanks very much for your help

reinholdPL commented 1 year ago

bridge each pad of jp1, but just for programming! don't solder them.

Strugglemeat commented 1 year ago

sorry to be a pest, but doesn't it seem like the two pads of JP1 are connected in the middle? I'm probably missing something fundamental here...

reinholdPL commented 1 year ago

you need to bridge jp1 for programming, only at boot/reset! you can even solder a switch there. read more about booting of esp32 (which pins should be high/low for flash/normal boot) then download schematics from https://github.com/pebri86/esplay_micro_hardware and look how jp1 is connected to esp32. then you should undestand :)