AVR32 avr32program error DFU ISP

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

Hi there, I searched the forum for my issue but haven't found a solution...

I am trying to use Cygwin and avr32program to load my DFU ISP but I'm getting some errors:

Quote:
bash-3.2$ avr32program program -finternal@0x80000000,512Kb -cxtal -e -v -O0x80000000 -Felf DFU_ISP.elf

Connected to JTAGICE mkII version 5.35, 5.35 at USB.

Flash chip was not added.
Error reading memory word from 0xfffe1408.
SAB read from address 0x5fffe1408 failed.
sabRead:
The command was not understood by the JTAGICE mkII unit.

I built the ELF file using AVR32 Studio and I'm using framework 1.3.0 on a UC3B rev. F chip (not ES). I have used the shell script to configure the user flash page for startup IO condition/pin. I have also programmed the fuses just fine using avr32program.

Any ideas? I'm in some pretty big haste, surprise surprise!

-Anders

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

Ohhhhhhh, I was using the wrong -c option!

Per the "avr32program help program" command:

Quote:
-c, --clock

Specify CPU clock source to use when programming (support limited to UC3 parts).

Valid clock sources are 'xtal' (crystal connected to osc0), 'extclk' (external clock connected to osc0), 'int' (internal RC oscillator).

My board has a crystal attached to OSC1, not OSC0. So I have to use the internal RC oscillator as a clock source when programming. Now it's loading fine!

Thanks guys,

Anders

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

UPDATE:

Another issue to keep in mind regards the isp_cfg.bin file that you can generate when you run the configuration word script (isp_cfg.sh):

If you give the script a filename argument, the file output is in ASCII, and is NOT a straight binary file. You must use a hex editor to create a 4 byte file with the configuration word in it. If I have time I'll tweak the isp_cfg.sh script to spit out a proper binary file so you can directly upload it into the MCU.

Cheers,

Anders

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

Hello Anders,
btw, how can i run isp_cfg.sh script?
i'm just facing bootloaders, and i couldn't understand how to get that script working.
thanks, Jeff.

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

Try to get the doc7745 from atmel.com

-sma

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

Hi sma,
ok, now I got the point. I've read that document and I was thinking I had to run the script from a command line, but isp_cfg.sh it's a script used by AVR32 Studio, with a nice GUI in contextual menu of JTAG target.

many thanks, Jeff.