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  [ 10 posts ] 
Author Message
 Post subject: boot loader or EB55 got corrupted.
PostPosted: Tue Oct 19, 2004 12:00 pm 
Offline

Joined: Fri May 21, 2004 7:16 am
Posts: 19
Location: india
Hi all,
My angel Boot loader on EB55 got corrupted.Therefore I am not able to boot the board in a proper manner.Now I have to download it(boot program) again in FLASH.
I am not able to run any program from external RAM.I am able to run Ledswing program from internal RAM after a bit modification in Cstartup( without Remap, and change in STACK location)
Its difficult to run Flash downloader program(given in ATmel Support CD), as it's size is 17KB and internal RAM is only 8K.Before Remap i can't access external RAM.
So I tried to write a program of my own which would take data from serial port and write it to FLASH.But this also doesn't work.Even it doesn't identify FLASH.
I am not able to get any logic so that , i would run a program from internal RAM and will be able to REAMP then too.

Am i approaching in wrong direction?Can i write data in FLASH (1MB, connected to NCS0) before REMAP?Is there any readymade utility for downloading code in FLASH(having no boot loader)?This problem will also occure when i will build my own board, I mean writing data in a flash from scratch.


regards
Pratyush


Top
 Profile  
 
 Post subject: Use JTAG interface
PostPosted: Tue Oct 19, 2004 12:52 pm 
Offline

Joined: Tue Jul 13, 2004 11:49 pm
Posts: 32
Location: Portugal - Lisbon
Hi,
I have the same problem, the solution that I found, was to download the new image to the flash via the jtag conector.
I used a wiggler, I haven't tried any of your approaches.
I hope this can help.

Best regards

Luis de Sousa


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 19, 2004 4:45 pm 
Offline

Joined: Thu Mar 25, 2004 12:10 am
Posts: 126
Location: Germany
Hi Luis de Sousa,
what software did you use?
As far as i know wiggler is only the hardware (connected to the parallel port).

Regards,
Edi


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 19, 2004 4:56 pm 
Offline

Joined: Tue Jul 13, 2004 11:49 pm
Posts: 32
Location: Portugal - Lisbon
Hi EDI,
The software that I used is a version of the Monitor for the EB55 that runs on Linux.
Then I connect the EB55 with the wiggler to the PC, and with the monitor running on the PC I'm able to download the images to the flash via the jtag connector.
The monitor have many more features, however the version that runs on Linux(PC) needs more work until it can become available.
The software was developed by a lecturer of a Portuguese college here at Lisbon he called it "Programa Monitor".
If you want I can give you his contact, since he was the person that developed the software.
Send me an email if you are interested.
Best regards

Luis de Sousa

email: de_sousa_luis@netcabo.pt


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 20, 2004 6:48 am 
Offline

Joined: Fri May 21, 2004 7:16 am
Posts: 19
Location: india
Hi,
I don't have much depth in Linux tools.I have ADS V1.2 with Realview MultiIce Jtag Emulator.Can I have a solution with these tools?
Regards
Pratyush


Top
 Profile  
 
 Post subject: problem solved
PostPosted: Wed Oct 20, 2004 9:57 am 
Offline

Joined: Fri May 21, 2004 7:16 am
Posts: 19
Location: india
hi,
I solved the problem.it was so simple.i just wrote a program which could REMAP the processor and run it in internal RAM.Offcourse processor went in Prefetch Abort Mode just after Remapping.But at the same time External ram became available to me.then I unloaded the current image and downloaded a new image(of 18KB) in External Ram which was capable of writing Flash.and there i got the solution.
regards
pratyush


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 20, 2004 10:04 am 
Offline

Joined: Tue Jul 13, 2004 11:49 pm
Posts: 32
Location: Portugal - Lisbon
Hi Pratyush,
If the Multice that you are talking is the one located in this website: http://www.arm.com/products/DevTools/MultiICE.html
You have to check if the flash on the EB55 is supported by the software so that you can download an image of angel to the flash.
I think that you can find an image of angel in the AT91 cd that came with the EB55.
Since I dont use the tools from ARM I cant help more.
Regards

Luis de Sousa


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 20, 2004 9:18 pm 
Offline
User avatar

Joined: Fri Feb 13, 2004 7:53 pm
Posts: 329
Hi Pratyush,

I'm sorry to tell that all what you did was somehow "useless" to download a new valid boot into the EB55 board. With the realview ICE and ARM ADS you just have to connect the multi ice to the target with the multi ice server and then to open the degugger, to open a memory window with the adress of the EBI to perform the remap by hand and for the APMC then to simply configure the main osc, the PLL and then EBI NCS0 correctly to access the flash. It's that simple ! you will know it for the next time.

What I briefly describe here is given in the EB55 Recovery procedure from the atmel's website. Morever the example is for ARM ADS and Multi ICE which is exactly the same than realview ICE. In this procedure you have all the right values to write into the PLLL, main osc and EBI registers in the good order to do this.

FYI, when you have the multi ice or any other ICE box, you can get rid of Angel.

We all make a step and learn through "mistakes" and missunderstanding... ;)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 25, 2004 6:13 am 
Offline

Joined: Fri May 21, 2004 7:16 am
Posts: 19
Location: india
hi Alf,
thanx, it was a very easy way described in the EB55 recovery document. Actually before trying any method, i tried to find out such a documnet on Atmel's site www.atmel.com.but it seems very difficult to search a proper doccument on this site.finally i found out this docu from google.com.
is there ant specific method for googling in www.atmel.com?
Regards
Pratyush


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 26, 2004 4:45 pm 
Offline
User avatar

Joined: Fri Feb 13, 2004 7:53 pm
Posts: 329
Hi Pratyush,

I agree with you, that's not easy and clear to find something.

some google hints to find what you are looking for on a particular site or a document in a specific format:

site:www.atmel.com eb55
--> to find everything related to eb55 on atmel.com

at91eb55 filetype:pdf
--> to find any documents in PDF format with eb55 inside, which are generally user guide an so on.

of course you can mix both, site:www.atmel.com eb55 filetype:pdf

Hope this helps.


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 18 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: