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

 
 

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

Submitter:  None
Submitted:  Sun 01 Feb 2015 05:13:41 PM UTC
   
 
Category:  Simulation Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Originator Email:  * -email is unavailable- Open/Closed:  Closed
Component Version:  * simulavr
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-02-02 zfrdh Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code