Page 1 of 1

wiringPi problems with CM3+

Posted: Tue Feb 12, 2019 10:23 pm
by njsss
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.

Re: wiringPi problems with CM3+

Posted: Tue Feb 12, 2019 10:35 pm
by Andyroo
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.

Re: wiringPi problems with CM3+

Posted: Tue Feb 12, 2019 11:14 pm
by njsss
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.

Re: wiringPi problems with CM3+

Posted: Wed Feb 13, 2019 12:21 am
by Greg Erskine
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?

Re: wiringPi problems with CM3+

Posted: Wed Feb 13, 2019 7:47 am
by DougieLawson

Re: wiringPi problems with CM3+

Posted: Wed Feb 13, 2019 8:41 am
by Greg Erskine
Thanks.

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

Good to see he is OK! :mrgreen:

Re: wiringPi problems with CM3+

Posted: Wed Feb 13, 2019 6:33 pm
by TimWJ
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.

Re: wiringPi problems with CM3+

Posted: Wed Feb 13, 2019 6:46 pm
by 6by9
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.

Re: wiringPi problems with CM3+

Posted: Wed Feb 13, 2019 6:57 pm
by DougieLawson
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).

Re: wiringPi problems with CM3+

Posted: Wed Feb 13, 2019 6:59 pm
by PhilE
If all you need is the gpio readall functionality, "raspi-gpio get" works on all Pis.

Re: wiringPi problems with CM3+

Posted: Thu Feb 14, 2019 12:13 am
by njsss
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.

Re: wiringPi problems with CM3+

Posted: Fri Mar 01, 2019 4:45 am
by DRAgon715205
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 ??

Re: wiringPi problems with CM3+

Posted: Fri Mar 01, 2019 5:59 am
by DougieLawson
https://www.raspberrypi.org/forums/view ... 8&t=231942

You can patch the code yourself. It's not difficult.

Re: wiringPi problems with CM3+

Posted: Fri Mar 01, 2019 9:45 am
by DRAgon715205
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+ ?

Re: wiringPi problems with CM3+

Posted: Fri Mar 01, 2019 10:00 am
by DougieLawson
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).