Memory storage in Arduino
Is it possible (and how to if so) to essentially download a scr开发者_运维百科ipt in Notepad or a terminal to the Arduino and then pull it back up on another computer?
I'm not really clear on your question. If you want to store a bunch of text in memory on the arduino and then retrieve it on another computer, then yes. Just write it out on serial or via a network port or whatever.
If you want to get the original script back from a compiled program then no. It's compiled. You might be able to dump the assembler somehow, but you'd have to decompile it to get anything like the original file back. And it still probably wouldn't be close.
You could do a combination of both, though. When you upload the compiled program, also store the original text as data on an attached SD card. You'd have to write a program that did that, but it shouldn't be too hard.
I don't believe this is possible because the programmes uploaded are compiled first. I'm not sure of the details but it would be like trying to get a C programme from an executable.
精彩评论