Forum Discussion
Altera_Forum
Honored Contributor
9 years ago --- Quote Start --- correct me if im wrong, you want to run a RTOS( in this case linux) in the FPGA and control the LCD screen? If so, instantiated the LCD screen in qsys, hook it up to nios, and make functions calls (provided by qsys when generated) in the RTOS. Hope this helps. -Trukng --- Quote End --- Thanks for your reply. I've also come across many useful information, some of which also point in the direction you suggested. The design example i described is bare metal and may therefore not be suitable/accessible within the user space on the RTOS running on the SD card (Bare metal has hard physical addresses). The LCD (and its needed i2c interface) are part of the Hard Processor System (HPS) peripherals and i am thus not sure if a NIOS is needed (My impression is that NIOS is for FPGA peripherals). In Qsys, i unfortunately can't add the LCD as this device isn't listed under the peripherals. An approach i came across (useful for LEDs, push buttons...(General Purpose I/O)) involves instantiating an HPS system (that of Cyclone v...) and needed hardware.... Ultimately we include header files in C provided by Altera and use mmpas() to map phsical addresses to our virual user space and by knowing the offset of the registers for each peripheral, we can set their values accordingly. My problem is that for the LCD, there is only files related to the i2c bus which it is connected to; i know that the LCD address on that bus is 0x50, but I couldn't find any documentation or examples on how to access the registers of that LCD, except for the bare metal design example which is useless when running an RTOS. Any ideas? Also, could u plz elaborate a bit more about what u said about function calls in the RTOS, and how that is done (I'm sorry but I'm really a beginner)