Welcome to my personal HowTo page!
I tried the recepies below myself and they worked for me, but it does not mean they all work for you as well :)
Follow this https://linuxhint.com/install_ubuntu_windows_10_wsl/
sudo mkdir -p /mnt/<drive-name>
sudo mount -t drvfs <drive-letter>: /mnt/<drive-name>
sudo mkdir -p /mnt/<drive-name>
sudo mount -t drvfs '\\server\folder' /mnt/<drive-name>
Follow this http://cygwin-xp.portfolis.net/
Briefly:
- you need
setup-x86.exe
version 2.874. - run
setup-x86.exe -X
to prevent signature verification - add
http://cygwin-xp.portfolis.net/cygwin
to the mirror list
Note, latest versions of setup-x86[_64].exe
don't work on XP, even though you run it with --allow-unsupported-windows
option you will not able to install Cygwin, because mirrors list will be empty. If you try to add either normal http://cygwin.mirror.constant.com
or mirror with old versions from above http://cygwin-xp.portfolis.net/cygwin
installation will fails anyways.
Tested on WinXP
- Make sure you have
wget
installed on Cygwin - Take
apt-cyg
bash script from here and store it in/usr/local/bin
- Don't forget
chmod u+x apt-cyg
You are ready to install a package now. For example:
apt-cyg install git
-- will install git from previously used mirror site.apt-cyg list
-- will list all installed packegesapt-cyg
-- usage help.
- Add
-specs=rdimon.specs -lc -lrdimon
into linker options - Make sure linker options also contain
-u _printf_float
and/or-u _scanf_float
- Remove
-specs=nano.specs
from linker options if any. - Add
extern void initialise_monitor_handles(void);
into the code where functions suchprintf
orscanf
will be used - Call
initialise_monitor_handles();
before callingprintf
,scanf
etc. - Add
printf
,scanf
etc. into the code - Command
mon arm semihosting enable
in GDB, or add it into your GDB script - Flash and run the SW from GDB -- output will appear in OpenOCD window.