Timeline for Where do avrdude parameters get defined in the Arduino IDE?
Current License: CC BY-SA 3.0
11 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 2, 2015 at 20:50 | comment | added | Igor Stoppa | Let us continue this discussion in chat. | |
| Nov 2, 2015 at 20:39 | comment | added | wgwz |
I am looking to use Cython to convert Arduino.h into an Arduino.so, so I can then import Arduino in a Python script. For now, I think it I will then output a cpp from the Python script, which will then compile and upload via an upload command.
|
|
| Nov 2, 2015 at 20:00 | comment | added | Igor Stoppa | I have done my share of python bindings for C libaries, but they always rely on having a python interpreter running on the target. That is simply not possible on a basic AVR like the 328p. The closest you might get is with wiki.python.org/moin/PyMite but it seems abandoned. Or go for a targeted implementation like kickstarter.com/projects/214379695/…. Of course you might achieve python-like syntax wit lots of work on the parser/compiler, but that's a different story. | |
| Nov 2, 2015 at 19:51 | comment | added | wgwz | I understand I could execute from Python but I want to wrap the Arduino library. I want to be able to write in Python, not just compile from it, e.g. Blink.py not Blink.cpp. | |
| Nov 2, 2015 at 19:38 | comment | added | Igor Stoppa | I'm a bit confused. The Arduino C library, AFAIK, is something that is compiled for the target (AVR mostly). Then there is a java (afaik) implementation of the IDE, which relies on various tools, like avr-gcc and avrdude. If you want to use them, why not just executing them from python? As you must have seen, they work even from Makefile. | |
| Nov 2, 2015 at 19:12 | comment | added | wgwz | I want to know this because I want wrap the Arduino C library for use with Python. I want to know this because it is part of the design for how the wrapper would work, i.e. the upload process. | |
| Nov 2, 2015 at 18:38 | comment | added | Igor Stoppa | Ok, my bad, I should have asked an open question. Next try: what are you trying to achieve with this? Why do you want to know this? | |
| Nov 2, 2015 at 17:24 | comment | added | wgwz |
I want to know how to choose the parameters that need to be sent to the avrdude program for a given board type. I have found where the flags are settools.avrdude.upload.pattern. I am unsure of how they are set. Please see the block in my post with arrows signifying "corresponding". All the variables prefixed with uno, I understand where those values come from (boards.txt). But the variables prefixed with tools and the ? marks, I am unsure of where those are defined. I would like to know where those are defined.
|
|
| Nov 2, 2015 at 17:08 | comment | added | Igor Stoppa | Not sure I understand you. Do you want to know how to invoke avrdude by replicating what the IDE does? | |
| Nov 2, 2015 at 15:45 | comment | added | wgwz |
I've used a makefile approach. So I am now interested in finding out how and where the parameters that get sent to avrdude are defined. More specifically the variables involved in tools.avrdude.upload.pattern.
|
|
| Nov 2, 2015 at 5:56 | history | answered | Igor Stoppa | CC BY-SA 3.0 |