cataphrat1
Posts: 3
Joined: Sat Mar 01, 2014 7:33 pm

Emulation on Windows

Sat Mar 01, 2014 7:35 pm

-
Last edited by cataphrat1 on Sat Sep 09, 2017 1:23 am, edited 2 times in total.

User avatar
redhawk
Posts: 3465
Joined: Sun Mar 04, 2012 2:13 pm
Location: ::1

Re: Emulation on Windows

Sat Mar 01, 2014 8:02 pm

Yes you can emulate a Raspberry Pi using Qemu although there maybe some hardware limitations imposed (search forum for software links).

Why emulate a Pi on Windows anyway, surely testing code is best done on real hardware??

Richard S.

cataphrat1
Posts: 3
Joined: Sat Mar 01, 2014 7:33 pm

Re: Emulation on Windows

Sat Mar 01, 2014 8:04 pm

-
Last edited by cataphrat1 on Sat Sep 09, 2017 1:23 am, edited 1 time in total.

User avatar
DougieLawson
Posts: 40825
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Emulation on Windows

Sat Mar 01, 2014 8:06 pm

qemu doesn't emulate GPIO.
Use a real Raspberry Pi, it's easy to get GPIO working that way.
Any language using left-hand whitespace for syntax is ridiculous

Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.

Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

cataphrat1
Posts: 3
Joined: Sat Mar 01, 2014 7:33 pm

Re: Emulation on Windows

Sat Mar 01, 2014 8:07 pm

-
Last edited by cataphrat1 on Sat Sep 09, 2017 1:24 am, edited 1 time in total.

User avatar
DougieLawson
Posts: 40825
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Emulation on Windows

Sat Mar 01, 2014 8:41 pm

Use wepiopi, that gives you a webpage where you can easily see the status of the GPIO pins and with a few mouse clicks make changes to the GPIO pins. (It also has a programming API, that I've not investigated.)
Any language using left-hand whitespace for syntax is ridiculous

Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.

Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

colinh
Posts: 95
Joined: Tue Dec 03, 2013 11:59 pm
Location: Munich

Re: Emulation on Windows

Sat Mar 01, 2014 10:27 pm

Why do you want to change the values on the GPIO pins if you have no idea how to detect such changes?

Anyway, you might try connecting an LED and 1k resistor in series to ground.

Also, if you look at dwelch's git repository there's info on getting a bootloader installed. You can then load programs via serial (or use JTAG) - no more card swapping needed.

Return to “Bare metal, Assembly language”