Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

I have some bluetooth modules I got from aliexpress that have a NRF51822 chip inside.

Because they have different pins exposed to existing boards I have a custom board definition that defines the repl.

// UART config
#define MICROPY_HW_UART1_RX         (12)
#define MICROPY_HW_UART1_TX         (13)

When I build the firmware with the following command, everything works as expected, I can access the repl through pins 12/13

make BOARD_DIR=/home/patrick/esp/micropython-ia/ports/nrf/boards/IA-BEACON 

However when I download the BT stack and compile with

make BOARD_DIR=/home/patrick/esp/micropython-ia/ports/nrf/boards/IA-BEACON SD=s110

It get nothing on the serial pins.

Not sure if adding the SD param is interfering with my custom repl pins or it's just not booting for some other reason.

Any ideas? I'm using an STLINK and openocd to "halt" "program" "reset" if that makes a difference!

You must be logged in to vote

Replies: 1 comment · 3 replies

Comment options

andrewleech
Jun 5, 2024
Collaborator Sponsor

Double check the 32KHz crystal build settings, I ran into that in the past a fair bit on why the SD can cause lockups at boot.

You must be logged in to vote
3 replies
@ThinkTransit
Comment options

Thanks Andrew any pointers where I can find the crystal build settings?

@andrewleech
Comment options

andrewleech Jun 7, 2024
Collaborator Sponsor

Try browsing the other boards files for a line like this I think (it's been years since I used a softdevice though so I'm not certain): https://github.com/micropython/micropython/blob/master/ports%2Fnrf%2Fboards%2FWT51822_S4AT%2Fmpconfigboard.mk#L7

The correct setting will depend on what clock sources your hardware has.

@ThinkTransit
Comment options

Thanks again I will dig into that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🔌
nRF
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.