Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RP2350 support #142

Open
c1570 opened this issue Jan 31, 2025 · 5 comments
Open

RP2350 support #142

c1570 opened this issue Jan 31, 2025 · 5 comments

Comments

@c1570
Copy link
Contributor

c1570 commented Jan 31, 2025

Just as a pointer for anyone interested:
https://github.com/c1570/rp2040js features some RP2350 support (RISC-V only).

@urish
Copy link
Contributor

urish commented Jan 31, 2025

Great! What's the end goal?

@c1570
Copy link
Contributor Author

c1570 commented Feb 9, 2025

I'm mostly using it for https://github.com/c1570/Connomore64 and it's running that already so not sure.

I'll probably implement interrupts (because most normal projects need those) and GPIO/PIO changes (those additional GPIOs are interesting in the context of other retro tinkering). Supporting MicroPython would also be nice.

Of course it would also be interesting to get this into Wokwi but that's probably a long way to go...

@urish
Copy link
Contributor

urish commented Feb 10, 2025

Awesome, thanks for sharing!

I think GPIO / PIO changes would be great. How long did it take to get it to the stage where you were able to simulate Connomore64?

@c1570
Copy link
Contributor Author

c1570 commented Feb 12, 2025

Difficult to say, around 50 hours probably, including looking at RISC-V for the first time.

Interrupts are there now but need some debugging. Xh3irq is a nifty feature but a bit complex.

Also, I merged most of the recent rp2040js changes apart from reformatting/ESM/tsx changes.
For rp2350js, tsx is much slower than ts-node for some reason (tsx runs is at only about 30% of ts-node's speed even though initial startup is much faster with tsx).

@urish
Copy link
Contributor

urish commented Feb 16, 2025

That's surprising, at the end of the day, both are just removing the types. IIRC, in recent node versions (22?) you can just use --experimental-strip-types to directly run TypeScript code, without any extra "helpers"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants