![]() |
Forum Index : Microcontroller and PC projects : PicoMite V6.00.02 betas
![]() ![]() ![]() ![]() |
|||||
Author | Message | ||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10067 |
V6.00.02b12 posted https://geoffg.net/Downloads/picomite/PicoMite_Beta.zip Changes to support implementing addition gamepad variants RP2040VGA heap increased back to 100Kb |
||||
twofingers Guru ![]() Joined: 02/06/2014 Location: GermanyPosts: 1526 |
@Peter As I wrote above, this doesn't work. > list Print "Start of the program." End > RUN Start of the program. > library list Sub MM.END Print "This is the END." End Sub But today I discovered that the library subroutine Sub MM.END Print "This is the END." End Sub MM.END is called correctly if the "END" of the calling program is followed by a command$ (END cmd$).Then only MM.END is called, i.e. "This is the END." is displayed. Just to clarify: this is just for information, it's not important to me at the moment. I also don't know if the behavior is intentional. Regards Michael Edited 2025-02-27 00:56 by twofingers causality ≠ correlation ≠ coincidence |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10067 |
Thanks - missed that - will fix |
||||
dddns Senior Member ![]() Joined: 20/09/2024 Location: GermanyPosts: 259 |
with b12 on rp20240 it still freezes to "-0.0008058608059" after reading 2 samples continuously. Am I doing something wrong or can somebody confirm? |
||||
Amnesie Guru ![]() Joined: 30/06/2020 Location: GermanyPosts: 529 |
I can't load any PNG file.. Load png "winter_small" Error: Not enough Heap memory OPTION LIST: PicoMiteVGA MMBAsic RP2350A Edition V6.002b11 OPTION SYSTEM I2C GP14,GP15 OPTION FLASH SIZE 4194304 OPTION COLOURCODE ON OPTION KEYBOARD GR OPTION MOUSE GP27,GP28 OPTION CPUSPEED (KHz) 252000 OPTION SDCARD GP13,G10,GP11,GP12 OPTION AUDIO GP6,GP7 Image: winter_small.png.zip Any ideas? Greetings Daniel Edited 2025-02-27 01:57 by Amnesie |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10067 |
png files take a huge amount of memory to process. They are intended to load sprites which would typically be less than 24x24 pixels You don't say which version. Works for me - tested after your previous post. Post your complete program. Edited 2025-02-27 02:12 by matherp |
||||
dddns Senior Member ![]() Joined: 20/09/2024 Location: GermanyPosts: 259 |
PicoMiteRP2040USBV6.00.02b12 SetPin gp27,ain Do Print Pin(gp27) Loop The first couple of sample outputs are correct and then it freezes. I need to restart the cpu then, re-initializing through setpin will not help. |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10067 |
Option list? |
||||
dddns Senior Member ![]() Joined: 20/09/2024 Location: GermanyPosts: 259 |
sorry..forgot PicoMite MMBasic USB RP2040 Edition V6.00.02b12 OPTION SERIAL CONSOLE COM2,GP8,GP9 OPTION SYSTEM SPI GP22,GP23,GP20 OPTION SYSTEM I2C GP24,GP25 OPTION FLASH SIZE 16777216 OPTION COLOURCODE ON OPTION KEYBOARD US, 0, 0, 200, 50 OPTION HEARTBEAT OFF OPTION CPUSPEED 378000 'KHz OPTION LCDPANEL CONSOLE 4 OPTION DISPLAY 30, 80 OPTION LCDPANEL SSD1963_7, LANDSCAPE,,GP16,NULL OPTION TOUCH GP21,GP19 GUI CALIBRATE 1, 116, 339, 2036, 1345 OPTION SDCARD COMBINED CS OPTION KEYBOARD REPEAT 200,50 OPTION AUDIO GP10,GP11', ON PWM CHANNEL 5 OPTION RTC AUTO ENABLE OPTION DEFAULT FONT 4, 1 |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10067 |
Please OPTION RESET and then run. If that doesn't work you have an electrical problem (overvoltage locking up the pin or something). If it does work apply the options one at a time and report what/if causes the issue |
||||
dddns Senior Member ![]() Joined: 20/09/2024 Location: GermanyPosts: 259 |
ok thank you, found it. Even though my RP2040 is running rock solid since a year on 378000 it starts reading sober outputs only at 252000. that is more than disappointing. Same thing on a PGA2350 which runs well at 352000. I will try that now with an original RP2040. If it is the same I will give up |
||||
dddns Senior Member ![]() Joined: 20/09/2024 Location: GermanyPosts: 259 |
I tested the ADC issue on 3 different 2040 and on the PGA2350. All are reading fine up to 252000. At higher speed it is just a question of (milli)secoconds untill the locking sets in. On the original Pico it was the best result as it shows correct readings at 315000 for about 2 seconds. I hope for a solution as it would also mean that it is not possible to display or use ADC values with hdmi.. I tested with fresh installs without any option except cpu speed. |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10067 |
This relates to a change I was requested to make to allow overclocking of the ADC which was done by clocking the ADC using the system clock rather than a fixed 48MHz clock. It appears that with a clock above about 250-300MHz the ADC stops functioning. I can fix this in the next beta by putting a clock divider on the system clock before the ADC sees it. However, I've got myself confused about how to then clock the ADC at a specific rate for the ADC START and ADC RUN commands. I'm waiting some explanation on the Pico forum. Once I have that I'll make an update to the firmware. |
||||
dddns Senior Member ![]() Joined: 20/09/2024 Location: GermanyPosts: 259 |
Great,thank you very much! |
||||
JanVolk Senior Member ![]() Joined: 28/01/2023 Location: NetherlandsPosts: 220 |
A problem with the option cpuspeed. RP2350A works up to 305 MHz. After that only re-flashing helps. Flashing doesn't help anymore. After flashing, the usb is no longer seen. Possibly just erase flash memory first with flash tool which is no longer included in the list of .uf2 updates for the RP2350 and RP2040. Using tool rp2350_flash_nuke.uf2 and then flashing PicoMiteRP2350V6.00.02b12.uf2, the PicoMite will work normally again. > option list PicoMite MMBasic RP2350A Edition V6.00.02b12 OPTION FLASH SIZE 16777216 OPTION COLOR CODE ON OPTION HEARTBEAT OFF OPTION CPU SPEED 304000 'KHz OPTION DISPLAY 43, 89 PicoMite MMBasic RP2350A Edition V6.00.02b12 Copyright 2011-2025 Geoff Graham Copyright 2016-2025 Peter Mather > option CPU speed 300000 > option CPU speed 42000 Error : 42000 is invalid (valid is 48000 to 400000) > option CPU speed 48000 > option cpuspeed 400000 Error: Invalid address - reset 600ircoorM:i ten vMaMlBiads iacd drRrPe2s3s5 0-A rEedsiettitoinn gV .02b12 Copyright 2011-2025 Geoff Graham Copyright 2016-2025 Peter Mather D:\Dropbox\PicoMite\PicoMite\lfs.c:1895:warn: Superblock 0x0 has become unwritable ErError: Invalid address - reset > Greetings, Jan Edited 2025-02-27 08:11 by JanVolk |
||||
Amnesie Guru ![]() Joined: 30/06/2020 Location: GermanyPosts: 529 |
I can confirm this on the Pico2 (2350). I was confused too. I stick to the default CPU speed.... Greetings Daniel |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10067 |
What PCB version are you using. All mine work up to 372MHz. In any case anything above 150MHz is overclocking so if your board won't accept it then that is just the way it is. |
||||
JanVolk Senior Member ![]() Joined: 28/01/2023 Location: NetherlandsPosts: 220 |
Peter, I am currently using this as a test. RP2350A-V20-16MB. https://nl.aliexpress.com/item/1005008117237405.html?gatewayAdapt=glo2nld Greetings, Jan. |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7503 |
Chinese clones will usually reach the specification CPU speed or just above. They may or may not go any higher. Some seem to use use a slower flash chip (if everything else is equal). This is certainly true of the YD-RP2040 16MB version, of which I have a few examples. If you want HDMI speeds then I wouldn't recommend the Chinese clones, certainly not until they have been rigorously tested. Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10067 |
Forgot to mention on V6.00.02b12, the default CPU speed for the standard RP2040 PicoMite is now 200MHz. Raspberry Pi have now officially approved the RP2040 for that speed with a voltage of 1.15V which is what is set in b12 |
||||
![]() ![]() ![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |