Replies: 1 comment 1 reply
-
Hello Andrew, Regarding the linker, the embedded linker is currently hardcoded for linux, the reason is simply that a quick test for other archs (windows) didn't work right away, and we didn't test it further. You can try to enable it for the different platforms to experiment with it. Regarding the standard functions, I would also like the standard functions to support no_std, but we haven't gotten to that yet. If you are willing to work on that, we could open up an issue on the StandardFunctions repo where we could set a plan to move to no_std
Hope this helps |
Beta Was this translation helpful? Give feedback.
-
Hello again,
I am trying to build a basic PLC runtime for a microcontroller. However, I get an error when I try using rustyc with the appropriate target. I run this command on a really simple function with no dependencies:
rustyc test.st --target thumbv7em-none-eabihf
and get:
Error: GeneralError { message: "linker not available for target platform: unknown", err_no: linker__generic_error }
If I don't specify a target, it builds and runs fine on my host computer.
I don't know if I am missing a package, or whether this is a bug in ruSTy.
Also, to run ST code on a microcontroller, I will need the Standard Functions to support no_std. I am happy to work on this myself, but if you have any comments or information that would help with this, I would appreciate it.
Andrew
Beta Was this translation helpful? Give feedback.
All reactions