[En-Nut-Discussion] flashing programm on Ethernut 3 doesn´t work

Andrej Taran fant at vinnitsa.com
Thu Dec 13 13:11:22 CET 2007


OpenOCD r211 work on Ethernut-3 very well with patch.
Andrej Taran

Index: cfi.c
===================================================================
--- cfi.c    (revision 211)
+++ cfi.c    (working copy)
@@ -98,7 +98,7 @@
     {CFI_MFR_SST, 0x00D6, cfi_fixup_0002_unlock_addresses, 
&cfi_unlock_addresses[CFI_UNLOCK_5555_2AAA]},
     {CFI_MFR_SST, 0x00D7, cfi_fixup_0002_unlock_addresses, 
&cfi_unlock_addresses[CFI_UNLOCK_5555_2AAA]},
     {CFI_MFR_ATMEL, 0x00C8, cfi_fixup_atmel_reversed_erase_regions, NULL},
-    {CFI_MFR_ANY, CFI_ID_ANY, cfi_fixup_0002_erase_regions, NULL},
+    {CFI_MFR_ANY, CFI_ID_ANY, cfi_fixup_0002_erase_regions, 
&cfi_unlock_addresses[CFI_UNLOCK_555_2AA]},
     {0, 0, NULL, NULL}
 };
 
@@ -1607,6 +1607,10 @@
             cfi_info->erase_region_info[j] = swap;
         }
     }
+
+    cfi_unlock_addresses_t *unlock_addresses = param;
+    pri_ext->_unlock1 = unlock_addresses->unlock1;
+    pri_ext->_unlock2 = unlock_addresses->unlock2;
 }
 
 void cfi_fixup_0002_unlock_addresses(flash_bank_t *bank, void *param)



Harald Kipp ?????:
> Ole Reinhardt schrieb:
>   
>> Hi,
>>
>>     
>>> which version of OpenOCD you are using?
>>> The new version are broken, Harald told me that up to about r146
>>> it is working. Here you can get the version r141.
>>>       
>> I don't know if this informationa helps anybody, but I'm using r211 with
>> debian/sid and it works quite well with AT91SAM7x256. I'll test it soon
>> on my AT91EB40A eval board.
>>     
>
> Ole, the problem is with CFI flash. Anything above OpenOCD 146 seems to 
> be broken.
>
> Martin, I hope I'll be able to check your problem within the next 1 or 2 
> days.
>
> Harald
>
> _______________________________________________
> http://lists.egnite.de/mailman/listinfo/en-nut-discussion
>
>
>   



More information about the En-Nut-Discussion mailing list