First flashing ESP32 WROOM by J-LInk.

filipESP
Posts: 74
Joined: Tue Nov 06, 2018 12:42 pm

First flashing ESP32 WROOM by J-LInk.

Postby filipESP » 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:

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
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?

Who is online

Users browsing this forum: No registered users and 109 guests