Closed chippography closed 8 years ago
I'm having the same issue, version 0.1.0 from pip on an Ubuntu 14.04 VM. At this point, I've narrowed it down to the call to Uart
in Avr
. Starting the thread in Uart
's __init__
is where I'm getting the segfault.
Have you any luck compiling the HEAD
of the repo? I have not had any luck with it. I looked at some of the commits as to fixes with the segfault (see the commit history since 0.1.0), but it looks related to a the logger module.
I haven't tried compiling from HEAD
. I managed to get 0.0.7 working on Ubuntu 12.04 but switched to using plain simavr because I didn't understand the pysimavr Arduino simulator.
I'll try to take a peek at some point because I think this project is incredibly useful, but for now I'll be working with simavr in C.
I made a lot of updates, please try the latest version. You can use Vagrant to get all dependencies in VirtualBox.
Works with 0.2 on ubuntu 14.04
Installed pysimavr from pip (that's version 0.1.0). I have the pre-reqs installed (Ubuntu 14.10 and tried 12.04, running in a Docker Container):
apt-get -y update apt-get -y install python apt-get -y install python-pip apt-get -y install swig apt-get -y install python-dev apt-get -y install gcc apt-get -y install libelf-dev pip install pysimavr
optional for examples:
pip install entrypoint2
When I run the test example:
Causes a Segmentation Fault at the line
avr = Avr(mcu='atmega48', f_cpu=8000000)
.Running it again in gdb reveals: