Home  |  Contents 

Microcontroller and PC projects
  Forum Index : Microcontroller and PC projects         Section
Subject Topic: Armmite - STM32H7: Developments Post ReplyPost New Topic
<< Prev Page of 18 Next >>
Author
Message << Prev Topic | Next Topic >>
matherp
Guru
Guru


Joined: 11 December 2012
Location: United Kingdom
Online Status: Online
Posts: 2492
Posted: 01 August 2018 at 12:52am | IP Logged Quote matherp

The STM SD card driver seems to be giving too many problems and performance isn't even that good so I have scrapped the 4-bit parallel approach and re-written the SPI version of the driver. In addition I've made some other performance improvements as reported here and updated to the latest 1.3 HAL library

Version 5.04.26



The SDcard should now be wired as per a normal SPI device

PF7 to SD_CLK
PF8 to SD_MISO
PF9 to SD_MOSI

SD_CS can be wired to any available pin as can (optionally) SD_CD and SD_WR. Use the standard MM+ syntax for setting up the SDcard.

OPTION SDCARD cs_pin [,cd_pin] [,wr_pin]

The driver can detect card removal and replacement without needing SD_CD connected. It has been tested using the card socket on an ILI9341 display and is completely compatible with driving the display and touch over the same SPI channel.

The original pins connecting the SDcard are now available for general use.

Pin-98 = PC8
Pin-99 = PC9
Pin-111 = PC10
Pin-112 = PC11
Pin-113 = PC12
Pin-116 = PD2
Pin-87 = PG2

SPI speed is set to 19.2MHz which should be compatible with most cards but in the event there are still problems I'll add an additional speed parameter.



Edited by matherp on 01 August 2018 at 4:59am



Back to Top View matherp's Profile Search for other posts by matherp
 
gadgetjack
Newbie
Newbie


Joined: 15 July 2016
Location: United States
Online Status: Offline
Posts: 23
Posted: 01 August 2018 at 6:40am | IP Logged Quote gadgetjack

That did it! Now it works perfectly. Gotta find a case for it now.
Thank you for all your great work!!!!
Back to Top View gadgetjack's Profile Search for other posts by gadgetjack
 
TassyJim
Guru
Guru
Avatar

Joined: 07 August 2011
Location: Australia
Online Status: Offline
Posts: 2749
Posted: 01 August 2018 at 1:51pm | IP Logged Quote TassyJim

Sounds good and I have a pile of cards to test.
But where is the link to the download gone?

Jim

__________________
It all started with the ZX81....
VK7JH
http://www.c-com.com.au/MMedit.htm
Back to Top View TassyJim's Profile Search for other posts by TassyJim Visit TassyJim's Homepage
 
matherp
Guru
Guru


Joined: 11 December 2012
Location: United Kingdom
Online Status: Online
Posts: 2492
Posted: 01 August 2018 at 5:14pm | IP Logged Quote matherp

Quote:
But where is the link to the download gone?




2018-08-01_171419_Armmite1.3.zip
Back to Top View matherp's Profile Search for other posts by matherp
 
TassyJim
Guru
Guru
Avatar

Joined: 07 August 2011
Location: Australia
Online Status: Offline
Posts: 2749
Posted: 01 August 2018 at 6:12pm | IP Logged Quote TassyJim

Thanks Peter,
I do have a problem
Quote:
ARMmite MMBasic Version 5.04.26
Copyright 2011-2018 Geoff Graham
Copyright 2016-2018 Peter Mather

> files
Error: A hard error occurred in the low level disk I/O layer
> option list
OPTION FLASHPAGES 1
OPTION SDCARD 114, 56
>


I tried with and without the CD pin connected.
Same error with no card inserted

Jim

__________________
It all started with the ZX81....
VK7JH
http://www.c-com.com.au/MMedit.htm
Back to Top View TassyJim's Profile Search for other posts by TassyJim Visit TassyJim's Homepage
 
TassyJim
Guru
Guru
Avatar

Joined: 07 August 2011
Location: Australia
Online Status: Offline
Posts: 2749
Posted: 01 August 2018 at 6:29pm | IP Logged Quote TassyJim

Another problem.
My SSD1306 test program doesn't talk to the display.
The program runs without any errors but no life on the display.

Are there any changes to I2C in this latest build?

Jim

__________________
It all started with the ZX81....
VK7JH
http://www.c-com.com.au/MMedit.htm
Back to Top View TassyJim's Profile Search for other posts by TassyJim Visit TassyJim's Homepage
 
matherp
Guru
Guru


Joined: 11 December 2012
Location: United Kingdom
Online Status: Online
Posts: 2492
Posted: 01 August 2018 at 7:05pm | IP Logged Quote matherp

This should fix i2c. The change to the updated HAL library somehow changed the pinout

2018-08-01_190416_Armmite1.3.zip

