Digole
Digital Solutions
iDigole Buyer ProtectioniDigole Buyer
Protection
My shopping cart
0 Items:
Secure Checkout
Top Rated Plus
Visit Our Live Auctions
99.9% Customer's Satisfaction
 
Forum : Digole Serial Display :

 Search Forum.. 
 Creat New Topic   Reply 

Program doesn't run on power up, only on re-upload to board

Hello,

I'm having trouble with 1.8" Colour LCD with Arduino. When I upload a program, say the 3D Cube demo (with Ver 33 added and SPI chosen), it works as expected. However, when I unplug and replug the device, it is stuck on the welcome screen. Resetting the Arduino doesn't fix the problem, but re-uploading the program does.

When I reupload the program, and rest the Arduino, it works fine too. So my thought is that when it's plugged in, there is some error on SPI?

 

Version 3.3 software

 

Thanks

RE:Program doesn't run on power up, only on re-upload to board

 Did you connect the SS pin between Arduino and Display?

If you didn't use SS signal, the data on SPI port usually mis-alignment.

You can try add a delay at the beginning of sketch, and let Arduino start sending data after display done all initiation, eg. display welcome screen and COM config.

RE:Program doesn't run on power up, only on re-upload to board

 Hi,

I'm using another data pin as /SS since I have several SPI devices. I believe when the board reboots, this pin is floating (because during reset it's an input). Could this be the problem? Maybe I need to pull up the /SS with resistor?

RE:Program doesn't run on power up, only on re-upload to board

 This is not a big problem if you controlled the SS pin, please try to delay 300ms before sending data after powering up the module, the SPI port on the module is set up after about 200ms to avoid the pin floating from host controller.

RE:Program doesn't run on power up, only on re-upload to board

 Hi,

My arduino board has a bootloader and I believe it is active for about 2 seconds on power up before the program starts (during these 2 seconds the /SS line will be likely high impedance). Will this be the cause of the problem?

RE:Program doesn't run on power up, only on re-upload to board

 If the screen is frozen when power on, try to remove the cap under 10K resistor, this will accelerate the RST signal.

Copyright Digole Digital Solutions, 2008-2017. All rights reserved.
Powered by Victor Sun