A useful tool — devmem2

Devmem2 is a simple utility to read/write to any memory mapped locations.  It is not available in debian etch but I find the source code (free GNU license) , compiled and run it perfectly on my gesbc debian eth environment.

Build:

$ gcc devmem2.c -o devmem2

To use devmem2 to toggle RTS register of the Serial Port 4 to high (RS485 mode).

./devmem2 0xfffd0004 w 0xc00008c1

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.

%d bloggers like this: