Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Beaglebone Pinmux issue: (4 Items)
   
Beaglebone Pinmux issue  
Hello,
I'm trying to figure out how to change a pin mode correctly. I tried these three methods but none works.
1. Change code in init_pinmux.c (included in the BSP) adding some lines like out32(conf_gpmc_ad6         , (MODE(7)));
2. mmap_device_io of the memory where's stored the conf register.
3. mmap_device_memory of the same memory region above.

In points 2 and 3 I'm then using in32 and out32 methods to read and write values, but they seem unfunctional.

Am I missing smth?

Thanks everybody!
Re: Beaglebone Pinmux issue  
>>>in32 and out32 methods... seem unfunctional.
Are you running as root and calling this prior to access...?

ThreadCtl( _NTO_TCTL_IO, 0 );
Re: Beaglebone Pinmux issue  
Sure!  Actually I do a in32(reg) to see the initial state, do an out32(reg, val) with the value required, and another 
in32(reg). The two calls to in32 return the same result.
Re: Beaglebone Pinmux issue  
The only solution I found so far is to change the pin muxing in u-boot and recompile it (+ re-upload to SD) every time. 
That's awkward.