Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading hex files #18

Open
skwee opened this issue Dec 23, 2016 · 5 comments
Open

Loading hex files #18

skwee opened this issue Dec 23, 2016 · 5 comments

Comments

@skwee
Copy link

skwee commented Dec 23, 2016

I understand that I can execute snippets with the Arduinosim. Is there a way to load a compiled hex file ?
or
I have a project with a handfull of c files. how can i simulate them with Arduinosim ?
Thanks Steve

@Vincent14
Copy link

Vincent14 commented May 12, 2017

I'm also interested by this question, I allow myself a small ping at @ponty @Premik @SebastianZug, please =]

How could be launched the Arduino folder of a "sketch"? (an Arduino project)

@Premik
Copy link
Contributor

Premik commented May 12, 2017

There was some patch merged in the past. The ArduinSim now accepts external_elf as the last argument of the init. I think you can just provide a .hex or .axf file name there.

@Vincent14
Copy link

And what about a regular folder?

@Premik
Copy link
Contributor

Premik commented May 12, 2017

I pressume a regular folder is an Arduino project. If you have multiple files I'm not sure how to do it. I'd personally just compile the sources using Arduino or avr-gcc separately and only simulate the compiled files.

But you might check the pyavrutils.arduino.Arduino class of the PyAvrUtils project directly. It is used by pysimavr internally. Perhaps it is able to compile multiple files.

@Vincent14
Copy link

Vincent14 commented May 12, 2017

I searched how to generate a .hex file from the Arduino IDE and it's far more easy than I thought! I just followed this steps http://stackoverflow.com/a/11654333

Thank you, I'll try the external_elf parameter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants