EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

One problem with at91sam9261

Started by "hua...@rocketmail.com" September 26, 2010
Hi Everyone,
I met a serious problem with at91sam9261. I build 5 boards in total. Only 1 board can download software and boot up normally. The other 4 boards can be recoginized by smaba software(USB interface), however, can not download software via USB. For the 4 "bad" boards, i can connect them via JTAG,but there would be a message box saying:"can not halt the cpu". Is there anyone met this issue before Thanks for your kindly reply.

Hello

This can for instance happen if the JTAG is initializing the PLL and the
setting of the PLL is wrong.

Martin

From: A... [mailto:A...] On Behalf Of
h...@rocketmail.com
Sent: Sunday, September 26, 2010 8:27 AM
To: A...
Subject: [AT91SAM] One problem with at91sam9261

Hi Everyone,
I met a serious problem with at91sam9261. I build 5 boards in total. Only 1
board can download software and boot up normally. The other 4 boards can be
recoginized by smaba software(USB interface), however, can not download
software via USB. For the 4 "bad" boards, i can connect them via JTAG,but
there would be a message box saying:"can not halt the cpu". Is there anyone
met this issue before Thanks for your kindly reply.
Martin,

Thanks for your reply. One detail I forgot to mention is: all the 5 boards can be recognized by sam-ba V2.10 via USB interface. But only one can download software via USB interface. The other four boards, however, will appear a message box saying “communication error”. For the four “broken boards”, I try to connect them via JTAG. All of the CPUs can be recognized by JTAG. But when I try to download code, it appears a message box saying” can not halt the CPU”. For the failed condition, I checked the 32.768K and 18.432M crystals, both works fine. Is it possible that there is some problem for soldering the BGA chip or BAD layout that caused this failure? Thanks for your help.

***********************************

Frank

2010-09-28

*******************************

_____

发件人: sentto-14415064-5079-1285602624-zhanghuan818=1...@returns.groups.yahoo.com [mailto:sentto-14415064-5079-1285602624-zhanghuan818=1...@returns.groups.yahoo.com] 代表 Dr. Martin Moerz
发送时间: 2010年9月27日 13:15
收件人: A...
主题: RE: [AT91SAM] One problem with at91sam9261

Hello

This can for instance happen if the JTAG is initializing the PLL and the setting of the PLL is wrong.

Martin

From: A... [mailto:A...] On Behalf Of h...@rocketmail.com
Sent: Sunday, September 26, 2010 8:27 AM
To: A...
Subject: [AT91SAM] One problem with at91sam9261

Hi Everyone,
I met a serious problem with at91sam9261. I build 5 boards in total. Only 1 board can download software and boot up normally. The other 4 boards can be recoginized by smaba software(USB interface), however, can not download software via USB. For the 4 "bad" boards, i can connect them via JTAG,but there would be a message box saying:"can not halt the cpu". Is there anyone met this issue before£¿ Thanks for your kindly reply.
On Tue, 28 Sep 2010 08:46:36 +0800
"zhanghuan" wrote:
> “communication error”. For the four “broken boards”, I try to
> connect them via JTAG. All of the CPUs can be recognized by JTAG.
> But when I try to download code, it appears a message box saying” can
> not halt the CPU”.

This is consistent with what happens on the development boards when you
get the device running code that's using peripherals in a way that's
inconsistent with the JTAG code snippets.

As I understand it: To do things like load code into Flash memory or
what-have-you, SAM-BA loads snippets into the device to execute. If
those snippets find peripherals in states they don't like, or if
attempting to upload those snippets fails, then they report error.

So is there a possibility that your devices are booting off of
something and getting into a state where they're not waiting for SAM-BA?

Dan
Martin,

