Re: [Mspgcc-users] mspdebug working with .ihex files but not .elf

2012-09-24 Thread Daniel Beer
On Mon, Sep 24, 2012 at 01:30:25PM -0300, Jose Luis Honorato L. wrote:
 I'm writing a basic UART data logger for the msp-exp430f5529 board, and for
 some reason I'm not able to install the generated binary in .elf format
 using mspdebug under Ubuntu 12.04.1 LTS. Anyhow, when generating a copy in
 ihex format using msp430-objcopy the binary is installed correctly. This
 does not happen to every compiled program, just for some. The log when I
 try to load the .elf file is the following:

Hi Jose,

Would you be able to show the output (as below) when you're programming
the HEX file?

 Programming...
 Writing 4096 bytes at 4400 [section: .text]...
 Writing 4096 bytes at 5400 [section: .text]...
 Writing 4096 bytes at 6400 [section: .text]...
 Writing 4096 bytes at 7400 [section: .text]...
 Writing 4096 bytes at 8400 [section: .text]...
 Writing 4096 bytes at 9400 [section: .text]...
 Writing 4096 bytes at a400 [section: .text]...
 Writing 4096 bytes at b400 [section: .text]...
 Writing 4096 bytes at c400 [section: .text]...
 Writing 1700 bytes at d400 [section: .text]...
 Writing   16 bytes at daa4 [section: .data]...
 Writing   24 bytes at 1800 [section: .infomem]...
 Writing  128 bytes at ff80 [section: .vectors]...
 Done, 38732 bytes total
 fet: reply type mismatch
 fet: reset failed
 warning: prog: failed to reset after programming
 fet: reply type mismatch
 fet: final reset failed
 fet: reply type mismatch
 fet: close command failed

Does anything change if you omit the .infomem section from your binary?

- Daniel

-- 
Daniel Beer dlb...@gmail.comwww.dlbeer.co.nz
IRC: inittab (Freenode)PGP key: 2048D/160A553B

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users


Re: [Mspgcc-users] mspdebug working with .ihex files but not .elf

2012-09-24 Thread Jose Luis Honorato L.
Hi Daniel,

The output when programming the ihex binary is the following:

$ sudo mspdebug rf2500 prog bin.ihex
MSPDebug version 0.20 - debugging tool for MSP430 MCUs
Copyright (C) 2009-2012 Daniel Beer dlb...@gmail.com

Trying to open interface 1 on 035
rf2500: warning: can't detach kernel driver: No data available
Initializing FET...
FET protocol version is 30066536
Configured for Spy-Bi-Wire
Set Vcc: 3000 mV
Device ID: 0x5529
  Code start address: 0x4400
  Code size : 131072 byte = 128 kb
  RAM  start address: 0x1c00
  RAM  end   address: 0x43ff
  RAM  size : 10240 byte = 10 kb
Device: MSP430F5529
Code memory starts at 0x4400
Number of breakpoints: 8
Chip ID data: 55 29 14
Erasing...
Programming...
Writing   24 bytes at 1800...
Writing 4096 bytes at 4400...
Writing 4096 bytes at 5400...
Writing 4096 bytes at 6400...
Writing 4096 bytes at 7400...
Writing 4096 bytes at 8400...
Writing 4096 bytes at 9400...
Writing 4096 bytes at a400...
Writing 4096 bytes at b400...
Writing 4096 bytes at c400...
Writing 1716 bytes at d400...
Writing  128 bytes at ff80...
Done, 38732 bytes total


The issue does disappear when removing the .infomem section

$ sudo mspdebug rf2500 prog bin.elf
MSPDebug version 0.20 - debugging tool for MSP430 MCUs
Copyright (C) 2009-2012 Daniel Beer dlb...@gmail.com

Trying to open interface 1 on 035
rf2500: warning: can't detach kernel driver: No data available
Initializing FET...
FET protocol version is 30066536
Configured for Spy-Bi-Wire
Set Vcc: 3000 mV
Device ID: 0x5529
  Code start address: 0x4400
  Code size : 131072 byte = 128 kb
  RAM  start address: 0x1c00
  RAM  end   address: 0x43ff
  RAM  size : 10240 byte = 10 kb
