I am working on coming up with a non-trivial sampl...
# kotlin-native
j
I am working on coming up with a non-trivial sample for kotlin on the STM32F4 Discovery board with Zephyr and have encountered a rather interesting issue. Specifically, this code generates a Usage fault in the ARM core of type No Co-processor instructions on line 8 (I presume line 8 because the message on line 7 shows in the console but line 8 does not). I am trying to determine why the build would even generate co-processor instructions in the first place for something like this. As a first pass i modified the konan plugin options to have the additional option
-mfloat-abi=soft
to ensure that any hardware FPU instructions would not be generated but this did not change the outcome. I am trying to track down what the reason for this on such a simple set of code and would be appreciative of anyone who can give me some more insight into the where I can look in konan or its various configuration/native files to perhaps gain more insight.
o
you can control native codegen parameters via konan.properties file
j
Thanks, I've been looking there and fiddling with board specific flags but have not had much success yet.
k
You could also just turn on fpu during your init. Of course only in case you just want to make it work. 😛
x
Could you where are you put the option -mfloat-abi=soft