Intel® SoC FPGA Embedded Development Suite
Support for SoC FPGA Software Development, SoC FPGA HPS Architecture, HPS SoC Boot and Configuration, Operating Systems

Cyclone V SOC LCD example problem

CAlex
New Contributor II
962 Views

Hi,

I'm trying to use LCD on my cyclone V board. I failed to compile the I2C LCD example so I moved the code to my project. I moved the master part and some encironment  needed. The code ran well

CAlex_0-1684914898025.png

But the LCD didnt show anything.

I put all the lcd_demo_master to my main.c and call the lcd_demo_master.

The console showed the init of I2C is successful as well.

CAlex_1-1684915179050.png

Any Ideas?

 

Reguards.

 

0 Kudos
6 Replies
CAlex
New Contributor II
944 Views

Nevermind,

Now the problem is that how can I print "\n" and Hex on that LCD.

I had a 128 bit buffer with 4 elements |--(uint8_t) a--|--(float) A--|--(uint8_t) b--|--(float) B--|

I want to let the LCD show these four elements in their form 

|    a   "\n"   A  | first line

------------------------------

|    b  "\n"   B   | second line

 

I wrote the first line as followed but I dont know if it is what I want:

// Read the first element code_a
if(status == ALT_E_SUCCESS)
status = alt_i2c_master_transmit(device,BUFFER,sizeof(uint8_t),ALT_E_FALSE,ALT_E_TRUE);
if(status != ALT_E_SUCCESS)
{
break;
}
delay_us(LCD_PRINT_DELAY_US);

------------------------------------------> there should be a blank output
// Read the second element count_A
if(status == ALT_E_SUCCESS)
status = alt_i2c_master_transmit(device,BUFFER+sizeof(uint8_t),sizeof(float),ALT_E_FALSE,ALT_E_TRUE);
if(status != ALT_E_SUCCESS)
{
break;
}

Also, I didnt change their type,so they are all "char"

Any solutions?

Reguards.

0 Kudos
KellyJialin_Goh
Employee
923 Views

Hi,

Greetings and welcome to Intel's Community.


You may have a look at this similar case for the solution: https://community.intel.com/t5/Nios-V-II-Embedded-Design-Suite/Cyclone-V-LCD-I2C-baremetal-sample-for-Altera-s-SoC-DevKit/td-p/128074


Thank you.

Regards.

Kelly Jialin. GOH


0 Kudos
CAlex
New Contributor II
921 Views
0 Kudos
KellyJialin_Goh
Employee
902 Views

Hi,

You may have a look at this case that might help: https://community.intel.com/t5/Programmable-Devices/Hex-Values-on-LCD-Display/td-p/195005?profile.language=es&countrylabel=Chile


Unfortunately, as the Cyclone V I2C LCD Design Example is discontinued, we have very limited access to their resources as well.


Thank you.

Regards,

Kelly


0 Kudos
KellyJialin_Goh
Employee
864 Views

Hi,

Any updates from you end whether the feedback provided is useful?


 Thank you.


Regards,

Kelly


0 Kudos
KellyJialin_Goh
Employee
854 Views

Hi,

As we do not receive any response from you on the previous question/reply/answer that we have provided. Please login to ‘https://supporttickets.intel.com’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions.


p/s: If any answer from the community or Intel Support are helpful, please feel free to give best answer or rate 4/5 survey.


Thank you.


Regards,

Kelly Jialin, GOH



0 Kudos
Reply