We use J-LINK from segger (http://www.segger.com/cms/) as the debug tool.

***********************************

Frank

2010-09-28

*******************************

_____

发件人: sentto-14415064-5082-1285654058-zhanghuan818=1...@returns.groups.yahoo.com [mailto:sentto-14415064-5082-1285654058-zhanghuan818=1...@returns.groups.yahoo.com] 代表 Dr. Martin Moerz
发送时间: 2010年9月28日 14:07
收件人: A...
主题: RE: [AT91SAM] One problem with at91sam9261

What JTAG-probe are you using? Since the 18.431MHz crystal is working it seems that there’s a script executed by the JTAG that sets the PLL registers. ISTR the SAM9261 does run on it’s 32.786K Crystal as long as not initialized. If the JTAG does not set the PLL registers correctly (e.g. expects a 10MHz crystal) the MCU may not run correctly. We had those Problems with an AT91SAM7.

Not sure why SAM-BA does not run.

Martin

From: A... [mailto:A...] On Behalf Of zhanghuan
Sent: Tuesday, September 28, 2010 2:47 AM
To: A...
Subject: 答复: [AT91SAM] One problem with at91sam9261

Martin,

Thanks for your reply. One detail I forgot to mention is: all the 5 boards can be recognized by sam-ba V2.10 via USB interface. But only one can download software via USB interface. The other four boards, however, will appear a message box saying “communication error”. For the four “broken boards”, I try to connect them via JTAG. All of the CPUs can be recognized by JTAG. But when I try to download code, it appears a message box saying” can not halt the CPU”. For the failed condition, I checked the 32.768K and 18.432M crystals, both works fine. Is it possible that there is some problem for soldering the BGA chip or BAD layout that caused this failure? Thanks for your help.

***********************************

Frank

2010-09-28

*******************************

_____

发件人: sentto-14415064-5079-1285602624-zhanghuan818=1...@returns.groups.yahoo.com [mailto:sentto-14415064-5079-1285602624-zhanghuan818=1...@returns.groups.yahoo.com] 代表 Dr. Martin Moerz
发送时间: 2010年9月27日 13:15
收件人: A...
主题: RE: [AT91SAM] One problem with at91sam9261

Hello

This can for instance happen if the JTAG is initializing the PLL and the setting of the PLL is wrong.

Martin

From: A... [mailto:A...] On Behalf Of h...@rocketmail.com
Sent: Sunday, September 26, 2010 8:27 AM
To: A...
Subject: [AT91SAM] One problem with at91sam9261

Hi Everyone,
I met a serious problem with at91sam9261. I build 5 boards in total. Only 1 board can download software and boot up normally. The other 4 boards can be recoginized by smaba software(USB interface), however, can not download software via USB. For the 4 "bad" boards, i can connect them via JTAG,but there would be a message box saying:"can not halt the cpu". Is there anyone met this issue before£¿ Thanks for your kindly reply.
What JTAG-probe are you using? Since the 18.431MHz crystal is working it seems that there’s a script executed by the JTAG that sets the PLL registers. ISTR the SAM9261 does run on it’s 32.786K Crystal as long as not initialized. If the JTAG does not set the PLL registers correctly (e.g. expects a 10MHz crystal) the MCU may not run correctly. We had those Problems with an AT91SAM7.

Not sure why SAM-BA does not run.

Martin

From: A... [mailto:A...] On Behalf Of zhanghuan
Sent: Tuesday, September 28, 2010 2:47 AM
To: A...
Subject: 答复: [AT91SAM] One problem with at91sam9261

Martin,

Thanks for your reply. One detail I forgot to mention is: all the 5 boards can be recognized by sam-ba V2.10 via USB interface. But only one can download software via USB interface. The other four boards, however, will appear a message box saying “communication error”. For the four “broken boards”, I try to connect them via JTAG. All of the CPUs can be recognized by JTAG. But when I try to download code, it appears a message box saying” can not halt the CPU”. For the failed condition, I checked the 32.768K and 18.432M crystals, both works fine. Is it possible that there is some problem for soldering the BGA chip or BAD layout that caused this failure? Thanks for your help.

***********************************

Frank

2010-09-28

*******************************

_____

发件人: sentto-14415064-5079-1285602624-zhanghuan818=1...@returns.groups.yahoo.com [mailto:sentto-14415064-5079-1285602624-zhanghuan818=1...@returns.groups.yahoo.com] 代表 Dr. Martin Moerz
发送时间: 2010年9月27日 13:15
收件人: A...
主题: RE: [AT91SAM] One problem with at91sam9261

Hello

This can for instance happen if the JTAG is initializing the PLL and the setting of the PLL is wrong.

Martin

From: A... [mailto:A...] On Behalf Of h...@rocketmail.com
Sent: Sunday, September 26, 2010 8:27 AM
To: A...
Subject: [AT91SAM] One problem with at91sam9261

Hi Everyone,
I met a serious problem with at91sam9261. I build 5 boards in total. Only 1 board can download software and boot up normally. The other 4 boards can be recoginized by smaba software(USB interface), however, can not download software via USB. For the 4 "bad" boards, i can connect them via JTAG,but there would be a message box saying:"can not halt the cpu". Is there anyone met this issue before£¿ Thanks for your kindly reply.

The 2024 Embedded Online Conference