Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Loading loader.bin with minicom into AT91RM9200 board
PostPosted: Fri Jan 14, 2005 6:24 pm 
Offline
User avatar

Joined: Wed May 12, 2004 6:59 pm
Posts: 161
Location: Bergamo, Italia
Hello,
I am trying to load loader.bin into a AT91RM9200 based board.
Thie procedure is working perfectly if I upload into the tagret using Xmodem protocol and HyperTerminal.
If I try to use minicom with linux I alwayd get back 55 NAK errors and the upload fails.
I'd like to know if someone is experienced to upload loader.bin to an AT91RM9200 using linux program.
Which program did you use ?

P.S. I tried on 2 different PC without success
Thank you

/marco


Top
 Profile  
 
 Post subject: answer
PostPosted: Fri Jan 28, 2005 8:12 am 
Offline

Joined: Wed Sep 22, 2004 11:25 am
Posts: 12
hi, I wrote a program which could do that work.


Top
 Profile  
 
 Post subject: Re: answer
PostPosted: Fri Jan 28, 2005 9:40 am 
Offline
User avatar

Joined: Wed May 12, 2004 6:59 pm
Posts: 161
Location: Bergamo, Italia
seismic wrote:
hi, I wrote a program which could do that work.


Do you need contribution /testing ?
I am available.
Regards


Top
 Profile  
 
 Post subject: here it is
PostPosted: Fri Jan 28, 2005 12:30 pm 
Offline

Joined: Wed Sep 22, 2004 11:25 am
Posts: 12
in the attachment


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 28, 2005 7:09 pm 
Offline
User avatar

Joined: Wed May 12, 2004 6:59 pm
Posts: 161
Location: Bergamo, Italia
Hi,
this is a good starting point but IMHO is not enough to solve the problem.

1. When you load ALL the bootloader files into a AT91RM9200 based board,
you require to send loader.bin, and u_boot.bin with XMODEM protocol, and immediately after that you need to load boot.bin and u_boot.gx with KERMIT protocol, so you need a clever program like minicom.

2. The program you have created do almost athe same of the program called ' sz ' with option -x.

3. If you discovered the xmodem transmission problem, what about apply this modification to minicom or sz, instead of creating a new program ?

I'm open to your proposal :)
Regards


Top
 Profile  
 
 Post subject: good
PostPosted: Sat Jan 29, 2005 5:40 am 
Offline

Joined: Wed Sep 22, 2004 11:25 am
Posts: 12
oh,a good proposal,but I don't know where to find the source code of minicom or sz. I think there is some timing problem with them. :wink:


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 01, 2005 8:23 pm 
Offline
User avatar

Joined: Wed May 12, 2004 6:59 pm
Posts: 161
Location: Bergamo, Italia
I have modified the file you posted here, adding some documentation in its header and patching some printf and break.
You can download the final release here:
http://www.koansoftware.com/it/art.php?art=68

And here I explain how to use it with minicom :D

- build the source file with
gcc sx-at91.c -o sx-at91

- Howto use this program with minicom/xminicom and AT91
start minicom or xminicom
edit Options / File transfer protocol,
add a name (for example J) like the following example

| Name Program Name U/D FullScr IO-Red. Multi |
| A zmodem /usr/bin/sz -vv -b Y U N Y Y |
| B ymodem /usr/bin/sb -vv Y U N Y Y |
| C xmodem /usr/bin/sx -vv Y U N Y N |
| D zmodem /usr/bin/rz -vv -b -E N D N Y Y |
| E ymodem /usr/bin/rb -vv N D N Y Y |
| F xmodem /usr/bin/rx -vv Y D N Y N |
| G kermit /usr/bin/kermit -i -l %l -s Y U Y N N |
| H kermit /usr/bin/kermit -i -l %l -r N D Y N N |
| I ascii /usr/bin/ascii-xfr -dsv Y U N Y N |
| J at91 /home/koan/xmodem/xs-at91 Y U Y N N |
| K - |
| L - |

save and use it selecting at91 protocol when you start an Xmodem upload to AT91


Marco Cavallini
http://www.koansoftware.com


Top
 Profile  
 
 Post subject: so good
PostPosted: Wed Feb 02, 2005 4:10 am 
Offline

Joined: Wed Sep 22, 2004 11:25 am
Posts: 12
it is so good, i will use it, :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: