Sat Mar 6 11:45:58 CET 2010

MPLAB and wine

The MPLAB version I have apparently doesn't run on 64 bit linux.

The error message:

  winevdm: unable to exec 'D:\tom\.wine\drive_c\MPLAB\MPASM.EXE': DOS memory range unavailable

Goes away after this:

  sudo sysctl -w vm.mmap_min_addr=0

Now the message (on 64bit) is:

  wine: Cannot start DOS application "D:\\tom\\.wine\\drive_c\\MPLAB\\MPASM.EXE"
        because vm86 mode is not supported on this platform.

According to [3]:

> This happens because your CPU is still in 64-bit mode. Any Intel/AMD
> processor cannot use vm86 once the cpu is in 64-bit mode. The only way to
> run 16-bit applications on a 64-bit OS is emulation software such as DOSBox.

Ok, full emulation then..

Hmm.. I also tried the pic30 chain at [4].  I did find some compiled
debs that work on 32bit[5] but the compilation of [4] requires deps I
don't have.  Too much hassle.

[1] http://www.baycom.org/~tom/dspic/
[2] http://iridia.ulb.ac.be/~e-puck/wiki/tiki-index.php?page=Cross+compiling+for+dsPic
[3] http://osdir.com/ml/wine-users/2009-07/msg01058.html
[4] http://sourceforge.net/apps/mediawiki/piklab/index.php?title=Compilation_of_pic30_version_3.01
[5] http://iridia.ulb.ac.be/~e-puck/wiki/tiki-index.php?page=Cross+compiling+for+dsPic