Coder Social home page Coder Social logo

esp32partitions's Introduction

ESP32 Partition Manager

This is the Arduino IDE 'Tools' menu integration package and installer for the ESP32 Partition Manager
The ESP32 Partition Manager is tool that eases the process of writing csv files for partitioning ESP32 development boards. Its features include:

  • Loading and rendering of .csv Files for ESP32 Boards.
  • Conversion of .csv files to .bin using a set ESP32 repository path.
  • Modification of partition data and output to csv or bin &
  • Arduino IDE integration

To Install

  • Download the latest release of this project from the releases page (ESP32Partitions.zip or setup.sh).
  • Extract the contents of ESP32Partitions.zip into your Arduino Tools Directory C:\Users\%User Name%\Documents\Arduino\tools OR
  • Simply Run setup.sh
  • Done

If your Arduino IDE was already running before the installation, you will have to restart your IDE to see the ESP32 Partition Manager entry from the Tools menu.
Arduino IDE Launching ESP32 Partition Manager Screen Shot

Arduino IDE Launching ESP32 Partition Manager Screen Shot

Arduino IDE Launching ESP32 Partition Manager Screen Shot

esp32partitions's People

Contributors

francis94c avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

esp32partitions's Issues

ESP32Partitions tool doesn't work on GNU/Linux

Pasting the relevant parts from #1 :

Using Arduino IDE 1.8.6 on Ubuntu 18.04, and trying both the beta of your tool from your releases page (dubbed 0.0.1) and the newest available ZIP file directly from the repo (dubbed 0.0.2 from your commit message), the only response after clicking on the menu item for the Partition Manager is this Java exception:

java.io.IOException: Cannot run program "reg": error=2, Datei oder Verzeichnis nicht gefunden
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
	at java.lang.Runtime.exec(Runtime.java:620)
	at java.lang.Runtime.exec(Runtime.java:450)
	at java.lang.Runtime.exec(Runtime.java:347)
	at com.espressif.partitions.ESP32Partitions.run(ESP32Partitions.java:51)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.io.IOException: error=2, Datei oder Verzeichnis nicht gefunden
	at java.lang.UNIXProcess.forkAndExec(Native Method)
	at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)
	at java.lang.ProcessImpl.start(ProcessImpl.java:134)
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
	... 18 more

In a GNU/Linux system, the info that the tools is requesting from the Windows registry is usually provided by the environment variable called HOME.

@francis94c:
the Arduino IDE tools folder in 'My Documents' which contains the actual python script 'esp-partition.py' that builds the UI, is relative the home path.

is the tools folder for Arduino IDE relative to the path in this Home variable?

If you install the Arduino IDE using default paths, the standard path for the tools folder would be $HOME/Arduino/tools.

Nothing happens when I click Tools-ESP32 Partition Manager / setup.sh fails with error message

IDE: Arduino IDE 1.8.5
Unusual installation path: C:\Program Files (x86)\Arduino
Sketchbook location: B:\Arduino-Dev
ESP32 installation path: B:\Arduino-Dev\hardware\espressif\esp32
OS: Windows 7 Home Premium Service Pack 1 64-bit

First tried download ZIP file:

  • download ESP32Partitions.zip into C:\Program Files (x86)\Arduino\tools
  • extract content into tools directory

after that tools directory looks like

C:\Program Files (x86)\Arduin\tools\EPS32Partitions\
                                                    tool\
                                                         ESP32Partitions.jar
                                                         esp-partition.py

Tools-ESP32 Partition Manager is shown in the Arduino IDE menu, but when I click on it nothing happens.

Next I tried installation with setup.sh

  • download setup.sh into tools directory
  • remove existing ESP32Partitions directory (from first installation trial)
  • run setup.sh by double click - tried as well to run setup.sh from admin shell

error message

$ ./setup.sh

Self Extracting ESP32 Partition Manager Installer

Extracting...

install.vbs
tool/
tool/esp-partition.py
tool/ESP32Partitions.jar

Installing...
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.

C:\Users\BeeGee\AppData\Local\Temp\self_extract.3bY8EJ\install.vbs(17, 2) Microsoft VBScript runtime error: Path not found

./setup.sh: line 37: cd: too many arguments
Press any Key to Continue...

Nothing is installed.
Could it be because of my "non-standard" installation path of the Arduino IDE?

Tool fails to launch - Windows 10

Installed the tool, and it fails to launch. Running the .py file in python 3.5 or 3.6 gives output :

C:\Users\marcj>python C:\Users\marcj\Documents\Arduino\tools\ESP32Partitions\tool\esp-partition.py File "C:\Users\marcj\Documents\Arduino\tools\ESP32Partitions\tool\esp-partition.py", line 498 buff = sorted(self.ui_map.iteritems(), key=lambda (k, v): (v, k)) ^ SyntaxError: invalid syntax

setup.sh does not work in linux

I got the following error while executing setup.sh:
bash: ./setup.sh: /bin/bash^M: bad interpreter: No such file or directory

ESP32Partitions Fails to launch with Arduino 1.8.5

It fails to launch with the following error printed to the log.

java.lang.ArrayIndexOutOfBoundsException: 4
at com.espressif.partitions.ESP32Partitions.run(ESP32Partitions.java:58)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

System: Windows 10
Arduino IDE: 1.8.5 64-bit

Arduino EPS32 path not set

On Windows 7 used setup.sh to install
restarted and open partition GUI
Clicked Generate->
and got msg
An Arduino ESP32 path was not set

esp-partition.py does not execute with python 3 or 3.7

Error message:(when using python 3 or 3.7)

File "esp-partition.py", line 498
    buff = sorted(self.ui_map.iteritems(), key=lambda (k, v): (v, k))
                                                      ^
SyntaxError: invalid syntax

It only compiles on python 2.7.

My system has default python compiler set to 3.7. Is there a way that I can specifically tell arduino IDE to use python 2.7?

My system specs:
OS: Manjaro Linux
Kernel: 4.14.101

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.