Loading C code through Circuit.py

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
magno_grail
 
Posts: 17
Joined: Tue May 25, 2021 8:52 pm

Loading C code through Circuit.py

Post by magno_grail »

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?

User avatar
danhalbert
 
Posts: 4649
Joined: Tue Aug 08, 2017 12:37 pm

Re: Loading C code through Circuit.py

Post by danhalbert »

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.

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”