njsss
Posts: 35
Joined: Fri May 20, 2016 9:36 pm

wiringPi problems with CM3+

Tue Feb 12, 2019 10:23 pm

I tried a CM3+ and CM3+ lite, they both have problems with wiringPi.

Code: Select all

gpio readall
gives error "unable to determine board type ... model 16".

I checked the wiringPi version it is up to date 2.46. My raspbian kernel is 4.14.79 #1159 the newest too. Need some help here.

Andyroo

Re: wiringPi problems with CM3+

Tue Feb 12, 2019 10:35 pm

Have a look at this topic for changes needed to support the 3A+ https://www.raspberrypi.org/forums/view ... ?p=1420267

You may be able to mod it for this board.

njsss
Posts: 35
Joined: Fri May 20, 2016 9:36 pm

Re: wiringPi problems with CM3+

Tue Feb 12, 2019 11:14 pm

Andyroo wrote:
Tue Feb 12, 2019 10:35 pm
Have a look at this topic for changes needed to support the 3A+ https://www.raspberrypi.org/forums/view ... ?p=1420267

You may be able to mod it for this board.
I see thanks! I think I'll just keep developing with my CM3 for now till his official update.

User avatar
Greg Erskine
Posts: 181
Joined: Sat Sep 15, 2012 4:20 am

Re: wiringPi problems with CM3+

Wed Feb 13, 2019 12:21 am

I think you will be waiting a while. :)

Gordon hasn't updated wiringPi since 14 March 2018 for the RPi3B+. He hasn't updated for the RPi3A+.

I am not sure if Gordon is unwell or lost interest?
* Raspberry Pi is a trademark of the Raspberry Pi Foundation

User avatar
DougieLawson
Posts: 40575
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: wiringPi problems with CM3+

Wed Feb 13, 2019 7:47 am

Any language using left-hand whitespace for syntax is ridiculous

Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.

Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

User avatar
Greg Erskine
Posts: 181
Joined: Sat Sep 15, 2012 4:20 am

Re: wiringPi problems with CM3+

Wed Feb 13, 2019 8:41 am

Thanks.

So he has lost interest in maintaining his wiringPi web site. :(

Good to see he is OK! :mrgreen:
* Raspberry Pi is a trademark of the Raspberry Pi Foundation

TimWJ
Posts: 8
Joined: Sun Jun 17, 2018 7:19 am

Re: wiringPi problems with CM3+

Wed Feb 13, 2019 6:33 pm

This is Odd.

I have been using WiringPi 2.46 on CM3 and CM3 Lite for about 6 months.

I am using an old kernel, I think that it is 4.9.22.

Out of the box it works fine, but only supports one SPI bus and there is a bug in the MCP3002 ADC code. I added support for the other 2 SPI buses and fixed the MCP3002 bug. I emailed the changes to Gordon but never heard anything back.

If it helps I can fire up the CM3 Lite system tomorrow.

Tim.

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 10299
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: wiringPi problems with CM3+

Wed Feb 13, 2019 6:46 pm

It's the cm3+ and 3a+ that have issues as wiring Pi doesn't have the right revision code lookup. All older Pi variants are supported.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

User avatar
DougieLawson
Posts: 40575
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: wiringPi problems with CM3+

Wed Feb 13, 2019 6:57 pm

6by9 wrote:
Wed Feb 13, 2019 6:46 pm
It's the cm3+ and 3a+ that have issues as wiring Pi doesn't have the right revision code lookup. All older Pi variants are supported.
Hacking it to make it work for unsupported boards isn't hard. Hacking it as a production ready *.deb that's part of Raspbian is something that only Gordon can do (because beyond that lies chaos).
Any language using left-hand whitespace for syntax is ridiculous

Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.

Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 3604
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: wiringPi problems with CM3+

Wed Feb 13, 2019 6:59 pm

If all you need is the gpio readall functionality, "raspi-gpio get" works on all Pis.

njsss
Posts: 35
Joined: Fri May 20, 2016 9:36 pm

Re: wiringPi problems with CM3+

Thu Feb 14, 2019 12:13 am

So I installed the "official" deb file, "gpio -v" gives correct information "Compute Module 3 Plus". Yet gpio readall still doesn't work. It seems other gpio functions are working (set/write pins), but do really like the IO printout.
PhilE wrote:
Wed Feb 13, 2019 6:59 pm
If all you need is the gpio readall functionality, "raspi-gpio get" works on all Pis.
I use its functions in my program, so hopefully, nothing breaks.

DRAgon715205
Posts: 77
Joined: Wed Apr 02, 2014 11:46 am

Re: wiringPi problems with CM3+

Fri Mar 01, 2019 4:45 am

hello

I have got the 2.48 version wiringpi

the same wiringpi program can work at CM3(GPIO I2C SPI all work well)
But work error at CM3+ (same gpio do not run and I2C SPI PWM do not work with the same Progame)

please tell me how can I solve this problem ??

User avatar
DougieLawson
Posts: 40575
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: wiringPi problems with CM3+

Fri Mar 01, 2019 5:59 am

https://www.raspberrypi.org/forums/view ... 8&t=231942

You can patch the code yourself. It's not difficult.
Any language using left-hand whitespace for syntax is ridiculous

Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.

Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

DRAgon715205
Posts: 77
Joined: Wed Apr 02, 2014 11:46 am

Re: wiringPi problems with CM3+

Fri Mar 01, 2019 9:45 am

but which is A+ not CM3 +

and do not the same error , which is error model:14 , my is error model 16

as which method,

I need make which changes ? , to change A+ to CM3+ ?

User avatar
DougieLawson
Posts: 40575
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: wiringPi problems with CM3+

Fri Mar 01, 2019 10:00 am

Look at my patch https://www.raspberrypi.org/forums/view ... 2#p1420568

You should be able to apply that and hack it for a model 16 device.

I don't have the time (even though I've got a 3B here with me on holiday).
Any language using left-hand whitespace for syntax is ridiculous

Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.

Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Return to “Compute Module”