Skip to content

Instantly share code, notes, and snippets.

@Nithanim
Created July 16, 2020 17:10
Show Gist options
  • Save Nithanim/97cda538622868becdd85b59a3940276 to your computer and use it in GitHub Desktop.
Save Nithanim/97cda538622868becdd85b59a3940276 to your computer and use it in GitHub Desktop.
Getting the Inkplate 6 development to work on linux

These are only fixes for the encountered errors and problems. Follow the official tutorial until you encounter them!

/bin/xtensa-esp32-elf-g++: no such file or directory

The compiler for ESP32 is not installed. (Why is this not in the turorial???) Basically follow https://randomnerdtutorials.com/installing-the-esp32-board-in-arduino-ide-windows-instructions/. You can have both "Additional Boards Manager URLs" by concatening them with "," like: https://dl.espressif.com/dl/package_esp32_index.json,https://raw.githubusercontent.com/e-radionicacom/Croduino-Board-Definitions-for-Arduino-IDE/master/package_Croduino_Boards_index.json Install the package "esp32" by "Espressif Systems.

Permision denied

Your device is probably on /dev/ttyUSB0 you can verify this by checking if it is only there when Inkplate 6 is connected. If it is something else, your Arduino IDE might have other ideas. I have no idea about the correct udev rules but a simple chown to your user works.

A fatal error occurred: Invalid head of packet (0xE0)

In case you see something like:

Sketch uses 273440 bytes (8%) of program storage space. Maximum is 3145728 bytes.
Global variables use 14068 bytes (4%) of dynamic memory, leaving 313612 bytes for local variables. Maximum is 327680 bytes.
esptool.py v2.6
Serial port /dev/ttyUSB0
Connecting....
Chip is ESP32D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
MAC: 24:62:ab:d8:18:40
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...

A fatal error occurred: Invalid head of packet (0xE0)
A fatal error occurred: Invalid head of packet (0xE0)

Then it is your pload speed as suggested by https://community.platformio.org/t/a-fatal-error-occurred-invalid-head-of-packet/10233.

Change it in Tools -> Upload speed -> 460800. In case you need something custom, the file is in ~/.arduino15/packages/Croduino_Boards/hardware/esp32/1.0.0/boards.txt and look for "Inkplate6.menu.UploadSpeed"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment