Notifications
Clear all

Is it possible to keep MicroPython installed on the Pico and also program using Arduino?

5 Posts
3 Users
0 Reactions
1,144 Views
(@sealyons62)
Member
Joined: 2 years ago
Posts: 4
Topic starter  

I switch between programming in MicroPython and C++ (via Arduino 2.0) on the Pi Pico and am wondering if it's possible to program in both without uninstalling the MicroPython interpreter each time.  Can anyone help with this?  Thanks.


   
Quote
byron
(@byron)
No Title
Joined: 5 years ago
Posts: 1136
 

@sealyons62

Its not possible, best to get 2 pico's (at least) and to dedicate one to for arduino use, and the other for mp.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 4 years ago
Posts: 7402
 

@byron I thought I ran across something the other day that said it could, so a googling I went.

It's a longish rambling read, but the magic words 'it works' is in the thread. at LINK  you know I am not mp knowledgeable or C SDK but it looks to me that somebody got something to work maybe?

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
byron
(@byron)
No Title
Joined: 5 years ago
Posts: 1136
 

@zander @sealyons62

I'll let the OP read your link to see if the discussion is anything of interest.  

It seems it is some quite advanced programming when mp was run on one core and c on the other. Its not an everyday programming exercise thats for sure and makes use of hippy's bespoke code (a well known and advanced programmer in c and mp).  It was certainly not done with using the arduino IDE.  

I doubt if it has any bearing on what the OP is after and if you get to trying the sort of thing in the link then one would probably be familiar with recompiling the mp code to include c programs or modules which is readily done.  

The question the OP asks indicates that he/she is not at that advanced stage at this point in time.   The link does not address the question of doing some programming in mp and then switching to using the arduino2 IDE to load some arduino c / c++ code.  Still a nope on that one 🙂 


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 4 years ago
Posts: 7402
 

@byron Yes, I can see it's quite advanced, but I thought it was worthwhile to put it out there that it can be done with enough education and experience. I doubt I would ever need that, and if I do, hopefully, there will be better, easier-to-use tools to accomplish it.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote