EmbeddedRelated.com
Forums

CrossConnect and CrossWorks anyone? I need help with first download

Started by vt_snapshot November 12, 2005
Hello Everyone,

I'm new here. I just got started on my first ARM project after
spending years on the Atmel AVR family.
I bought the CrossWorks for ARM IDE and the Cross Connect JTAG adapter.

I'm trying to get my first test program to download.
It sees the Cross Connect USB adapter and even can read my target device.
It says downloading "Loader.exe" to USB CrossConnect.
It passes that OK.
It's when it downloads my test program into into the SAM7S64 that it
gets a verify error.

I'm told there might be a possible Flash programming issue with the
SAM764 at Atmel right now. Has anyone else seen this or had problems
with the combo of tools I'm using?

I've tried a few different crystals (16MHz, 8MHz, 6MHz) and also tried
a number of fast and slow JTAG clocking speeds.
Same problem each time.

Any suggestions to a first timer on the ARM?


I still have unresolved issues on why I am receiveing verify errors on our SAM764's. If you find anything out please post.
 
Thanks.
 
-Henk
 
----- Original Message -----
From: vt_snapshot
To: A...@yahoogroups.com
Sent: Saturday, November 12, 2005 6:32 PM
Subject: [AT91SAM7] CrossConnect and CrossWorks anyone? I need help with first download

Hello Everyone,

I'm new here.  I just got started on my first ARM project after
spending years on the Atmel AVR family.
I bought the CrossWorks for ARM IDE and the Cross Connect JTAG adapter.

I'm trying to get my first test program to download.
It sees the Cross Connect USB adapter and even can read my target device.
It says downloading "Loader.exe" to USB CrossConnect.
It passes that OK.
It's when it downloads my test program into into the SAM7S64 that it
gets a verify error.

I'm told there might be a possible Flash programming issue with the
SAM764 at Atmel right now. Has anyone else seen this or had problems
with the combo of tools I'm using?

I've tried a few different crystals (16MHz, 8MHz, 6MHz) and also tried
a number of fast and slow JTAG clocking speeds.
Same problem each time.

Any suggestions to a first timer on the ARM?



Hallo Henk,

> I still have unresolved issues on why I am receiveing verify errors on our SAM764's. If you find
> anything out please post.

What version/build of CWARM are you using ?
You should have V1.5 of CW for ARM.
Are you working on your own HW, or on the SAM7-EK ?

I've been using CrossConnect and CrossWorks for long time, and never had
a single problem on SAM7.

Also, do you have SAM7S64 properly defined as your target ?
I recently replaced S64 with S256 on my EK, and haven't seen issues there
either.

-- Kris


test


Hi Henk,

The loader in the current CrossWorks product doesn't clear lock bits - I
can send you an updated one if you want. Also the latest Segger J-Link
firmware doesn't want to run the SAM7S reset script which we are
investigating.

Regards
Michael

> I still have unresolved issues on why I am receiveing verify errors on
> our SAM764's. If you find anything out please post.
>
> Thanks.
>
> -Henk > ----- Original Message -----
> *From:* vt_snapshot <mailto:vt_snapshot@vt_s...>
> *To:* AT91SAM7@AT91... <mailto:AT91SAM7@AT91...>
> *Sent:* Saturday, November 12, 2005 6:32 PM
> *Subject:* [AT91SAM7] CrossConnect and CrossWorks anyone? I need
> help with first download
>
> Hello Everyone,
>
> I'm new here. I just got started on my first ARM project after
> spending years on the Atmel AVR family.
> I bought the CrossWorks for ARM IDE and the Cross Connect JTAG
> adapter.
>
> I'm trying to get my first test program to download.
> It sees the Cross Connect USB adapter and even can read my target
> device.
> It says downloading "Loader.exe" to USB CrossConnect.
> It passes that OK.
> It's when it downloads my test program into into the SAM7S64 that it
> gets a verify error.
>
> I'm told there might be a possible Flash programming issue with the
> SAM764 at Atmel right now. Has anyone else seen this or had problems
> with the combo of tools I'm using?
>
> I've tried a few different crystals (16MHz, 8MHz, 6MHz) and also tried
> a number of fast and slow JTAG clocking speeds.
> Same problem each time.
>
> Any suggestions to a first timer on the ARM? >
> >. >
>




Mike,
 
I am using the IAR embedded workbench.  Have you heard anything about IAR and the issues I a having?
 
Thanks.
 
-Henk
 
----- Original Message -----
From: Michael Johnson
To: A...@yahoogroups.com
Sent: Monday, November 14, 2005 11:04 PM
Subject: Re: [AT91SAM7] CrossConnect and CrossWorks anyone? I need help with first download

Hi Henk,

The loader in the current CrossWorks product doesn't clear lock bits - I
can send you an updated one if you want. Also the latest Segger J-Link
firmware doesn't want to run the SAM7S reset script which we are
investigating.

Regards
Michael

> I still have unresolved issues on why I am receiveing verify errors on
> our SAM764's. If you find anything out please post.

> Thanks.

> -Henk

>
>     ----- Original Message -----
>     *From:* vt_snapshot <mailto:v...@yahoo.com>
>     *To:* A...@yahoogroups.com <mailto:A...@yahoogroups.com>
>     *Sent:* Saturday, November 12, 2005 6:32 PM
>     *Subject:* [AT91SAM7] CrossConnect and CrossWorks anyone? I need
>     help with first download
>
>     Hello Everyone,
>
>     I'm new here.  I just got started on my first ARM project after
>     spending years on the Atmel AVR family.
>     I bought the CrossWorks for ARM IDE and the Cross Connect JTAG
>     adapter.
>
>     I'm trying to get my first test program to download.
>     It sees the Cross Connect USB adapter and even can read my target
>     device.
>     It says downloading "Loader.exe" to USB CrossConnect.
>     It passes that OK.
>     It's when it downloads my test program into into the SAM7S64 that it
>     gets a verify error.
>
>     I'm told there might be a possible Flash programming issue with the
>     SAM764 at Atmel right now. Has anyone else seen this or had problems
>     with the combo of tools I'm using?
>
>     I've tried a few different crystals (16MHz, 8MHz, 6MHz) and also tried
>     a number of fast and slow JTAG clocking speeds.
>     Same problem each time.
>
>     Any suggestions to a first timer on the ARM?>    
>     >.>    


--- In AT91SAM7@AT91..., "Henk Visser" <dutchman1234@h...> wrote:
>
> I still have unresolved issues on why I am receiveing verify errors on our SAM764's. If
you find anything out please post.
>
> Thanks.
>
> -Henk
>
> ----- Original Message -----
> From: vt_snapshot
> To: AT91SAM7@AT91...
> Sent: Saturday, November 12, 2005 6:32 PM
> Subject: [AT91SAM7] CrossConnect and CrossWorks anyone? I need help with first
download
>
>
> Hello Everyone,
>
> I'm new here. I just got started on my first ARM project after
> spending years on the Atmel AVR family.
> I bought the CrossWorks for ARM IDE and the Cross Connect JTAG adapter.
>
> I'm trying to get my first test program to download.
> It sees the Cross Connect USB adapter and even can read my target device.
> It says downloading "Loader.exe" to USB CrossConnect.
> It passes that OK.
> It's when it downloads my test program into into the SAM7S64 that it
> gets a verify error.
>
> I'm told there might be a possible Flash programming issue with the
> SAM764 at Atmel right now. Has anyone else seen this or had problems
> with the combo of tools I'm using?
>
> I've tried a few different crystals (16MHz, 8MHz, 6MHz) and also tried
> a number of fast and slow JTAG clocking speeds.
> Same problem each time.
>
> Any suggestions to a first timer on the ARM? >
> SPONSORED LINKS Arm adjustable rate mortgage Arm mortgage rate Arm mortgage
> Lcd arm Arms Arm home mortgage >
----
--
> YAHOO! GROUPS LINKS
>
> a.. >
----
--
>

There's a definate issue with the SAM7 flash programming. I spent nearly all of last week
trying to program flash on a prototype board, we spoke to ATMEL on numerous occasions,
we even sent one of our prototypes to rowley to see if they could see what the problem
was.

As soon as they got the board they had no problem programming it - which was a bit of a
relief, but then we had to track down the problem.

We've actually tracked the problem down to the bench supply. Our board takes in 12V and
has on board regulators to 3.3V (and a few other rails we need).

Our bench supply has "Input On" and "Output On", if we leave "Output On" and turn "Input
On" then we're unable to program flash - everything else works, you can run code from
ram, the application works fine but you cannot program flash.

If you ensure that output is off when the bench supply is turned on, and then turn on the
output after the input is turned on you can program the flash.

