Welcome, Guest. Please Login.
Surveyor Corporation Surveyor SRV-1
Home Help Search Login

Surveyor Robotics Forum

Welcome to the user support forum for Surveyor SRV-1 robots, SRV-1 robot controllers and SVS stereo vision systems. To register for this forum, please send an email to support@surveyor.com which includes your desired forum user name, your registration email address, and a brief explanation of why you wish to join, and we will create a forum account for you.

Please note that there is a Search button in the forum toolbar for forum topics. Another effective search method for the entire surveyor.com site is to use Google, e.g. "xyz site://www.surveyor.com" where "xyz" is the search topic.



Pages: 1
Send Topic Print
Compiling SRV-1 Blackfin firmware on Windows (Read 19024 times)
admin
YaBB Administrator
*****




Posts: 3676
Compiling SRV-1 Blackfin firmware on Windows
11/29/07 at 8:04am
 
The current version of the Blackfin compiler toolchain runs on Windows and can be used to compile srv1.ldr.
 
Here is the download link for the most recent toolchain-  
http://blackfin.uclinux.org/gf/download/frsrelease/392/5211/blackfin-toolchain-w in32-2008R1.5.exe
 
Important note - you will see the following message during installation:
Quote:
---------------------------
ADI Blackfin Toolchain 2008R1.5 Setup
---------------------------
Your system does not appear to have LibUsb-Win32 installed.
You need to have this installed if you wish to use USB based JTAG tools.

Do you wish to install LibUsb-Win32?
---------------------------
Yes   No    
---------------------------

 !!! DO NOT INSTALL IT. YOU WILL HAVE TROUBLES WITH USB !!!
This LibUsb-Win32 is not required.
 
The SRV-1/SVS firmware image is built using a Windows command prompt ("Start" "Run"  
"Cmd"), using the "make" command on "Makefile" that is included with the SRV-1/SVS source code archive.  The source code will be found in  
    http://www.surveyor.com/blackfin/srv-blackfin-xxxxxx.zip
 
Links to firmware archives will be found on this forum and  
    http://www.surveyor.com/blackfin/#blackfin3
 
You may have to install "make.exe" from the Mingw32 package.  You can download the package here -  
    http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=23918& amp;release_id=587379
 
Once you have installed, you can rename mingw32-make.exe to make.exe.  You need to put make.exe in your execution path, though it might be easiest just to copy make.exe into the same directory where bfin-elf-gcc.exe is installed.
 
Once everything is installed, you can "cd" (change directory) to the location of the SRV-1/SVS source code files and type "make".  Before starting, delete all of the *.o and *.bin files.
 
*** UPDATE ***
Forum member Lefteris has written a tutorial for building SRV-1 firmware on Windows -  
    http://lefteris.realintelligence.net/?p=17
Back to top
 
« Last Edit: 02/09/10 at 9:48am by admin »  

SRV-1 Development Team
Surveyor Corporation
Email WWW   IP Logged
gmonnat
YaBB Newbies
*




Posts: 5
Re: Compiling SRV-1 Blackfin firmware on Windows
Reply #1 - 01/28/10 at 2:32pm
 
I followed Lefteris's most excellent tutorial for building SRV-1 firmware on Windows, and got the “mingw32-make” and Tera Term stuff compiling and talking to the SRV-1.  For the mingw32-make.exe, I only downloaded the smaller, newer one, mingw32-make-3.81-20080326-3.tar.gz.  For Tera Term, I made the following changes to TERATERM.INI and thought I'd share them here for others.  It's basic stuff, but maybe it'll help someone.
 
* To change the default TCP/IP host, change the Host1 line (in my case to 192.168.200.100, which I copied from my srv.config line "network.srv.host=192.168.200.100").  The [Hosts] section was last in my TERATERM.INI.
 
Code:
;[Hosts]
;	Host name
;Host1=myhost.mydomain
;	IP address
;Host2=111.11.1.1
;	Host name with option
;Host3=myhost.mydomain /F=myhost.ini
;	COM1 port
;Host4=/C=1
;	Replay a file
;Host5=/R=readme.txt

[Hosts]
Host1=192.168.200.100
Host2=111.11.1.1
Host3=myhost.mydomain /F=myhost.ini
Host4=/C=1 ;serial port
Host5=/R=readme.txt ;replay a file 


 
 
* To change the default TCP/IP port number and to keep the Telnet box unchecked (as a default), change the following two lines under "TCP/IP parameters" (about a 1/3 of the way down in my TERATERM.INI).  I changed mine to TCPPort=10001 (which I copied from my srv.config line "network.srv.port=10001") and Telnet=off.
 
Code:
;	TCP/IP parameters
;	  TCP port#
;TCPPort=23
TCPPort=10001
;	  Telnet flag (on/off)
;Telnet=on
Telnet=off 

Back to top
 
 
  IP Logged
Roboto88
Ex Member



Re: Compiling SRV-1 Blackfin firmware on Windows
Reply #2 - 02/19/11 at 12:43pm
 
Hey Guys,  
 
I Downloaded the following programs:
 
     1 - Blackfin Compiler/developer toolchain (Version: 2009R1)
           @ choose Component stage, I selected: - bfin-elf
                                                       - Eclipse
                                                             - Examples
                                                           - Shortcuts
 
       when the popup window asked me "Do you wish to install LibUsb-Win32? " I selected NO
 
     2 - Downloaded the latest SRV-1 firmware ( 1st July 2010)
     3 -  MinGW - Minimalist GNU for Windows ( to get the make.exe)
           @ select component stage, I only selected C compiler and pressed NEXT
 
I follow this  http://lefteris.realintelligence.net/?p=17 Guideline
 
I run make from the command prompt I get this
 
"   bfin-elf-gcc: _spawnvp: No such file or directory  
    mingw32-make: *** [main.o] Error 1  "
 
I tried taking out the O Files then the error changes to from “main.o” to “init.o”
 
Can someone help PLEASE.
 
THANKS
Roboto88
 
Back to top
 
« Last Edit: 02/19/11 at 12:48pm by Roboto88 »  
  IP Logged
EmbeddedMan
Junior Member
**




Posts: 62
Re: Compiling SRV-1 Blackfin firmware on Windows
Reply #3 - 02/20/11 at 11:40am
 
Robo,
 
At this point, the makefile and associated files are not set up to compile with anything more recent than the 2008R1.5_RC14 toolchain. You'll need to use that until we get things sorted out for the latest version (which is 2010 I believe).  
 
*Brian
Back to top
 
 
Email WWW   IP Logged
anagnosz
YaBB Newbies
*




Posts: 12
Re: Compiling SRV-1 Blackfin firmware on Windows
Reply #4 - 11/28/11 at 6:41am
 
Hello  
 
I compile the srv firmware(the default one,srv1-blackfin-022411) on windows but the first time i get: make: *** [main_115k.o] Error 2, when i retype make the compile completes.Any ideas ? What i am doing wrong?Would this firmware work on the robot or not?
[Modification: It worked.]
Back to top
 
« Last Edit: 11/29/11 at 5:14am by anagnosz »  
Email   IP Logged
Ray
YaBB Newbies
*




Posts: 42
Re: Compiling SRV-1 Blackfin firmware on Windows
Reply #5 - 12/20/12 at 5:23am
 
Hi,
 
(1) I wish to enquire whether the files:  Makefile  &  srv1.x   is machine generated or hand-writed?
 
(2) The latest firmware no more use the  startup.asm file ??
 
 
Thanks in advance.
 
Ray.
Back to top
 
 
Email   IP Logged
Pages: 1
Send Topic Print