Hi Ian, yes, I understand this.
My question was related to testing hex file R6581_VS_DisplayTestTFTonly1 what was released like month ago. The question was if it needs valid incoming VFD SDI data to run the code or not.
I have BluePill+driver+TFT combo on the bench connected just to lab 5V power supply and the code is not running (nothing on display just back-light on), and my conclusion is that the code really needs valid incoming VFD SPI data for running, regardless it is not using those data at all. If so, then it explains the behavior I see, and it means that using the code for bench only testing is not possible.
Thank you.
Vladimir
Ahhh sorry, I misread..........(I'm busy writing .py for Home Assistant right now!)
> Test HEX files:
> R6581_VS_Display_Test2.hex
> Test writing to the TFT LCD without actual VFD SPI data but actions when a VFD SPI packet is received.
> This initial version will count each time the TFT is updated on the MAIN display, and on the AUX display it will count each time data is captured from the R6581 SPI bus.
> Any VFD SPI error codes are reported. TFT LCD refresh is set to 100ms. See R6581_VS_Display_Test2.hex attachment below.
> R6581_VS_DisplayTestTFTonly1.hex
> TFT counter only, VFD SPI is disabled.
My memory is bad.....but from my notes, R6581_VS_DisplayTestTFTonly1.hex, you should get something without VFD data (disabled VFD SPI). It just writes to the TFT.
I can't confirm as I don't have that standalone setup handy.
Ian.
Hello Ian,
I have got in trouble. I made many changes to find that random issue, but now my setup stopped working at all.
Actual behavior:
1. When I start my meter, I can see (using oscilloscope) communication on LCM.SCK, LCM.MOS1, LSM.MIS0 and LSM.CS. I guess this is SPI3 bus for COG on TFT.
2. After like 2 seconds communication stops and LCD backlight is on, and there is horizontal and vertical white line on screen (see picture). As you described in one of your previous messages this should be proper behavior as display just needs to be initiated once.
3. and that's it, nothing more displayed
I am probing different signal:
1. SPI VFD data (V.SDA, V.SCK and V.RESTART) - I can see communication on all 3 lines
2. L.SCK, L.DIN and L.CS (this should be SPI2 = SPI TFT) - there is no communication at all and this is the reason why LCD is blank (except those two while lines), also green LED on BluePill is not blinking. Should it be blinking when receiving valid VFD data?
I have two suspicions what has happened:
1. my ST-LINK V2 programmer is not working properly and either programmed BluePill incorrectly or even killed that partially - I already have 3 pieces of BluPills and they behave the same way now
2. I tried service menu on R6581 - during turn-on hold HOME button. And then I initiated display test what was working. But during next turn-on I was not able to initiate this service menu any more and after few tries to reprogram BluPills, now display is not working any more
I have ordered another BluePill and also ST-LINK to try again, this should address suspicion 1.
Can you try service menu described in suspicion 2 if it works properly for you, please?
Sorry, I am not able to test those new HEX files you created with different TFT timing until I resolve my issue.
Thank you.
Vladimir
PS: I have two sets of display-driver-your board and 3 BluePills, all combinations behave the same.