RTD2660
RTD2660 copied to clipboard
Code not working correctly
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.
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
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:
Any Idea about the problem?
PS: PAL/NTSC input seem to works, image is displayed with good color.
Regards
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.
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.
Can you check HDMI enable or not in your code?
Yes HDMI enable should be enabled, I have set _HDMI_SUPPORT to _ON in my PCB definition.
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.
Great , Good Luck @xamix
@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
@uxmanz use keil version 3 and use professional edtion of keil.
@bhura112 Thank you but its not working. It says cannot read project file.
p.s. I have professional edition
@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)
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.
@uxmanz Do you have open the source code yet? I have same problem with you, It's also say Cannot read project file.
@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?
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.
@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!
debug mode is option available in source code in comments you can find description how read / write registers
@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.
Its some sequence You must send to start debug mode. You can find it in uart supporting code.
@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.
@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.