![]() |
Forum Index : Microcontroller and PC projects : Armmite - STM32H7: Developments
![]() ![]() ![]() ![]() |
|||||
Author | Message | ||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10397 |
The only other thing is to make sure any other CS pins for devices on the SPI bus are pulled high. For example my displays have a flash memory chip installed. Yes it is open to misinterpretation MISO and MOSI are probably the best descriptions |
||||
TrevorH Senior Member ![]() Joined: 06/04/2018 Location: United KingdomPosts: 145 |
Peter, can you give me the option call for using the ILI9341 display and touch? I want try the touch on this basic display to see if my other displays are being awkward. Trevor. |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10397 |
OPTION LCDPANEL ILI9341,orientation, DCpin, RESETpin, CSpin OPTION TOUCH T_CSpin, T_IRQpin My replacement Nucleo board should arrive today so I'll be able to test when it does I've ordered 5 of the daughter boards once they have arrived in a couple of weeks and they are tested I'll ask you and TassyJim to send me a PM with your addresses and I'll send you both one as thanks for the continued testing |
||||
TrevorH Senior Member ![]() Joined: 06/04/2018 Location: United KingdomPosts: 145 |
Are the pins 4,3,2 respectively for LCDPANEL and 56,123 for Touch? You don't say what they are in the thread (or I have missed it). I presume it uses SPI5??? I didn't expect THAT with the daughter board!!! Many thanks for that. Just need to conquer the touch problem now. Trevor. |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10397 |
You can choose any pins you want - same as the MM2. Just make sure they are not compromised by the wiring on the Nucleo. Yes |
||||
cdeagle Senior Member ![]() Joined: 22/06/2014 Location: United StatesPosts: 266 |
Hi Peter, Where can I find the MicroSD breakout board shown in yours pics? Thanks |
||||
cdeagle Senior Member ![]() Joined: 22/06/2014 Location: United StatesPosts: 266 |
I have tested many of my scientific programs on the NUCLEO without any problems. The NUCLEO can run the versions of the programs written for the Micromite eXtreme and Raspberry Pi. Do not try to run the DOS or Micromite Plus versions because they do not have the built-in ATN2 function required by many of my programs. |
||||
TrevorH Senior Member ![]() Joined: 06/04/2018 Location: United KingdomPosts: 145 |
Peter, I have connected the ILI9341 to the Nucleo using pins:- D/C - PE04 - Proc 3 RST - PE03 - Proc 2 CS - PE02 - Proc 1 MOSI - PF09 - Proc 21 - SPI5 out MISO - PF08 - Proc 20 - SPI5 in CLK - PF07 - Proc 19 - SPI5 clk After entering OPTION ILI9341,L,3,2,1 the screen resets OK, but I lose communication with MMbasic, so forces a USER/RESET. Any ideas?? I have taken out the links recommended in your previous post. Could this be related to the touch problem as it uses SPI5?? Not connected touch on the small display yet. Trevor. |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10397 |
I use the one from Waveshare I accepted a GCC compiler upgrade a couple of days agao and I think it is causing problems with some device handling (core MMBasic is OK). Please hold off more testing until I post a new release. |
||||
TrevorH Senior Member ![]() Joined: 06/04/2018 Location: United KingdomPosts: 145 |
Thanks for that, I thought it must be me forgetting something, waiting with anticipation. Trevor. |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10397 |
This version is just a re-compile but is tested with both ILI9341 and ILI9481 with and without touch 2018-07-19_201527_Armmite.zip For ILI9341 I used: OPTION LCDPANEL ILI9341, RL, 1, 2, 3 OPTION TOUCH 4,5 The wiring for this is: VCC 3.3V GND GND CS PE4 RESET PE3 D/C - PE2 SDI(MOSI) PF9 SCK PF7 LED 3.3V SDO(MISO) PF8 T_CLK PF7 T_CS PE5 T_DIN PF9 T_DO PF8 T_IRQ PE6 Note the full set of shorting links I have removed is as follows: JP4, SB13, SB160, JP6, SB127, SB125, SB164, SB178, SB181, JP7, SB183, SB182 in addition you must remove SB156 is using an external battery connected to VBAT Note that unlike the MM+ and MMX you can use SPI displays as a console. The 480x320 ILI9481 is particularly good for this. |
||||
TrevorH Senior Member ![]() Joined: 06/04/2018 Location: United KingdomPosts: 145 |
Peter, thanks for the update, I have completed the links update and tested the ILI9341 display and it performed as expected. I then reverted to the larger displays to test, touch still gives calibration errors. I did notice that when I "Touch and Hold" it whips through the test from one point to another, clearly there seems to be NO hold in the routine to wait for the touch to be released. I guess this could screw up the figures. Trevor. |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10397 |
I'm not going to test this further until the daughter boards arrive - just too many wires to be sure of whether issues are H/W or S/W |
||||
erbp Senior Member ![]() Joined: 03/05/2016 Location: AustraliaPosts: 195 |
@TrevorH While posting a reply on this thread it suddenly occurred to me that maybe this is related to the problem you have been experiencing with the Touch function on your SSD1963 LCD panel. Are you by any chance using an 80 wire IDC type cable to connect to the LCD? This would effectively short LCD D0, Touch DO and Touch DI signals together which is bound to cause some sort of problem! Just a thought. Cheers, Phil. |
||||
TrevorH Senior Member ![]() Joined: 06/04/2018 Location: United KingdomPosts: 145 |
Hi Phil, the short answer is no. I am using my own home brewed daughter board to connect the TFT(single sided PCB) to in effect remove the problem of long wires. I can't help thinking it is related to speed as when I "Touch and Hold" the program seems to miss 'exit on release', which the program MUST have and moves on to the next point and the next. Of course this is only a guess. Trevor. |
||||
erbp Senior Member ![]() Joined: 03/05/2016 Location: AustraliaPosts: 195 |
Hi Trevor, That's what I suspected would be the case, especially as the Nucleo board doesn't have a dedicated 40 pin connector for a TFT LCD unlike say an E100, but I thought it may have been a long-shot so was still worth asking. Good luck with tracking down the cause of your problem. Cheers, Phil. |
||||
plasma Guru ![]() Joined: 08/04/2012 Location: GermanyPosts: 437 |
Hi Matherp, for the Hc12 module with FU4 mode i need 1200 baud on serial. is this supportet? |
||||
gadgetjack Senior Member ![]() Joined: 15/07/2016 Location: United StatesPosts: 171 |
Matherp , I am having no fun trying to get the SD card to read. Lcd panel and serial are fine. Powering the board from external supply so no sag. Card will not init for anything. Tried 8-9 different cards. Even tried with no lcd hooked up. Any bones you could throw me? |
||||
darthmite![]() Senior Member ![]() Joined: 20/11/2011 Location: FrancePosts: 240 |
@gadgetjack : Hi ![]() I got problem like that in the past with stm32 board (and other). Try to add a 10uF Tantalum + a 100nF capacitor to the 3.3v close to the sd card. Next to have stable signals , i have added 5.7k resistor tied to + 3.3v to all signal pins from the sd card. Then , it have miraculously worked ![]() If after all this mods it's not working then it can come from the sd card driver in the stm32. @matherp : wow !! , i'm out for my work , and now in vacation in Spain , and i come take a look on your advancement with the armMite and i see that it evolved allot !! ![]() Very great job that you have done here !!! Cheers. Theory is when we know everything but nothing work ... Practice is when everything work but no one know why ;) |
||||
gadgetjack Senior Member ![]() Joined: 15/07/2016 Location: United StatesPosts: 171 |
darthmite , thank you for the reply/help. I tried the caps but not the data pull-ups. That might make a lot of difference. Here we go.... |
||||
![]() ![]() ![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |