News:

PROTON pic BASIC Compilers for PIC, PIC24, dsPIC33

Main Menu

Positron Arm Compiler

Started by JonW, Nov 27, 2026, 01:04 AM

Previous topic - Next topic

JonW

Guys  I have been working on this for months. Pure basic to ARM compiler.  Does basic direct to UF2 on RP2354A, Inline asm, PIO, dual-processor interrupt, USB, timers, adc, overclocking, ring-buffered serial and a lot, lot more. Take a look at the help file.
download html, open


Just messing about with it at the moment and don't want to step on Les toes, so when it's a bit more polished I plan to give the source to Les so he can possibly look at adding it. But if you have used the Pico SDK, it's not that easy and should have been made so much simpler like this.  Literally a dozen lines of code direct to UF2 and you have a running program.

JonW

Not sure it shared so i posted the help on the bootloader site HERE

TimB

Very impressive Jon


DaveS

Hats off, brilliant.
DaveS

JonW

Cheers, added WIFI to it now, dev board can run the RMC20452T so built a full wifi stack

Mapo

WOW
same syntax as Positron—wonderful.
Great project, Jon.

Frizie

This is truly incredible.
Huge respect for making this possible.

Quote from: Mapo on Nov 27, 2026, 10:38 PMWOW
same syntax as Positron—wonderful

Maintaining the same syntax as Les' Positron is the biggest plus.
This also makes Wifi easier to access.

And the help file is also very neat and comprehensive, just the way Les does it.

Very, very good job Jon  ;D

Ohm sweet Ohm | www.picbasic.nl

top204

#7
Many thanks Jon.

With your knowledge, and AI for help with the coding, it will be excellently implemented by you.

I look forward to seeing and using it

Best Regards
Les

Dompie

WOW! It's hard to believe you could create something like this for a completely different processor!! Incredible—and the documentation you've already put together is amazing!!!

Question: I found a Raspberry Pi Pico 2 W dev board that appears to have the right components (RP2350 + memory = RP2354A, and a CYW43439 = RMC20452T). Will it work with your compiler? Or is an RP2354A + RMC20452T combination specifically required?
Official Rasberry Pi Pico 2 W link:Rasberry Datasheet

Johan

JonW

#9
Les, no worries, I am adding some other string functions, ifndef, watchdog, second serial port, encryption etc etc.  The wifi stack  can already  run parallel on separate core or on a single with interrupts and fifos for tcp, dchp, udp, web page creation, manual IP and loads of examples of controlling WiFi, plus 50 plus other examples.I am benchmarking to GCC and its already way faster than any other basic compiler for RPI and this produces pure asm.  I still need to work on the optimiser though.

Having read many Ardubloto libraries, the power and simplicity of basic and the PIO really is impressive.  Dma is built and with PIO you can stream custom protocols over WiFi into the tens  of Mbit without hardly touching the dual cores. 

Hope you dont mind me copying the positron syntax, in return, Ill share all the C source files for the compiler, parser, optimiser and IDE with you, plus all examples and C89 gui C for the wifi on PC. I had my Ai go over all the Positron files and its well impresed and has based much on your work.

It already does RP2354A and Pico2/2W, ive not started looking at RP2040 and would rather get it as good as I can before bloating it.  It should port to other vendors Arm cores, the RP2354A is such an underestimated MCU for Less than $1.  It also has embedded flash and is one of the most secure devices on the market now. 

Was a bit of fun, but its turned out to extraordinarily powerful and very capable, ive been feeding other Ai the help files, its seemingly fills a  huge void the Pi guys have missed with the current SDK.  With 30 lines of basic, 1 IDE, direct to UF2, infact if you enable the usb declare, it programs the RP2354A without pushing boot button, you can have a web server.  Copilot was shocked at the efficiency and readability of the basic to true form, that's a credit to you Les!

The power of AI is incredible if used to its potential and carefully guided.  I planned it over a few months, spec sheets and outline architecture but its only taken  4 days to go from spec to 90 percent complete. I also painted 2 bedrooms while the Agents were crunching.... Ridiculous really.

Les, I wont publish it without you seeing it and approving it, I really think it can be sold rather than free and you can have all the proceeds if it goes that way as Positron is your baby.   Ill send you a couple of the dev boards with WiFi fitted soon.

FRIZIE,  the help file was designed in a "similar fashion"  to Les', and to be feed into any simple Ai.  This way a novice can get high end, almost developer standard compiled code in 5 minutes and read it, understand it and alter it.  There is also auto complete in the IDE and I have  similar PPI and def files for the processor datashert registers, instead of meaningless register $0x000000, I detest make files, fragments of C files everywhere, repeated headers, just confusing to the novice and unnecessary imho.


top204

I cannot write the feeling of friendship I have, Jon. :-)

I really look forward to seeing and using it.

Vert best regards
Les


JonW

#11
Les,

No need for words dude. Love u man.

Cold in surf today.. my man lumps have gone negative, call myself Mrs Jon now. By law haha. Makes you think though, gets that clarity and focus

Jx

CPR

What awesome work JonW. 8) This is the proper use of AI and demonstrates how it can be so beneficial when used correctly in this way. Fantastic project! Les, have you tried posting any code snippets to Claude or Gemini just out of curiosity?

▲