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  [ 7 posts ] 
Author Message
 Post subject: AT91SAM9XE512 How program - Programming Software
PostPosted: Mon Dec 19, 2011 1:26 pm 
Offline

Joined: Mon Dec 19, 2011 1:14 pm
Posts: 8
Hello mate,
I must program arm SAM9XE512 for thesis project; this is my first time I program an Atmel. Could you help me? Can I program it without jtag but only by usb? Which is the software to program it?Sam-ba?
Thanks in advance!


Top
 Profile  
 
 Post subject: Re: AT91SAM9XE512 How program - Programming Software
PostPosted: Mon Dec 19, 2011 1:33 pm 
Offline

Joined: Thu Dec 02, 2004 2:28 pm
Posts: 454
[quote="scanati87"]Hello mate,
I must program arm SAM9XE512 for thesis project; this is my first time I program an Atmel. Could you help me? Can I program it without jtag but only by usb? Which is the software to program it?Sam-ba?
Thanks in advance![/quote]
with sam-ba you can program the internal flash, but i would recommend to buy an jtag-ice because of the possibility to use it for debugging too.
regards
gerhard


Top
 Profile  
 
 Post subject: Re: AT91SAM9XE512 How program - Programming Software
PostPosted: Mon Dec 19, 2011 1:45 pm 
Offline

Joined: Mon Dec 19, 2011 1:14 pm
Posts: 8
[quote="gerhardf"]
with sam-ba you can program the internal flash, but i would recommend to buy an jtag-ice because of the possibility to use it for debugging too.
regards
gerhard[/quote]

then can I program it without load any firmware for usb comunication?What programming tool do you advice me?Have you got any example code?Thanks.


Top
 Profile  
 
 Post subject: Re: AT91SAM9XE512 How program - Programming Software
PostPosted: Mon Dec 19, 2011 2:27 pm 
Offline

Joined: Thu Dec 02, 2004 2:28 pm
Posts: 454
[quote="scanati87"]
then can I program it without load any firmware for usb comunication?What programming tool do you advice me?Have you got any example code?Thanks.[/quote]
sam-ba is already included in the internal rom. you only have to be sure that GPNVMBit[3] = 0 (which is done by erasing the flash). after flashing you have to switch GPNVMBit[3] = 1 to execute from flash.

if you use the jtag-ice (like j-link or sam-ice) you can program the flash without erasing and setting GPNVMBit[3].

regards
gerhard


Top
 Profile  
 
 Post subject: Re: AT91SAM9XE512 How program - Programming Software
PostPosted: Mon Dec 19, 2011 4:16 pm 
Offline

Joined: Mon Dec 19, 2011 1:14 pm
Posts: 8
[quote="gerhardf"]
sam-ba is already included in the internal rom. you only have to be sure that GPNVMBit[3] = 0 (which is done by erasing the flash). after flashing you have to switch GPNVMBit[3] = 1 to execute from flash.

if you use the jtag-ice (like j-link or sam-ice) you can program the flash without erasing and setting GPNVMBit[3].

regards
gerhard[/quote]
Perfect, what program do you advice me to write the code? Have you got any example?
Regards,
Antonio.


Top
 Profile  
 
 Post subject: Re: AT91SAM9XE512 How program - Programming Software
PostPosted: Mon Dec 19, 2011 4:26 pm 
Offline

Joined: Sat Oct 30, 2010 6:04 pm
Posts: 574
>>Perfect, what program do you advice me to write the code? Have you got any example?

Download the dev kit materials (AT91SAM9XE-EK) and at91lib.

You can use tool chains from Keil or IAR, Keil has examples for most of AT91SAM9 boards/families.

You could also use GNU/GCC or Linux.

But honestly it sounds like you need to learn to walk before running. Crawl the ATMEL sites, download and digest the technical documentation for the chip, peripherals and ARM9.


Top
 Profile  
 
 Post subject: Re: AT91SAM9XE512 How program - Programming Software
PostPosted: Thu Dec 29, 2011 12:56 pm 
Offline

Joined: Mon Dec 19, 2011 1:14 pm
Posts: 8
Hi, Thanks your precoius help. I already downloaded and read datasheet; I've prepared the schematic (in attach) to flash with Sam-ba.

To write the code to flash with sam-ba I downloaded MDK-ARM, correct??

An other advice: I would visualize final result on LCD, which is the easiest way to use it?

Thanks in advance.


Attachments:
Schematic.png
Schematic.png [ 207.54 KiB | Viewed 57133 times ]
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 6 guests


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:  
cron