SAMD-Development-Boards icon indicating copy to clipboard operation
SAMD-Development-Boards copied to clipboard

Speed up boot/start up time

Open goseese opened this issue 3 months ago • 5 comments

I have a paired down sketch that only inits a GPIO and set it high.

I have this flashed on a SAMD21E17A with crystal with no boot loader.

It seems to take about 2.3 seconds for the SAMD21E17A to start up and set the IO.

Is there anyway to speed this up to < 1 second?

goseese avatar Apr 04 '24 03:04 goseese

I haven't really worked much with the SAMD, and even that was years ago. So, I can't help you off the cuff. Did you compile your code without the USB stack?

wagiminator avatar Apr 05 '24 19:04 wagiminator

Hmm, that might be something to look at.

How do I compile it with out the USB stack?

On Fri, Apr 5, 2024 at 2:26 PM Stefan Wagner @.***> wrote:

I haven't really worked much with the SAMD, and even that was years ago. So, I can't help you off the cuff. Did you compile your code without the USB stack?

— Reply to this email directly, view it on GitHub https://github.com/wagiminator/SAMD-Development-Boards/issues/6#issuecomment-2040499703, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACB2NQZUDZTE5DYXOQKJHTY333HNAVCNFSM6AAAAABFWO6CK6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBQGQ4TSNZQGM . You are receiving this because you authored the thread.Message ID: @.***>

goseese avatar Apr 05 '24 20:04 goseese

Oh no, I see that option from the drop down. Sorry I should have at-least looked before I replied to that.

I will try that tomorrow when I am in the shop.

On Fri, Apr 5, 2024 at 3:05 PM Jeff Seese @.***> wrote:

Hmm, that might be something to look at.

How do I compile it with out the USB stack?

On Fri, Apr 5, 2024 at 2:26 PM Stefan Wagner @.***> wrote:

I haven't really worked much with the SAMD, and even that was years ago. So, I can't help you off the cuff. Did you compile your code without the USB stack?

— Reply to this email directly, view it on GitHub https://github.com/wagiminator/SAMD-Development-Boards/issues/6#issuecomment-2040499703, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACB2NQZUDZTE5DYXOQKJHTY333HNAVCNFSM6AAAAABFWO6CK6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBQGQ4TSNZQGM . You are receiving this because you authored the thread.Message ID: @.***>

goseese avatar Apr 06 '24 01:04 goseese

Compiling with USB off didn't effect the boot time. Thanks for your help on this tho. I will keep looking to see if there is somewhere I can reduce this time.

goseese avatar Apr 08 '24 21:04 goseese

This is strange and shouldn't be like that. I suspect there is some overhead in the Arduino core.

wagiminator avatar Apr 14 '24 06:04 wagiminator