3 years, 9 months ago.

Can't build HelloWorld_IDQ01M1v2 sample locally with Make-GCC-ARM for NUCLEO F411RE?!


I have found out that https://developer.mbed.org/teams/ST/code/HelloWorld_IDW01M1v2/ would work if I import their sample code to the online mbed compiler to compile for F411RE. It will just work fine when I flash the .bin from the online mbed compiled output.

However, if I try to export the codes for toolchain: Make-GCC-ARM for NUCLEO-F411RE as in https://developer.mbed.org/teams/ST/code/HelloWorld_IDW01M1v2/export it would not work at all, because only the *.lib will be exported but no related *.h to use with the *.lib at all. And I have no idea if those *.lib would work for F411RE or not at all?!

Therefore, I used https://developer.mbed.org/teams/ST/code/HelloWorld_IDW01M1v2/compile to trace out all the files that got compiled by the online mbed compiler and then downloaded all the related *.cpp/*.h to mimick the same.

However, it still doesn't work well as I still have the following compile error which I cannot figure out at all?!

I don't know why the codes in SPWFSA01.cpp would cause this invalid conversion from 'int' to 'const char*' error...

   SPWFSA01::SPWFSA01(PinName tx, PinName rx, PinName reset, PinName wakeup, bool debug)     : _serial(tx, rx, 1024), _parser(_serial),       _reset(reset, PIN_OUTPUT, PullNone, 1),    _wakeup(wakeup, PIN_OUTPUT, PullNone, 0),     dbg_on(debug)  <=== Problem HERE?! {     _serial.baud(115200);  LICIO  FIXME increase the speed     _parser.debugOn(debug); }

Any idea please?!

Thanks & Best Regards, Robert


Be the first to answer this question.