3 Replies Latest reply on Feb 2, 2020 2:38 AM by BoTa_264741

    Clone and rename a component

    YaLe_3489106

      Hi,

       

      I would like to create a custom UART. For that I'd like to start from the existing UART component, clone it, change some part of the code, and use it in my project.

       

      So I created a new library project, imported the UART component, renamed it to MyUART_v1_10. I also rename the .cymacro, I also changed properties in MyUART_v1_10.cysym from UART to MyUART.

      I then added the dependency to the Design project. now in the component list, I see a new version of UART [v1.10] instead of a MyUART component. And when I try to put it in my design, I get an error :

      Failed to load assembly, 'C:\Users\XXX\AppData\Local\Cypress Semiconductor\PSoC Creator\4.2\customizer_cache\Library01_896d0d5e2abacff4905603f6c14cc753fa4bd574607d898ad0635376d04b1636.dll'

       

      I probably need to change other things in the imported compoenent, but I don't really know what.
      I see lines like "namespace UART_v2_50" in cs files, I probably need to change them to MyUART_v1_10 ? I tried but that doesn't help.

       

      I attache the workspace in which I did the tests