Commit Graph

20 Commits

Author SHA1 Message Date
Nico Tonnhofer bf72cb7f10 python3: pep8 all files.
e.g. 4 spaces for identation
using black for this:
https://github.com/ambv/black
2019-04-18 09:10:37 +02:00
Nico Tonnhofer 727d5dee66 configtool: use new wxPython 4
Installation/Update:
- Windows/macOS
    pip install -U wxPython

- Linux
    pip install -U wxPython
      - if it fails to install wxPython >= 4 go ahead, else you're done.

    Check https://extras.wxpython.org/wxPython4/extras/linux/gtk3/
    for e.g. Ubuntu 18.04:
      pip install -U \
      -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-18.04/ \
      wxPython

check also https://wxpython.org/pages/downloads/ for further details.
2018-12-30 22:12:36 +01:00
Markus Hitter bb275e2c21 Configtool: use platform.startswith() everywhere.
Using this instead of a direct comparison may make the code more
future proof, because exact versions (e.g. "win32" vs. "win64")
are ignored, then.
2016-06-11 12:41:10 +02:00
Phil Hord 90fbdd314a configtool: Add avrdude flags option to settings
Some target devices need extra avrdude command line switches to
get them to upload successfully.  There are dozens of options which
may be useful to different people. Instead of breaking all the possible
options out into separate fields, provide a generic "Program Flags" text
field which the user can fill in similar to the CFLAGS and LDFLAGS
settings.

The Arduino Mega2560 bootloader was changed[1] to report an error when
asked to erase flash because it has never actually implemented erasing
flash. To program this bootloader with avrdude requires the -D switch
to avoid flash erase. But it seems that every arduino will work fine
with -D, as evidenced by the fact that the Arduino IDE always [2]
includes -D in the avrdude commandline. Presumably the flash is erased
during/before programming anyway and the separate erase step is unneeded.

Perhaps the -D should be always added to avrdude command line in
configtool and in Makefile-AVR.  But I haven't tested any other boards
yet, and I'm being more cautious even though the Arduino IDE does
otherwise.

[1] arduino/Arduino#543
[2] d8e5997328/app/src/processing/app/debug/AvrdudeUploader.java (L168)
2016-05-17 12:57:16 -04:00
Markus Hitter bf3dd74f54 Configtool: also try toolpaths in more recent OS Xs.
This should address one part of issue #165.
2015-07-13 10:59:01 +02:00
Markus Hitter 75d110cb53 build.py: align sizes report.
No functional change.
2015-06-06 12:06:41 +02:00
Markus Hitter 0cab7ec540 Configtool: improve search for avrdude.conf.
Should now also work for Arduino 1.5.x and up.

This is work related to issue #158.
2015-06-06 12:06:41 +02:00
Markus Hitter f9d0a1bf35 Configtool: work around a ld.exe problem.
See committed comment for details.

This is related to issue #158.
2015-06-06 12:06:40 +02:00
Markus Hitter b74b066db5 Configtool: allow all Windows versions, not just "win32".
This is work related to issue #158.
2015-06-06 12:06:04 +02:00
Markus Hitter 8b63505d53 Configtool: find executables on Windows.
Probably no surprise for users of this platform, executables have
a .exe suffix :-)

This partially solves issue #158.
2015-06-06 12:05:13 +02:00
Markus Hitter da7a0d72a7 Configtool: improve search for avr-gcc & Co.
This should allow to build on any OS with Arduino IDE installed
and/or with avr-gcc & Co. available trough the normal shell.

Instead of looking at the current platform it's looked at wether
an Arduino IDE path is set. If yes, tools inside there are used.
If no such path is set, just the basename is used to let the OS
search for it ($PATH, etc.).

This is related to issue #152.
2015-05-30 18:40:04 +02:00
Markus Hitter 9a10e70e36 Configtool: also allow to abort builds.
Usually the complete or fail within a few seconds, but one never
knows and consistency with cancel-ability of uploads is good.
2015-05-20 13:49:12 +02:00
jbernardis 61c1ba182f Configtool: add ability to cancel upload.
In case communications to the bootloader doesn't work as expected,
avrdude often takes many many minutes to recognize this, so it's
very convenient to be able to abort these fruitless attempts.

This should solve issue #131.
2015-05-20 13:49:10 +02:00
Markus Hitter 3d2c307c56 Configtool: use absolute path for .hex file when uploading.
There were cases where the working directory got lost and
teacup.hex weren't found.

This should be the last bit to solve issue #132.
2015-05-14 13:07:46 +02:00
jbernardis e661170f75 Configtool: use absolute paths for .al files.
In some cases the working directory gets changed unintentionally,
so these .al files were no longer found.

This should partially solve issue #132.
2015-05-14 11:56:39 +02:00
jbernardis ac8890b207 Configtool: distiguish between bootloader and firmware baud rate.
This should solve issue #133.
2015-05-04 22:30:01 +02:00
jbernardis ee8f5f9170 Configtool: some code prettifications.
Pure whitespace changes.
2015-04-21 02:51:30 +02:00
jbernardis 2436ac2865 Configtool: a few more apperance enhancements. 2015-04-21 02:51:30 +02:00
jbernardis 9985c3936d Configtool: many changes.
1) If variables are missing from .h files, they are added.
2) Settings file now modifiable from within the program.
3) A few cosmetic fixes.
2015-04-21 02:11:01 +02:00
jbernardis b9f524d256 Configtool: add the ability to build and upload. 2015-04-21 02:11:01 +02:00