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 2 3 4 ... 6
Send Topic Print
restoring SRV-1 Blackfin flash firmware (Read 61841 times)
mipos
YaBB Newbies
*




Posts: 6
Re: restoring SRV-1 Blackfin flash firmware
Reply #15 - 02/21/09 at 12:59am
 
Only LED3 and LED2 are "on" when I do all points and after reboot too...
 
ad baudrate) is OK when I have in config.h  #define UART0_BAUDRATE 115200  ?
 
ad matchport) maybe there can be problem, because when I configure matchport via telnet on port 9999 and put as flow control  2, ldr.exe with srv1.ldr.recovery upload fail, so I try to configure matchport via web browser, put as flow control Xon/Xoff and all runs.
 
Is there some recipe how configure matchport via webbrowser?
Back to top
 
« Last Edit: 06/11/09 at 6:50am by admin »  
  IP Logged
admin
YaBB Administrator
*****




Posts: 3676
Re: restoring SRV-1 Blackfin flash firmware
Reply #16 - 02/21/09 at 7:47am
 
Configuring Matchport via web browser does not work for 2500kbps settings.  This can only be done via telnet or other network terminal program with connection to port 9999.
 
It is okay to turn off hardware flow control for 115kbps speed.
 
Back to top
 
« Last Edit: 02/21/09 at 7:49am by admin »  

SRV-1 Development Team
Surveyor Corporation
Email WWW   IP Logged
shawnjgoff
Full Member
***


an electrical
engineer in the
making

Posts: 132
Re: restoring SRV-1 Blackfin flash firmware
Reply #17 - 03/06/09 at 4:21pm
 
