Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 19:58 11 Nov 2025 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 : Pic32mzda and Linux?

Author Message
akashh
Senior Member

Joined: 19/01/2014
Location: India
Posts: 115
Posted: 02:13pm 06 Aug 2018
Copy link to clipboard 
Print this post

Hi all,

It's been a while since I posted. I was looking into the Pic32mzda and got myself the starter kit. Apparently Linux 4.5 supports the chip and the code is freely available, including u-boot. However, there is very little info out there about anyone who has actually done it, and could not find a single hex file. It seems like an interesting avenue to explore for the simple reason that it brings lots of already debugged applications to the platform.
Has anyone messed around with this or is there any interest in collaborating to try and get this going?

Akash
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4126
Posted: 12:26pm 08 Aug 2018
Copy link to clipboard 
Print this post

Is there even a board with a decent amount of RAM to suit Linux?

Also, isn't the price so large that realistically it has no chance in the market?

It's not particularly fast, either.

John
 
akashh
Senior Member

Joined: 19/01/2014
Location: India
Posts: 115
Posted: 12:49pm 08 Aug 2018
Copy link to clipboard 
Print this post

John,

The Pic32mzda has 32 MBA of DRAM integrated in the chip! This opens up a world of options as it apparently has a proper memory manager that fully supports Linux.
Starter Kit Link
Linux 4.5 for pic32 on GitHub

And of course for all the MMBasic fans the extra ram would allow for high definition video, etc. I had a quick look at the data sheets and was able to compile a simple app for it with minimal effort as it is very similar to the MZ.

Akash
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10572
Posted: 01:21pm 08 Aug 2018
Copy link to clipboard 
Print this post

  Quote  Also, isn't the price so large that realistically it has no chance in the market?

It's not particularly fast, either.


Agreed, whereas it may have some role as an embedded controller once you put Linux on it, it is up against Raspberry Pi and all the other similar products (faster, cheaper, established etc.)

Very difficult to tell from the datasheet but I think the maximum the graphics can support is 800x480 because the maximum pixel clock is only 50MHz, also check the errata - not impressiveEdited by matherp 2018-08-09
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4126
Posted: 03:15pm 08 Aug 2018
Copy link to clipboard 
Print this post

  akashh said   John,

The Pic32mzda has 32 MBA of DRAM integrated in the chip!

Akash


I know. It's terribly small for any modern Linux.

I mentioned the price and speed for good reasons, too.

There are dozens or even hundreds of better devices, in what is a very very competitive and crowded marketplace. It's quite easy to find something at (say) one tenth the price, 10 times the RAM and 10 times faster.

Maybe someone would like it for MMBasic - that's a tiny and uncrowded marketplace.

JohnEdited by JohnS 2018-08-10
 
isochronic
Guru

Joined: 21/01/2012
Location: Australia
Posts: 689
Posted: 01:19am 09 Aug 2018
Copy link to clipboard 
Print this post

As matherp says, I think the design aim was as an embedded controller that could drive small lcds, the Linux market tends to a different space.
 
akashh
Senior Member

Joined: 19/01/2014
Location: India
Posts: 115
Posted: 01:49am 09 Aug 2018
Copy link to clipboard 
Print this post

  JohnS said   It's quite easy to find something at (say) one tenth the price, 10 times the RAM and 10 times faster..

John


I have not found anything in a TQFP package with integrated DRAM making it a single chip solution. Can you post some info on the chips you are referring? Servicing is important for my target market and we do this by hand.Edited by akashh 2018-08-10
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4126
Posted: 11:51am 09 Aug 2018
Copy link to clipboard 
Print this post

I did not say it would match that (and it strikes me as a specific somewhat quirky wish).

I'm quite happy with complete boards - there are many and they're cheap.

I've not looked for the kind of chip you specify and would not want one anyway, sorry. Soldering such is something I prefer to avoid, especially as boards are so easy to get.

JohnEdited by JohnS 2018-08-10
 
akashh
Senior Member

Joined: 19/01/2014
Location: India
Posts: 115
Posted: 02:03am 10 Aug 2018
Copy link to clipboard 
Print this post

John,

The reason is simply because I want to manufacture it and service it in India, and would like something with minimal parts. Most of my boards used to be hand soldered until I went pick and place, but all servicing is done by hand still.

I am interested to explore Linux on a microcontroller like the Pic32mz not because it will provide great speed but more for the reliable networking and encrypted ssh access. I also have explored a lot of the kickstarter mini Linux projects and thankfully have not integrated them into my products as many of them did not stick around. The raspberry PI is one of the few that have but I doubt if they come in 200 quantities at a time.

AkashEdited by akashh 2018-08-11
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4126
Posted: 06:09am 10 Aug 2018
Copy link to clipboard 
Print this post

I think you can order larger qty of RPi - maybe even more direct than the likes of RS. You can build your own boards, too, I think.

The RPi is hugely more capable than the pic32mzda so if you don't need that extra stuff then the single chip may be what you want but you're likely to be very much on your own.

First I'd find out what the actuality of Linux support is, and its mainline - which I think is nil (and likely to stay so).

I'd also find out what bugs the chip has, as Microchip seem very slow at fixing bugs nowadays - even serious ones.

If there's any chip with better actual support from its maker and with existing Linux I'd think hard about using it rather than any pic32. E.g. perhaps an STM32 one you could use.

JohnEdited by JohnS 2018-08-11
 
akashh
Senior Member

Joined: 19/01/2014
Location: India
Posts: 115
Posted: 01:29am 11 Aug 2018
Copy link to clipboard 
Print this post

Thanks, good advice.

I will probably try and get it running just for fun, though, would be interested to see how it performs!

If there is anyone else interested with knowledge on cross compiling we could discuss this.
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4126
Posted: 06:09am 11 Aug 2018
Copy link to clipboard 
Print this post

If you make some cheap boards it may encourage interest - Microchip seem unable to grasp the need for readily-available boards that are cheap.

Cross-compiling is easy with gcc. Several pic32 supplier provide the tools, too. You may want to start with an open source one and tweak their boot (and other) code.

Or work on mmbasic or whatever you're interested in.

If you do plan to make boards, maybe people will assist in which pins should be used for what and what other components would be useful.

You might like to target the Arduino build environment, for example, and provide things normally available on such boards.

John
 
Print this page


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

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025