Im trying to continue my efforts in getting kotlin...
# kotlin-native
j
Im trying to continue my efforts in getting kotlin floating point working in Zepyhr/STM32F4 and I think my last major hurtle is getting kotlin to compile with the same floating point options as zephyr. I added
-mfpu=fpv4-sp-d16 -mfloat-abi=hard -march=armv7e-m
to
konan/platforms/zephyr/stm32f4_disco
but am still getting a link error of
Copy code
arm-none-eabi/bin/ld: error: zephyr/zephyr_prebuilt.elf uses VFP register arguments, libapp.a(program.o) does not
/home/jared/.konan/dependencies/gcc-arm-none-eabi-7-2017-q4-major-linux/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/bin/ld: failed to merge target specific data of file libapp.a(program.o)
which suggests to me that the object file being built by konanc is not being built with the correct flags going to gcc. Am I missing something in configuring the build to pass these flags?
d
Sorry I have no answers, but I just wanted to salute you in this fine endeavour. Push the frontier of MCU Kotlin my friend!
j
Thanks! I'm trying hard to get something going. Kotlin/Zephyr could be an amazing IoT platform. With some tweaks to the setup I don't see any reason why kotlin native couldn't more broadly support any Zephyr target