paragliding detection system
About  Build  Blog  Drones  Register/Log In  Downloads  Videos  Images  Contact  Links
paragliding detection system



paragliding system


Flash ESP32 for Mac


Program the device (Flashing) – Mac (El Capitan)/Command Line

Flashing the Heltic ESP32 SX1276 board on the Mac is a little more complex and its Command Line but simple once its set-up. The good news is once its done you can update the board without reflashing it.

Firstly you need to ensure your Mac (El Capitan or newer) has Python installed. If not the Google

Mac Python and install the software first. The “esptool” is a Python script which is used to Flash the ESP. You can get it here: https://github.com/espressif/esptool Follow the install instructions. Now you need to use the Terminal app on the Mac as the next bit is command line. Start Terminal. Attach the board with the USB cable to the Mac.

Check which port the board is connected to by typing in “ls /dev/tty.*”

The port will be something like /dev/tty.SLAB_USBtoUART

If you’ve not already downloaded the ESP32 board and application files then do that http://www.airwhere.co.uk/airware-downloads.php

You want to select the ESP32 file to download and there are three files:

1) A bootloader file (bootloader.bin)

2) A partition file (partition.bin or default.bin)

3) The Airwhere application file (AirWhereESP32.bin)

Your files if downloaded using a browser may be in the following /downloads folder. So jump to that folder.

Cd ~/Downloads

Now you can flash the board as follows:-

python esptool.py --chip esp32 --port /dev/tty.SLAB_USBtoUART --baud 921600 write_flash 0x1000 bootloader.bin 0x8000 default.bin 0x10000 AirWhereESP32.bin

If they esptool.py isn’t in your path then it won’t find it.

Change the filenames above if they are different. Also change the port to whatever you found out earlier.

After flashing the board the results should look like this:

esptool.py v2.1
Connecting.....
Chip is ESP32D0WDQ6 (revision 1)
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Flash params set to 0x0220
Compressed 15824 bytes to 9204...
Wrote 15824 bytes (9204 compressed) at 0x00001000 in 0.1 seconds (effective 1036.6 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 121...
Wrote 3072 bytes (121 compressed) at 0x00008000 in 0.0 seconds (effective 1730.2 kbit/s)...
Hash of data verified.
Compressed 612432 bytes to 388886...
Wrote 612432 bytes (388886 compressed) at 0x00010000 in 8.1 seconds (effective 607.5
kbit/s)...
Hash of data verified.
Leaving...
Hard resetting...

Congratulations now go onto configuring the Airwhere ESP32.




paragliding  system

paragliding detection system