Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 08:30 14 Sep 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Armmite - STM32H7: Developments

     Page 7 of 11    
Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10397
Posted: 06:44pm 17 Jul 2018
Copy link to clipboard 
Print this post

  Quote  Have I missed something else??


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.

  Quote  I always seem to get MISO and MOSI the wrong way round.


Yes it is open to misinterpretation MISO and MOSI are probably the best descriptions
 
TrevorH
Senior Member

Joined: 06/04/2018
Location: United Kingdom
Posts: 145
Posted: 09:14am 18 Jul 2018
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 10397
Posted: 09:20am 18 Jul 2018
Copy link to clipboard 
Print this post

  Quote  Peter, can you give me the option call for using the ILI9341 display and touch?


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 Kingdom
Posts: 145
Posted: 09:33am 18 Jul 2018
Copy link to clipboard 
Print this post

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.Edited by TrevorH 2018-07-19
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10397
Posted: 10:23am 18 Jul 2018
Copy link to clipboard 
Print this post

  Quote  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).


You can choose any pins you want - same as the MM2. Just make sure they are not compromised by the wiring on the Nucleo.

  Quote  I presume it uses SPI5???


Yes
 
cdeagle
Senior Member

Joined: 22/06/2014
Location: United States
Posts: 266
Posted: 10:37pm 18 Jul 2018
Copy link to clipboard 
Print this post

Hi Peter,

Where can I find the MicroSD breakout board shown in yours pics? Thanks
 
cdeagle
Senior Member

Joined: 22/06/2014
Location: United States
Posts: 266
Posted: 10:48pm 18 Jul 2018
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 145
Posted: 11:20pm 18 Jul 2018
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 10397
Posted: 07:57am 19 Jul 2018
Copy link to clipboard 
Print this post

  Quote  Where can I find the MicroSD breakout board shown in yours pics? Thanks


I use the one from Waveshare

  Quote  After entering OPTION ILI9341,L,3,2,1 the screen resets OK, but I lose communication with MMbasic, so forces a USER/RESET.


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 Kingdom
Posts: 145
Posted: 08:38am 19 Jul 2018
Copy link to clipboard 
Print this post

Thanks for that, I thought it must be me forgetting something, waiting with anticipation.

Trevor.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10397
Posted: 10:24am 19 Jul 2018
Copy link to clipboard 
Print this post

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.Edited by matherp 2018-07-20
 
TrevorH
Senior Member

Joined: 06/04/2018
Location: United Kingdom
Posts: 145
Posted: 08:38am 20 Jul 2018
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 10397
Posted: 08:44am 20 Jul 2018
Copy link to clipboard 
Print this post

  Quote  I then reverted to the larger displays to test, touch still gives calibration errors.


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: Australia
Posts: 195
Posted: 01:39am 23 Jul 2018
Copy link to clipboard 
Print this post

@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 Kingdom
Posts: 145
Posted: 10:48am 23 Jul 2018
Copy link to clipboard 
Print this post

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: Australia
Posts: 195
Posted: 11:15am 23 Jul 2018
Copy link to clipboard 
Print this post

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: Germany
Posts: 437
Posted: 03:38pm 23 Jul 2018
Copy link to clipboard 
Print this post

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 States
Posts: 171
Posted: 09:13pm 26 Jul 2018
Copy link to clipboard 
Print this post

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: France
Posts: 240
Posted: 10:16pm 26 Jul 2018
Copy link to clipboard 
Print this post

@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 States
Posts: 171
Posted: 01:08am 27 Jul 2018
Copy link to clipboard 
Print this post

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....
 
     Page 7 of 11    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025