olikraus / m2tklib

Automatically exported from code.google.com/p/m2tklib
Other
49 stars 11 forks source link

Error compiling for STM32F1 architecture #163

Open TamojitSaha opened 6 years ago

TamojitSaha commented 6 years ago

I was compiling the sketch for STM32f1 series board and got this error. Is there any way to fix this problem?

Error text

Arduino/libraries/M2tklib/utility/m2.h:686:128: error: invalid conversion from 'void (*)(m2_el_fnarg_p) {aka void (*)(_m2_el_fnarg*)}' to 'm2_rom_void_p {aka const void*}' [-fpermissive]
 #define M2_ROOT(el, fmt, str, element) m2_el_root_t el M2_SECTION_PROGMEM = { { { m2_el_root_fn, (fmt) }, (str) },  (element)  }

                                                                                                                                ^
sketch/menu.h:52:1: note: in expansion of macro 'M2_ROOT'
 M2_ROOT(el_ok, "f4", " back ", fn_ok);
 ^
exit status 1
Error compiling for board Generic STM32F103C series.