Page 1 of 1
Forum

Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!

Topics for particular software or systems: Start your topic link with the name of the application or system.
For example “MacOS X – Your question“, or “MS Word – Your Tip or Trick“.

Please note that switching to another language when reading a post will not bring you to the same post, in Dutch, as there is most likely no translated for the post!




Want to download a ...
 
Share:
Notifications
Clear all

Want to download a sketch from Arduino UNO board


(@karol)
Active Member
Joined: 4 months ago
Posts: 12
Topic starter  

Want to download a sketch from Arduino UNO board
I use IDE 1.8.13. i can only upload sketches to the board. is there a way or an other program that enables me to edit the sketch that is already on the FLAS of the Arduino UNO or compatible boards?


ReplyQuote
 Hans
(@hans)
Noble Member Admin
Joined: 8 years ago
Posts: 1958
 

Practically, the short answer would be: No.

A sketch actually does not reside on an Arduino.
What you upload to an Arduino is the result from the Arduino compiler, which compiled the C-code from the sketch to Assembler code (in binary/hex format).

Technically it is not impossible to retrieve that hex code, but the resulting download will not be usable for you as it is not a sketch.

If you do manage to download the raw hex data from your Arduino, then there may be an option to convert it back to C code, however the resulting code will very hard to read or work with (no variable names, direct system calls, other odd things, etc).

I did find this StackExchange topic and this one, that goes a little deeper into the matter - but be warned that it is very unlikely that you get the actual Sketch.


ReplyQuote
(@karol)
Active Member
Joined: 4 months ago
Posts: 12
Topic starter  

Thanks. my wife wants to learn Phyton, Arduino is written in C+, how does it work, i saw a site "Phyton for Arduino", i didn't dive into it, nor do i (nor she...) know Phyton...


ReplyQuote
 Hans
(@hans)
Noble Member Admin
Joined: 8 years ago
Posts: 1958
 

I have no experience with Python on the Arduino, but since all microcontrollers use some form of assembler, Python may work the same way.
(A compiler converts C, or in your case Python, to suitable code for the Arduino)

I did see this article, which is quite extensive, for Python on the Arduino and how to get started.

Personally, on an Arduino, I'd stick to C.

If you want to learn Python, then I'd recommend learning it on a regular PC first (eg. create PC or Mac programs), so you better understand the mechanics of Python and the language itself, before getting confused by the extra steps needed to do this on an Arduino.

But that is just my 2 cents 😉 


ReplyQuote
(@karol)
Active Member
Joined: 4 months ago
Posts: 12
Topic starter  

I abandon Python... thanks, Hans


ReplyQuote


Like what you see and you'd like to help out? 

The best way to help is of course by assisting others with their questions here in the forum, but you can also help us out in other ways:

- Do your shopping at Amazon, it will not cost you anything extra but may generate a small commission for us,
- send a cup of coffee through PayPal ($5, $10, $20, or custom amount),
- become a Patreon,
- donate BitCoin (BTC), or BitCoinCash (BCH).

Share: