bugSimulavr: an AVR simulator - Bugs: bug #44150, special pipe register doesnt work...

 
 

bug #44150: special pipe register doesnt work below 0x20

Submitted by:  None
Submitted on:  Sun 01 Feb 2015 05:13:41 PM UTC  
 
Category: SimulationSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Originator Email: -unavailable-Open/Closed: Closed
Component Version: simulavr

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 03 Feb 2015 04:45:52 PM UTC, comment #3:

So instead of modifying simulavr to have -W and -R use I/O address space, just update the documentation to indicate they take RAM addresses (and therefore must be >0x20)

Anonymous
Tue 03 Feb 2015 04:02:44 AM UTC, comment #2:

That's for ram addressing with LD/ST but not I/O with in/out.

Anonymous
Mon 02 Feb 2015 09:06:25 AM UTC, comment #1:

Address below 0x20 is range for avr registers. It makes no sense to use registers for special io because no c or c++ program will work anymore.

Klaus Rudolph <zfrdh>
Project Administrator
Sun 01 Feb 2015 05:13:41 PM UTC, original submission:

Special pipe registers don't work for addresses 0x00-0x1f.

I modified fred.c:
#define special_output_port (( (volatile char )0x18))
#define special_input_port (( (volatile char )0x19))

I compiled/linked fred.elf, and ran simulavr:
simulavr --device atmega328 -f fred.elf -W 0x18,- -R 0x19,- -T exit
Invalid read access to RWWriteToFile register.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by zfrdh (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 02 Feb 2015 09:06:25 AM UTCzfrdhOpen/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1