Author |
|
TrevorH Regular Member

Joined: 06 April 2018 Location: United Kingdom
Online Status: Offline Posts: 72
|
Posted: 05 July 2018 at 10:36pm | IP Logged
|
|
|
Hi all,
Just got my NUCLEO-H743ZI, loaded V5.03.21 and tried running "strrev Test" and nothing is printed. It does print InString$ if I comment out the strrev line. I have loaded it with the CFunction after initial code ie NOT "library save". Is it possible I have missed something???
Trevor
Edited by TrevorH on 05 July 2018 at 11:29pm
|
Back to Top |
|
|
matherp Guru

Joined: 11 December 2012 Location: United Kingdom
Online Status: Offline Posts: 2622
|
Posted: 06 July 2018 at 12:00am | IP Logged
|
|
|
Quote:
Is it possible I have missed something??? |
|
|
Or I have
I've recompiled so try this version
2018-07-05_235923_Armmite.zip
Definitely works with this test program
Dim instring$="1234567890" Dim outstring$ strrev(instring$,outstring$) Print outstring$ End CSub strrev 00000000 b085b480 6078af00 687b6039 60bb781b b2da68bb 701a683b 60fb2301 683ae00d 441368fb 68fa68b9 32011a8a 440a6879 701a7812 330168fb 68bb60fb 68fb1c5a d8ec429a 461a68bb 0300f04f 461946106bd3714 7b04f85d bf004770 End CSub |
|
|
|
Back to Top |
|
|
TrevorH Regular Member

Joined: 06 April 2018 Location: United Kingdom
Online Status: Offline Posts: 72
|
Posted: 06 July 2018 at 12:35am | IP Logged
|
|
|
That did it!!!
Got to get that TFT connected now to have a play.
Many Thanks!!!!
Trevor
|
Back to Top |
|
|
TrevorH Regular Member

Joined: 06 April 2018 Location: United Kingdom
Online Status: Offline Posts: 72
|
Posted: 07 July 2018 at 1:54am | IP Logged
|
|
|
Have the TFT now working after firstly missing the pin change, do we still have to option the sdcard to get it to be read if so is the cs pin the cmd pin 116? I get "unrecognised option" at cmd prompt. I have wired it to CN8 as shown in the xls file.
Trevor
|
Back to Top |
|
|
matherp Guru

Joined: 11 December 2012 Location: United Kingdom
Online Status: Offline Posts: 2622
|
Posted: 07 July 2018 at 2:32am | IP Logged
|
|
|
Quote:
do we still have to option the sdcard to get it to be read if so is the cs pin the cmd pin 116? |
|
|
No: I scrapped the SPI attach SDcard as it was too slow and am using the native 4-bit parallel SD card I/F. See the 2nd picture on page 1 and all subsequent pics for details. I use the waveshare SD card adapter
|
Back to Top |
|
|
astro1 Regular Member

Joined: 26 June 2016 Location: Australia
Online Status: Offline Posts: 42
|
Posted: 07 July 2018 at 4:14pm | IP Logged
|
|
|
With the reverse string test, what should this bit be? (Invalid hex word) 461946106bd3714
|
Back to Top |
|
|
TassyJim Guru


Joined: 07 August 2011 Location: Australia
Online Status: Offline Posts: 2919
|
Posted: 07 July 2018 at 4:47pm | IP Logged
|
|
|
astro1 wrote:
With the reverse string test, what should this bit be? (Invalid hex word) 461946106bd3714 |
|
|
That was a pasting bug The correct function is
Quote:
CSub strrev 00000000 b085b480 6078af00 687b6039 60bb781b b2da68bb 701a683b 60fb2301 683ae00d 441368fb 68fa68b9 32011a8a 440a6879 701a7812 330168fb 68bb60fb 68fb1c5a d8ec429a 461a68bb 0300f04f 46194610 46bd3714 7b04f85d bf004770 End CSub |
|
|
Jim
__________________ It all started with the ZX81.... VK7JH http://www.c-com.com.au/MMedit.htm
|
Back to Top |
|
|
TassyJim Guru


Joined: 07 August 2011 Location: Australia
Online Status: Offline Posts: 2919
|
Posted: 10 July 2018 at 6:30pm | IP Logged
|
|
|
Peter, My SD card module finally arrived but I am having problems with it. I can read files OK but not save.
Quote:
> files A:/ <DIR> Documents 5376 aaa.bas 384 atest.bas 230454 cat1.bmp 640 grainbench 4813 GUITEST.BAS 4437 ta.bas 4698 tain.txt 5529 taouta.txt 0 TEST.TXT 1950 TESTFILE.TXT 1 directory, 10 files >
> save "test2.bas" > files A:/ 0 test2.bas 0 directories, 1 file >
|
|
|
I have to reset the device before I can list the files again and the file I tried to save is nowhere to be seen.
Any clues?
Jim
__________________ It all started with the ZX81.... VK7JH http://www.c-com.com.au/MMedit.htm
|
Back to Top |
|
|
matherp Guru

Joined: 11 December 2012 Location: United Kingdom
Online Status: Offline Posts: 2622
|
Posted: 10 July 2018 at 8:17pm | IP Logged
|
|
|
Jim
Try this version which is definitely working for me.
2018-07-11_000318_Armmite.zip
Try and keep the leads to the SDcard as short as possible. Make sure you have a reasonably fast card. I've soldered a 10uF ceramic across the power pins on the back of the SDcard PCB - you could also try 2R2 in the 3.3V line before the 10uF which is what I use on all my MMX boards - SD cards are sensitive to power fluctuations.
CN8 wiring should be:
x D0 x D1 x D2 3v3 D3 x CLK GND CMD x CD x x |
|
|
Edited by matherp on 11 July 2018 at 12:03am
|
Back to Top |
|
|
TrevorH Regular Member

Joined: 06 April 2018 Location: United Kingdom
Online Status: Offline Posts: 72
|
Posted: 11 July 2018 at 12:23am | IP Logged
|
|
|
Peter,
I am also having trouble with SD card reading in a program. "files" work fine, but if I try to read the SD card from a program using:-
sub Listfiles f$ = dir$("*.*",file) do while f$<>"" print f$ f$ = dir$() loop end sub |
|
|
I get nothing. I have tried replacing "*.*" with "*" still nothing, using 2018-07-05_235923_Armmite which you gave me earlier to fix "strrev".
Trevor
|
Back to Top |
|
|
matherp Guru

Joined: 11 December 2012 Location: United Kingdom
Online Status: Offline Posts: 2622
|
Posted: 11 July 2018 at 12:35am | IP Logged
|
|
|
I have turned the wick up on the SDcard I/F but it is within spec for any card. Suggest you check the electrical connections and add a bulk capacitor as per my note to Jim. Also try a different card. If this becomes an issue I'll include an option to optionally slow the interface.

Edited by matherp on 11 July 2018 at 12:36am
|
Back to Top |
|
|
TrevorH Regular Member

Joined: 06 April 2018 Location: United Kingdom
Online Status: Offline Posts: 72
|
Posted: 11 July 2018 at 1:13am | IP Logged
|
|
|
Thanks for that now works fine.
On page 2 of this thread you mentioned a TFT interface board possibly in the making My request would be a RTC battery (cr2032 or similar), I am doing a single sided PCB of my own (not as professional as the ones you guys have made, but cheaper!!). If You have one made please put me down for one!
I know you are not taking requests for MMbasic changes but can I ask for a TFT CPLD driver for the 16bit capable boards? I am willing to do any testing as I guess you don't have the display. (If this request is too cheeky I apologise up front).
Trevor
|
Back to Top |
|
|