Samba flashing without external RAM

Discussion around AT91RM9200 and SAM9 Series Products.

Moderator: nferre

jonj
Posts: 2
Joined: Tue Mar 19, 2013 6:16 pm

Samba flashing without external RAM

Tue Mar 19, 2013 6:49 pm

I have a custom sam9ex board which I want to program with sam-ba from a Windows command line. I use only internal flash, and the board has no external anything. How do I not try to load the extram applet when booting samba?

My command line:

Code: Select all

sam-ba.exe \USBserial\COM11 at91sam9xe512-ek myscript.tcl > myscript.log
myscript.tcl:

Code: Select all

send_file {Flash} "mybin.bin" 0x200000 0
FLASH::ScriptGPNMV 6
myscript.log:
-I- Waiting ...
-I- TCL platform : Windows NT
-I- SAM-BA 2.12 on : windows
current connection is \USBserial\COM11, \\USBserial\\COM11 to be matched
-I- Retrieved arguments from command line :
-I- argv 0 : \USBserial\COM11
-I- argv 1 : at91sam9xe512-ek
-I- argv 2 : myscript.tcl
-I- Connection : \USBserial\COM11 (target(comType) = 0)
-I- Board : at91sam9xe512-ek
-I- Traces Level : 4
-I- target(handle) : 17824512
Read device Chip ID at 0xfffff240 --- get 0x329aa3a0
-I- Found processor : at91sam9xe512 (Chip ID : 0x329aa3a0)
sourcing device file C:/Program Files/Atmel/sam-ba_2.12/sam-ba.exe/../tcl_lib/devices/at91sam9xe512.tcl
sourcing board description file C:/Program Files/Atmel/sam-ba_2.12/sam-ba.exe/../tcl_lib/at91sam9xe512-ek/at91sam9xe512-ek.tcl
-I- Loading applet applet-lowlevelinit-at91sam9xe512.bin at address 0x300000
-I- Memory Size : 0x0 bytes
-I- Buffer address : 0x4
-I- Buffer size: 0x0 bytes
-I- Applet initialization done
-I- Low level initialized
-I- External RAM Settings : extRamVdd=1, extRamType=0, extRamDataBusWidth=32, extDDRamModel=0
-I- Loading applet applet-extram-at91sam9xe512.bin at address 0x300000
-E- Error during external RAM initialization.
-E- External RAM access is required to run applets.
-E- Connection abort
I can "fix" this by simply replacing "applet-extram-at91sam9xe512.bin" in tcl_lib/at91sam9xe512-ek/at91sam9xe512-ek.tcl with "applet-flash-at91sam9xe512.bin", but that's just terrible. I can also override the extram check by modifying said tcl file, but that generates further error messages.

The log after my file name hack looks like so, and the flashing seems to work:
(...)
sourcing board description file C:/Program Files/Atmel/sam-ba_2.12/sam-ba.exe/../tcl_lib/at91sam9xe512-ek/at91sam9xe512-ek.tcl
-I- Loading applet applet-lowlevelinit-at91sam9xe512.bin at address 0x300000
-I- Memory Size : 0x0 bytes
-I- Buffer address : 0x4
-I- Buffer size: 0x0 bytes
-I- Applet initialization done
-I- Low level initialized
-I- External RAM Settings : extRamVdd=1, extRamType=0, extRamDataBusWidth=32, extDDRamModel=0
-I- Loading applet applet-flash-at91sam9xe512.bin at address 0x300000
-I- Memory Size : 0x80000 bytes
-I- Buffer address : 0x300A28
-I- Buffer size: 0x6400 bytes
-I- Applet initialization done
-I- External RAM initialized
-I- Loading applet applet-flash-at91sam9xe512.bin at address 0x300000
-I- Memory Size : 0x80000 bytes
-I- Buffer address : 0x300A28
-I- Buffer size: 0x6400 bytes
-I- Applet initialization done
-I- FLASH initialized
-I- Command line mode : Execute script file : myscript.tcl
-I- Send File mybin.bin at address 0x200000
(...)
What I really want to know is why samba even tries to load the extram applet before myscript is executed, and how I can prevent it.

Best,
Jon

Return to “SAM9 ARM9 MPU”

Who is online

Users browsing this forum: No registered users and 15 guests