Swift on Teensy?

How hard would it be to target the NXP MIMXRT1062DVJ6B Cortex M7 MCU on the Teensy 4.1? Is it worth me trying to do this or will I run up against some major headache, like the toolchain doesn’t support the M7 in some crucial way?

For reference, I have a lot of experience doing bare metal work on a wide variety of MCUs in C++ (GCC).

1 Like

It should be fairly straightforward. I would start by adding swift to an existing code base. Define a c header for the interface and implement it in swift. Build an object file with swiftc and -Xcc prefix all your clang/g++ flags then link it in.

1 Like