Flashing AT91SAM3

chrysh chrysh at mailbox.tu-berlin.de
Mon Aug 3 17:40:42 UTC 2015


Hi everyone,

the new SIMtrace board will be available soon. It is equipped with an 
Atmel AT91SAM3 instead of a AT91SAM7 (both chips are pin compatible, so 
upgrading by hand by unsoldering the old processor and attaching the new 
AT91SAM3 is also possible).

Just for the record, if you want to flash an AT91SAM3, this solution 
worked for me: Comment out osmoSDRDetect() return -1 in osmosdr.c, so 
that osmoSDRDetect always returns 0. Further adjustment in terms of 
addresses:

% diff -Naur src/sam3u.c src/sam3s.c5
--- src/sam3u.c 2015-05-29 15:59:51.697208630 +0200
+++ src/sam3s.c 2015-05-29 15:39:34.331493312 +0200
@@ -139,12 +139,8 @@
  
         switch(bank) {
                 case 0:
-                       regBase = 0x400e0800;
-                       flashBase = 0x80000;
-                       break;
-               case 1:
                         regBase = 0x400e0a00;
-                       flashBase = 0x100000;
+                       flashBase = 0x400000;
                         break;
                 default:
                         fprintf(stderr, "illegal flash bank");
@@ -192,12 +188,8 @@
  
         switch(bank) {
                 case 0:
-                       regBase = 0x400e0800;
-                       flashBase = 0x80000;
-                       break;
-               case 1:
                         regBase = 0x400e0a00;
-                       flashBase = 0x100000;
+                       flashBase = 0x400000;
                         break;
                 default:
                         fprintf(stderr, "illegal flash bank");


After adjusting the addresses, compile sam3s.c in the Makefile instead of sam3u.c.

Please also find attached a diff of my locally applied change, which might illustrate the adjustments needed in more clarity.

Regards,
Christina



-------------- next part --------------
A non-text attachment was scrubbed...
Name: sam3s_addition.patch
Type: text/x-patch
Size: 7842 bytes
Desc: not available
URL: <http://lists.osmocom.org/pipermail/osmocom-sdr/attachments/20150803/00b4adec/attachment-0001.bin>


More information about the osmocom-sdr mailing list