This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Keil Studio Pack (VS Code extensions, MDK 6) Able to generate libraries?

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.

Parents
  • 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?

Reply
  • 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?

Children