adafruit / Adafruit_nRF52_Bootloader

USB-enabled bootloaders for the nRF52 BLE SoC chips
MIT License
438 stars 393 forks source link

Circuit PG Bluefruit - MakeCode with sound works only after first start #184

Closed chatelao closed 3 years ago

chatelao commented 3 years ago

Describe the bug A programm MakeCode with sound works only after first start

Set up (please complete the following information)

To Reproduce Steps to reproduce the behavior:

  1. Go to MakeCode: https://makecode.com/_H8c6YtPJYMWf
  2. Send programm to device
  3. Push Button A/B (Should work)
  4. Reset
  5. Push Button A/B again (Will never work again)

Expected behavior I didn't expect "the sounds of silence" ;-), but beeps again

hathach commented 3 years ago

double reset to put CPB into bootloader then copy uf2 file to upgrade its firmware. I don't think CPB support the std way makecode reset board to bootloader.

chatelao commented 3 years ago

The resetting works fine.

The sound doesn't work well after the first run. Unpower / repower doesn't work either.

hathach commented 3 years ago

why do you think it is bootloader issue ? Can you try to upload with a simple blinky example with correct board selected from one of our arduino sketch to see if that works out.

chatelao commented 3 years ago

Uploading works fine, it is only the audio behaviour with MakeCode. So if the bootloader has no audio code, your are right, this may be some weird startup / init behaviour, but within the Programm code, not the loader.

Btw: Updating the bootloader was very tedious (Arduino IDE & DFU setting required) compared to the SAMD21 boards, where just dropping a new UF2 file to update the bootloader was enough.

hathach commented 3 years ago

closed since this is not bootloader issue

Btw: Updating the bootloader was very tedious (Arduino IDE & DFU setting required) compared to the SAMD21 boards, where just dropping a new UF2 file to update the bootloader was enough.

We have done adding the uf2 selfupdate to this bootloader, but haven't got time to release it yet.

chatelao commented 3 years ago

Great to hear about the self-update.

=> Regarding the Audio: Maybe there is the PIN D11 (Power Saving on Audio) disable, is this touched during the booting?