Hi L4 Hackers, My subject seems out of topic, but i don't know where i can ask this kind of thing, and i think there are many people have a knowledge about this subject. I have a problem. I want to directly access GPIO140 (in GPIO5 ball) as input. I have a function to print the value of GPIO5_DATAIN (0x4805 B138). But when i print that out, the value of it still not changed (zero value). I Conclude, the pin still not accepting the input. I have already done these things :
1. Set GPIO5_OE to 0x1 2. See the value of MCSPI1_CS3 Pad Configuration (0x4A10 013C) and it give me value like this (0x011B 001B) which is for GPIO_140 -> MUX_MODE=gpio_140. PULLUDENABLE=0x1(enable). PULLTYPESELECT=0x1(enable).
Which is in my current knowledge, is a right setting for accepting input. But still, it's still not successful So where or what did i miss ? is it still any configuration / address to set ?
I appologize for the Out-of-Topic Subject .Thank you for any answer and suggestion and help.
Am 27.01.2015 um 16:19 schrieb Erry Pradana Darajati:
Hi L4 Hackers, My subject seems out of topic, but i don't know where i can ask this kind of thing, and i think there are many people have a knowledge about this subject. I have a problem. I want to directly access GPIO140 (in GPIO5 ball) as input. I have a function to print the value of GPIO5_DATAIN (0x4805 B138). But when i print that out, the value of it still not changed (zero value). I Conclude, the pin still not accepting the input. I have already done these things :
- Set GPIO5_OE to 0x1
- See the value of MCSPI1_CS3 Pad Configuration (0x4A10 013C) and it give me value like this (0x011B 001B) which is for GPIO_140 ->
MUX_MODE=gpio_140. PULLUDENABLE=0x1(enable). PULLTYPESELECT=0x1(enable).
Which is in my current knowledge, is a right setting for accepting input. But still, it's still not successful So where or what did i miss ? is it still any configuration / address to set ?
I appologize for the Out-of-Topic Subject .Thank you for any answer and suggestion and help.
I would suggest as a first step doing this from U-Boot to get familar with the GPIOs. The commands are mw.l for writing and mr.l for reading. If this works then you can continue with your application and L4.
Martin
Hi,
On 01/27/2015 04:19 PM, Erry Pradana Darajati wrote:
Hi L4 Hackers, My subject seems out of topic, but i don't know where i can ask this kind of thing, and i think there are many people have a knowledge about this subject. I have a problem. I want to directly access GPIO140 (in GPIO5 ball) as input. I have a function to print the value of GPIO5_DATAIN (0x4805 B138). But when i print that out, the value of it still not changed (zero value). I Conclude, the pin still not accepting the input. I have already done these things :
- Set GPIO5_OE to 0x1
- See the value of MCSPI1_CS3 Pad Configuration (0x4A10 013C) and it
give me value like this (0x011B 001B) which is for GPIO_140 -> MUX_MODE=gpio_140. PULLUDENABLE=0x1(enable). PULLTYPESELECT=0x1(enable).
This looks ok.
Do you have your input already connected to the pin? How does your input works?
Maybe I can try your setup later today (no promise).
Matthias.
Which is in my current knowledge, is a right setting for accepting input. But still, it's still not successful So where or what did i miss ? is it still any configuration / address to set ?
I appologize for the Out-of-Topic Subject .Thank you for any answer and suggestion and help.
-- /Regards,/ /Erry Pradana Darajati | *Student of Computer Engineering*/ /*Politeknik Elektronika Negeri Surabaya / EEPIS, Indonesia*/
l4-hackers mailing list l4-hackers@os.inf.tu-dresden.de http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers
l4-hackers@os.inf.tu-dresden.de