Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
March 29, 2024, 01:47:48 01:47


Login with username, password and session length


Pages: [1]
Print
Author Topic: AVR & Proteus help  (Read 3537 times)
0 Members and 1 Guest are viewing this topic.
sam_des
Senior Member
****
Offline Offline

Posts: 253

Thank You
-Given: 124
-Receive: 146


« on: November 20, 2008, 04:26:17 04:26 »

Hello,

When I run my Imagecraft/Crossworks/Codevision compiled code under Proteus mega8, it generates error--

Quote
[AVR CORE] PC=0xnnnn PC=0020 is outside ROM space   U1      m.mmmmS
Where 0xnnnn, gives adresses which are beyond m8 ROM space.

I noted that this error is generated whenever I read from a ROM table. If I remove this particular instruction no more errors are generated.
BTW, AVRStudio does not cause any errors.

What may be the cause ? Is it this ...
Code:
   ldi    r30,low(rom_table*2)
   ldi    r31,high(rom_table*2)                ; Now Z may be greater than MAX_ROM
   lpm  r16,z+

Interestingly, same code compiled under IAR does NOT cause any errors with ISIS.

Thanks,
sam_des
Logged

Never be afraid to do something new. Remember Amateurs built the Ark, Professionals built the Titanic !
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC