TOP
SSV Software Systems Register  Register
Log in to check your private messages  Log in to check your private messages
Startseite FAQ Search Mitglieder Profile  Log in 
SSV Support-Forum
Direkter Zugriff auf die GPIO-Register

 
Post new topic   Reply to topic    SSV-Forum Forum Index >>> DNP/2110
<<< Previous topic - Next topic >>>  
Display posts from previous:   
Author Message
cra



Joined: 19 May 2007
Posts: 6

PostPosted: 21.09.2007, 22:09    Post subject: Direkter Zugriff auf die GPIO-Register Reply with quote

Hallo,
wie kann ich auf die GPIO – Register (Port A) direkt zuzugreifen (mittels Zeiger) ohne die Adressen zu mappen (pGPIO_BASE = pMapmemory(0x40E00000, 0x00001000))

Ein Versuch endet mit
>>>
pc : [<0000a200>] lr : [<0000a1e4>] Not tainted
sp : bf3ffb64 ip : 400e2980 fp : bf3ffb70
r10: 00349080 r9 : 00000000 r8 : 00000000
r7 : 00000000 r6 : 00000000 r5 : 00000000 r4 : 00000000
r3 : 0033e0a8 r2 : 4001600c r1 : 402a7b20 r0 : 00000000
Flags: nZCv IRQs on FIQs on Mode USER_32 Segment user
Control: 397F Table: A04F0000 DAC: 00000015
Segmentation fault
<<<

Viele Grüße
cra
Back to top
View user's profile Send private message
kdw



Joined: 05 May 2006
Posts: 1460

PostPosted: 26.09.2007, 07:21    Post subject: Segmentation Fault … Reply with quote

Hallo CRA.

Die Register liegen im Speicher-Adressraum der ARM-CPU und sind durch die MMU geschützt. Daher der „Segmentation Fault“ … Jeder direkte Zugriff aus einer Anwendung im User Space erzeugt eine solche Schutzverletzung.

Gruß

KDW
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SSV-Forum Forum Index >>> DNP/2110 All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

SSV Software Systems GmbH

Dünenweg 5
30419 Hannover

Fon: +49(0)511  ·  40 000-0
Fax: +49(0)511  ·  40 000-40

sales@ssv-embedded.de


Impressum    ·    Datenschutz    ·    AGB

© 2023 SSV SOFTWARE SYSTEMS GmbH. Alle Rechte vorbehalten.

ISO 9001:2015