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

Compile assertion error and unexpected output #3

Open
agwatic opened this issue Aug 4, 2013 · 6 comments
Open

Compile assertion error and unexpected output #3

agwatic opened this issue Aug 4, 2013 · 6 comments

Comments

@agwatic
Copy link

agwatic commented Aug 4, 2013

when compiling the project it gives me error due to the 3 statements of compile assertion . when they are commented the project compiled successfully.

also, after compiling it and trying this wiki https://wiki.ubuntu.com/Emulino
-after adding the missing instructions set- it gives me this two lines as an output , one for loading the hex file and the second is for the number of cycles , unlike what's in the wiki and I don't know where's the problem

@ghost
Copy link

ghost commented Jul 11, 2014

I was able to compile emulino after removing the "-Werror" flag from the SConstruct file.
I'm running Ubuntu 14.04 LTS.

However, I'm having a problem running the following code:

./emulino myHexFile.hex

Nothing happens

I'm verifying my hex file through Arduino IDE v1.0.5 on a Mac OS X 10.6.8 for an Atmega328.
Does my hardware pose an issue? I'm guessing that because the .hex file has been verified to run on an Atmega328, it should run on the emulator, regardless of what OS I built it on or even if there have been revisions of the Atmega328 chip.

Anyone deal with this issue?

@renatoaloi
Copy link

Same here. I have been able to install without -Werror, but sample code hangs without warning or any kind of output. Must issue Ctrl+C to be back to shell.

I am just guessing for now, but I think this code was written when WProgram.h was the main header file. Now I think everything must be changed to the new Arduino.h from 1.0 IDE version until now.

Forking anyways! heheh

Thanks!
Renato Aloi

@javacasm
Copy link

javacasm commented Sep 7, 2017

The same problem for me. Removing the -Werror and the inline in ports.c, get it compiled

(you can download the executable file from http://sourceforge.net/projects/sdaaubckp/files/emulino/10.04/emulino/download and it works )

@Perseus101
Copy link

@javacasm I tried the same fix, but neither the compiled or downloaded executable work for me. Did you try anything special to get them working? I'm using Ubuntu 16.04, 64 bit.
Both my compiled executable and the downloaded one print the following then nothing happens:
emulino: Loading hex image: /tmp/arduino_build_732558/test.ino.hex

@javacasm
Copy link

@Perseus101 I only remove the compiling option "-Werror" and the simulator works 100% I have tried with several simple program (with digitalWrite, digitalRead, Serial.print, etc...) and everything works

@Perseus101
Copy link

Perseus101 commented Sep 18, 2017

@javacasm That's odd, I did the same and it still doesn't work for me. What is you build environment (OS, Arduino IDE version, etc.)?

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

4 participants