Skip to main content
Tweeted twitter.com/StackElectronix/status/1127181719856136192
improved formatting
Source Link
JRE
  • 73.6k
  • 10
  • 112
  • 195

I found very nice open source avr emulator (this one). Since) Since there is uart emulation implemented it can simulate Arduino.

There is board_simduino example, but I have some problems with itthe "board_simduino" example. 

I hooked up virtual leds to port B (pins 8-13) - http://gitorious.org/~viroos/simavr/viroos-simduino-simavr/commit/bfaeac1e61f1d6678b3daab7fede9a783d01c098, and they workswork.

But serial connection looks broken. I can upload sketch (I added ,link=/dev/ttyUSB0 to socat command for that), but after that communication stops working. For example I can upload "physical pixel" sketch but I can't turn on leds. I tried to connect using serial monitor in buildbuily in IDE and from pySerial. It'sIt looks like commends are being ignored.

Also in "blink" sketch I in the main loop:

void loop()
{
 digitalWrite(ledPin, HIGH);   // set the LED on
 delay(1000);                  // wait for a second
 digitalWrite(ledPin, LOW);    // set the LED off
 delay(1000);                  // wait for a second
}"

I have to remove delay(1000); command because they hangupshang the emulator.

I will appreciate any help. Most important form me for now is uart fixing (run "physical pixel" sketch).)

I found very nice open source avr emulator (this one). Since there is uart emulation implemented it can simulate Arduino.

There is board_simduino example, but I have some problems with it. I hooked up virtual leds to port B (pins 8-13) - http://gitorious.org/~viroos/simavr/viroos-simduino-simavr/commit/bfaeac1e61f1d6678b3daab7fede9a783d01c098, and they works.

But serial connection looks broken. I can upload sketch (I added ,link=/dev/ttyUSB0 to socat command for that), but after that communication stops working. For example I can upload "physical pixel" sketch but I can't turn on leds. I tried to connect using serial monitor in build in IDE and from pySerial. It's looks like commends are being ignored.

Also in "blink" sketch I in main loop:

void loop()
{
 digitalWrite(ledPin, HIGH);   // set the LED on
 delay(1000);                  // wait for a second
 digitalWrite(ledPin, LOW);    // set the LED off
 delay(1000);                  // wait for a second
}"

I have to remove delay(1000); command because they hangups emulator.

I will appreciate any help. Most important form me for now is uart fixing (run "physical pixel" sketch).

I found very nice open source avr emulator (this one.) Since there is uart emulation implemented it can simulate Arduino.

I have some problems with the "board_simduino" example. 

I hooked up virtual leds to port B (pins 8-13) - http://gitorious.org/~viroos/simavr/viroos-simduino-simavr/commit/bfaeac1e61f1d6678b3daab7fede9a783d01c098, and they work.

But serial connection looks broken. I can upload sketch (I added ,link=/dev/ttyUSB0 to socat command for that), but after that communication stops working. For example I can upload "physical pixel" sketch but I can't turn on leds. I tried to connect using serial monitor in buily in IDE and from pySerial. It looks like commends are being ignored.

Also in "blink" sketch in the main loop:

void loop()
{
 digitalWrite(ledPin, HIGH);   // set the LED on
 delay(1000);                  // wait for a second
 digitalWrite(ledPin, LOW);    // set the LED off
 delay(1000);                  // wait for a second
}"

I have to remove delay(1000); command because they hang the emulator.

I will appreciate any help. Most important form me for now is uart fixing (run "physical pixel" sketch.)

