Previously I have programmed Atmel microcontrollers through Studio and loaded them through the ISP header. I just got a Metro M4 and Grand Central, which I know has a SWD header and have ordered an Atmel ICE, but would like to try loading through the UF2 bootloader if possible.
Do the files to be loaded have to be python code or will C code work?
Loading C code through Circuit.py
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- danhalbert
- Posts: 4649
- Joined: Tue Aug 08, 2017 12:37 pm
Re: Loading C code through Circuit.py
The UF2 bootloader also supports the Arduino bootloader protocol. You can also use something like an Atmel ICE. If you don't want to damage our bootloader, make your raw C program start at 0x4000. The bootloader is between 0x0000 and there. The bootloader is normally protected against overwriting.
Do not do a full chip erase: you will mess up the fuses.
Do not do a full chip erase: you will mess up the fuses.
Please be positive and constructive with your questions and comments.