Working LCD goes blank

Not a lot to go on here.
It could be your code which you haven't posted or it could be your hardware and you have no schematic.

Try just a simple hello world and see if that runs without blanking out. Then you can move on from there.