Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 09:19 26 Apr 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.00b24: I2C slave functionality

     Page 2 of 3    
Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8578
Posted: 06:05pm 12 Oct 2021
Copy link to clipboard 
Print this post

PicoMiteV5.07.00b28.zip

I've removed the flash backup and restore commands and made it completely automatic. Basically the PicoMite should now behave like a MM2. i.e. the program is always there and available after any reboot or reset. The only deviation from this is a program loaded by FLASH CHAIN. In this case the original program will be restored as it assumed the "chained" program is a sub-program of some other master.

The NEW command now clears both the RAM and the flash storage for the current program.

Please also note the changed behaviour of OPTION AUTORUN

OPTION AUTORUN ON will run the current program after any restart
OPTION AUTORUN n where n=1 to 10 will run the program in the flash slot named and this will become the current program

In addition I've done some work on the console connection. If there is no USB connection then any console I/O will blackhole so there should be no impact on the running program or any risk of any internal USB buffers overflowing.

Using W10/teraterm with the PicoMite you should now see a more reliable re-establishment of communication following any option change or other reset. No promises for any other terminal or OS

NB: Code will be open source on github once the first full version is released
Edited 2021-10-13 04:05 by matherp
 
cdeagle
Senior Member

Joined: 22/06/2014
Location: United States
Posts: 261
Posted: 07:02pm 12 Oct 2021
Copy link to clipboard 
Print this post

Thanks Peter
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 5725
Posted: 08:05pm 12 Oct 2021
Copy link to clipboard 
Print this post

Thanks Peter. :)
That removes a bit of confusion, I think.
Mick

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

Joined: 11/12/2012
Location: United Kingdom
Posts: 8578
Posted: 06:56am 13 Oct 2021
Copy link to clipboard 
Print this post

Forgot to mention..

b28 also includes LIST fname$

This allows you to list any file. Ideal for inspecting program logs etc.
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 5725
Posted: 09:14am 15 Oct 2021
Copy link to clipboard 
Print this post

Oh yes... it keeps getting better!

I've just been using b28 and having the program there, ready for editing, at boot-up is *very* useful. It's one of the things I love about the CMM2 so having it on the PicoMite is great.

The USB re-connection after power cycling definitely seems to be a lot better (W10+TT).

Thanks again, Peter. :)


Oh - and it didn't seem to break b27, in case anyone is interested.
Edited 2021-10-15 19:15 by Mixtel90
Mick

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

Guru

Joined: 25/07/2019
Location: Germany
Posts: 486
Posted: 09:54am 15 Oct 2021
Copy link to clipboard 
Print this post

Is there any specific page where to generally find the current version as there are already 2 threads parallely, just keeping it afloat not going under the mass of all postings ?!

https://www.thebackshed.com/forum/ViewTopic.php?FID=16&TID=14126

Just imagine s.o. newly coming in  ...


Andre ... such a GURU?
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 5725
Posted: 10:04am 15 Oct 2021
Copy link to clipboard 
Print this post

Not on the forum, nope. Once it's out of beta it won't be a problem, but things are still in a state of flux. You won't find the same version on different threads though, so it's a case of keeping an eye on Peter's most recent posts.
Mick

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

Joined: 11/12/2012
Location: United Kingdom
Posts: 8578
Posted: 12:21pm 15 Oct 2021
Copy link to clipboard 
Print this post

I start a new thread when there is something significant added/changed. The latest binary is always in the thread with the highest beta in the title. Only deviation from this is if I post a specific experimental version to try and sort someone's problem. In that case when I am happy with the fix it also goes on the latest beta thread
 
Poppy

Guru

Joined: 25/07/2019
Location: Germany
Posts: 486
Posted: 01:05pm 15 Oct 2021
Copy link to clipboard 
Print this post

  matherp said  I start a new thread when there is something significant added/changed.


Andre ... such a GURU?
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8578
Posted: 01:06pm 17 Oct 2021
Copy link to clipboard 
Print this post

PicoMiteV5.07.00b29.zip


Fixes a bug which caused crashes after a program using GUI FORMATBOX was run

New display support.

ILI9488W - supports the Waveshare 3.5" display as used on their Pico Eval board and the normal 3.5" display adapter
 
karlelch

Senior Member

