First flashing ESP32 WROOM by J-LInk.
Posted: Thu Apr 18, 2019 7:42 am
When I try to flash the 'empty' ESP module by J - Link, it looks like the J-link doesn't discovers the ESP32. In case of flashing by UART everything is correct and after this I already can flash module by J-Link. I use the script below:
By using msys32 console in script directory I call: ./prog_ocd verify reset exit
What else I need to add in my script for use J-Link in first module flashing?
Code: Select all
#!/usr/bin/bash
OCD_DIR=$OCD_PATH
GOTO_DIR=~/esp/EXAMPLE/build
FILE_NAME=example.bin
RET_DIR=$(pwd)
FLAGS=${@}
cd $GOTO_DIR
$OCD_DIR/bin/openocd -s $OCD_DIR/share/openocd/scripts -f interface/jlink.cfg -f board/esp-wroom-32.cfg -c "program_esp32 $FILE_NAME 0x10000 $FLAGS"
cd $RET_DIR
What else I need to add in my script for use J-Link in first module flashing?