Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 01:16 30 Mar 2024 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 : PicoMite V5.07.00b0 - beta firmware

     Page 13 of 13    
Author Message
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1757
Posted: 07:33am 15 Sep 2021
Copy link to clipboard 
Print this post

Thanks Peter.
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
panky

Guru

Joined: 02/10/2012
Location: Australia
Posts: 1094
Posted: 12:10am 16 Sep 2021
Copy link to clipboard 
Print this post

Regarding documentation, I realise that this is still beta territory but can I put in a request that the final user manual for the Pico be along the lines of Gerry's excellent F4 manual.

It is a real PITA having to hunt through several manuals for an answer instead of one consolidated manual covering the hardware and MMBasic. I understand that the maintenance of keeping 'in step' with other manuals and developments is substantial but from a users perspective, hunting through several manuals can get frustrating and error prone. Even a composite MMBasic manual that indicates which platform a particular command or function applies would be an improvement.

mixtel90's TINAM is great for the developing Pico scene, thanks - it has been of great assistance to me.

I would be willing to take on the task of a complete manual for the Pico if no one else is in the process/intending to produce such a manual.

Thanks to Peter for a really exiting new member of the 'mite family.

Doug.
... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it!
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 5867
Posted: 12:24am 16 Sep 2021
Copy link to clipboard 
Print this post

  panky said   Even a composite MMBasic manual that indicates which platform a particular command or function applies would be an improvement.


My On-line reference is an attempt to do that.
https://www.c-com.com.au/mmhelp/index.htm
It's the same as what comes with MMEdit with the advantage that I can update each page at any time.
I still have to address the PicoMite so no advantage for your current predicament.

Jim
VK7JH
MMedit   MMBasic Help
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 5648
Posted: 06:55am 16 Sep 2021
Copy link to clipboard 
Print this post

As far as I'm aware the PicoMite manual will be a single document, including the PIO stuff as an appendix.

Beware that the pinout diagram in the current TINAM is wrong - I screwed up all the SPI pins somehow! Still, nobody noticed...  :)

Unless there's a demand for it I'm not intending to correct or update TINAM now. It's done its job, I think, and will be made redundant by the official manual. So grab your final "Collector's Edition"s now, while there's some left!  :)
Edited 2021-09-16 16:56 by Mixtel90
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3641
Posted: 08:37am 16 Sep 2021
Copy link to clipboard 
Print this post

Maybe fix the pinout diagram for the "Ultimate Collector's Edition"?

John
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 5648
Posted: 11:24am 16 Sep 2021
Copy link to clipboard 
Print this post

And lose it's lovely "Arts & Crafts" feel?

Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 3423
Posted: 01:56pm 16 Sep 2021
Copy link to clipboard 
Print this post

Mick, I used your pin diagram to connect the SD card to the pico. And it worked...
It is connected to pins 21,22,24,25

Maybe I was lucky....
PicomiteVGA PETSCII ROBOTS
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 5648
Posted: 02:11pm 16 Sep 2021
Copy link to clipboard 
Print this post

If you use
OPTION SDCARD a,b,c,d
it will work fine, providing those pins don't clash with SYSTEM SPI. That's because the SD card is software driven.

If you use
OPTION SYSTEM SPI a,b,c
OPTION SDCARD d
then it may not unless you got a,b &c right by some fluke. :)
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1757
Posted: 09:43pm 16 Sep 2021
Copy link to clipboard 
Print this post

Iam still having problems, bought a new 16GB card. In MMEdit I get this...




but when I try to save a file I get an error..

Error : A hard error occurred in the low level disk I/O layer
> Warning: SDcard Removed

Edit..I moved the sdcard away from the System SPI to pins 21, 22, 24, 25
Edited 2021-09-17 07:48 by palcal
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 5867
Posted: 09:50pm 16 Sep 2021
Copy link to clipboard 
Print this post

Plug the SDcard int your PC and copy files that way.
Then see if you can read them in the pico.
Next try to save from the pico command line.
If any of those fail, XMODEM is definitely going to fail.

Jim
VK7JH
MMedit   MMBasic Help
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 5867
Posted: 10:24pm 16 Sep 2021
Copy link to clipboard 
Print this post

Try this program:
open "test.txt" for output as #2
for n = 1 to 100
print #2, "line number "+str$(n)
next n
close #2
pause 1000
open "test.txt" for input as #2
do
input #2,t$
print t$
loop until eof(#2)


Also, what CPUspeed do you have set?

Jim
VK7JH
MMedit   MMBasic Help
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1757
Posted: 10:44pm 16 Sep 2021
Copy link to clipboard 
Print this post

I loaded a file to the card on my PC and it shows up in the Pico but if I try to load the file it gives error  'Cannot find the file'.

CPU speed is defaule 125000
I loaded your program and got the error 'A hard error occurred in the low level disk I/O layer'
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1757
Posted: 11:09pm 16 Sep 2021
Copy link to clipboard 
Print this post

I slowed the CPU down to 48000 and it is working OK.
Thanks.
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 5648
Posted: 06:54am 17 Sep 2021
Copy link to clipboard 
Print this post

Interesting...
I've been running SD cards fine even up to top speed on system spi. The PicoMite still uses software access anyway - it swaps the pins to normal digital for SD access then returns them so hardware spi. You might have an oddball card. It's also possible that your supply voltage is a bit dodgy. Some SD cards appreciate at least a capacitor across their supply pins to work properly, sometimes with a low value resistor in series with the supply. It might be worthwhile putting something up to 10uF as close as possible to the SD card, say 2.2uF tantalum.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8517
Posted: 07:19am 17 Sep 2021
Copy link to clipboard 
Print this post

Definitely sounds like a H/W issue somewhere. Do you have pullups on the SPI pins? these are not needed. As Mick suggests a 2R2 resistor into a 10uF capacitor across the power pins of the SDcard may help. Like him I always run at CPUSPEED 250000 and have not seen SDcard issues despite multiple versions of hack wiring.

As always, start simple. Remove all connections to the Pico except the SDcard until that is working  and then build from there
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1757
Posted: 09:54pm 17 Sep 2021
Copy link to clipboard 
Print this post

Seems OK now, I think maybe bad connection in card holder.
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 5648
Posted: 06:18am 18 Sep 2021
Copy link to clipboard 
Print this post

Excellent.  
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 2989
Posted: 03:46pm 15 Dec 2021
Copy link to clipboard 
Print this post

  lizby said  Here's a file viewer for the Picomite for a 480x320 ILI9488 display.

  thwill said  Remove the CLS statement on Line 25 and replace Line 28 with this:

  Text 0, y, lines(ln) + Space$(Max(0, 60 - Len(lines(ln))))

Great tweak, Tom, thanks. Here's an updated video: Picomite MMBasic fileview

Link to original post with code needing Tom's enhancement

Picomite on Fruit of the Shed

~
Edited 2021-12-16 01:53 by lizby
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 5648
Posted: 04:14pm 15 Dec 2021
Copy link to clipboard 
Print this post

That's much better!  :)
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
     Page 13 of 13    
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024