Login

Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.

ARM Community: [DS-5] Accessing VE RTSM peripherals - ARM Community

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[DS-5] Accessing VE RTSM peripherals Rate Topic: ***-- 1 Votes

#1 User is offline   Wannes 

  • Member
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 17-September 12

Posted 17 September 2012 - 08:33 PM

I've downloaded an evaluation version of the DS-5 IDE to start learning some assembly, but I keep having problems trying to access peripherals.

For instance, I've tried accessing the timer0 control field using:
ldr r0, =0x1C110000 @ defined in DUI0575D VE RTSM model memory map
control .req r1
ldrb control, [r0, #8] @ load Timer1Control byte with offset 8, as defined in DDI0271


Yet I'm always presented with a Data Abort Exception.
I've tried to access the UART0 Line Control Register as well:
ldr r0, =0x1c090000
ldr r2, [r0, #0x02c]


Unfortunately I get a Data Abort Exception once again.
What am I doing wrong?

Thanks
1

#2 User is offline   SamEllis 

  • Contributor
  • PipPip
  • Group: Members.
  • Posts: 52
  • Joined: 28-November 11

Posted 18 September 2012 - 06:56 AM

It seems to work for me. I can enter 0x1C110000 into the Memory view and see data values instead of errors. Can I check with model you are actually running? There are two models supplied with DS-5. The model named RTSM_VE_CortexA9x4 is the only supplied model based on Versatile Express (VE). The other model named Cortex-A8 RTSM is based around Emulation Baseboard (EB). The VE and EB boards have different memory maps. If I try to view address 0x1C110000 in the debugger's Memory view when connected to the EB model then I don't see any values. If I use the correct address of timer 0 on the EB board, 0x10010000, then values are displayed.

If you want further information on the EB memory map, then you can find the user guide here:

http://infocenter.ar...411d/index.html
1

#3 User is offline   Wannes 

  • Member
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 17-September 12

Posted 18 September 2012 - 12:36 PM

Ha. If only I'd known (or at least had any indication of the emulated board being used).

Thank you very much for the tip, after selecting the correct RTSM everything works as expected.
1

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic