Xplained 1284p programming issue

Go To Last Post
14 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I got a Xplained 1284p board and wanted to read its flash memory (under Windows 10).

I followed the instructions of AVR370 and started following commands:

    mode com5 baud=57600 parity=n data=8

    avrosp –dATmega128 –cCOM5 -rf -ofmega_1284p_xplained_example_read.hex

getting following reply: 

 

AVR Open-source Programmer $Revision: 1163 $ (C) 2004 Atmel Corp.

Serial port timeout set to 5 sec.
An error occurred:
  [Timeout during COM-port read operation!]

 

I made also several tests with AVRDUDE but here too I always got errors.

Any suggestion?

Horst

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

That is a REALLY old app note... 

 

I am guessing you do not have a stand-alone programmer and/or debugger?  I've never heard of AVROSP, but I have used Flip.  I've got a M1284P Xplained lying around somewhere.  I'll post again once I've given it a try.

 

Greg Muth

Portland, OR, US

Xplained Boards mostly

Atmel Studio 7.0 on Windows 10

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Forget AVROSP it's a piece of ancient history. I'd try avrdude if I were you but to start with you need to know which vcom port the board appears as. What does device manager say?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Sorry I didn't get back sooner.  I had no luck whatsoever in using AVROSP, FLIP, or AVRDude.  Then it occurred to me that I may have blown away the bootloader, so I reflashed the MCU using the backup I made the day I got the board.  Still no luck.  I had no problem using the JTAG interface interfaced to the AVR Dragon.

Greg Muth

Portland, OR, US

Xplained Boards mostly

Atmel Studio 7.0 on Windows 10

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Sorry for the delay, but I was abroad in an area with a very bad internet connection.

Please tell me exactly how you made your MCU backup.

I have Atmel-ICE which should be similar to Dragon.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Please tell me exactly how you made your MCU backup.

  1. Connected new Xplained board to working programmer.
  2. Using programming tool inside Atmel Studio (Tools -> Device Programming)
  3. Read FLASH, EEPROM and FUSES to *.hex files
  4. Marked *.hex files as READ-ONLY and put them in a safe place.

Greg Muth

Portland, OR, US

Xplained Boards mostly

Atmel Studio 7.0 on Windows 10

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank you.

But I just see the program without the bootloader code!

Or is it included in the AT32UC3B1256 ?

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

But I just see the program without the bootloader code!

Or is it included in the AT32UC3B1256 ?

 The bootloader code is at the top of the FLASH.  If you have programmed the device you may have erased the bootloader code.

 

The AT32UC3B1256 is acting as nothing more than an USB-to-Serial adapter on this board (no mEDBG, unfortunatly).  

 

I have attached the Demo app (with bootloader), the EEPROM file I made is blank (all FFs).

 

Attachment(s): 

Greg Muth

Portland, OR, US

Xplained Boards mostly

Atmel Studio 7.0 on Windows 10

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

very strange: my device has a completely different code and doesn't seem to have a bootloader.

Enclosed I send you your and my hex files with strings showing that they are related but different.

 

In order to program a bootloader from a hex file you say you use FLIP, but according to its documentation it should work only on XMEGA, UC3 and USB devices. Please confirm.

 

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The difference could be due to rebuilding the demo app from the example project in Atmel Studio and programming the chip using JTAG.  This would have erased the bootloader and, if the demo app version burned into the M1284X boards is older than the example project in Atmel Studio, that could explain coding differences.

 

In order to program a bootloader from a hex file you say you use FLIP, but according to its documentation it should work only on XMEGA, UC3 and USB devices. Please confirm.

 

I don't use FLIP.  I use the programming tool inside of Atmel Studio, although I have used AVRDUDE on ocassion.

 

I'm not sure what you are asking me to confirm. Bootloader code varies from between device families and series.

 

 

Greg Muth

Portland, OR, US

Xplained Boards mostly

Atmel Studio 7.0 on Windows 10

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank you.

I want to write your hex code including the bootloader to my device.

I used AVRDUDE and AVROSP through ATMELICE but I always got errors.

Is there another way?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

 Is there another way?

Yes.  If you have Atmel Studio installed on your Windows 10 machine, you can open an Atmel Studio Command Prompt (or whatever they call it), and use atprogram to program from the command line.  Alternatively, you can open Atmel Studio and use Tools -> Device Programming to get a GUI device programmer.

 

Greg Muth

Portland, OR, US

Xplained Boards mostly

Atmel Studio 7.0 on Windows 10

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank you very much, I found atprogram.exe.

But trying to read mega-1284p.Xplained I got an error (no matching memory segment found on the device .base).

Enclosed I send you the file containing the whole text (read.txt)

Additionally I send you the data which I got with the "info" command (info.txt)

Do you have an idea what may cause the error?

 

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

No matching memory segment found on the device .base

I have no idea what this means...

 

Greg Muth

Portland, OR, US

Xplained Boards mostly

Atmel Studio 7.0 on Windows 10