To get up and running quickly, we have a pre-compiled binary and upload script, which allow you to flash your ESP8266 right away
Flashing the ESP8266 Device
You will need to install the ESP8266 Boards and Tools before proceeding with this section.
- Download the Pre-Compiled Binary file from here.
- Extract to a location on your PC (ensure no spaces in path name)
- Ensure your ESP8266 is connected to your PC and is ready for programming over Serial
- Run the UploadToESP8266.bat, and enter the COM port when prompted
Once completed you can reset the ESP8266 board, and a new WiFi Network should appear, blackmagic_XXXXXX, where XXXXXXX is an ID per ESP8266 board.
The Password for this network is "helloworld".
Upload Target Image
This will be updated once integrated into Visual Micro as a Menu option.
- Ensure you have connected your target board to the PC for upload as normal
- Set vMicro > Debugger > Debug : Hardware
- Set vMicro > Debugger > Debugger : Black Magic (External)
- Set vMicro > Debugger > Compiler Optimization : No Project Optimization
- Add a Local board.txt
- Add Entry to File:
tools.bmp_upload.debug.args=-nh -b 115200 -ex "target extended-remote 192.168.4.1:2022" -ex "monitor swdp_scan" -ex "attach 1" -ex "interrupt"
- Save and Close board.txt
- Build and Upload your Project to your Target board as normal
Connecting Debugger to Target
The pinout of your boards SWD interface may differ, and ensure that it is a 3v3 line connected to VREF. You may need an adapter to breakout the SWD Pins on your target board (as shown in the below image).
|ESP8266 Pin ||Usage
Now Connect both boards to a power supply and re-connect to the WiFi network....
Attach the Debugger in your Project in Visual Micro, and you should be going!
Read more about all of the other features of this ESP8266 Firmware on GitHub