Joined: 30/10/2014
Location: Germany
Posts: 155
Posted: 10:27pm 18 Oct 2021
Copy link to clipboard 
Print this post

It would be great if in the command promt one could get the previous lines back with the arrow-up key, as in a Linux shell. This feature would facilitate testing commands a lot.

Best
Thomas
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 5725
Posted: 06:58am 19 Oct 2021
Copy link to clipboard 
Print this post

This has come up before, I think, Thomas. IIRC the editor isn't loaded at that point so there's no buffer to store the command lines (or not enough). RAM is still taken up by everything else. I don't think it's possible. I agree that it would be nice though.
Mick

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

Senior Member

Joined: 30/10/2014
Location: Germany
Posts: 155
Posted: 07:46am 19 Oct 2021
Copy link to clipboard 
Print this post

Thanks for the reply, Mick
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 3839
Posted: 09:30am 19 Oct 2021
Copy link to clipboard 
Print this post

  Mixtel90 said  This has come up before, I think, Thomas. IIRC the editor isn't loaded at that point so there's no buffer to store the command lines (or not enough). RAM is still taken up by everything else. I don't think it's possible. I agree that it would be nice though.


I don't think it's anything to do with the editor. The CMM2's implementation of this feature requires setting aside a permanent 1K RAM buffer to store the history plus whatever space (Flash?) is required to store the implementation of the behaviour. I guess Peter doesn't think there is space for one or the other.

Best wishes,

Tom
Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8578
Posted: 03:59pm 19 Oct 2021
Copy link to clipboard 
Print this post

PicoMiteV5.07.00b30.zip

Found some memory. Now has command stacking like CMM2. Also * shortcut for running programs from SDcard
Edited 2021-10-20 02:00 by matherp
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 3839
Posted: 04:25pm 19 Oct 2021
Copy link to clipboard 
Print this post

  matherp said  PicoMiteV5.07.00b30.zip

Found some memory. Now has command stacking like CMM2. Also * shortcut for running programs from SDcard


I suppose someone should ask if this means it gets OPTION SEARCH PATH too? It may as well be me, even if I am building my own boat now .

Thank you Peter,

Tom
Edited 2021-10-20 02:58 by thwill
Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 5725
Posted: 06:41pm 19 Oct 2021
Copy link to clipboard 
Print this post

Lol!
I have a feeling that Geoff's manual will be slightly delayed again. ;)

Thanks Peter. :)
Mick

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

Senior Member

Joined: 30/10/2014
Location: Germany
Posts: 155
Posted: 07:06pm 19 Oct 2021
Copy link to clipboard 
Print this post

  matherp said  PicoMiteV5.07.00b30.zip

Found some memory. Now has command stacking like CMM2. Also * shortcut for running programs from SDcard


Cool! Thanks!!
 
karlelch

Senior Member

Joined: 30/10/2014
Location: Germany
Posts: 155
Posted: 04:03pm 22 Oct 2021
Copy link to clipboard 
Print this post

Hi,

earlier I asked if the `library` command could be implemented and I can see why for the pico this would be difficult. As I understand it, what the `library` command basically does is hiding implementation details (e.g. code to access complex hardware) and allowing for shorter and more easier to browse main programs.

I am wondering if something like a `flash include, nbr` would be useful and could be implemented. It would allow to have "library" code in a separate file (and flash slot), which the could be included on the fly into a main program.

Cheers
Thomas
 
robscott
Newbie

Joined: 20/10/2021
Location: United States
Posts: 22
Posted: 09:34pm 24 Oct 2021
Copy link to clipboard 
Print this post

I am loving the Picomite version (ok, I love all the versions of MMBasic   )
Big Thanks for all your hard work

doing some testing on V5.07.00b30, and wondering if there is a reason BITBANG WS2812 is limited to 64 LEDs

the 1st 64 LEDs work fine, but when I go to 256 in my array
Bitbang ws2812 B,gp0,256,l%()
Error : 256 is invalid (valid is 1 to 64)

I see in External.c
nbr=getint(argv[4],1,64);

it's max at 64, but I have a 256 grid WS2812B panel I would like to drive

I see interrupts are off, so maybe you were worried about the total delay ?

Thanks
Rob
 
     Page 2 of 3    
Print this page
© JAQ Software 2024