Atmel SAM-BA Tool
Atmel SAM-BA Tool
Atmel SAM-BA Tool
Step 5. In the lower part of the main window, in the Scripts drop-down box choose "Enable Dataflash (SPI0 CS0)" and click on the
Execute button
2014-01-21
1/7
Step 6. In the same drop-down box choose "Send Boot File" and click on the Execute button
2014-01-21
2/7
Step 7. An open file dialog window comes up, browse to the location where you extracted the pgv-df-boot-samba.zip archive and
choose file dataflash_pgavrf_uboot.bin.
2014-01-21
3/7
Immediately after choosing this file the Dataflash programming will start. Below the Execute button you can observe the informational
messages about the flashing progress.
Otherwise if the boot fails, you will see the following output:
RomBOOT
That's it, now try to start the sam-ba executable binary! If everything went fine, a GUI window named "SAM-BA CDC 2.12 patch5"
should appear.
2014-01-21
4/7
Step 2. Enter the newly created pgv-df-boot-samba directory and list available files:
$ ls
at91sam9m10g45ek_demo_linux_dataflash.tcl
dataflash_at91sam9m10g45ek.bin
pgavrf-dataflashboot-uboot-3.4.bin
u-boot-1.3.4-exp.5-at91sam9m10g45ek-dataflash_cs0.bin
ubootEnvtFileDataFlash.bin
uImage-2.6.35.7-at91sam9m10g45ek.bin
Step 3. Remove SDcard from the PG5 device and connect it to your computer using an USB cable.
Step 4. Run the samba utility from command line within the pgv-df-boot-samba directory:
$ pwd
~/pgv-df-boot-samba
$ sam-ba
Step 5. A new GUI window shall appear, select options according to picture below and click Connect!
Sam-ba_connect0.png
The main window comes up (picture below).
Sam-ba_main.png
Step 6. From the main menu select "Script File", then "Execute Script File". A select dialog shall appear (picture below).
Sam-ba_scriptfile.png
Choose file:
at91sam9m10g45ek_demo_linux_dataflash.tcl
Step 7. A progress dialog shall appear, and in the lower part of the main window you will see status information about the dataflash
programming.
2014-01-21
5/7
Step 8. Close the SAM-BA CDC tool and disconnect the PG5 device from USB. You're done!
Connect the PG5 device to a serial debug cable and power it on. Monitor the output on the debug serial port, if the device actually
boots from the Dataflash you will see some informational/debug text which contains the following version string:
AT91Bootstrap 3.4
Otherwise if the boot fails, you will see the following output:
RomBOOT
Files
Sam-ba_connect.png
16.4 KB
2014-01-17
Aleksandar Pejic
Sam-ba_main.png
65.4 KB
2014-01-17
Aleksandar Pejic
Sam-ba_scriptfile.png
17.1 KB
2014-01-17
Aleksandar Pejic
Sam-ba_copy.png
70.3 KB
2014-01-17
Aleksandar Pejic
Sam-ba_connect0.png
16.3 KB
2014-01-17
Aleksandar Pejic
sam-ba-win-openbootfile.png
20.6 KB
2014-01-21
Aleksandar Pejic
2014-01-21
6/7
samba-win-sendboot.png
18.2 KB
2014-01-21
Aleksandar Pejic
sam-ba-win-execute.png
18.3 KB
2014-01-21
Aleksandar Pejic
sam-ba-win-connect.png
4.14 KB
2014-01-21
Aleksandar Pejic
2014-01-21
7/7