A mod in
#meta recommended this channel after I asked if there was a channel that covered porting Kotlin to new platforms. Currently I have made some changes to a forked Kotlin code base (
https://github.com/napperley/kotlin/tree/rp2040 ) to add
rp2040 (
https://www.raspberrypi.com/documentation/microcontrollers/rp2040.html ) as an
unofficial Kotlin target. Some key things are missing that I want to sort out which include the following:
• Connecting the official ARM GNU tool chain (
https://developer.arm.com/Tools%20and%20Software/GNU%20Toolchain ; GCC based & uses Newlib Standard library ) to the code base (incl
sysroot and other important paths that the code base requires)
• Forcing the Kotlin compiler to omit the linking step and only generate a static library file for the
rp2040 target
• Figure out what is meant by
configurables and supply the necessary stuff that is relevant to the
rp2040 target
When building the Kotlin code base an error appears about a unresolved JDK 7 dependency (some attempts are made to fetch the dependency from a Space server). As an added bonus I would like to automate the entire build via Gradle for the
rp2040 target if possible, although that may not be feasible since the Raspberry Pi Pico SDK (
https://github.com/raspberrypi/pico-sdk ; also covers uC's that use the RP2040 uC chip ) uses
CMake for generating a heavily optimized binary (via a tool provided by the SDK) from a static library file.