All of a sudden my project will not compile and is giving the following errors, which were fine before. i.e. nothing has changed in my code. What is causing this new issue? Was some library updated or something?
These are the new errors found in the code which hasn’t changed:
Cannot initialize object parameter of type ‘mbed::Stream’ with an expression of type ‘mbed::Serial’
clang(member_function_call_bad_type)
ACTUAL CODE: serial_flush = UART.getc();
No matching member function for call to ‘attach_us’
clang(ovl_no_viable_member_function_in_call)
ACTUAL CODE: biojet_timeout.attach_us(&BioJetOFF, open_time);
Do you have a public repository we could look at so we can look into the issue further? You can post it on this thread or send it to mbed-support@arm.com.
That was actually the problem. I have a 5 project that requires 5.12.4 and I mistakenly clicked to update to the latest mbed.lib, which was a 6 version.