Skip to content

Update GPSIM to drive pic12_executive unit tests#1

Open
timburke wants to merge 24 commits intoWellDone:masterfrom
timburke:master
Open

Update GPSIM to drive pic12_executive unit tests#1
timburke wants to merge 24 commits intoWellDone:masterfrom
timburke:master

Conversation

@timburke
Copy link
Contributor

This PR does the following things.

  • Updates gpsim build system to be more cross platform (compilation now works on mac os x, linux and with manual intervention on Windows)
  • Bug fixed gpsim simulation errors on PIC processors involving flash memory writing, i2c status on reset and clock stretching support on i2c.
  • Wrote somewhat generic embedded python modules for sending mib master and slave calls.

This version of gpsim is required to properly test the forthcoming pic12_executive updates.

timburke added 22 commits March 26, 2015 16:35
- We needed a wait state before sending a repeated start to make sure
  the slave had released the clock before continuing our state machine
It's a giant pain but at least with this new python script, many of
the headaches are out of the way.  You still need to install a 32-bit
version of python and 32-bit version of cygwin with specific packages
in order to compile everything.  It works if you do it all right though
It now should work out of the box but still needs to be configured
with your python location and cygwin location
- Also now callback a function when the master call returns
@timburke timburke assigned timburke and amcgee and unassigned timburke May 14, 2015
@timburke
Copy link
Contributor Author

@amcgee I'm starting to roll out the async mib PRs little by little so you can start reviewing them. This is my latest version of gpsim, which contains a lot of new functionality and bugfixes that enable unit testing the new pic12_executive.

See prepare_windows.py for instructions on how to build on Windows. If you want to put this on appveyer, those instructions should be helpful. You can't have any spaces in the path to the gpsim_project folder for it to work.

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

Successfully merging this pull request may close these issues.

2 participants