Noob trying fixing config file and upload to proffieboard

Hello all!

First I must tell you that I only have a little experience with Ardunio (uploaded Merlin software to my 3D printer once). I have been reading the guide how to, and I just feel confused and then I end up in a bad circle and so far I started from 0 like 4 times and tried different ways.

Let me first say I am gonna use the proffieboard only for sound and 8 buttons. No saber at all.

So i started Ardunio and then open and took the proffiesOS.ino file and then I took away the “//” before the line #define CONFIG_FILE “config/teensy_audio_shield_micom.h”

Since what I understand that is what I should use. I downloaded the proffieboard plugin and the Teensy and installed them both (it says installed when I look at the library list).
I have a proffie V3 so that´s what I used first as the “Board” and got so many errors when verifying the config file before trying to upload it.

Then I changed to Teensy and tried V3.1-3.2 as it says in the guide for proffieOS. (I tried al verions now) and gets errors here also. If it was like 2-3 errors I would show them but I get like 20 or more.

I tried Google and sadly I only find when your doing a board for a saber and then it just seems to be so much info I don´t need to use and it just confuses me instead.

Either I missed something or did in wrong way. What is it I need to install and in what order should things be done?

:slightly_smiling_face:

There is no example microm-on-proffieboard config file checked in. The one you have assumes that you have a teensy, which is not right. Replace the include at the top of your config file with #include "v3_config.h" and it might work better. If that doesn’t work, I’ll give it a try and see if I can provide better advice.

Yeah as Fredrik mentioned above the micom config file is teferencing another file that has pin layouts for the Teensy 4.0 board & Audio shield. Not a proffie board.
The v3 file suggested has the pin layout for a proffie board.

Ultimately the pins are where you will solder your buttons (1-8). I believe in the config file they are referenced as ‘triggers’.

Are we still talking about proffieOS.ino or? I added that line and got this error:

“In file included from C:\ProffieOS\ProffieOS.ino:29:
C:\ProffieOS\config\v3_config.h:59:2: error: #error Please select your Teensy model from Tools->Board
59 | #error Please select your Teensy model from Tools->Board”

I also change the board back to proffie V3 in “tools”

I´ve seen that there is a micon.h in props folder. Anything I should use?

No.

I suggest the following:

  • Go into config/ make a copy of teensy_audio_shield_micom.h
  • rename the copy to proffiev3_micom.h
  • open up proffiev3_micom.h in a text editor (not word/wordpad)
  • replace this line #include "teensy_audio_board_rev_d.h" with #include "proffieboard_v3_config.h" (not v3_config.h like I said earlier, that was actually wrong…)
  • Now go change ProffieOS.ino so that CONFIG_FILE is set to “config/proffiev3_micom.h”
  • Make sure you have ProffieBoard V3 selected in Arduino->Tools->Board
  • Upload

The teensy_audio_shield_micom.h (and your new copy of it) file already does this.

Getting closer now. I got this error now tho:

C:\ProffieOS\ProffieOS.ino:56:10: error: #include expects “FILENAME” or
56 | #include CONFIG_FILE
| ^~~~~~~~~~~
C:\ProffieOS\ProffieOS.ino:616:10: error: #include expects “FILENAME” or
616 | #include CONFIG_FILE
| ^~~~~~~~~~~
C:\ProffieOS\ProffieOS.ino:620:10: error: #include expects “FILENAME” or
620 | #include CONFIG_FILE
| ^~~~~~~~~~~
C:\ProffieOS\ProffieOS.ino:624:10: error: #include expects “FILENAME” or
624 | #include CONFIG_FILE
| ^~~~~~~~~~~
C:\ProffieOS\ProffieOS.ino:682:10: error: #include expects “FILENAME” or
682 | #include CONFIG_FILE
| ^~~~~~~~~~~
C:\ProffieOS\ProffieOS.ino:1559:10: error: #include expects “FILENAME” or
1559 | #include CONFIG_FILE
| ^~~~~~~~~~~
exit status 1

Compilation error: #include expects “FILENAME” or

Should I just use “//” on them or?

This means that you didn’t set CONFIG_FILE in ProffieOS.ino correctly.

Example here:

I have tried to see where I typed wrong, and I even copyied from your text in case i did a typo.

The name of the config file is: proffiev3_micom.h

And I opend it and change it to: #include “proffieboard_v3_config.h”` from the teensy_audio_board_rev_d.h
I even tried same name as the config file but same error.

And in the ProffieOS has #define CONFIG_FILE “config/proffiev3_micom.h”

Im sure I just made a misstake but after 2 hours trying to figure this out, my head is just spining and I even took a break and tried again.

Did you make sure you don’t have 2 leading slashes from the beginning of the line that would comment it out?

Im sure the both slashes “//” are comment out. And the text also get colors when doing so.
But im sure it´s something right in fron of my face tho.

If you’re still getting the same error you posted above, post the first ~50 lines of ProffieOS.ino here and we’ll take a look.

Are those smartquotes? (Note the difference between " and )
Smartquotes are generated by wordpad and similar programs, which makes them nearly useless for programming, because C++ will not accept smartquotes.

Does it work better if you replace your quotes with " ?

It got alot better changing them, and now I only have this error not like 30 of them:

In file included from C:\ProffieOS\ProffieOS.ino:56:
C:\ProffieOS\config\proffiev3_micom.h:2:10: fatal error: config/proffieboard_v3_config.h: No such file or directory
2 | #include “config/proffieboard_v3_micom.h”
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1

Compilation error: config/proffieboard_v3_config.h: No such file or directory

I tried changing the name in the config/proffiev3_micom.h that now has :
#include “config/proffieboard_v3_micom.h” To “config/proffiev3_micom.h” but it was same error so I guess I am looking in the wrong place? Unless it´s Still the smartquotes messing up. Im gonna se if I can open with a better program than CMD.

So do you have a file called “proffiev3_micom.h” in your config directory?
(Or is it called proffiev3_micom.h.h ?)
Microsoft Windows normally hides the extension and shows it as the “type” of the file. Compare with other files in the same directory.

I only have proffiev3_micom.h in my config DIR.

But earlier you wrote: replace this line #include "teensy_audio_board_rev_d.h" with #include "proffieboard_v3_config.h"Maybe I missunderstood that :slight_smile:

So thats why I wrote that. There is no config file that has that name. But I´ll change again to “config/proffiev3_micom.h”

Update: I know changed name in the config file “config/proffiev3_micom.h” in Visual studio and still get an error: Compilation error: config/proffiev3_micom.h: No such file or directory

So maybe visual studio isn´t good using??

Visual studio should be fine.

#include "proffieboard_v3_config.h" goes in your config file
#define CONFIG_FILE "proffiev3_config.h" goes in ProffieOS.ino

Where are the other files? Some of those are required.

I have only 1 config file. I have totally missunderstood the text in ProffieOS. I thought it said only use one config at a time. But now I see it´s not what it says.

What config files should I have more?

Also, thanks for being so patient with me.

Well the one you need in this particular case is “proffieboard_v3_config.h”.

Yeah I started to figure that would be the case.

in file proffiev3_micom I have: “config/proffieboard_v3_config.h”
in file proffieboard_v3_config.h I have: “config/proffieboard_v3_config.h”

Still getting it cant find: config/proffieboard_v3_config.h: No such file or directory

I tested “proffieboard_v3_config.h” also

And I have removed the // in proffieOS for the proffieboard_v3_config.h

Remove “config/” you’re already in the config directory.