Page 1 of 1

How to use Emulator to develop software

Posted: Wed Jun 26, 2024 4:07 pm
by dvanaria
I have a developer edition X16 working with an SD card, and I can move that SD card to my laptop (Windows 10) which has the X16 Emulator installed.

When I run the emulator with the -sdcard flag, and set it to the D: drive (where my usb plug-in SD card is located), the emulator launches with "Cannot open SDCard file D:!"

I'd like to develop software on the laptop and easily move it to this SDCard so I can test it on real hardware. I travel a lot so it would be nice to work remotely. The other option is to work on a virtual SD card (.vhd file) and then somehow copy/move files to the real SD card, but seems more convienent to work directly on the SD card, I just can't get that to work with the emulator.

Re: How to use Emulator to develop software

Posted: Wed Jun 26, 2024 5:21 pm
by desertfish
Read here for someone with similar issue. The solution is to create the proper launch command.

viewtopic.php?p=33930#p33930

Re: How to use Emulator to develop software

Posted: Wed Jun 26, 2024 6:55 pm
by TomXP411
You're using the wrong parameter. -sdcard is not the parameter for a physical SD card, but is an option to use an image file. This option is largely out of date, thanks to HostFS, so you should be using -fsroot to select the root directory for your file system.

If this is a physical SD card installed as drive D:, then you'd start up the emulator with something like

x16emu -fsroot D:\

Re: How to use Emulator to develop software

Posted: Wed Jun 26, 2024 7:12 pm
by dvanaria
That was it, thanks for the help.

I modified the shortcut to launch the emulator with the -fsroot D:\ option instead of using -sdcard.

Thank you for the help!
Untitled.png
Untitled.png (89.65 KiB) Viewed 1016 times