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 no translation for that post!



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

[Solved] Want to download a sketch from Arduino UNO board

5 Posts
2 Users
0 Reactions
5,194 Views
(@karol)
Eminent Member
Joined: 4 years 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)
Famed Member Admin
Joined: 11 years ago
Posts: 2797
 

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)
Eminent Member
Joined: 4 years 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)
Famed Member Admin
Joined: 11 years ago
Posts: 2797
 

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)
Eminent Member
Joined: 4 years ago
Posts: 12
Topic starter  

I abandon Python... thanks, Hans


   
ReplyQuote
Share: