Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: SAM3U4C: Couldn't burn the code into flash
PostPosted: Wed Jun 29, 2011 12:30 am 
Offline

Joined: Wed Jun 29, 2011 12:17 am
Posts: 2
I made a simple board with a SAM3U4C on it, but I found out that it couldn't communicate with the Keil IDE at all. So the JLink could detect the target device, as shown below:

SEGGER J-Link Commander V4.20p ('?' for help)
Compiled Nov 19 2010 15:55:19
DLL version V4.20p, compiled Nov 19 2010 15:55:07
Firmware: J-Link ARM V8 compiled Jan 31 2011 18:34:52
Hardware: V8.00
S/N: 28005784
OEM: SAM-ICE
Feature(s): RDI
VTarget = 3.287V
Info: TotalIRLen = 4, IRPrint = 0x01
Info: Found Cortex-M3 r2p0, Little endian.
Info: TPIU fitted.
Info: FPUnit: 6 code (BP) slots and 2 literal slots
Found 1 JTAG device, Total IRLen = 4:
#0 Id: 0x4BA00477, IRLen: 04, IRPrint: 0x1, CoreSight JTAG-DP (ARM)
Cortex-M3 identified.
JTAG speed: 100 kHz

But when I was trying to burn the code into the flash (not even debugging), I received the following error message in Keil:

JLink info:
------------
DLL: V4.20p, compiled Nov 19 2010 15:55:07
Firmware: J-Link ARM V8 compiled Jan 31 2011 18:34:52
Hardware: V8.00
S/N : 28005784
OEM : SAM-ICE
Feature(s) : RDI

* JLink Info: TotalIRLen = 4, IRPrint = 0x01
* JLink Info: Found Cortex-M3 r2p0, Little endian.
* JLink Info: TPIU fitted.
* JLink Info: FPUnit: 6 code (BP) slots and 2 literal slots
ROMTableAddr = 0xE00FF003

Target info:
------------
Device: AT91SAM3U4C
VTarget = 3.287V
State of Pins:
TCK: 1, TDI: 0, TDO: 1, TMS: 0, TRES: 1, TRST: 1
Hardware-Breakpoints: 6
Software-Breakpoints: 2048
Watchpoints: 4
JTAG speed: 9600 kHz

***JLink Error: Can not read register 15 (R15) while CPU is running
**JLink Warning: CPU could not be halted
***JLink Error: Could not read memory location 0x20000000 when trying to clear soft RAM BP
Could not start CPU core. (ErrorCode: -1)
***JLink Error: Can not read register 20 (CFBP) while CPU is running
**JLink Warning: CPU could not be halted
***JLink Error: Could not start CPU core. (ErrorCode: -1)
***JLink Error: CPU is not halted
***JLink Error: Can not read register 15 (R15) while CPU is running
**JLink Warning: CPU could not be halted
***JLink Error: Could not read memory location 0x20000000 when trying to clear soft RAM BP
Could not start CPU core. (ErrorCode: -1)
Erase Failed!
***JLink Error: Could not read memory location 0x20000000 when trying to clear soft RAM BP

I checked the JTAG connections and they looks alright. Any suggestions on where should I look into? BTW, is it critical to have the external crystal oscillator running before you could burn code into the SAM3U4C?

Thanks in advance for your inputs.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: