If I had an array of bytes with some compiled code could I run it if so how
What exactly are you trying to do.
I want to plug in an sd pick a file and run it
That is not easily done.
You would have to have two Arduinos.
One with the SD card let’s call this one Master.
One that is to be reprogrammed let’s call it Slave.
The Master reads the program from the SD card then it reprograms the slave.
The slave is your target Arduino that obviously will run the code after being reprogrammed.
i think he's wants to execute code from SD, which i don't believe is possible with AVR
Use a RaspberryPi to run code from a SD.
It depends on what processor you're using.
The 8-bit ATMega microcontrollers have separate instruction and data buses with separate address spaces, a so-called "Harvard Architecture", and can not directly execute machine level instructions from the data space.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.