Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

board: Adafruit LED Glasses Driver nRF52840 #4020

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

bgould
Copy link
Member

@bgould bgould commented Dec 2, 2023

@bgould bgould changed the base branch from release to dev December 2, 2023 01:08
@bgould
Copy link
Member Author

bgould commented Dec 3, 2023

When trying to enable BLE via tinygo.org/x/bluetooth, the program locks up upon enabling the default adapter. Trying to understand how to further nail down the source of the problem.

This program:
https://github.com/bgould/board-demos/blob/ea14af1d947c24bc1f56bb763ec58ea29c8de9bd/ledglasses-nrf52840/advertisement/main.go#L11-L36

Produces this output:

$ tinygo version
tinygo version 0.31.0-dev-5fb17710 windows/amd64 (using go version go1.21.4 and LLVM version 16.0.1)

$ tinygo info -target ledglasses-nrf52840
LLVM triple:       thumbv7em-unknown-unknown-eabi
GOOS:              linux
GOARCH:            arm
build tags:        cortexm baremetal linux arm nrf52840 nrf nrf52840_reset_uf2 softdevice s140v6 ledglasses_nrf52840 tinygo math_big_pure_go gc.conservative scheduler.tasks serial.usb
garbage collector: conservative
scheduler:         tasks

$ tinygo flash -target ledglasses-nrf52840 -monitor .
Connected to COM27. Press Ctrl-C to exit.
Enabling stack in 3 .. 2 .. 1
Enabling 

These are the details in INFO_UF2.TXT of the bootloader:

UF2 Bootloader 0.6.1-3-g193d525 lib/nrfx (v2.0.0) lib/tinyusb (0.10.1-293-gaf8e5a90) lib/uf2 (remotes/origin/configupdate-9-gadbb8c7)
Model: Adafruit LED Glasses Driver nRF52840
Board-ID: nRF52840-LedGlasses-revA
SoftDevice: S140 version 6.1.1
Date: Aug 29 2021

Any ideas about what might be wrong or the best way to troubleshoot the above issue?

@bgould bgould force-pushed the adafruit-ledglasses-nrf52840 branch from eb04e06 to 62677e3 Compare February 12, 2024 01:52
@bgould
Copy link
Member Author

bgould commented Feb 12, 2024

When trying to enable BLE via tinygo.org/x/bluetooth, the program locks up upon enabling the default adapter. Trying to understand how to further nail down the source of the problem.
...
Any ideas about what might be wrong or the best way to troubleshoot the above issue?

The problem described above was solved by setting HasLowFrequencyCrystal = false

@bgould bgould force-pushed the adafruit-ledglasses-nrf52840 branch from 62677e3 to 9ff290e Compare February 15, 2024 23:56
@bgould bgould changed the title WIP: board: Adafruit LED Glasses Driver nRF52840 board: Adafruit LED Glasses Driver nRF52840 Feb 15, 2024
Copy link
Member

@aykevl aykevl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also add a smoke test for this board to the GNUmakefile?
Other than that, LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants