The SAM Boot Assistant (SAM-BA ® ) allows In-system Programming (ISP) using a USB or UART host without any external programming interface. In general, SAM-BA Monitor is factory programmed to ROM, if it exists. If ROM does not exist, by default, SAM-BA is not supported. To support SAM-BA in ROMless devices, the SAM-BA Monitor application can be loaded in the Flash memory.
For additional information read this documentation.
For this purpose i was modify the sam-ba_monitor_rom-less project to support ATSAMD21G18A chip. This project supports only uart. Hope it will helps you and saves your time.
Follow this steps to get started:
- Clone repository.
- Open it and in Build menu click Clean solution and then build solution.
- Go to Tools->Device Programming.
- Click apply and then read device signature.
- Click Memories then erase chip
- Choose the brand new hex file in Debug folder and click programm. (path to .hex file must be in english language!!!)
- Open sam-ba 2.18 and choose the com-port you are connected to.
- Select SAMD21 Xplained Pro board and click connect.
- You are welcome!
NOTE: Dont forget to change device in the project->properties->Device->Change device.
I will update the project during development process. Stay tuned.