Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
f2cf1g Newbie Joined: 18/11/2016 Location: United KingdomPosts: 13
Posted: 07:45am 19 Oct 2017
Copy link to clipboard
Print this post
Hi forum. I am getting the error message:
Error: Pin 2 is reserved on startup
after entering this command line on the console prior to running an LCD test program:
OPTION LCDPANEL ILI9341,L,2,7,5
I am doing this in the context of a program which has previously run OK. Who or what has reserved this pin and for what? The firmware version is 5.04.05 on a 28 pin chip. Thanks.
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9749
Posted: 08:15am 19 Oct 2017
Copy link to clipboard
Print this post
Hi there.
Type OPTION LIST and press ENTER. This will show you what options are currently set, and you can then see what previously set option has reserved pin 2.
Once you see which one has reserved pin 2, OPTION DISABLE that one, to free up pin 2 again.
That SHOULD do it.Smoke makes things work. When the smoke gets out, it stops!
Phil23 Guru Joined: 27/03/2016 Location: AustraliaPosts: 1667
Posted: 10:10am 19 Oct 2017
Copy link to clipboard
Print this post
Presume you are meaning either...
OPTION LCDPANEL DISABLE or OPTION TOUCH DISABLE
Once you've determined what's using pin 2.
Also, OPTION RESET reads as thought it would reset everything.
Cheers.Edited by Phil23 2017-10-20
f2cf1g Newbie Joined: 18/11/2016 Location: United KingdomPosts: 13
Posted: 11:52am 19 Oct 2017
Copy link to clipboard
Print this post
Hi Grogster and Phil23 All has become clear now, many thanks. I don't know why I didn't come across this issue when I was developing the code nine months or so ago. Anyway, its all running as it used to, thanks again. Roy