How to use Emulator to develop software

Chat about anything CX16 related that doesn't fit elsewhere
Post Reply
dvanaria
Posts: 7
Joined: Sun Aug 02, 2020 3:51 am

How to use Emulator to develop software

Post 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.
User avatar
desertfish
Posts: 1094
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

Re: How to use Emulator to develop software

Post by desertfish »

Read here for someone with similar issue. The solution is to create the proper launch command.

viewtopic.php?p=33930#p33930
TomXP411
Posts: 1781
Joined: Tue May 19, 2020 8:49 pm

Re: How to use Emulator to develop software

Post 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:\
dvanaria
Posts: 7
Joined: Sun Aug 02, 2020 3:51 am

Re: How to use Emulator to develop software

Post 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 1013 times
Post Reply