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  [ 5 posts ] 
Author Message
 Post subject: -E- Script error: Can't detect known device
PostPosted: Wed Aug 31, 2011 3:09 pm 
Offline

Joined: Wed Aug 31, 2011 2:30 pm
Posts: 7
Hello,
I compiled a redboot image from ecos (v.3 + Evgeniy Dushistov mods for AT91SAM9260), size=59768k. In the NANDFlash tab of Samba (v. 2.10), I select "Enable NandFlash" and then Execute. It spits out the following in the output window:

(SAM-BA v2.10) 1 % NANDFLASH::Init
-I- NANDFLASH::Init (trace level : 4)
-I- Loading applet isp-nandflash-at91sam9260.bin at address 0x20000000
-E- Script error: Can't detect known device
(SAM-BA v2.10) 1 %

I ignore this bug, and then select "Erase All", and Execute. Then I try to upload the redboot.bin file using the dropdown selection "Send Boot File". Result:

(SAM-BA v2.10) 1 % GENERIC::SendBootFileGUI
-E- Unauthorized Boot File Size
(SAM-BA v2.10) 1 %


Could someone please explain what is going on? How I can I fix this problem. Help would be much appreciated!


Top
 Profile  
 
 Post subject: Re: -E- Script error: Can't detect known device
PostPosted: Wed Aug 31, 2011 10:48 pm 
Offline

Joined: Sat Oct 30, 2010 6:04 pm
Posts: 574
>> -E- Script error: Can't detect known device
Perhaps you are using a NAND device different from the one on the 9260-EK

>> -E- Unauthorized Boot File Size
The boot strap code on the 9260 is limited to 4KB (4096 bytes), typically AT91BootStrap
The 4KB at 0x200000 is used for code, the 4KB at 0x300000 is used for data/stack

Suggest you download and review a datasheet on the chip.

Download the AT91 Boot Strap package, review and build it.


Top
 Profile  
 
 Post subject: Re: -E- Script error: Can't detect known device
PostPosted: Thu Sep 01, 2011 3:48 pm 
Offline

Joined: Wed Aug 31, 2011 2:30 pm
Posts: 7
thanks for the info. I managed to find this, which explains the problem. The flash on the AT91SAM9260 is too small ~4k, so one needs a second-level bootloader. By following the instructions under

http://www.ecoscentric.com/ecospro/doc. ... setup.html

one can update this bootstrap which should load the redboot Monitor which is also loaded to the dataflash. However, I managed to complete the instructions up to page 11, but then the AT91bootstrap does not load. That's another issue.


Top
 Profile  
 
 Post subject: Re: -E- Script error: Can't detect known device
PostPosted: Thu Sep 01, 2011 7:39 pm 
Offline

Joined: Sat Oct 30, 2010 6:04 pm
Posts: 574
You are *not* using an AT91SAM9260-EK board, you need to clearly understand the differences between that board, and the one you are using. If it uses different parts you'll need to account for that, especially the Nand Flash or DataFlash devices. Generally speaking all the ATMEL tools and software are designed to work with their boards only, and there are often multiple revisions to those boards which can also be problematic if you aren't paying attention.

You are generating multiple threads here for what is materially the same problem, which is to get your Olimex board working with SAM-BA and put redboot on it. Do yourself a favour, and pick one thread and topic so people don't have to read half a dozen threads to understand your situation.

>>The flash on the AT91SAM9260 is too small ~4k, so one needs a second-level bootloader.

Actually it's the SRAM, the 9260 doesn't have any flash internally, the ROM (RomBoot) scans multiple external devices for code in a specific format, and then copies/loads that into SRAM, and executes it there.

4K is rather small and cramped to do anything much, most everyone has migrated to the 9G20 as the 9260 is old/eol.


Top
 Profile  
 
 Post subject: Re: -E- Script error: Can't detect known device
PostPosted: Fri Sep 02, 2011 12:36 pm 
Offline

Joined: Wed Aug 31, 2011 2:30 pm
Posts: 7
Thanks for the feedback,
sorry for creating multiple threads. Which one should I stick with?
I hoped there was space for students on this forum. Where do beginners go?


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 4 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:  
cron