www.8devices.com
View unanswered posts | View active topics It is currently 27 Apr 2024, 20:45



Reply to topic  [ 3 posts ] 
 Freeing SPI pins to GPIO 
Author Message

Joined: 07 Jul 2012, 16:16
Posts: 4
Hi,

I've patched and compiled an avrdude version to run on Carambola, using SPI pins as GPIO, but I'm having the following message when I try to run: "Can't export GPIO 3, already exported/busy?: Device or resource busy avrdude done. Thank you."

ps returns ramips-spi on process listing. I think this app/driver is locking GPIO3 to GPIO6. I tried io 0x10000060 0x1f, but same error happened. I think ramips-spi is these GPIO pins, but I don`t know how to remove it. I have tried to remake image without spi-dev and flash again, but ramips-spi still there.

Could anyone give a hint?

Thanks,

Fabio


21 Apr 2013, 22:14
Profile

Joined: 07 Jul 2012, 16:16
Posts: 4
* I think ramips-spi is locking these GPIO pins, but I don`t know how to remove it.


22 Apr 2013, 12:38
Profile

Joined: 07 Jul 2012, 16:16
Posts: 4
Hi,

I couldn't use SPI lines as GPIOs to program AVR with avrdude. I change AVR ISP lines to GPIOs 14, 13, 12 and 11, that are shared with UARTF (ttyS1). After some trouble with GPIO numbers, it works.

However, I think that are something locking GPIO lines shared with SPI, because, from user space, isn't possible to use them as GPIO.

Fabio


24 Apr 2013, 02:06
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Protected by Anti-Spam ACP Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.