Loading circuitpython code using black magic probe?
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- criznach_bms
- Posts: 11
- Joined: Fri Mar 09, 2018 12:33 pm
Loading circuitpython code using black magic probe?
Is it possible to load circuitpython code via swd using a black magic probe or similar? We're using a feather m0 express to handle pre-boot activities on a Linux sbc. They're connected by usb on our pcb. We can mount the circuitpython filesystem from Linux once booted, but we'd like to flash the python code before attempting to boot Linux. Looks like it might be possible but not a lot of info out there.
- tannewt
- Posts: 3298
- Joined: Thu Oct 06, 2016 8:48 pm
Re: Loading circuitpython code using black magic probe?
Yup! It should just work with a bin file. (I'm not sure we keep them but you can build one yourself.) Fresh chips will also need a bootloader but if you have a feather then you already a bootloader.
- criznach_bms
- Posts: 11
- Joined: Fri Mar 09, 2018 12:33 pm
Re: Loading circuitpython code using black magic probe?
Thank you. Do I need to flash it to a particular start address? We're starting with feathers before moving to our own board with blank chips.
- tannewt
- Posts: 3298
- Joined: Thu Oct 06, 2016 8:48 pm
Re: Loading circuitpython code using black magic probe?
IIRC the bootloader on the M0 is 8k so after that. I wouldn't recommend building new products with the SAMD21 unless you are expecting limited use cases. They are ram limited. Anything with more RAM will be a better CP host longer term.
Please be positive and constructive with your questions and comments.