It's a really odd problem mainly because the processor appears to work correctly - it's just
flash programming that doesn't work.


Hi Henk,

Sorry - I thought you were using CrossWorks. Have you talked to IAR or
ATMEL about this?

Regards
Michael

> Mike,
>
> I am using the IAR embedded workbench. Have you heard anything about
> IAR and the issues I a having?
>
> Thanks.
>
> -Henk > ----- Original Message -----
> *From:* Michael Johnson <mailto:mpj@mpj@...>
> *To:* AT91SAM7@AT91... <mailto:AT91SAM7@AT91...>
> *Sent:* Monday, November 14, 2005 11:04 PM
> *Subject:* Re: [AT91SAM7] CrossConnect and CrossWorks anyone? I
> need help with first download
>
> Hi Henk,
>
> The loader in the current CrossWorks product doesn't clear lock
> bits - I
> can send you an updated one if you want. Also the latest Segger
> J-Link
> firmware doesn't want to run the SAM7S reset script which we are
> investigating.
>
> Regards
> Michael
>
> > I still have unresolved issues on why I am receiveing verify
> errors on
> > our SAM764's. If you find anything out please post.
> >
> > Thanks.
> >
> > -Henk
> >
> >
> > ----- Original Message -----
> > *From:* vt_snapshot <mailto:vt_snapshot@vt_s...>
> > *To:* AT91SAM7@AT91... <mailto:AT91SAM7@AT91...>
> > *Sent:* Saturday, November 12, 2005 6:32 PM
> > *Subject:* [AT91SAM7] CrossConnect and CrossWorks anyone? I need
> > help with first download
> >
> > Hello Everyone,
> >
> > I'm new here. I just got started on my first ARM project after
> > spending years on the Atmel AVR family.
> > I bought the CrossWorks for ARM IDE and the Cross Connect JTAG
> > adapter.
> >
> > I'm trying to get my first test program to download.
> > It sees the Cross Connect USB adapter and even can read my
> target
> > device.
> > It says downloading "Loader.exe" to USB CrossConnect.
> > It passes that OK.
> > It's when it downloads my test program into into the SAM7S64
> that it
> > gets a verify error.
> >
> > I'm told there might be a possible Flash programming issue
> with the
> > SAM764 at Atmel right now. Has anyone else seen this or had
> problems
> > with the combo of tools I'm using?
> >
> > I've tried a few different crystals (16MHz, 8MHz, 6MHz) and
> also tried
> > a number of fast and slow JTAG clocking speeds.
> > Same problem each time.
> >
> > Any suggestions to a first timer on the ARM?
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
> > >.
> >
> >
> >
>
> >
> >. >
>




-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tom Walsh wrote:
> I have posted my project for the MMC FAT16 DOS driver system. This is
> build on NewLib stubs and the RDCF2 filesystem driver code. Also, the
> project has support for the gettimeofday() and settimeofday() library
> functions, as well as the fopen(), fclose(), fread(), fwrite(), etc..
>
> The site is http://openhardware.net
>
> and for the impatient:
> <http://www.openhardware.net/?title=RDCF2%20DOS%20FAT%20Filesystem%20for%20LPC2138&dir=rdcf2&file=rdcf2lpc2138.html>

This is cool stuff. Also nice to release it under BSD style license!

By the way, I think the Keil USB mass storage example for LPC214x
would be a nice complement to this software, see:
http://www.keil.com/download/docs/307.asp
This would allow you to use the LPC to write files on the SD/MMC
card, then plug the LPC into a PC\'s USB port and let the PC
access the SD/MMC card like it was a removeable drive (and read
the files).
The device layer needs to be sufficiently independent, which
already seems to be the case in your code, although the API
probably needs to be a bit more elaborate. For example not just
read / write sector, but also functions to get card info (for the
SCSI INQUIRY command) and to get the size of the card (for the
SCSI GET CAPACITY command), etc.

I am myself thinking of using FAT32. I found this driver (GPL)
that already provides FAT32 read support:
http://www.robs-projects.com/filelib.html
I am investigating if it is possible to add write support to it.

There really should be something small, portable and configureable
for FAT like lwIP (light-weight IP) is for embedded TCP/IP stacks.
Would be cool to call that "light-weight FAT" :)

All the best,
Bertrik Sikken
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDe3W/ETD6mlrWxPURAmYdAKC50Syy5LrykBWvzaHoLhUYwyvJqACbBpBf
582ttm7mNkF9+4Uh2gZfiOo=
=R618
-----END PGP SIGNATURE-----



Al,
 
Thanks. I called Lloyd and he didn't have much to say.  I don't understand why it is so difficult to get help with this.
 
-Henk
 
----- Original Message -----
From: Al Welch
To: A...@yahoogroups.com
Sent: Wednesday, November 16, 2005 12:02 PM
Subject: RE: [AT91SAM7] CrossConnect and CrossWorks anyone? I need help with first download

Hi Henk
 
Reminder that the Atmel FAE in your area is as shown below.  Perhaps you should invite him to drop by and see what is going on?
 
Regards,
 
Al Welch
 

=======================================================

Lloyd Nickens Atmel Corporation

Applications Engineer 8101 Kaiser, Suite 140

l...@atmel.com Anaheim, CA 92808

Cell: (714)307-7004

PHONE:(714)450-1207

FAX: (714)282-0500

http://www.atmel.com

=======================================================



From: A...@yahoogroups.com [mailto:A...@yahoogroups.com] On Behalf Of Henk Visser
Sent: Wednesday, November 16, 2005 11:53 AM
To: A...@yahoogroups.com
Subject: Re: [AT91SAM7] CrossConnect and CrossWorks anyone? I need help with first download

I have tried but I am getting zero information from them.
 
-Henk
 
----- Original Message -----
From: Michael Johnson
To: A...@yahoogroups.com
Sent: Tuesday, November 15, 2005 7:29 PM
Subject: Re: [AT91SAM7] CrossConnect and CrossWorks anyone? I need help with first download

Hi Henk,

Sorry - I thought you were using CrossWorks. Have you talked to IAR or
ATMEL about this?

Regards
Michael

> Mike,

> I am using the IAR embedded workbench.  Have you heard anything about
> IAR and the issues I a having?

> Thanks.

> -Henk

>
>     ----- Original Message -----
>     *From:* Michael Johnson <mailto:m...@rowley.co.uk>
>     *To:* A...@yahoogroups.com <mailto:A...@yahoogroups.com>
>     *Sent:* Monday, November 14, 2005 11:04 PM
>     *Subject:* Re: [AT91SAM7] CrossConnect and CrossWorks anyone? I
>     need help with first download
>
>     Hi Henk,
>
>     The loader in the current CrossWorks product doesn't clear lock
>     bits - I
>     can send you an updated one if you want. Also the latest Segger
>     J-Link
>     firmware doesn't want to run the SAM7S reset script which we are
>     investigating.
>
>     Regards
>     Michael
>
>     > I still have unresolved issues on why I am receiveing verify
>     errors on
>     > our SAM764's. If you find anything out please post.
>     >
>     > Thanks.
>     >
>     > -Henk
>     >
>     >
>     >     ----- Original Message -----
>     >     *From:* vt_snapshot <mailto:v...@yahoo.com>
>     >     *To:* A...@yahoogroups.com <mailto:A...@yahoogroups.com>
>     >     *Sent:* Saturday, November 12, 2005 6:32 PM
>     >     *Subject:* [AT91SAM7] CrossConnect and CrossWorks anyone? I need
>     >     help with first download
>     >
>     >     Hello Everyone,
>     >
>     >     I'm new here.  I just got started on my first ARM project after
>     >     spending years on the Atmel AVR family.
>     >     I bought the CrossWorks for ARM IDE and the Cross Connect JTAG
>     >     adapter.
>     >
>     >     I'm trying to get my first test program to download.
>     >     It sees the Cross Connect USB adapter and even can read my
>     target
>     >     device.
>     >     It says downloading "Loader.exe" to USB CrossConnect.
>     >     It passes that OK.
>     >     It's when it downloads my test program into into the SAM7S64
>     that it
>     >     gets a verify error.
>     >
>     >     I'm told there might be a possible Flash programming issue
>     with the
>     >     SAM764 at Atmel right now. Has anyone else seen this or had
>     problems
>     >     with the combo of tools I'm using?
>     >
>     >     I've tried a few different crystals (16MHz, 8MHz, 6MHz) and
>     also tried
>     >     a number of fast and slow JTAG clocking speeds.
>     >     Same problem each time.
>     >
>     >     Any suggestions to a first timer on the ARM?
>     >
>     >
>     >
>     >
>     >
>     >
>     >
>     >
>     >   
>    
>     >     >.
>     >
>     >
>     >   
>    
>     >    
>     >.>