Sign in

username:

password:



Not a member?

Search AT91SAM



Search tips

Subscribe to AT91SAM



Ads

Discussion Groups

Discussion Groups | AT91SAM ARM | Re: Problem debugging with IAR

For users of the Atmel AT91SAM7 and AT91SAM9 ARM CPU chips. Atmel has taken a new direction by combining on chip flash and ram with the ARM CPU on a single die. This provides low cost devices for small systems using the ARM CPU. This group is to exchange information to help users get started and learn how to use the devices.

Re: Problem debugging with IAR - mikesobel - Jan 24 10:37:15 2008

Hi Martin,

I'm using IAR tools for the 9261, and can attest that they are quirky,
but once you get them running, they seem to be reliable. I find that
I need to turn on the target power *after* plugging in the USB cable
to the J-Trace pod.

I assume from your message that the project
Options:Debugger:Setup:Driver is set to J-link. The default is
"simulator", and you need to change it. Looks like you've done this
but it's worth mentioning.

The next thing I'd do is look in the Debug Log window, which will
indicate any problems encountered while downloading. This should
provide a hint as to what's going on. Another thing to check - I'm
not familiar with the 7x256, but on the 9261, I need to ensure that
internal RAM is mapped appropriately, and this is accomplished via a
startup macro executed by the IAR IDE during the download process.
You must supply this macro, though IAR provides samples.

Other than that, I'd check that my JTAG connections are working as
expected. Although, if they're not, the download process will
typically fail ungracefully.

Hope this helps,

Mike Sobel
--- In A...@yahoogroups.com, "francach" wrote:
>
> Hi,
>
> I'm just starting with the IAR starter kit for AT91SAM7X256 processor
> and J-Link debugging equipment.
> I created a new project with the standard option and set the project
> options in the IAR software for debugging with J-Link.
> When I start the debugger, IAR seems to download the code to the
> board, but when the code runs it doesn't light the LEDS as I expected
> and when I pause the code I don't see the stop point in the C-code.
> But the dissasembly window opens and I can't step through the code.
> I have the impression that the code isn't being downloaded to the
> board at all.
> I previously compiled and downloaded the RTOS demo for the board and
> that works.
>
> Has anybody else had a similar experience?
>
> Thanks,
> Martin.
>



(You need to be a member of AT91SAM -- send a blank email to AT91SAM-subscribe@yahoogroups.com )