Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code not working correctly #1

Open
bhura112 opened this issue Oct 11, 2017 · 23 comments
Open

Code not working correctly #1

bhura112 opened this issue Oct 11, 2017 · 23 comments

Comments

@bhura112
Copy link

Sir i am using RTD2660 handmade board and run led blinking program last time now i am using your source code and do some modification in respect of my board like led and buttons .

but when i burn this program to my board, it not working and now i want to reprogram but this is not read and write data to serial flash.

@danyaPostfactum
Copy link
Owner

Sorry, this code is not properly tested. I don't understand some code fragments. This project worked on my PCB800099 (not sure about leds and buttons - i have no control board). I am sorry that your boad I2C has stopped to work. You have to solder wires directly to SPI chip (no need to desolder chip at least on PCB800099) and flash using SPI-flasher or Arduino.
I will test again this project later. Maybe it is actually broken.

You can try another project - https://github.com/danyaPostfactum/RTD2662

@xamix
Copy link

xamix commented Jan 7, 2018

Hello,

@bhura112
I'have tested this code on my PCB800099 and it seem that I can reflash it, so maybe your card have another problem?

@danyaPostfactum
Did you manage to make working the HDMI port, because mine seem to not working:

No Signal "seem to be displayed" and I get half of the screen blue with half OSD displaying and the other is garbage color:
20180107_181140i

Any Idea about the problem?

PS: PAL/NTSC input seem to works, image is displayed with good color.

Regards

@bhura112
Copy link
Author

bhura112 commented Jan 7, 2018

I am not using PCB800099 , I have my own board. I am never using HDMI with this card and another thing is that now my card working properly. .I had found many problems in this firmware so I was changed it accordingly my card. Now it's working fine.

@xamix
Copy link

xamix commented Jan 7, 2018

Hi,

Thank you for your answer,

Can you elaborate about the problem you found on software?
Do you have some source code onto which I can compare change?

Also I resolved the problem on my "Half Screen Blue" as seen in the previous picture, it seem that I misconfigured the _STD_DH_TOTAL variable in my Panel definition.
Now I have a full Blue screen with no signal, but HDMI always not working, no source seem detected.

@bhura112
Copy link
Author

bhura112 commented Jan 7, 2018

Can you check HDMI enable or not in your code?

@xamix
Copy link

xamix commented Jan 7, 2018

Yes HDMI enable should be enabled,
I have set _HDMI_SUPPORT to _ON in my PCB definition.

@xamix
Copy link

xamix commented Jan 8, 2018

Solved problem by using the code proposed by @danyaPostfactum:
https://github.com/danyaPostfactum/RTD2662
In this code HDMI was working but not AV and S-VIDEO.

So I take the new code as a base and in order to make also working AV and S-VIDEO input, I changed the Lib folder with the one of this repository.
It seem that this repository and the other do not use the same library for video input (i.e AV and S-VIDEO).
After cleaning some compile error and replacing call function with "gmi" suffix to "kx" suffix, replacing also "video.c" file, all is working:

I have HDMI + S-VIDEO input which work.

@bhura112
Copy link
Author

bhura112 commented Jan 9, 2018

Great , Good Luck @xamix

@uxmanz
Copy link

uxmanz commented Mar 16, 2018

@xamix can you please share your working code, i have been banging my head with this one.

https://github.com/danyaPostfactum/RTD2660 fails to load in Keil. i have checked v3 v4 and v5

@bhura112
Copy link
Author

@uxmanz use keil version 3 and use professional edtion of keil.

@uxmanz
Copy link

uxmanz commented Mar 16, 2018

@bhura112 Thank you but its not working. It says cannot read project file.

p.s. I have professional edition

@xamix
Copy link

xamix commented Mar 16, 2018

@uxmanz I finally used the code linked by @danyaPostfactum
https://github.com/danyaPostfactum/RTD2662

This code worked out of the box, without any modification for Composite Video input and HDMI.
The only modification I have done is to define my panel which was not already defined.

For information I use uVision from Keil-C51-9.56 which can open the project also without any special settings (all default)

@satanistik
Copy link

Hi
I try to use this code and PCB800099. I have 640x480 18bit TTL panel. Osd work fine but on video signal I have unstable sync and colors. In VGA its only one color displayed properly. Its some method to calculate display parameter like total clk in line? What is properly combination of data bit in 18 and 24bit TTL - colors and MSB-LSB.

@nguyenhuuphuoc1996
Copy link

@uxmanz Do you have open the source code yet? I have same problem with you, It's also say Cannot read project file.

@jeff012
Copy link

jeff012 commented Sep 3, 2018

@satanistik I have same problem with you,Osd work fine but on video signal I have unstable sync and colors. Have you found the root cause?

@satanistik
Copy link

I have idea - use debug mode and try edit register value. In available compiled code sync are better and colours are fine. You can add asembler code and send registers values, compare and find differences.

@jeff012
Copy link

jeff012 commented Sep 4, 2018

@satanistik debug mode?Which tool ?Could you share the tool to me?I only have ISPTool_V3.4.9.1_20170314.exe on hand.Thanks a lot!

@satanistik
Copy link

debug mode is option available in source code in comments you can find description how read / write registers

@jeff012
Copy link

jeff012 commented Sep 5, 2018

@satanistik Do you have any documents about how to read / write registers?I didn't get any words output through UART after i set _DEBUG_EN to _ENABLE and set pin58/59 to TX/RX.

@satanistik
Copy link

Its some sequence You must send to start debug mode. You can find it in uart supporting code.

@jeff012
Copy link

jeff012 commented Sep 11, 2018

@satanistik I think the uart supporting code should be include in MISC.C,am i right? But I can't find any discriptions about sequence.

@ppiotrowski
Copy link

@bhura112 did you fix the problem with reading and writing data to serial flash. I have the same problem, I have tried in several ways.

@bhura112
Copy link
Author

Apologies for the very late reply! It's been quite some time since I worked on this—back in 2017 or 2018. While I don’t remember all the exact details, I can confirm that it worked well at the time. Make sure to select the correct SPI mode and also check the pull-ups on these lines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants