LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 03-15-2012, 05:16 AM   #1
elico
Member
 
Registered: Dec 2011
Posts: 145

Rep: Reputation: Disabled
embedded board question


Hi all

How do I program the micro-controller registers of an embedded
linux based board ?

The registers have fixed internal memory address
so for example if a register with absolute physical address
of 100 , how do I write a byte to it with linux based eclipse compiler for example ?

Thanks
EC
 
Old 03-15-2012, 06:38 AM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Hi,

You may need to delve into the assembler language of the processor used on the board. Every chip/processor type has a different language. But, some suggestions come to mind, one better one is: use a simulator. The next one is: read up on the documentation of the board/processor, without RTMF-ing you, dont misunderstand. The point is, you did'nt mention what board/CPU you use, so, we're all in the blank here

By the way, what are the specs? What board/CPU?

Let's see where thing one splats down

Thor
 
Old 03-15-2012, 06:45 AM   #3
elico
Member
 
Registered: Dec 2011
Posts: 145

Original Poster
Rep: Reputation: Disabled
My question is general for linux based embeded boards like haukboard.com

What linux related C commands should be used ? mmap , other , in what way ?

Thanks
EC
 
Old 03-17-2012, 06:46 AM   #4
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Hi, I did not find haukboard, but did find hawkboard (typo??) - there is a beginners guide, did you know?

I looked at it myself, always had a soft spot for controllers...

Thor
 
Old 03-17-2012, 09:49 AM   #5
cnxsoft
Member
 
Registered: Nov 2010
Location: Thailand
Distribution: Fedora 12, Ubuntu 10.10
Posts: 166

Rep: Reputation: 29
You need to do this via a driver. If the driver does not exist, you need to write a driver to access the registers. Then in your application, you can open the driver and read/write registers. In case you do not know where to start, have a look at Linux Device Drivers, Third Edition e-book http://lwn.net/Kernel/LDD3/.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
power down on an embedded board knobby67 Debian 2 09-05-2018 11:27 PM
embedded board question elico Linux - Software 8 02-19-2012 02:47 PM
Kernel Testing using LTP on Beagle board (ARM based Embedded Dev Board) Rajender.G Linux - Newbie 0 07-27-2011 05:19 AM
WIFI embedded board Suraj Swami Linux - Networking 1 03-29-2010 12:05 AM
gigabit embedded board taltman Linux - Embedded & Single-board computer 2 02-23-2008 10:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 12:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration