I have been building the pixy firmware in MCUXpresso. After a formatting and moving files around, I am down to just a few errors when trying to build the last folder: main_m4. They all seem to be related to the program progchase.cpp. This hypothesis is due to the errors being associated with this file, as well as it compiling almost completely(all .o files generated besides progchase.o) when removing this file from the src folder. All files can be found @ pixy2/src at master · charmedlabs/pixy2 · GitHub in the common and device folder.
../src/progchase.cpp:30:1: error: 'Program' does not name a type; did you mean 'Prog'?
Program g_progChase =
^~~~~~~
Prog
../src/progchase.cpp:144:3: error: invalid conversion from 'const char*' to 'uint32_t' {aka 'long unsigned int'} [-fpermissive]
"@c Chase_demo tranlational proportional gain (default 500)", INT32(500), END);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../src/progchase.cpp:25:
c:\mcuxpressoide_11.1.1_3241\pixy-final\libpixy_m4\inc\param.h:52:54: note: initializing argument 3 of 'int prm_add(const char*, uint32_t, uint32_t, const char*, ...)'
int prm_add(const char *id, uint32_t flags, uint32_t priority, const char *desc, ...);
In file included from c:\mcuxpressoide_11.1.1_3241\pixy-final\main_m4\inc\exec.h:20,
from c:\mcuxpressoide_11.1.1_3241\pixy-final\main_m4\inc\progchase.h:19,
from ../src/progchase.cpp:16:
../../../common/inc/chirp.hpp:58:41: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
#define CRP_INT32 0x04
^~~~
../../../common/inc/chirp.hpp:92:41: note: in expansion of macro 'CRP_INT32'
#define INT32(v) CRP_INT32, v
^~~~~~~~~
../src/progchase.cpp:144:65: note: in expansion of macro 'INT32'
"@c Chase_demo tranlational proportional gain (default 500)", INT32(500), END);
^~~~~
In file included from ../src/progchase.cpp:25:
c:\mcuxpressoide_11.1.1_3241\pixy-final\libpixy_m4\inc\param.h:52:76: note: initializing argument 4 of 'int prm_add(const char*, uint32_t, uint32_t, const char*, ...)'
int prm_add(const char *id, uint32_t flags, uint32_t priority, const char *desc, ...);
~~~~~~~~~~~~^~~~
The errors in the next section are identical issues being that the lines are almost the exact same.
../src/progchase.cpp:146:3: error: invalid conversion from 'const char*' to 'uint32_t' {aka 'long unsigned int'} [-fpermissive]
../../../common/inc/chirp.hpp:58:41: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
../src/progchase.cpp:148:3: error: invalid conversion from 'const char*' to 'uint32_t' {aka 'long unsigned int'} [-fpermissive]
../../../common/inc/chirp.hpp:58:41: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
../src/progchase.cpp:150:3: error: invalid conversion from 'const char*' to 'uint32_t' {aka 'long unsigned int'} [-fpermissive]
../../../common/inc/chirp.hpp:58:41: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
../src/progchase.cpp:167:2: error: 'BlobB' was not declared in this scope
BlobB *ccBlobs;
^~~~~
../src/progchase.cpp:167:9: error: 'ccBlobs' was not declared in this scope
BlobB *ccBlobs;
^~~~~~~
make.exe: *** [src/progchase.o] Error 1
make.exe: *** Waiting for unfinished jobs....
make.exe: *** Waiting for unfinished jobs....
Any help would be greatly appreciated~ Riley