Hacking DSTWO Tool for Windows

  • Thread starter Thread starter CuteMiyu
  • Start date Start date
  • Views Views 5,891
  • Replies Replies 5
  • Likes Likes 2
spinal_cord said:
Does this mean that the SDK can now be installed in Windows?
You need build mipsel cross compiler for windows by yourself.

When you build dstwo plug at last step, it have a makeplug tool convert your binary file to plug. But this tool have no source code.

I just make a windows edition.
 
If you want to make a MIPS cross compiler I did find these instructions on the web.

6.095 Humanoid Robot Competition
How to make cross compiler for mips CPU on windows

1. Install cygwin http://cygwin.com/
Make sure gcc and make are installed

2. Download all files in http://www.mit.edu/~kene/robo-one/doc/tar
Makefile
binutils-2.16.1.tar.gz
gcc-core-3.4.6.tar.gz
newlib-1.9.0.tar.gz
lib.tgz
ttermp23.zip
locate all files in your home directry.

3. compile cross compiler for mips CPU
binutils ( version 2.16.1 )
$mkdir /usr/loca/src
$ cd /usr/local/src
$ tar xvfz ~/binutils-2.16.1.tar.gz
$ mkdir binutils_robin
$ cd binutils_robin
$ ../binutils-2.16.1/configure --target=mipsel-robin-elf --prefix=/usr/local
$ make
$ make install
gcc ( version 3.4.6 )
$ cd /usr/local/src
$ tar xvfz ~/gcc-core-3.4.6.tar.gz
$ mkdir gcc_robin
$ cd gcc_robin
$ ../gcc-3.4.6/configure --target=mipsel-robin-elf --prefix=/usr/local
--with-newlib --enable-languages=c --disable-threads --disable-shared
$ make
$ make install
newlib ( version 1.9.0)
$ cd /usr/local/src
$ tar xvfz ~/newlib-1.9.0.tar.gz
$ mkdir newlib_robin
$ cd newlib_robin
$ ../newlib-1.9.0/configure --target=mipsel-robin-elf --prefix=/usr/local
$ make
$ make install

4. revise /usr/local/lib/gcc/mipsel-robin-elf/3.4.6/specs
(Use a text editor to edit this file)
-------------------------------------------------
*lib:
-lsemb -lc -lnullmon -lc


*startfile:
crt0%O%s crti%O%s crtbegin%O%s


5. install semb1200a-rom.ld at /usr/local/mipsel-robin-elf/lib/
$cd ~
$cp semb1200a-rom.ld /usr/local/mipsel-robin-elf/lib/.

6. install lib, header files, and so on
$tar xfvz lib.tgz
$ cp –r semb1200a /usr/local/mipsel-robin-elf/include/.
$ cp libsemb.a /usr/local/mipsel-robin-elf/lib/.
$cp crt0.o /usr/local/mipsel-robin-elf/lib

7. install teraTerm?(optional: hyperterminal is also useful)
Just double-click setup.exe in ttermp23.zip, and follow its instruction.

Set up a serial port as follows.
Baud rate 115200
Data 8bit
Parity none
Stop 1bit
Flow control none

8. compile a test program
Download http://www.mit.edu/~kene/robo-one/doc/src/test.tgz
$ tar xfvz test.tgz
$ cd test
$ make
test.bin is a binary file for main board.



Note
• You can also make cross compiler on linux or MacOSX. If you are using either of them, other terminal emulter like minicom is useful.
• The USB Serial Adapter which comes with KHR-2HV kit is not available on Linux MacOS. If you are using either of them, you should have other USB Serial Adapter such as USA-19HS.
http://www.keyspan.com/products/usb/usa19hs/
Don't know if it works but it's worth a try.
 
I like this tool CuteMiyu.
smile.gif


Thank you.
 
  • Like
Reactions: Margen67
Just an advice concerning plugins and the ismart MM. Don't play much with the ismartlinux.plg to make it runnable on dstwo, you might brick your dstwo like i did today.
 

Site & Scene News

Popular threads in this forum