Posted: 10:45pm 18 Dec 2024 Copy link to clipboard
matherp Guru
There is but without the PSRAM CS pulled up the PSRAM will be corrupting flash access so the code simply doesn't run. Nothing the firmware can do about this.
Posted: 11:40pm 18 Dec 2024 Copy link to clipboard
Posted: 07:48am 19 Dec 2024 Copy link to clipboard
Volhout Guru
About PSRAM,
Although technically PSRAM can be attached to a RP2040, it is the RP2350 that is prepared for the use of PSRAM by means of a hardware interface. That hardware interface is shared with FLASH.
Early tests with Pimoroni Pico Plus 2 modules has shown that PSRAM works, and MMBasic implementation made the use of PSRAM transparent (not a RAM DISK or similar, but a large amount of data memory that can be used in conunction with built in RAM).
PSRAM comes with a disadvantage: speed. 1/ The PSRAM as such is nt as fast as the built in RAM. So prepare for slower access (execution) of your code. PSRAM is cached, and as long as you are using the cache, it is faster, but once you need a cache refresh, it is slower. The cache is 16kbyte in size.
2/ Because the PSRAM shares the bus with FLASH, the FLASH program cannot execute as fast.
3/ RP2350 has one big benefit over the RP2040, and that is the HDMI (DVI) interface. To use HDMI, it is required to "overclock" the RP2350 chip. At the moment the RP2350 equipped with PSRAM cannot be overclocked as much as a non-PSRAM module. I am not aware the exact cause, but fact is that by using PSRAM, HDMI may only be usable in 640x480, or not at all.
I absence of facts, I believe it is because of the extra chip (FLASH + extra PSRAM) on the QSPI bus. If this is the case, switching off the PSRAM by disconnecting the chip select pin (CSn) will still not allow you to overclock the RP2350 to HDMI speeds.
Summary: PSRAM makes the Picomite execute slower, PSRAM has impacton HDMI. There may be applications that require much RAM, and need PSRAM, be happy.. it is supported.
Volhout
EDIT: in the future it may be possible that a solution is found to solve the overclock issue. But the data access in PSRAM will per defintion always be slower. Edited 2024-12-19 17:54 by Volhout
Posted: 10:46am 19 Dec 2024 Copy link to clipboard
twofingers Guru
@Peter I'm observing a strange behavior of the "List" command. If the file has no file extension, then it is not found. (Note: I think I've experienced the same issue with the "Open" command. But I can't reproduce it.) isbox_raw.txt and isbox_raw1 have the same content.
If the file is zero bytes in size and I try a >List "filename"< the system freezes. Maybe you want to take a look at it.
PicoMiteHDMI MMBasic RP2350A Edition V6.00.01RC9
Screenshot:
Another thing: I recently started having automatic ".bak" files, like with CMM2. Is that new, can it be turned off?
Kind regards Michael Edited 2024-12-19 21:02 by twofingers
Posted: 11:09am 19 Dec 2024 Copy link to clipboard
Volhout Guru
Why ? It is a feature, not a bug... After you have finished editting, type KILL "*.bak"
Volhout Edited 2024-12-19 21:11 by Volhout
Posted: 11:19am 19 Dec 2024 Copy link to clipboard
twofingers Guru
Hi Harm, I see it differently. It was introduced on the CMM2 because there was a temporary lack of reliability when saving files. It was retained. It seems to be new on the Pico. I'll take a look at the manual... I found it: Page 106 () Apart from that, I find the behavior rather annoying. Kind Regards Michael Edited 2024-12-19 21:23 by twofingers
Posted: 11:32am 19 Dec 2024 Copy link to clipboard
matherp Guru
I'll fix list so you can list files without an extension - currently appends .bas. Can't replicate any lockup with empty files. I'm not changing .bak. One day you will need it after saving a file and then realising you made a big mistake and then you would ask for it.
Posted: 11:35am 19 Dec 2024 Copy link to clipboard
Volhout Guru
Hi Twofingers,
It is new. It did not exist in the previous 5.09.00 series. And given the fact that the A:/ drive is quite small in size (600-800kbyte) it could present an issue when there is not room to put the .bak file. In that case it could cause more harm. In case of the Game*Mite where the A:/ drive is nearly full, editting is not possible anymore.
I think it is worth testing exactly that problem case...
Volhout Edited 2024-12-19 21:36 by Volhout
Posted: 11:36am 19 Dec 2024 Copy link to clipboard
Mixtel90 Guru
It used to happen in DOS too. :) In fact, most commercial programs create BAK files of some sort. SL6 does, as does TinyCAD not to mention the proper stuff like AutoCAD. There are very few reasons not to produce them, apart from them looking a bit untidy.
As Harm says, it's easy enough to delete them after. They can be very useful if you mess something up though! Rename your working file, rename the BAK file to BAS and load it.
Posted: 11:43am 19 Dec 2024 Copy link to clipboard
matherp Guru
let's be clear you ONLY get a .bak file when using EDIT fname$. Editing a loaded file does not save to disk.
Posted: 12:33pm 19 Dec 2024 Copy link to clipboard
twofingers Guru
Tested several times ... Tested again and I can now go back to the prompt with CTRL-C.
Well, in my workflow I save extremely frequently, so backup files are unnecessary. But I can live with it. Regards Michael
Posted: 04:45pm 19 Dec 2024 Copy link to clipboard
twofingers Guru
@Peter You write in your comment on the new AES function:
What are the reasons for the restriction to 128 characters when 'in' and 'out' are defined as strings? In my tests, more than 128 seem to be feasible. Kind regards Michael
Posted: 04:51pm 19 Dec 2024 Copy link to clipboard
matherp Guru
Its not 128 - brain fade - it is 240. The point is that it is not 256
Posted: 04:53pm 19 Dec 2024 Copy link to clipboard
ville56 Senior Member
()
is this behaviour for all variants as I cannot reproduce it onWebmite V6.00.01 RC9. Editing a .bas file does not create a .bak file.
Posted: 05:41pm 19 Dec 2024 Copy link to clipboard
Mixtel90 Guru
If you are editing a file that's already in flash then no BAK file is created. It's only if you use EDIT <filename>.Is that what you are doing?
Posted: 06:21pm 19 Dec 2024 Copy link to clipboard
PhenixRising Guru
Anyone running the I2C @ >100KHz? Manual still recommends 100KHz.
Posted: 06:35pm 19 Dec 2024 Copy link to clipboard
matherp Guru
By default OPTION SYSTEM I2C runs the I2C at 400KHz. You can override this by using OPTION SYSTEM I2C clkpin,sdapin [FAST/SLOW] This is in the manual. Edited 2024-12-20 04:37 by matherp
Posted: 07:51pm 19 Dec 2024 Copy link to clipboard
ville56 Senior Member
yes, correct
Posted: 08:18pm 19 Dec 2024 Copy link to clipboard
Mixtel90 Guru
Oh, I don't know then. :) It's something new so I don't know if it's in that particular version.
Posted: 08:32pm 19 Dec 2024 Copy link to clipboard
ville56 Senior Member
According to Michaels post it should be built in beginning with V6.00.01RC9
-------snip -----------
PicoMiteHDMI MMBasic RP2350A Edition V6.00.01RC9
-------snip -----------
Another thing: I recently started having automatic ".bak" files, like with CMM2. Is that new, can it be turned off?
-------snip -----------
so i thought it should apply to all variants. Can EDIT "filename.bas" without problems, but no .bak file.
Page 17 of 23
The Back Shed's forum code is written, and hosted, in Australia.