GinDiamond
Member
Hello,
I've been poking around the libraries and hardware features of the teensy, and found that there's supposedly SIMD support https://forum.pjrc.com/threads/31285-SIMD-instructions-with-Teensy.
I looked deeper into this, and found that there's a library in the teensy folder called "arm_neon.h". I tried including it in a bare project but I'm getting this error upon compilation:
How do I enable neon? Do I need to edit the build flags? If so, how do I do this?
I've been poking around the libraries and hardware features of the teensy, and found that there's supposedly SIMD support https://forum.pjrc.com/threads/31285-SIMD-instructions-with-Teensy.
I looked deeper into this, and found that there's a library in the teensy folder called "arm_neon.h". I tried including it in a bare project but I'm getting this error upon compilation:
Code:
#include <arm_math.h>
#include <arm_neon.h>
int32x2_t i;
void setup() {
}
void loop() {
}
Code:
In file included from C:\Users\user\Documents\Arduino\teensy_math\teensy_math.ino:7:0:
c:\program files (x86)\arduino\hardware\tools\arm\lib\gcc\arm-none-eabi\5.4.1\include\arm_neon.h:31:2: error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h
#error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h
^
teensy_math:9: error: 'int32x2_t' does not name a type
int32x2_t i;
^
'int32x2_t' does not name a type
How do I enable neon? Do I need to edit the build flags? If so, how do I do this?