Hi, i am very interested in the git-hub project belaonurhead.
I would like to extend it by a PD-patch to process files with the SOFA file format.
But I got a problem to get the actual code running. When I run _main.pd from imu-sine-synth-pd following error occurs:

! In file render.cpp: no matching function for call to 'sys_doio' column: 3, line: 361

Has someone any idea what i am doing wrong?
Thank you for your help, Klemenz.

that was for an old version of Pd. I think you should try this:

Find in libpd-render-with-IMU.cpp the line that says

sys_doio(pd_that);

and remove pd_that.

thanks a lot that worked.
i also commented out: //t_pdinstance pd_that = (t_pdinstance)arg;

3 months later

Hi there,

I updated the IDE, successfully compiled the pd cyclone external on the board, following this manual: https://forum.bela.io/d/101-compiling-puredata-externals/99.

However, pd-patches do not work anymore. Neither my own nor the example patches on the board. It says:

Building project ...
Building default_libpd_render.cpp...
Makefile:423: recipe for target 'build/core/default_libpd_render.o' failed
Build finished
In file core/default_libpd_render.cpp: no matching function for call to 'sys_doio' column: 3, line: 286
core/default_libpd_render.cpp:286:3: error: no matching function for call to 'sys_doio'
sys_doio();
~~~
/usr/local/include/libpd/s_stuff.h:171:6: note: candidate function not viable: requires single argument 'pd_that', but no arguments were provided
void sys_doio(
^
1 error generated.
make: *** [build/core/default_libpd_render.o] Error 1

Do you have an idea what's wrong and how to fix it? Unfortunately, I'm very new to this.

Thank you!

What version is your board? You find out by running grep v0 /etc/motd in the console at the bottom of the IDE.

Hello,

it's this one:

Bela image, v0.3.6b, 23 October 2018

Thank you!

Then, how did you update? Can you try dpkg -i ~/Bela/resources/stretch/deb/* and then rebuild the project?

great! out of curiosity, how did you update the board? I am trying to figure out how something went wrong during the update.

Sorry to bother you again. I now get error messages even when running the example patches:

Makefile:564: recipe for target 'runide' failed
make: *** [runide] Terminated

Do you know what could be wrong there?

Thank you again!

Can you show the full log before that error?

13 days later

hey all! im really interested in getting this example up and running but im getting the following errors when i run try to run it. does anyone have any ideas?

alt text

Thanks.

it seems that you are missing the Bela_BNO055.cpp file in your project? It's here

  • OG93 replied to this.

    giuliomoro thanks for that, not sure how i missed that. ive added it it to the project and now get this error. do you know what i should replace 'cout' with?

    alt text

    Thanks again.

    i have commented 'cout' out to see if it will run. i now get this error.

    alt text

    Thanks.

      actually here you have a more up-to-date version of the project.

      OG93 i now get this error.

      That seems like the IMU is not connected or not correctly identified? Can you run this command in the console

      i2cdetect -y -r 1

      ?
      What result does it give?

      OG93 i have commented 'cout' out to see if it will run.

      A better fix for the error about cout would be to add #include <iostream> at the top and then use std::cout instead of cout.

        giuliomoro would it be possible to point me in the direction of a manual on how to upload libpd patches onto the bela and have them run from startup?

        To upload a patch, just drag and drop it on top of the IDE. To run on startup, go to the settings tab of the IDE, and at the top you have "Run project on boot". Select your project there, reboot and it should all go fine!

        • OG93 replied to this.

          giuliomoro So the patch will run on bela without a computer then? Just an external power supply?

          2 years later

          giuliomoro Having a similar issue....I'm detecting the address of the IMU at 29, which is correct. Wondering why the data can't be sent over to the PD patch _main. I'll include the responses I'm getting.
          alt text

          I have the button routed on my Bela MINI, but I would prefer to not have to even include the button orientation. Is there a way to remove these aspects of the code, to make it not relevant?

          Thanks a ton

            Marshymarsh ...I'm detecting the address of the IMU at 29

            the code assumes the address is 0x28. You would need to change the line

            if(!bno.begin()) {

            in libpd-render-with-IMU.cpp to

            if(!bno.begin(1, 0x29)) {

            in your case.

            Marshymarsh t I would prefer to not have to even include the button orientation.

            what do you mean?