5 Replies Latest reply on Aug 12, 2014 8:23 AM by userc_42326

    Modifying generated files

        • 1. Re: Modifying generated files



          I'm trying to modify USB_vdn.c file in generated files (USBFS component).


          Unfortunetly the file keep resetting to original everytime modification are made to the USBFS Hardware component.


          Has anyone encounter this problem?Any workaround since it is very annoying to retype everytime the files reset.


          Thank you.,


          BTW: The forum seem to be broken, cannot use the description space when using Chrome (ie the empty comment above)

          • 2. Re: Modifying generated files

            Do not use chrome, there are issues with the forum sw.


            The generated files will be overwritten, except for some clearly marked places for interrupt handling no modifications should be made. You always may create a completely new component with your own generated files. Can you tell us what the modifications you make are going to perform?





            • 3. Re: Modifying generated files

              Hi Bob,


              I'm just passing through a few varibles  through USB using wValue and wIndex. Nothing to do with interupt though.


              I assume by placing my function between the comment line below, the files will not be overwritten


              * Additional user functions supporting Vendor Specific Requests

              /* `#START VENDOR_SPECIFIC_FUNCTIONS` Place any additional functions here */

              /* `#END` */



              • 4. Re: Modifying generated files

                Yes, that are exactly the places where you may introduce own code. Those additions will survive a rebuild after hardware changes exept when the USBFS component itself is deleted.





                • 5. Re: Modifying generated files

                  Hi Bob,




                  good to know :)


                  I think my mistake was deleting the comment line..oopss.