Re: [avr-gcc-list] crc of program memory

2006-03-31 Thread Uwe Fechner
Hello, Thank you for the hint to srecord. I tried it with the following command: srec_cat input.hex -Intel -Little_Endian_CRC32 \ -max input.hex -Intel -Output out.hex I get the following warning: srec_cat: input.hex: 658: warning: no start address record Line 658 is the last line and has

Re: [avr-gcc-list] crc of program memory

2006-03-31 Thread Uwe Fechner
Hello, some more info: The following command was used to create the hex file: Creating load file for Flash: rtosdemo.hex avr-objcopy -O ihex -R .eeprom rtosdemo.elf rtosdemo.hex This is the output of srec_info: [EMAIL PROTECTED] ~/workspace/AVR2 $ srec_info rtosdemo.hex Format: Motorola

Re: [avr-gcc-list] crc of program memory - SOLVED -

2006-03-31 Thread Uwe Fechner
Hello, I solved my problems by switching form intel hex format to motorola srecord format: I made the following changes to the makefile: # Output format. (can be srec, ihex, binary) FORMAT = srec # Create final output files (.hex, .eep) from ELF output file. %.hex: %.elf @echo @echo

RE: [avr-gcc-list] Casting

2006-03-31 Thread Ron
On Mar 28, 2006, at 3:46 AM, Ron wrote: I am using a long as a parameter in which I pass various entities, sort of like a mailbox. Mostly they are longs, sometimes integers, and sometimes I need to pass a pointer. In the latter case a cast to long does not wholly satisfy the

[avr-gcc-list] Program Listing With C Comments

2006-03-31 Thread Albert Pion
How do I get a program listing with my C source code included as comments? I've tried about everything I can think of (including the --Wa,-alhd option) but have been unable to get it to work. ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org

Re: [avr-gcc-list] Program Listing With C Comments

2006-03-31 Thread Daniel O'Connor
On Saturday 01 April 2006 08:35, Albert Pion wrote: How do I get a program listing with my C source code included as comments? I've tried about everything I can think of (including the --Wa,-alhd option) but have been unable to get it to work. Is this what you want? avr-objdump -S foo.elf

Re: [avr-gcc-list] Accessing the created program code

2006-03-31 Thread Uwe Fechner
Joerg Wunsch wrote: Have a look at the output of avr-nm -n your ELF file. It's not clear to me whether you're interested in _etext (== __data_load_start) or in __data_load_end. The area between __data_load_start and __data_load_end contains the initializers for .data. The symbol

Re: [avr-gcc-list] Accessing the created program code

2006-03-31 Thread Joerg Wunsch
Uwe Fechner [EMAIL PROTECTED] wrote: I didn't find a header file, where this symbol is declared. It's not declared anywhere, you have to declare it yourself. That symbol is only defined by the linker at link-time. extern void *__data_load_end; extern unsigned int __data_load_end; Whatever