I'm making a cusermod for Micropython, and I'm trying to store a number in hex format in a string. I tried using sprintf
however, my compiler is telling me that it's undefined. I imported stdio.h
, string.h
as well as some other libraries required to develop cusermods for STM32 chips, yet I van't figure out why sprintf
isn't defined??? Has anyone had a similar issue and have any idea how to solve it?
0
votes
sprintf
in my experience. – David Graysonmake BOARD=XX USER_C_MODULES=../../../modules
, here is the makefile. And this is the error message!C:\msys64\mingw64\bin\arm-none-eabi-ld.exe: build-KAIROS/kairos_GPSL70/gpsL70.o: in function
gpshide_init': gpsL70.c:(.text.gpshide_init+0x5c): undefined reference tosprintf' make: *** [Makefile:689: build-KAIROS/firmware.elf] Error 1
– aaa