Hi all,
Is it possible to generate a library with the Keil Studio Pack (MDK6) for VS code?
With μVision it is a matter of selecting between "Create Executable" or "Create Library", but when importing the .uvprojx project into MDK6, the resulting csolution always generates an executable (or better, tries to generate it, as the lack of main() ends with an error).
Thanks & regards.
There is currently no GUI option for this. But you can always use the "output" element in the cproject yml file like this:
https://github.com/Open-CMSIS-Pack/cmsis-toolbox/blob/main/docs/YML-Input-Format.md#output
output: # configure output files type: lib # Generate library file.
Also, if you convert a uVision project that has on the Options for Target ... -> Output tab "Create Library" selected into a csolution in MDK 6, the resulting cproject file should already include the output element to create the library.
I also just tried this here and it works as expected. So can you please describe more detailed what you do so we can try to reproduce your problem based on your description?
Hi,
Nice! Apparently during these 5 months Keil updated something and now, when converting an .uvprojx project, it correctly generates a library if the original project did that.
When I opened this issue, converting from such .uvprojx project did not generate a library, but tried to build and executable.
For me this issue is now fixed.
Thank you for coming and sharing this update with the community :)
yes, there is the tool "uv2csolution" as part of the Arm CMSIS Solution extension for converting uVision projects to csolution format. You did not mention to have used a converted project. "uv2csolution" supports since version 1.2.0 (note that this is not the version of the extension) the lib output