Please try the SD card using the slot on a ILI9341 or similar. There seems to be an issue with the Waveshare card when using SPI (works with pullup resistors removed)

Edited by matherp on 01 August 2018 at 7:32pm
Back to Top View matherp's Profile Search for other posts by matherp
 
TassyJim
Guru
Guru
Avatar

Joined: 07 August 2011
Location: Australia
Online Status: Offline
Posts: 2749
Posted: 02 August 2018 at 12:43pm | IP Logged Quote TassyJim

I2C now working.
I tried a different SDCard module and all cards except a Sandisk extreme worked OK
I then tried an module without any pullups and the extreme card works.

Very happy.

One issue. When attempting to use the card with non present, an error is produced.
Quote:
> files
R:/
18688 analogclock.bas
18432 ARLECSwitch.BAS
0 directories, 2 files
> files
Error: A hard error occurred in the low level disk I/O layer
> files
R:/
18688 analogclock.bas
18432 ARLECSwitch.BAS
0 directories, 2 files
>

Reinserting the card and it works again.
Normally, I would not be reading the drive without a card present.

Jim
Edit. No pullup on the CD line!
I will fit one and try again.

No. that didn't help.

Edited by TassyJim on 02 August 2018 at 12:53pm


__________________
It all started with the ZX81....
VK7JH
http://www.c-com.com.au/MMedit.htm
Back to Top View TassyJim's Profile Search for other posts by TassyJim Visit TassyJim's Homepage
 
matherp
Guru
Guru


Joined: 11 December 2012
Location: United Kingdom
Online Status: Online
Posts: 2492
Posted: 02 August 2018 at 6:08pm | IP Logged Quote matherp

Quote:
When attempting to use the card with non present, an error is produced.


The error is correct just the message is a bit (OK a lot) obscure.

Try this version

2018-08-02_180814_Armmite1.3.zip
Back to Top View matherp's Profile Search for other posts by matherp
 
matherp
Guru
Guru


Joined: 11 December 2012
Location: United Kingdom
Online Status: Online
Posts: 2492
Posted: 06 August 2018 at 6:52pm | IP Logged Quote matherp

Version 5.04.27

2018-08-06_234227_Armmite1.3.zip

This has been tested with the new daughter board and all display and other peripheral support now seems solid. This release supports SDcards over SPI so the SDcard on the daughter board V1.0 is not supported and the SDcard slot on a display should be used instead or a separate SDcard module can be used but should not have pullups.

Edited by matherp on 06 August 2018 at 11:42pm
Back to Top View matherp's Profile Search for other posts by matherp
 
TrevorH
Regular Member
Regular Member


Joined: 06 April 2018
Location: United Kingdom
Online Status: Offline
Posts: 72
Posted: 10 August 2018 at 6:05am | IP Logged Quote TrevorH

Hi Peter,

the backpack seems so far to work OK for me, my displays all use the LED-A pin
to light the backlight, so strapped pin 37 on TFT connector to +3.3v.

I have 2 tiny problems, 1 is SD card not present on ILI9341 display, 2 SD card on
both SSD1963 display work OK BUT instead of loadimage doing so it displays a patch
of garbage.

Any ideas???

Still waiting for RTC batt holder to arrive.

Still haven't tried touch yet.

I am using 5.04.27

Just tried touch, works 100% fine on ILI9431, but still giving same errors as before on SSD1963 displays.

Trevor.

Edited by TrevorH on 10 August 2018 at 6:22am
Back to Top View TrevorH's Profile Search for other posts by TrevorH
 
matherp
Guru
Guru


Joined: 11 December 2012
Location: United Kingdom
Online Status: Online
Posts: 2492
Posted: 10 August 2018 at 4:58pm | IP Logged Quote matherp

Quote:
1 is SD card not present on ILI9341 display,


The 4-pin connector for the ILI9341 SDcard I/F is directly wired to the same pins on the SSD1963 so there is no difference as far as the H/W or S/W is concerned. Can't explain this - check soldering etc.

Quote:
SD card on
both SSD1963 display work OK BUT instead of loadimage doing so it displays a patch
of garbage.


Can't replicate. Check soldering of the morpho pins. I had an initial problem and found one unsoldered - there are so many of them it is easy to miss one. Does load image work OK on ILI9341?

Quote:
Just tried touch, works 100% fine on ILI9431, but still giving same errors as before on SSD1963 displays.


Same code so difficult to understand but try this version which slows Touch SPI speed a bit and see if it helps

2018-08-10_165734_Armmite1.3.zip






Edited by matherp on 10 August 2018 at 5:00pm
Back to Top View matherp's Profile Search for other posts by matherp
 


<< Prev Page of 18 Next >>
In the news...
 
Post ReplyPost New Topic
Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum

Powered by Web Wiz Forums version 7.8
Copyright ©2001-2004 Web Wiz Guide

This page was generated in 0.1560 seconds.
Privacy Policy     Process times : 0.02, 0, 0, 0.14