Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Linux/PROCESSOR-SDK-AM335X: GPIO access from PRU0 and PRU1 simultaneous.

$
0
0

Part Number:PROCESSOR-SDK-AM335X

Tool/software: Linux

I try to toggle some GPIO pins from both PRU's.

PRU0 handels gpio0_3, gpio0_28, gpio0_29, gpio2_2, gpio2_3, gpio2_5

PRU1 handels gpio0_2, ,gpio0_10, gpio0_14, gpio2_22, gpio2_23, gpio2_24

The PRU's set / clear the pins by writing a 1 to the according bit of the GPIO set / reset register.

All works well as long as I run them separately. If I run them both at the same time, the GPIO's get very confused and behave very strange.

I tried a simple semaphore approche via shared ram, to have atomic access to set / reset register, but without success.

Any idea what could be wrong? I'm using ti-processor-sdk-linux-am335x-evm-04.02.00.09.

Thanks Armin


Viewing all articles
Browse latest Browse all 262198

Trending Articles