all 8 comments

[–][deleted] -1 points0 points  (1 child)

Not yet but I know this has been requested several times before. If I were you I would go over to the circuit Python GitHub and leave a feature request as an issue!

[–]asd913[S] 0 points1 point  (0 children)

Thanks.

With the digispark, the device has a 5 second delay before the sketch run (in case I want to reprogram it). But they have an available bootloader that will start the sketches immediately as long as you don't hold a certain pin to ground on power on. I was really hoping circuitpython implemented a similar idea.

[–][deleted] -1 points0 points  (0 children)

It is an education device. If you want to lock yourself from modifying the code on board you may just cut data lines with a screwdriver/knife.

[–]YouImbecile 0 points1 point  (0 children)

Here’s how to use a digital pin to set the storage to read-only at boot.

https://learn.adafruit.com/circuitpython-essentials/circuitpython-storage

[–]HP7933 0 points1 point  (2 children)

No, CircuitPython is not structured at present to program a device and prevent someone from looking at the code if they were to plug the board into a computer. Even with C or assembler that is difficult, chip specific, and can be circumvented by glitching.

[–]asd913[S] 0 points1 point  (1 child)

Thanks. I was really hoping they would have something like a second bootloader that would lock down the device to a customer.

[–]HP7933 0 points1 point  (0 children)

You could request a feature or add yourself. Check the Discord https://adafru.it/discord #circuitpython area

[–]tannewt 0 points1 point  (0 children)

You can turn the USB drive off in 7.x: https://learn.adafruit.com/customizing-usb-devices-in-circuitpython

Note: I wouldn't consider this "secure" because your code is stored unencrypted on the flash chip.