Pyupdi style uploading

ref. Manual/Github use of pymcuprog (pyupdi-style)

Download the Python3 package for your OS:

  • Windows: https://github.com/earlephilhower/esp-quick-toolchain/releases/download/2.5.0-4/python3-3.7.2.post1-embed-win32v2a.zip
  • MacOS: https://github.com/earlephilhower/esp-quick-toolchain/releases/download/2.5.0-4/python3-macosx-portable.tar.gz
  • All Linux: https://github.com/earlephilhower/esp-quick-toolchain/releases/download/2.5.0-4/python3-via-env.tar.gz
% cd Downloads
% ls
python3-macosx-portable.tar.gz
% pwd
/Users/yuichi/Downloads

Move/Copy to this location

That is, move that downloaded file to the location of this file in the manually installed core: (sketchbook)/hardware/megaTinyCore/megaavr/tools

find “sketchbook” location

In my case, this is sketchbook location

/Users/yuichi/Documents/Arduino

make directries and copy to it

% cd
% pwd
/Users/yuichi
% cd Documents/Arduino
% ls
libraries
% mkdir hardware
% mkdir hardware/megaTinyCore
% mkdir hardware/megaTinyCore/megaavr
% mkdir hardware/megaTinyCore/megaavr/tools  
% cd hardware/megaTinyCore/megaavr/tools
% pwd
/Users/yuichi/Documents/Arduino/hardware/megaTinyCore/megaavr/tools
% cp ~/Downloads/python3-macosx-portable.tar.gz .
% ls
python3-macosx-portable.tar.gz

Extract

% which tar
/usr/bin/tar

% tar zxvf python3-macosx-portable.tar.gz

or

% open /Users/yuichi/Documents/Arduino/hardware/megaTinyCore/megaavr/tools

then, Double click to Extract

remove tar.gz and rename

% pwd
/Users/yuichi/Documents/Arduino/hardware/megaTinyCore/megaavr/tools
% ls
python3             python3-macosx-portable.tar.gz
% rm python3-macosx-portable.tar.gz
% ls
python3

This is WRONG