Display Image on NHD-4.3-480272FT-CTXL-T 4.3” EVE2 TFT Module (SPI) #115
Replies: 4 comments 4 replies
-
Hi,
This one? What the heck? :-) At this point the logo should be your least concern, or converting images. So you need a target abstraction for this thing. I would try to start with a simple example program that already compiles. Then I would add a new target file, name it perhaps EVE_target_Kria_K26.h, perhaps derived from EVE_target_template.h. Add a new target to EVE_target.h to include EVE_target_Kria_K26.h with likely at least including <stdint.h>. Then figure out the GPIO, modify the target header accordingly. Next modify spi_transmit() to work with your hardware and check if this works from your main.c: The SPI clock in this phase must be below 11MHz. The next function that needs to work is spi_receive(), for this you could connect MISO and MOSI for a loopback, if you are not sure that the pins are configured correctly add a series resistor. uint8_t out = 0; loop When the target header works, go further, try Check the result with the logic-analyzer. If that works, call EVE_init() and if this looks good, connect the display and use tft.c as is. Hmm, wow, good luck! :-) |
Beta Was this translation helpful? Give feedback.
-
Hello, |
Beta Was this translation helpful? Give feedback.
-
Wait, what, there is an Arduino core for your FPGA multi ARM core AI image processing board? :-) |
Beta Was this translation helpful? Give feedback.
-
I meant the size of the files in bytes, not in pixels. CMD_LOADIMAGE converts .jpg and .png to native formats. CMD_INFLATE only unzips binary data that was compressed before with zlib, so lossless compression. And when you convert an image with the EVE Asset Builder the result is a raw image in the format you setup, ARG1555 or RGR565 or L8, or... |
Beta Was this translation helpful? Give feedback.
-
Hello.
I'm new to this field. Ive an FPGA board with Kria K26 SOM and NHD-4.3-480272FT-CTXL-T 4.3” Screen. I just want to display image on that screen. Ive included all the header files(EVE.h,EVE_commands.c,EVE_config.c,EVE_cpp_target.cpp,EVE_cpp_wrapper.h,EVE_cpp_wrapper.cpp,EVE_supplemental.c,EVE_supplemental.h,EVE_target.c,EVE_target.h).Im running the application integration in Vitis IDE. Ive used EVE Asset builder to convert my png to RGB565 format but I didnt compress it. Ive used BIN2C in EVE Asset builder to get the C file array. Im not going to print any logo so Should I just remove the logo array from tft_data.c? If so then what should my main.c file should be like? Do i need to add any other header files? Im sorry Im lost.
Beta Was this translation helpful? Give feedback.
All reactions