i soldered the PCB for the STM32F4 Core Module and tried now to get the LCD Module working…
I bought the Displaytech LCD 162a, and wired it like in the LCD-Module Tutorial.
After that, i loaded the LCD-Tutorial Code on the Core, where it should print out the systemtime while the LED is modulated by a PWM..the led modulation works, but all i see on the lcd are 16 black bars…
I have seen, that some other users had the same problem, but not with a 2x16 character display…
I double-checked the soldered pins, and they look fine
yes, these are actually commands for the update-application. once you have stored these parameters you wont need the update-applciation anymore, because you have stored them on the discovery-board. your mios-applications can read them out and the functions will work accordingly… :shifty:
i used the oscilloscope to see the waves which are supposed to come out of the sclk-pin, but i do not see anything or hardly anything
Neither when i test it while the stm32f4 is connected to the core module (just a small triangle wave) nor while using it standalone (connected to ground and pd6).. when the stm32f4 is not connected to the board i get sometimes a square wave when i touch the pd6 pin with the oscilloscope..but when i plug it, i don’t get any wave
Hm… it’s more difficult to check the connections with this picture than expected.
But since you’ve a scope: you should see some fast waveforms ca. 3 second after reset (after you’ve pushed the black reset button) for ca. 10..20 mS - thereafter communication will be stopped if no LCD has been detected.
Ensure that you are using a 74HC595 (and no 74HCT595)
If the signals don’t toggle for 10..20 mS at SCLK/RCLK, then the issue must be already somewhere between the core<->74HC595 connection
Then i used a potentiometer to check the resistance between the lcd-display and the 74hc595/stm32f4
The result: ca 0.20Ohm on the datapins, which should be allright ?
Any other advices ?
edit: just downloaded the bootloader update package and installed it. after that, i uploaded the .hex of the lcd-tutorial again, the black bars disappeared, but the time, which should be printed, is not visible yet…
Did you ever connect the LCD wrongly, e.g. with some cables swapped?
This could damage the LCD, with the result that it can’t be initialized. Possible effects: sometimes you will only see a black bar at the upper line, or you won’t see any pixel at all.
If you are sure that the LCD was never connected the wrong way, then it makes sense to doublecheck the connections between microcontroller, the 74HC595 SR and the LCD by comparing the signals at the source/destination with the two probes of your scope.
If this still doesn’t help, then I can only recommend to try another LCD
(I’m not writing a different LCD type, Displaytech 162A works fine at my side)
i think it might be possible that I connected the LCD wrong or that some cable caused a short circuit, as this is my first project where i had to solder on my own..
Nevertheless i will check the connections between the microcontroller, the 74HC595 and the LCD once again and I will try the “testlcdpin” command
thanks for your tips, i will test it out on Monday
I just doublechecked this at my side, with V1.018 I can control all pins on a STM32F4 core.
You are writing “set the pin to 0 or 1”
Which pins did you try exactly?
There are some pins which are controlled by the core directly, such as RW, RS, E1, E2
And some others which are controlled via a shift register (D0..D7)
If even RW/RS/E1/E2 are not working, then it’s more likely a measurement error, check your scope settings, it should show the current waveform (and not a captured waveform)
Alternatively use a multimeter.
Usage hint: in MIOS Terminal, you can use the cursor-up/down keys to browse through the command history. This simplifies the command entry, no need to enter “testlcdpin” again and again, just get it back from the history and modify the parameters which should be tested.