Hi Danilo,
Do you just want to put your code to the flash?
Could you tell me what the IDE you are using? KDS?
What the chip you are using?
If you want to put your code to the flash, after you create the project, write the code, and build it, the code will be generated as the code which can be download to the MCU's flash with the programmer directly.
You don't need to use the flash command to write your code to the flash.
If I misunderstood your question, please give me more details about your question.
Have a great day,
Jingjing
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------