custom code in "generated_source" files

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

I have written a small amount of code, that I put in a "generated_source" file.

   

Of course, each time I regenerate, it overwrites my "custom" code.

   

is there somehow I can delimit this code so it's retained in the "generated_source" file??

   

I thought there was, but not having luck searching for it on Cypress site!

   

Thanks

0 Likes
3 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

There are "Callback Macros" provided to get called (usually from an interrupt). Leaving code in a generated file will not last for a Creator version or component version change and should be avoided. I did program a lot of projects so far and I never really needed my own code in a generated file.

   

The last help for you is always: Create your own component and have your own files generated.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

Thanks Bob!

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

You're always welcome.

   

 

   

Bob

0 Likes