Hi, I am trying to make an mBlock Arduino extension for a digital compass (BNO055). I uploaded all necessary resource files (headers), defined extension blocks with appropriate codes, downloaded to pc and added to extensions manager in mBlock 5. I then made a simple mBlock program to read compass calibration status using this extension. But when I try to upload the program to Arduino, it displays a large number of compiler errors. The generated C code itself is correct, because it compiles well in Arduino IDE, and runs as expected. Therefore, I suspect the C compiler in mBlock has issues? Can anyone here suggest me what the problem here is, and any workaround?
The errors are like below (some excerpt):
C:\Users\fba\mblock-avr\temp\build\src\BNO055.h:1606:12: note: each undeclared identifier is reported only once for each function it appears in ((regvar & bitnameMSK) >> bitnamePOS) ^ C:\Users\fba\mblock-avr\temp\build\src\BNO055.c:108:19: note: in expansion of macro ‘BNO055_GET_BITSLICE’ a_SWID_u8r = BNO055_GET_BITSLICE(a_SWID_u8r,