Hello Carlos Alexandre Ferri,
1. Make sure you download the code in the flash, not the RAM.
After you download the code to the flash, power off and power on the board again, to check whether your application code works or not?
I don't have the USBDM on my side, so I don't know whether it caused by your USBDM.
2. Check the following properties

Make sure your are select the ewl, not ewl_hosted.
3. If you are still not OK,
Check whether your USBDM can download the .bin, .hex directly, without the IDE.
Then, you can generate the .hex or .bin to download directly.
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------