Hi Mattis,
that is not simple but it is possible. In my opinion you may
- Build and download u-boot, the bootloader will be necessary in any case.
- Build you application using Meta-toolchain
- Once you have the binary you need to put it in a known memory location.
- You may start the MCU and u-boot will run. You can use instruction bootaux in u-boot to jump to your application.
Attached you can find some baremetal examples for imx6. Please not that these examples are not official therefore they are NOT SUPPORTED.
You may also find interesting the following document to debug
https://www.nxp.com/docs/en/application-note/AN4553.pdf
Regards,
Carlos
NXP Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------