Hallo, ich möchte gerne einen ATUC256L4U programmieren. Eine selbst entwickelte Evaluationsplatine im Lochrasterformat ist fertiggestellt. Beim Verbinden mit dem Rechner über einen JTAGICE mkII Programmieradapter können die Fuses/Lockbits, ID des Mikrocontrollers sowie die Spannung ausgelesen werden. Beim übertragen kommt es zu dem Fehler, der unten noch genauer beschrieben ist, dass der Flash gesperrt ist. Ab Werk sind Teile vermutlich (siehe Datenblatt) des Flash Speichers gesperrt und ich konnte dem Datenblatt/Internet nicht entnehmen wie ich diese Teile freigeben kann um mein Programm zu überspielen. Beim übertragen eines ersten Testprogrammes kommt es dann zu dem Fehler: Erasing device failed Timestamp: 2012-03-17 13:48:25.543 Severity: ERROR ComponentId: 20100 StatusCode: 1 ModuleName: TCF (TCF command: Device:erase failed.) An unknown error occurred on the debugger. Debugger command Erase failed. Wir der Haken bei Erase Flash before programming entfernt kommt es zu folgendem Fehler: Internal flash programming failed. The flash region is locked. Timestamp: 2012-03-17 13:47:15.384 Severity: ERROR ComponentId: 20100 StatusCode: 1 ModuleName: TCF command: Modules:writeToMemory failed. Internal flash programming failed. The flash region is locked. ______________________________________________________________________ _ Verwendete Hardware/Software: -JTAGICE mkII -AVR Studio 5.1 -selbst gebautes Evaluationsboard Würde mich sehr freuen wenn mir jemand bei diesem Problem helfen könnte! Gruß Stefan
Da ich ja alle Lock Bits auslesen kann denke ich, dass die Schaltung funktioniert. Zur Überprüfung wäre es hilfreich wenn mir jemand sagen kann wie und wo ich diese "Commands" die im Datenblatt beschrieben sind ausführen kann. Auszug aus dem Datenblatt: 9.5.3 Region Lock Bits The flash memory has p pages, and these pages are grouped into 16 lock regions, each region containing p/16 pages. Each region has a dedicated lock bit preventing writing and erasing pages in the region. After production, the device may have some regions locked. These locked regions are reserved for a boot or default application. Locked regions can be unlocked to be erased and then programmed with another application or other data. To lock or unlock a region, the commands Lock Region Containing Page (LP) and Unlock Region Containing Page (UP) are provided. Writing one of these commands, together with the number of the page whose region should be locked/unlocked, performs the desired operation. One error can be detected in the FSR register after issuing the command: • Programming Error: A bad keyword and/or an invalid command have been written in the FCMD register. The lock bits are implemented using the lowest 16 general-purpose fuse bits. This means that lock bits can also be set/cleared using the commands for writing/erasing general-purpose fuse bits, see Section 9.6. The general-purpose bit being in an erased (1) state means that the region is unlocked. The lowermost pages in the flash can additionally be protected by the BOOTPROT fuses, see Section 9.6. Wie kann ich diese Kommandos ausführen?
Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.