pxt-adafruit icon indicating copy to clipboard operation
pxt-adafruit copied to clipboard

Plug-in-to-USB goes to bootloader not program?

Open ladyada opened this issue 6 years ago • 11 comments

some instructors seem to expect that if you plug into a USB port, the program will run, not UF2

https://forums.adafruit.com/viewtopic.php?f=58&t=127805&p=644900

we could update UF2 or just instruct people? @mmoskal

ladyada avatar Jan 18 '18 05:01 ladyada

It's going to be very difficult to change this behavior without confusing existing users.

pelikhan avatar Apr 03 '18 16:04 pelikhan

Some teachers like the behavior we have today as they don't have to ask kids to go to bootloader mode for the first flash and program will run as soon as you flash. Changing this is going to be hard. May be we should better document the behavior. @ganicke What is the right place to document the behavior?

abchatra avatar Jun 07 '18 03:06 abchatra

I see a few places to add a note for this:

https://makecode.adafruit.com/device https://makecode.adafruit.com/device/usb https://makecode.adafruit.com/device/usb/troubleshooting

Some of this could use a revamp in the vein of the LEGO troubleshooting page.

ganicke avatar Jun 07 '18 04:06 ganicke

fyi i dont care to change it, just reporting from forums!

ladyada avatar Jun 07 '18 04:06 ladyada

I've subscribed to the MakeCode forum now.

pelikhan avatar Jun 07 '18 05:06 pelikhan

Hold on! We just need to enable the storage module in CPX. Then you can flash without hitting reset and we can require double-reset to go to bootloader (in case your program crashes badly and the storage module stops working; this shouldn't happen if you're not using C++).

mmoskal avatar Jun 07 '18 14:06 mmoskal

i would luuuuv the storage module - did that get made!!?

ladyada avatar Jun 07 '18 14:06 ladyada

sweeet i can test when its bumped - let me know. i have tons of .wav playing code ive written over the years, i know that would be a massively popular ability if available :)

ladyada avatar Jun 07 '18 15:06 ladyada

Would you have some engineering cycles to add support playing .wav in CODAL? That piece of the puzzle is still missing :(


From: ladyada [email protected] Sent: Thursday, June 7, 2018 8:00 AM To: Microsoft/pxt-adafruit Cc: Peli de Halleux; Comment Subject: Re: [Microsoft/pxt-adafruit] Plug-in-to-USB goes to bootloader not program? (#597)

sweeet i can test when its bumped - let me know. i have tons of .wav playing code ive written over the years, i know that would be a massively popular ability if available :)

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoft%2Fpxt-adafruit%2Fissues%2F597%23issuecomment-395452669&data=02%7C01%7Cjhalleux%40microsoft.com%7C79150f5dadaf4bc9efd508d5cc87653e%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636639804248966771&sdata=aW8UUcVBfINjPDEfEPECIwDl7L54cZQTvK4OwS00uac%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAD-4KV0bC_rrlcGPJYhkQIigtnhIwZtOks5t6UAGgaJpZM4RiZHZ&data=02%7C01%7Cjhalleux%40microsoft.com%7C79150f5dadaf4bc9efd508d5cc87653e%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636639804248976783&sdata=VZJGpwHwHQffdc9iAACHqWgVZAGTkviUVXBlCJetdzQ%3D&reserved=0.

pelikhan avatar Jun 07 '18 15:06 pelikhan

i could take a look when the file system access stuff is ready, and if DMA stuff is all handled for me!

ladyada avatar Jun 07 '18 15:06 ladyada