Hello Karsten, On 10/12/2013 10:53 AM, developm...@decotrain.de wrote: > Hello, > > i am not as fast as i want, but today i could setup my > Test-system with an ATMega32 developement board and AMForth. It > does not run. :-( There is nothing transmitted over the RS232. > > First thing i wonder about is when i convert the template.hex > to a binary file: > > $ hex2bin template.hex hex2bin v1.0.9, Copyright (C) 2012 > Jacques Pelletier checksum extensions Copyright (C) 2004 > Rockwell Automation improved P.G. 2007, modified Danny > Schneider,2012 > > Overlapped record detected Overlapped record detected Lowest > address = 00000000 Highest address = 0000777F Pad Byte > = FF 8-bit Checksum = 78 > > After that i programmed successfully the compiled hex-file with > an USBASP and avrdude. > > I could readback the binary and compared it with the converted > file (flash.xxx) It's binary identical. I attached the original > files also (ATMega32.hex).
Well, attaching .hex files does not really help, imho. If you need to attach code, use the .asm or the .lst file(s). If amForth does not display the ok prompt on the serial interface, then check the following: 1. you are aware, that you need to program _2_ files onto the controller template.hex and template.eep.hex without the .eep.hex file, nothing will work. It contains the start positions of the dictionary among other things. 2. is the frequency of the crystal correct in the temlate.asm? Look for the line .equ F_CPU = 8000000 3. is the baud rate in template.asm the same as with your terminal program? .equ BAUD = 9600 4. it the terminal program correctly set to 8 data bits No parity bit 1 stop bit NO hw flow control NO sw flow control If any of these are wrong, it won't work. 5. If none of the above get you closer, can you attach an LED (or scope) to the tx pin? If it does not blink a little just after reset, then your controller does not write anything to the pin and the problem is within your software setup. Be sure to check the users guide on the web page http://amforth.sourceforge.net/UG/linux.html Good luck! Keep going! Erich ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk _______________________________________________ Amforth-devel mailing list for http://amforth.sf.net/ Amforth-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amforth-devel