cancel
Showing results for 
Search instead for 
Did you mean: 

How to Interface LCD 16x2 display (8bit mode) STM32F407 board

VKuma.19
Associate II

Recently I started programming on STM32 board for better understanding I am using Direct register access Method.

I tried programming but Nothing is displaying IN LCD.

Can I get a program(without cubeMX) only for Writing one character on LCD 16x2.

5 REPLIES 5

Most people use 4-bit mode, it uses less pins.

Implementation will depend on pin choices. Not provided.

Use oscilloscope to debug your signalling.

While direct register can expand understanding, it is useful to start with some understanding. Not everyone is interested in posting such examples, find some SPL or HAL examples, see them work, and review the mechanics, and then apply to your end goal.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
VKuma.19
Associate II

Hi....

Thank You for the reply .

Definitely further i will work on HAL library.

Is there any simulator so that at first I can check in software simulator as I don't have JTAG (Hardware Debugger) at present because My Kiel IDE is limiting the memory to 32K.

I don't think driving a 16x2 display will take anything close to 32KB

Keil has pretty much abandoned their simulator. Perhaps Proteus? The NUCLEO and DISCO boards have debug hardware, start at just below $10 USD

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
VKuma.19
Associate II

In Kiel uVision every time I have to MAP the memory and give permission to read write and execute then only it writes or executes the instruction in software simulation.

Any solution for this?

Yes, use real hardware. Error 65 basically indicates you're trying to access a peripheral which isn't simulated.

Keil abandoned the simulator after the STM32F1, basically the only people using it were non-paying customers, and you can't really sustain a business with them.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..