I found varyvery nice open source avr emulator (  http://gitorious.org/simavrthis one). Since there is uart emulation implemented it can simulate Arduino.

There is board_simduino example, but I have some problems with it. I hooked up virtual leds to port B (pins 8-13) - http://gitorious.org/~viroos/simavr/viroos-simduino-simavr/commit/bfaeac1e61f1d6678b3daab7fede9a783d01c098, and they works.

But serial connection looks broken. I can upload sketch (I added ,link=/dev/ttyUSB0 to socat command for that), but after that communication stops working. For example I can upload "physical pixel" sketch but I can't turn on leds. I tried to connect using serial monitor in build in IDE and from pySerial. It's looks like commends are being ignored.

Also in "blink" sketch I in main loop:

void loop()
{
 digitalWrite(ledPin, HIGH);   // set the LED on
 delay(1000);                  // wait for a second
 digitalWrite(ledPin, LOW);    // set the LED off
 delay(1000);                  // wait for a second
}"

I have to remove delay(1000); command because they hangups emulator.

I will appreciate any help. Most important form me for now is uart fixing (run "physical pixel" sketch).

I found vary nice open source avr emulator (  http://gitorious.org/simavr). Since there is uart emulation implemented it can simulate Arduino.

There is board_simduino example, but I have some problems with it. I hooked up virtual leds to port B (pins 8-13) - http://gitorious.org/~viroos/simavr/viroos-simduino-simavr/commit/bfaeac1e61f1d6678b3daab7fede9a783d01c098, and they works.

But serial connection looks broken. I can upload sketch (I added ,link=/dev/ttyUSB0 to socat command for that), but after that communication stops working. For example I can upload "physical pixel" sketch but I can't turn on leds. I tried to connect using serial monitor in build in IDE and from pySerial. It's looks like commends are being ignored.

Also in "blink" sketch I in main loop:

void loop()
{
 digitalWrite(ledPin, HIGH);   // set the LED on
 delay(1000);                  // wait for a second
 digitalWrite(ledPin, LOW);    // set the LED off
 delay(1000);                  // wait for a second
}"

I have to remove delay(1000); command because they hangups emulator.

I will appreciate any help. Most important form me for now is uart fixing (run "physical pixel" sketch).

I found very nice open source avr emulator (this one). Since there is uart emulation implemented it can simulate Arduino.

There is board_simduino example, but I have some problems with it. I hooked up virtual leds to port B (pins 8-13) - http://gitorious.org/~viroos/simavr/viroos-simduino-simavr/commit/bfaeac1e61f1d6678b3daab7fede9a783d01c098, and they works.

But serial connection looks broken. I can upload sketch (I added ,link=/dev/ttyUSB0 to socat command for that), but after that communication stops working. For example I can upload "physical pixel" sketch but I can't turn on leds. I tried to connect using serial monitor in build in IDE and from pySerial. It's looks like commends are being ignored.

Also in "blink" sketch I in main loop:

void loop()
{
 digitalWrite(ledPin, HIGH);   // set the LED on
 delay(1000);                  // wait for a second
 digitalWrite(ledPin, LOW);    // set the LED off
 delay(1000);                  // wait for a second
}"

I have to remove delay(1000); command because they hangups emulator.

I will appreciate any help. Most important form me for now is uart fixing (run "physical pixel" sketch).

edited body
Source Link
Maciek Sawicki
  • 810
  • 1
  • 9
  • 13

I found vary nice open source avr emulator ( http://gitorious.org/simavr). Since there is uart emulation implemented it can simulate Arduino.

There is board_simduino example, but I hacehave some problems with it. I hooked up virtual leds to port B (pins 8-13) - http://gitorious.org/~viroos/simavr/viroos-simduino-simavr/commit/bfaeac1e61f1d6678b3daab7fede9a783d01c098, and they works.

But serial connection looks broken. I can upload sketch (I added ,link=/dev/ttyUSB0 to socat command for that), but after that communication stops working. For example I can upload "physical pixel" sketch but I can't turn on leds. I tried to connect using serial monitor in build in IDE and from pySerial. It's looks like commends are being ignored.

Also in "blink" sketch I in main loop:

void loop()
{
 digitalWrite(ledPin, HIGH);   // set the LED on
 delay(1000);                  // wait for a second
 digitalWrite(ledPin, LOW);    // set the LED off
 delay(1000);                  // wait for a second
}"

I have to remove delay(1000); command because they hangups emulator.

I will appreciate any help. Most important form me for now is uart fixing (run "physical pixel" sketch).

I found vary nice open source avr emulator ( http://gitorious.org/simavr). Since there is uart emulation implemented it can simulate Arduino.

There is board_simduino example, but I hace some problems with it. I hooked up virtual leds to port B (pins 8-13) - http://gitorious.org/~viroos/simavr/viroos-simduino-simavr/commit/bfaeac1e61f1d6678b3daab7fede9a783d01c098, and they works.

But serial connection looks broken. I can upload sketch (I added ,link=/dev/ttyUSB0 to socat command for that), but after that communication stops working. For example I can upload "physical pixel" sketch but I can't turn on leds. I tried to connect using serial monitor in build in IDE and from pySerial. It's looks like commends are being ignored.

Also in "blink" sketch I in main loop:

void loop()
{
 digitalWrite(ledPin, HIGH);   // set the LED on
 delay(1000);                  // wait for a second
 digitalWrite(ledPin, LOW);    // set the LED off
 delay(1000);                  // wait for a second
}"

I have to remove delay(1000); command because they hangups emulator.

I will appreciate any help. Most important form me for now is uart fixing (run "physical pixel" sketch).

I found vary nice open source avr emulator ( http://gitorious.org/simavr). Since there is uart emulation implemented it can simulate Arduino.

There is board_simduino example, but I have some problems with it. I hooked up virtual leds to port B (pins 8-13) - http://gitorious.org/~viroos/simavr/viroos-simduino-simavr/commit/bfaeac1e61f1d6678b3daab7fede9a783d01c098, and they works.

But serial connection looks broken. I can upload sketch (I added ,link=/dev/ttyUSB0 to socat command for that), but after that communication stops working. For example I can upload "physical pixel" sketch but I can't turn on leds. I tried to connect using serial monitor in build in IDE and from pySerial. It's looks like commends are being ignored.

Also in "blink" sketch I in main loop:

void loop()
{
 digitalWrite(ledPin, HIGH);   // set the LED on
 delay(1000);                  // wait for a second
 digitalWrite(ledPin, LOW);    // set the LED off
 delay(1000);                  // wait for a second
}"

I have to remove delay(1000); command because they hangups emulator.

I will appreciate any help. Most important form me for now is uart fixing (run "physical pixel" sketch).

edited title
Link
Maciek Sawicki
  • 810
  • 1
  • 9
  • 13
Loading
Source Link
Maciek Sawicki
  • 810
  • 1
  • 9
  • 13
Loading