Due to high demand expect some shipping delays at this time, orders may not ship for 1-2 business days.
0

Faster Boot for M0 Feather
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Faster Boot for M0 Feather

by rafikii on Wed Oct 20, 2021 6:53 pm

I've noticed the M0 feather takes ~2 seconds from when power is applied to when it starts running setup(). Not sure if "boot time" or "startup time" is the right term. During this time, the built in LED is also on and it takes about 1.5mA. I am working on a project where I need it to boot much faster (sleep isn't an option), so my questions are:

1) Is there a way to reduce this boot time for the M0 feather?
2) Would the 32u4 Feather start up faster? If so, what kind of boot time should I expect?

Thanks

rafikii
 
Posts: 64
Joined: Sat Jan 30, 2021 1:18 pm

Re: Faster Boot for M0 Feather

by mikeysklar on Thu Oct 21, 2021 7:15 pm

@rafikii,

I want to say the bootloader is slowing things down and you could forgo the bootloader by using a J-Link tot upload code. However, after reading other posts on this topic it looks like some of the USB startup is substantial and people are working around it by using CRYSTALLESS.

https://forum.arduino.cc/t/arduino-zero ... /438752/14

mikeysklar
 
Posts: 6258
Joined: Mon Aug 01, 2016 8:10 pm

Re: Faster Boot for M0 Feather

by rafikii on Thu Oct 21, 2021 8:58 pm

1) what file for the MO feather do i modify to add the crystalless setting?

2) would the 32u4 boot faster?

rafikii
 
Posts: 64
Joined: Sat Jan 30, 2021 1:18 pm

Re: Faster Boot for M0 Feather

by mikeysklar on Fri Oct 22, 2021 3:46 pm

The 32u4 can take up to 7s to startup with bootloader.

The easiest path is to use an M4 for instant boot.

An issue has been opened by someone else on this topic of the slow boot to intialize the external crystal.

https://github.com/adafruit/ArduinoCore-samd/issues/231

If there was a file to modify it would be this, but I don't see how to initialize the M0 here crystalless like the Arduino Zero example sighted previously.

https://github.com/adafruit/ArduinoCore ... ard_init.c

mikeysklar
 
Posts: 6258
Joined: Mon Aug 01, 2016 8:10 pm

Re: Faster Boot for M0 Feather

by rafikii on Mon Oct 25, 2021 8:42 pm

dang I was hoping to use the feather with the built in radio modules

rafikii
 
Posts: 64
Joined: Sat Jan 30, 2021 1:18 pm

Re: Faster Boot for M0 Feather

by mikeysklar on Tue Oct 26, 2021 2:31 pm

One of the LoRA based M0 / 32u4 Feather boards? We do not have an M4 option today for those.

You could use a LoRA breakout or LoRA Featherwing with an M4 Feather Express.

https://www.adafruit.com/?q=lora&sort=BestMatch

mikeysklar
 
Posts: 6258
Joined: Mon Aug 01, 2016 8:10 pm

Re: Faster Boot for M0 Feather

by rafikii on Tue Oct 26, 2021 8:01 pm

For the M4 do I need to change the bootloader or would it be fine as is?

rafikii
 
Posts: 64
Joined: Sat Jan 30, 2021 1:18 pm

Re: Faster Boot for M0 Feather

by mikeysklar on Wed Oct 27, 2021 4:05 pm

M4 is good as is. No modification for fast boot.

mikeysklar
 
Posts: 6258
Joined: Mon Aug 01, 2016 8:10 pm

Please be positive and constructive with your questions and comments.