At 03:30 AM 1/12/04 -0800, you wrote:
> Hi John, I have tried checking my interrupt vectors and stacks. I have
>no problem with these cos I'm using .EQU labels. Any changes in the address
>will be replaced when I use m16def.inc I have also changed the rjmp and
>rcall command to jmp and call. But still not working.
Just for fun I reassembled a working program using the 90S8535 with
the Mega16 definitions. After changing a couple of lines that refer to
'ramend'
where the stack pointer starts off (0x45f in the m16 vs 0x25f in the 8535),
the program worked well in the ICE200 and I would say that no change
would have been needed if a had a real m16 (the ICE has no ram past 0x25f
as it is only intended for the 8535, so the stack pointer doesn't work).
The interesting thing is that I did NOT get any warnings about rcall and
rjmp as
the program is still within the 8K boundaries. Is any part of your program
straying into the upper 8k?
Regards
John Samperi
******************************************************
Ampertronics Pty. Ltd.
11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
Tel. (02) 9674-6495 Fax (02) 9674-8745
Email: samperi@ampertronics.com.au
Website http://www.ampertronics.com.au
* Electronic Design * Custom Products * Contract Assembly
******************************************************Message
RE: [AVR-Chat] Migrating from ATmega8535L to ATmega16L
2004-12-01 by John Samperi
Attachments
- No local attachments were found for this message.