Jump to content

PapaJoe

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by PapaJoe

  1. On 2/12/2024 at 9:21 AM, PapaJoe said:

    Hello Fausto,

    many thanks for the response. I am using a Raspberry Pi model 4B from the year 2020.

    Best regards

    PapaJoe 

    Hello Fausto,

    here comes the output of the command

    cat /proc/cpuinfo | grep model 

    model        : 112
    model name    : AMD A6-9220 RADEON R4, 5 COMPUTE CORES 2C+3G
    model        : 112
    model name    : AMD A6-9220 RADEON R4, 5 COMPUTE CORES 2C+3G

    Best regards

    PapaJoe

  2. Hello,

    during installation process of the daqhats driver package I got an error while building the gpio.o binary. The bcm_host.h package is obviously missing, and this terminates the build process. Thus my MCC172 HAT can't be detected by my software. I used the latest driver version (1.4.0.8) and even tried an older one (1.4.0.6) with the same result. Could you help me?

    Building and installing library
    
    make: Entering directory '/home/pi/newversion/daqhats/lib'
    gcc -I../include -I/opt/vc/include -I/usr/include -fPIC -Wall -Wextra -g -O2 -DENABLE_LOCALES=Off -MMD -c util.c -o build/util.o
    gcc -I../include -I/opt/vc/include -I/usr/include -fPIC -Wall -Wextra -g -O2 -DENABLE_LOCALES=Off -MMD -c mcc118.c -o build/mcc118.o
    gcc -I../include -I/opt/vc/include -I/usr/include -fPIC -Wall -Wextra -g -O2 -DENABLE_LOCALES=Off -MMD -c mcc152.c -o build/mcc152.o
    gcc -I../include -I/opt/vc/include -I/usr/include -fPIC -Wall -Wextra -g -O2 -DENABLE_LOCALES=Off -MMD -c mcc152_dac.c -o build/mcc152_dac.o
    gcc -I../include -I/opt/vc/include -I/usr/include -fPIC -Wall -Wextra -g -O2 -DENABLE_LOCALES=Off -MMD -c mcc152_dio.c -o build/mcc152_dio.o
    gcc -I../include -I/opt/vc/include -I/usr/include -fPIC -Wall -Wextra -g -O2 -DENABLE_LOCALES=Off -MMD -c gpio.c -o build/gpio.o
    gpio.c:18:10: fatal error: bcm_host.h: No such file or directory
       18 | #include "bcm_host.h"
          |          ^~~~~~~~~~~~
    compilation terminated.
    make: *** [makefile:32: build/gpio.o] Error 1
    make: Leaving directory '/home/pi/newversion/daqhats/lib'
    make: Entering directory '/home/pi/newversion/daqhats/lib'
    make[1]: Entering directory '/home/pi/newversion/daqhats/include'
    make[1]: Leaving directory '/home/pi/newversion/daqhats/include'
    install: cannot stat './build/libdaqhats.so.1.4.0.8': No such file or directory
    make: *** [makefile:38: install] Error 1
    make: Leaving directory '/home/pi/newversion/daqhats/lib'
    make: Entering directory '/home/pi/newversion/daqhats/lib'
    make: Leaving directory '/home/pi/newversion/daqhats/lib'
    
    Building and installing tools

    By the way (in case this might be important): In the moment I am using an installation of RaspiOS-light (terminal version, Debian 12 bookworm, kernel 6.1.0-rpi8-rpi-v8, aarch64), that comes without GUI. A former installation of the driver packages on a RaspiOS that comes with GUI was successful.

    Thanks a lot in advance!

    PapaJoe

  3. Hello out there!

    While doing my first steps with MCC172 and Raspberry Pi 4B I got an issue in combination with the GPIO usage. Every time I want to use a GPIO pin (t.ex. to light an LED) the MCC172 is not responding any longer. The only way to get back control is to reboot the RasPi. It has nothing to do with my LED or other peripherals, this even happens when I set up a GPIO pin without my breadboard connected to the GPIO.

    I even tried a different package (gpiozero), but with the same result. Before addressing any GPIO everything runs as it should be. Are there restrictions in usage of the GPIO? Is there any interference/reciprocal effect with the MCC172? If so, which pin of the GPIO can I use for other purposes? I want to realize a switch/button that starts/stops my measuring routine, and a LED should indicate the condition (idle/busy). Could you give me aid/advice? Thanks a lot in advance!

×
×
  • Create New...