Okay, this has been outlined before, but I can't get it to work and it's the night before the competition (EEK!).
Let me know if I'm doing something wrong:
So using USB/TTL converter and Windows, it's:
remove pin 7/8 jumper
reset
Start ldrviewer, open srv1.ldr.recovery, tools-> UART Boot
test port
reset
Autobaud
Send DXE
reset (yellow leds should flash) [THIS is where it stops working for me - lights don't flash]
connect with hyperterm
transfer new ldr/zZ/reset
Done!
Back to top
 
« Last Edit: 06/11/09 at 6:50am by admin »  
WWW   IP Logged
admin
YaBB Administrator
*****




Posts: 3676
Re: restoring SRV-1 Blackfin flash firmware
Reply #18 - 03/06/09 at 4:35pm
 
You might try pin 1-2 reset before and during autobaud.  Otherwise, that looks like the right sequence.
Back to top
 
 

SRV-1 Development Team
Surveyor Corporation
Email WWW   IP Logged
shawnjgoff
Full Member
***


an electrical
engineer in the
making

Posts: 132
Re: restoring SRV-1 Blackfin flash firmware
Reply #19 - 03/06/09 at 4:56pm
 
No luck Sad
Back to top
 
 
WWW   IP Logged
kluessi
YaBB Newbies
*




Posts: 7
Re: restoring SRV-1 Blackfin flash firmware
Reply #20 - 04/15/09 at 1:57am
 
I have the same problem now.
 
I added a printf function to the firmware, then used make and transfered the created ldr file to blackfin. But after restarting blackfin it seems to work alright (led2/3 stay on, led1 just light up for a second), but i do not get a connection with terraterm. Blackfin is not responding to any commands. Maybe the baud rate changed. I had 115k before. But I tried with every baud rate possible, but no luck.
 
I tried to restore the firmware, by using the same sequence as shawnjgoff, but the lights do not flash after reset.  
Anybody solved the problem?
 
Thx
Back to top
 
 
  IP Logged
shawnjgoff
Full Member
***


an electrical
engineer in the
making

Posts: 132
Re: restoring SRV-1 Blackfin flash firmware
Reply #21 - 04/15/09 at 8:39am
 
Perhaps a solution to this problem (not his specifically, but the recurring problem) would be to start the device at 115kbps wait for a special command (the user would hold some key down during boot) for a second or two then switch to the higher baud if the key wasn't pressed.
Back to top
 
 
WWW   IP Logged
admin
YaBB Administrator
*****




Posts: 3676
Re: restoring SRV-1 Blackfin flash firmware
Reply #22 - 04/15/09 at 8:54am
 
You need to go through the steps above -  
       http://www.surveyor.com/cgi-bin/yabb2/YaBB.pl?num=1205225367/1#1
 
Note that the srv1.ldr.recovery posted on our website for purpose of reloading firmware is somewhat different from latest code builds that including an srv1.ldr.115k, and you need to use the srv1.ldr.recovery firmware image in the above set of recovery steps.
 
Also, you might want to look at recent versions of firmware - a printf() function was added to the code base in November.
Back to top
 
« Last Edit: 06/11/09 at 6:51am by admin »  

SRV-1 Development Team
Surveyor Corporation
Email WWW   IP Logged
admin
YaBB Administrator
*****




Posts: 3676
Re: restoring SRV-1 Blackfin flash firmware
Reply #23 - 04/15/09 at 8:56am
 
Quote from shawnjgoff on 04/15/09 at 8:39am:
Perhaps a solution to this problem (not his specifically, but the recurring problem) would be to start the device at 115kbps wait for a special command (the user would hold some key down during boot) for a second or two then switch to the higher baud if the key wasn't pressed.

That's how uboot works, and it turns out to cause more problems than it solves, as any spurious character can cause the boot process to abort, and then you have to reconfigure your radio link if it's running at a speed other than 115k.
Back to top
 
« Last Edit: 04/15/09 at 8:57am by admin »  

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




Posts: 7
Re: restoring SRV-1 Blackfin flash firmware
Reply #24 - 04/15/09 at 12:24pm
 
@admin: I read the steps on the previous page, but I only bought the blackfin camera. So it is not possible for me to connect via telnet to the matchport. I only have my usb to serial ttl adapter cable, thats why I followed the steps posted by shaenjgoff.
 
I will try the steps again using your special 115k image. If you have a better idea to restore the firmware using usb ttl connection, let me know.
 
Thanks again.
 
 And I know, that there is a printf function available in the firmware. I just added a line in wich I used this function to determine some values.
Back to top
 
 
  IP Logged
admin
YaBB Administrator
*****




Posts: 3676
Re: restoring SRV-1 Blackfin flash firmware
Reply #25 - 04/15/09 at 12:44pm
 
Sorry - I misread your message about printf.
 
With regard to connecting via UART instead of Matchport, the steps are basically the same.  However, it is important to use that srv1.ldr.recovery that I referenced.  Basically, the newer versions of the firmware use a multi-step load process in order to run code from onboard memory as well as SDRAM.  However, this multi-step load does not seem to be compatible with the Blackfin UART boot, so we have an older version of srv1.ldr.115k that uses just a simple load format.  Once you have the old firmware version, you can use XMODEM to upload a current version of firmware.
Back to top
 
« Last Edit: 06/11/09 at 6:52am by admin »  

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




Posts: 32
Re: restoring SRV-1 Blackfin flash firmware
Reply #26 - 04/27/09 at 4:16am
 
You will definitely have to use the old 115k ldr file. I just spent the last 5 hours trying to fix an error I made. with my presentation in another 5 hours. Couldn't get any newer ldr files to work. Any way we can get an updated version that uses the same load technique?
 
I've also discovered you don't need to evaluate the CTS, just test the port, short J1&J2 and then Autobaud.
Back to top
 
« Last Edit: 04/27/09 at 4:40am by JBKnight »  
  IP Logged
admin
YaBB Administrator
*****




Posts: 3676
Re: restoring SRV-1 Blackfin flash firmware
Reply #27 - 04/27/09 at 6:11am
 
With the older srv1.ldr.recovery for 115k, all of the firmware fits into L1 cache memory on the Blackfin processor chip.  With newer versions of firmware that have grown larger and have to load portions of the firmware into L1 and portions into SDRAM, the LDR program (bfin-elf-ldr) can not handle two-stage loading.  So you have to first get the Blackfin running via LDR using the old firmware, and then you can use the XMODEM file transfer to upload the newer version of srv1.ldr.115k and save it to flash.  We have tried to make this clear in the instructions, but welcome suggestions on how to explain this so there is no confusion on the need to use the older srv1.ldr.recovery image with LDR.
Back to top
 
« Last Edit: 06/11/09 at 6:53am by admin »  

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




Posts: 32
Re: restoring SRV-1 Blackfin flash firmware
Reply #28 - 04/28/09 at 11:46pm
 
That explanation is very clear. I didn't notice that the size had increased that much lately.  
 
Here is a how-to I made once a while back but got deleted when servers were last changed. I have recently updated it. It is how to restore/update the SRV-1 firmware. Still haven't figured out how to put pictures on here or it would have some pics to accompany it . It is in .docx format if anyone knows how to load a file on here. No matter, I think the instructions should be enough.  
 
The important part to know is that it IS FOR people WHO DON'T HAVE the Matchport option with their camera or in my case at the time, don't have the wireless transmission of their choice set up yet. And sorry, this is only for Windows systems.
 
 
***If you are updating, skip to STEP  13.***
 
1.      Remove the jumper between pins 7 and 8 on J1 and then turn on SRV-1.
 
2.      Make sure your UART Rx is connected to pin 4 of the expansion port (J4 on SRV-1 Board) and UART Tx is connected to pin 3 on expansion port.  Also, make sure the UART GND is connected to pin 2 (or pin 16) of the expansion port.  
 
*** the picture is missing but it shows hooking Tx of SRV-1 to UART-to-USB breakout board RX and SRV-1 Rx to USB-UART Tx***
 
3.      The power for the SRV-1 should be high(3.3V) in pin 1 and GND in either pin 2 or pin 16 (whichever you didn’t use for the UART connection) of the expansion port.
 
3*.  I also GNDed pin 17 but I’m not sure if it was necessary and it requires an extra GND  
  connection to be made that is common to the one on the expansion port.
 
4.      Next you download and start ldrviewer.exe.
 
NOTE:
   I have renamed the necessary srv1.ldr.115k file so that I don't mistake it for a newer version which seem to keep being included in firmware updates. The correct file can be found at http://www.surveyor.com/blackfin/srv1.ldr.115k
 
5.      Then go to FILE>OPEN and locate the srv_uart.ldr.115k file (you will need to select  
“All Files(*.*)”  “for Files of type:” to see it).  
 
You must use srv_uart.ldr.115k file, not a newer version of the .115k file in order to reflash the µC this way.
 
6.      Open the file.
 
7.      Got to TOOLS>UART BOOT…
 
8.      A console appears. Select the appropriate serial port and bit rate (115200 in this case), then click the TEST PORT button and it should say  
“Port ready for use. Reset hardware before autobaud.”  
 
If not, then make sure no other program is accessing the port you are trying to connect thru.
 
9.      Now Short pins 1 & 2 on J1 (with jumper you took off pins 7 & 8 of J1) for a second and then remove the jumper (timing is not critical).  --- You have just soft-reset the hardware.
 
10.      Click the AUTOBAUD button and you should receive Blackfin responding confirmation.
 
If you receive a BMODE timeout error, check the connections on the Blackfin to make sure the right connections are made and that you have removed the jumper from pins 1 & 2 before pushing the AUTOBAUD button.
 
11.      Once confirmation is made of contact with the Blackfin, press the SEND DXE button and wait for the program to load to the blackfin. You should see  “…done”  at the bottom of the console when it has finished downloading.  
 
Once it has finished downloading, you will see the SRV-1 LEDS light up as they would regularly (all three,  then 1st&3rd, then 1st&2nd stay on).
 
12.      Replace the jumper on pins 7 & 8 of J1.  
 
13.      Making sure you don’t turn off the SRV-1, close the UART BOOT console and open up a terminal program that supports XMODEM file transfer (preferably Tera Term).  Ensure you set the proper port to the 115200 bps baud rate, 8-bit data, no parity, 1-bit stop, no flow control under SETUP>SERIAL PORT…  
 
14.      Press ‘V’ inside the console and you should get a response from the SRV-1 stating the version of the firmware. This confirms that the SRV-1 firmware is working properly.  
 
15.      Now enter ‘X’ (capital) and then press ENTER to enter XMODEM mode which will start printing “CCC” to the screen. Now Select FILE>TRANSFER>XMODEM>SEND or hold ALT and press F – T – X – S in succession.  
 
 
 
16.      If reloading, select the same  srv_uart.ldr.115k file, otherwise select the version you wish to upload to the SRV-1.  You should then see it being sent to the SRV-1.  The firmware is still not stored in the flash memory yet so you need to press ‘zZ’ to store it. You should get the reply: "##zZ boot image write count: 131072" which means you were successful.  For reloading, cycle power to ensure the firmware was stored and that it starts normally. Then proceed to STEP 13, but upload desired firmware.
 
17.       Finished!
 
If you still have issues after this, well good luck, lol J/K.
 
I apologize if someone else has done this, I know there seems to be a good instructional that uses the matchport.
Back to top
 
« Last Edit: 04/28/09 at 11:50pm by JBKnight »  
  IP Logged
roborev
YaBB Newbies
*




Posts: 26
Re: restoring SRV-1 Blackfin flash firmware
Reply #29 - 09/16/09 at 10:32am
 
I have the same problem as original poster.  I referenced instructions from Reply #1 from admin and I can't get past #5.  When I use
 
"bfin-elf-ldr -l -v srv1.ldr.recovery 169.254.0.10:10001  "
 
either under Cygwin or Command Prompt with Administrator rights I get  
 
"bfin-elf-ldr: your system does not support POSIX network address functionality"
 
I have a HP Pavilion dv6700 Notebook PC with Vista Home Premium, Intel Core 2 Duo 64-bit computer.  
I also tried  
 
"ldr -l -v srv1.ldr.recovery 169.254.0.10:10001 "
 
and got
 
" 'ldr' is not recognized as an internal or external command, operable program or batch file."
 
I have been compiling the firmware under Cygwin with no problems, I just uploaded the wrong firmware somehow and now I get no response from the SRV1 after connecting to the Matchport wirelessly using Tera Term.  Does anyone have any suggestions for how I can solve this problem?  I would be most grateful.http://www.surveyor.com/yabbfiles/Templates/Forum//default/cry.gif
Back to top
 
 
  IP Logged
Pages: 1 2 3 4 ... 6
Send Topic Print