Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 23:32 24 Nov 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 : RP2350/RP2040 compatibility - NOT at the UF2 level

Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9110
Posted: 07:02pm 15 Aug 2024
Copy link to clipboard 
Print this post

We need to put this one to bed.

UF2 files are NOT compatible. If you load a RP2040 UF2 to a RP2350 it doesn't even come out of bootloader mode it just ignores it.

Source file compatibility via the 2.0.0 version of the SDK is pretty good. To build for one or the other you need to completely delete the build directory, change the platform designation and re-compile and link from scratch.

The source file compatibility is not perfect (RP2350 doesn't have a RTC and the main clocks are different). This will be found to be particularly the case if hardware registers are accessed directly. The sdk tries to protect from this and sdk calls should be used wherever possible.

If/when I produce RP2350 firmware it will be a differently named uf2 file.
 
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 857
Posted: 08:36pm 15 Aug 2024
Copy link to clipboard 
Print this post

Expected. My 2350s are just for when/if ever
Any idea whether PIO code will run?
 
homa

Guru

Joined: 05/11/2021
Location: Germany
Posts: 351
Posted: 08:46pm 15 Aug 2024
Copy link to clipboard 
Print this post

Oh ha, to talk too big, compatibility. Too bad, but it was feared.
The fact that there will be different UF2 files and names is only to be welcomed in this case! I hope you have the nerve and strength for it.
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6780
Posted: 09:22pm 15 Aug 2024
Copy link to clipboard 
Print this post

The M33 has more instructions than the M0+. Binaries are different.

The new PIO has more options and facilities. Not sure if the new ones are back-compatible.
Mick

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

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9306
Posted: 12:35am 16 Aug 2024
Copy link to clipboard 
Print this post

I see that as a good thing.  That way, you can't load a UF2 file for the 2040 and get perhaps unstable operation(cos you are using the wrong file), rather, the 2350 just ignores it completely.  I personally think that will save A-LOT of confusion, from people trying to load 2040 UF2 files into the 2350 by accident.
Smoke makes things work. When the smoke gets out, it stops!
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6780
Posted: 06:31am 16 Aug 2024
Copy link to clipboard 
Print this post

The RP2350 is so clever. :) It's boot sequence is a wonder to behold when you compare it to the RP2040.! It can refuse to load all but signed files. It can even be set to refuse to load anything once it's been programmed. It can automatically swap CPU cores depending what the uf2 is for so that it always runs the correct CPU. It can boot from USB or a terminal or flash or something in the OTP section. Neat stuff.

Incidentally, in case anyone was wondering, the HSTX has no inputs. It's an output only module.
Mick

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

Joined: 05/03/2018
Location: Netherlands
Posts: 4223
Posted: 10:59am 16 Aug 2024
Copy link to clipboard 
Print this post

I would release 5.09.00 for 2040.
And freeze it there.
Then start 6.0 series for the HDMI product(s). Note there are als STM32 chips with HDMI, so  CMM2.5 may also appear.
I think it is used in Arduino -pro

Volhout
Edited 2024-08-16 22:01 by Volhout
PicomiteVGA PETSCII ROBOTS
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9306
Posted: 07:55am 17 Aug 2024
Copy link to clipboard 
Print this post

Yeah, just been reading the Raspberry Pi website about their new chip, and this bloody thing not only has the two ARM Cortex M33+ cores, but it ALSO has a couple of RISC-V(Hazard-3) cores in there!

I doubt that MMBASIC would ever use those, but bloody hell....
We now have dual-core RISC-V cores in this new chip.
I can see LOTS of development going on here, NOT just for the ARM cores, but also for the RISC-V cores.

Scroll down to "One more thing" section.
I wonder if RP are fans of the classic Columbo series - that was his(Peter Falk) catchphrase  

....and still only about US$1.20 or so per chip.....
Smoke makes things work. When the smoke gets out, it stops!
 
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 857
Posted: 08:23am 17 Aug 2024
Copy link to clipboard 
Print this post

@Grogster

Plus the state-machines are independent processors and super-fast  
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4223
Posted: 08:47am 17 Aug 2024
Copy link to clipboard 
Print this post

I understand risk-v is a licence free cpu core. Arm M33 is not. Given the cost of the 2350, with 2 Arm cores, the license cost is not extreme.

Espressive uses risc-v core in the esp32 s3.

Thoughts... is the risk-v added as a risk mitigation, or does it actually gives something extra versus the 2 arm cores?

Or is it just to have a solution when arm disappears. But then all development on the 2350 should aim at risk-v


Risk-v is harvard architecture. Did they redesign the chip for risk-v, and as second place the closest harvard archtecture arm core to replace the M0 (neumann architecture).

Thought...

Volhout
Edited 2024-08-17 19:10 by Volhout
PicomiteVGA PETSCII ROBOTS
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6780
Posted: 09:55am 17 Aug 2024
Copy link to clipboard 
Print this post

hehe...
You can have one ARM core and one RISCV if you like. It might give you a headache though, running two different binaries on the same bus. Note that RISCV is an "open" standard that anyone can use. It has limitations here though, like it's integer only.

The PIO modules can now send messages directly between them, I think, without involving DMA or CPUs. That should make things interesting too.
Mick

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

Joined: 17/05/2016
Location: United States
Posts: 3150
Posted: 12:10pm 17 Aug 2024
Copy link to clipboard 
Print this post

  Volhout said  to have a solution when arm disappears


Eh? Is this something some feel is in the cards?
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
Print this page


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

© JAQ Software 2024