Device: MSP430F5529
Code memory starts at 0x4400
Number of breakpoints: 8
Chip ID data: 55 29 14
Erasing...
Programming...
Writing 4096 bytes at 4400 [section: .text]...
Writing 4096 bytes at 5400 [section: .text]...
Writing 4096 bytes at 6400 [section: .text]...
Writing 4096 bytes at 7400 [section: .text]...
Writing 4096 bytes at 8400 [section: .text]...
Writing 4096 bytes at 9400 [section: .text]...
Writing 4096 bytes at a400 [section: .text]...
Writing 4096 bytes at b400 [section: .text]...
Writing 3310 bytes at c400 [section: .text]...
Writing   18 bytes at d0ee [section: .data]...
Writing  128 bytes at ff80 [section: .vectors]...
Done, 36224 bytes total


Kind regards,
Jose Honorato

On Mon, Sep 24, 2012 at 4:53 PM, Daniel Beer dlb...@gmail.com wrote:

 On Mon, Sep 24, 2012 at 01:30:25PM -0300, Jose Luis Honorato L. wrote:
  I'm writing a basic UART data logger for the msp-exp430f5529 board, and
 for
  some reason I'm not able to install the generated binary in .elf format
  using mspdebug under Ubuntu 12.04.1 LTS. Anyhow, when generating a copy
 in
  ihex format using msp430-objcopy the binary is installed correctly. This
  does not happen to every compiled program, just for some. The log when I
  try to load the .elf file is the following:

 Hi Jose,

 Would you be able to show the output (as below) when you're programming
 the HEX file?

  Programming...
  Writing 4096 bytes at 4400 [section: .text]...
  Writing 4096 bytes at 5400 [section: .text]...
  Writing 4096 bytes at 6400 [section: .text]...
  Writing 4096 bytes at 7400 [section: .text]...
  Writing 4096 bytes at 8400 [section: .text]...
  Writing 4096 bytes at 9400 [section: .text]...
  Writing 4096 bytes at a400 [section: .text]...
  Writing 4096 bytes at b400 [section: .text]...
  Writing 4096 bytes at c400 [section: .text]...
  Writing 1700 bytes at d400 [section: .text]...
  Writing   16 bytes at daa4 [section: .data]...
  Writing   24 bytes at 1800 [section: .infomem]...
  Writing  128 bytes at ff80 [section: .vectors]...
  Done, 38732 bytes total
  fet: reply type mismatch
  fet: reset failed
  warning: prog: failed to reset after programming
  fet: reply type mismatch
  fet: final reset failed
  fet: reply type mismatch
  fet: close command failed

 Does anything change if you omit the .infomem section from your binary?

 - Daniel

 --
 Daniel Beer dlb...@gmail.comwww.dlbeer.co.nz
 IRC: inittab (Freenode)PGP key: 2048D/160A553B

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users


Re: [Mspgcc-users] mspdebug working with .ihex files but not .elf

2012-09-24 Thread Daniel Beer
On Mon, Sep 24, 2012 at 05:15:10PM -0300, Jose Luis Honorato L. wrote:
 The output when programming the ihex binary is the following:
 
 $ sudo mspdebug rf2500 prog bin.ihex
 MSPDebug version 0.20 - debugging tool for MSP430 MCUs
 Copyright (C) 2009-2012 Daniel Beer dlb...@gmail.com
 
 Trying to open interface 1 on 035
 rf2500: warning: can't detach kernel driver: No data available
 Initializing FET...
 FET protocol version is 30066536
 Configured for Spy-Bi-Wire
 Set Vcc: 3000 mV
 Device ID: 0x5529
   Code start address: 0x4400
   Code size : 131072 byte = 128 kb
   RAM  start address: 0x1c00
   RAM  end   address: 0x43ff
   RAM  size : 10240 byte = 10 kb
 Device: MSP430F5529
 Code memory starts at 0x4400
 Number of breakpoints: 8
 Chip ID data: 55 29 14
 Erasing...
 Programming...
 Writing   24 bytes at 1800...
 Writing 4096 bytes at 4400...
 Writing 4096 bytes at 5400...
 Writing 4096 bytes at 6400...
 Writing 4096 bytes at 7400...
 Writing 4096 bytes at 8400...
 Writing 4096 bytes at 9400...
 Writing 4096 bytes at a400...
 Writing 4096 bytes at b400...
 Writing 4096 bytes at c400...
 Writing 1716 bytes at d400...
 Writing  128 bytes at ff80...
 Done, 38732 bytes total

Looks like info memory needs to be programmed first. Have you checked
that the info memory does get programmed correctly when using the ihex
file?

Also, would it be possible for you to send me a copy of your ELF binary,
or a similar test case (off-list)?

- Daniel

-- 
Daniel Beer dlb...@gmail.comwww.dlbeer.co.nz
IRC: inittab (Freenode)PGP key: 2048D/160A553B

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users