5 years, 5 months ago.

Can't Compile MAX32630FTHR USB_Serial Demo code

Hi Folks,

Started a new project with the MAX32630FTHR board today after a few months away, and I keep getting this compile error on the USB_Serial Demo:

Argument of type "std::uint32_t" is incompatible with parameter of type "irq_fn" "VIC_SetVector(USB_IRQn, (uint32_t)&_usbisr"

Apparently the mbed USB stack has changed since I worked with back in February, as I had no compile issues back then.

Whatever happened to the standard mBed USBDevice library? It used to be the first item to show up when searching for USB libraries.

Thank you for any guidance.

Question relating to:

MAX32630 Rapid Development Platform

1 Answer

5 years, 5 months ago.

Hello Bill,
I tried to build the FTHR_USB_serial demo online and it compiles with no errors. The compiler was reporting just some warnings I listed below. Make sure you are building for the MAX32630FTHR platform and update all libraries in your project or try to import the demo as new program.

  • Warning: Deprecated declaration SYS_SPIX_Shutdown - give arg types in "extras/mbed-os.lib/targets/TARGET_Maxim/TARGET_MAX32630/mxc/mxc_sys.h", Line: 302, Col: 6
  • Warning: Deprecated declaration SYS_SPIX_GetFreq - give arg types in "extras/mbed-os.lib/targets/TARGET_Maxim/TARGET_MAX32630/mxc/mxc_sys.h", Line: 309, Col: 11
  • Warning: Function "mbed::FunctionPointerArg1<R, void>::FunctionPointerArg1(R (*)()) [with R=void]" (declared at <a href="#" onmousedown="mbed_doc_goto('/FTHR_USB_serialextras/mbed-os.lib/platform/FunctionPointer.h', '67'); return false;">/extras/mbed-os.lib/platform/FunctionPointer.h:67</a>) was declared "deprecated" in "USBDevice/USBAudio/USBAudio.cpp", Line: 25, Col: 233
  • Warning: Single-precision operand implicitly converted to double-precision in "USBDevice/USBAudio/USBAudio.cpp", Line: 118, Col: 28
  • Warning: Function "mbed::FunctionPointerArg1<R, void>::FunctionPointerArg1(R (*)()) [with R=void]" (declared at <a href="#" onmousedown="mbed_doc_goto('/FTHR_USB_serialextras/mbed-os.lib/platform/FunctionPointer.h', '67'); return false;">/extras/mbed-os.lib/platform/FunctionPointer.h:67</a>) was declared "deprecated" in "USBDevice/USBSerial/USBSerial.h", Line: 59, Col: 205
  • Warning: Function "mbed::FunctionPointerArg1<R, void>::FunctionPointerArg1(R (*)()) [with R=void]" (declared at <a href="#" onmousedown="mbed_doc_goto('/FTHR_USB_serialextras/mbed-os.lib/platform/FunctionPointer.h', '67'); return false;">/extras/mbed-os.lib/platform/FunctionPointer.h:67</a>) was declared "deprecated" in "USBDevice/USBSerial/USBSerial.h", Line: 59, Col: 205
  • Success!