 |
| Author |
Message |
|
|
Posted: Mar 23, 2012 - 12:29 PM |
|

Joined: Mar 23, 2012
Posts: 1
|
|
Hello,
I am using the ATUC256L4U for a car control project. The selfmade development board is finished and I tried to program the controller with the "JTAGICE mkII". I can see the status of the fuses and the device ID and target voltage. When I program the device I got the following errors:
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.
When I toggle the "erase flash before programming" box I got the following error:
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.
In the datasheet I found some information's:
"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."
My question is how can I unlock these regions? Or are there maybe other problems with I have to solve before?
It the attachment you can find the schematics of my selfmade development board. I also tried right now not to connect pin 10 and EVTO to the JTAG interface.
Kind regards |
|
|
| |
|
|
|
|
|
Posted: Apr 13, 2012 - 02:15 PM |
|

Joined: Jul 18, 2007
Posts: 17
|
|
I had a similar problem (but not exactly the same) on a homemade board.
The JTAG must be able to drive the reset line low to enable the JTAG properly. You have an external pullup on the reset. I would recommend to remove the pullup and try again. |
|
|
| |
|
|
|
|
|
|
|