openhaystack-firmware: NRF51822 Firmware not working
So I have 4 NRF51822 Bluetooth modules and flashed 2 of them with the original openhaystack firmware which worked fine and flashed 2 with this firmare, with 2 different builds with the following command:
NRF_MODEL=nrf51 BOARD=BOARD_ALIEXPRESS ADV_KEY_BASE64=*MYBASE64ADVKEY* make build
When reading: https://github.com/acalatrava/openhaystack-firmware/issues/2 I figured lets test with the other board config with the following command:
NRF_MODEL=nrf51 BOARD=BOARD=BOARD_SIMPLE ADV_KEY_BASE64=*MYBASE64ADVKEY* make build
But both of them fail to show up in OHS:
Running on a macbook 13 inch 2020 v13.5
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 33 (4 by maintainers)
WAIT WUTH, I just redid everything again, and just issued:
NRF_MODEL=nrf51 BOARD=BOARD_ALIEXPRESS ADV_KEY_BASE64=*KEY* make patch
with the patched board from @mowtschan and my own key this time I made sure the thing was off by making a small short on the board (just touching the + with the -) and now it is showing up!I wouldn’t question it hahahaha. Niceee
@mowtschan As far as I understand, your PR is about using the internal RC instead of the external XTAL. The contents of “simple_board.h” that I have are matching your version. Compiling this results into
Flashing the resulting .bin is effectively the same as earlier: no beacon found.
Those messages about missing implementations are somehow concerning, to be honest.
@bruvv Removing the cables and shorting the power on the module after programming didn’t help in my case. Given that the original OHS FW works straight out of the box (tried it again successfully) is suggesting to me that the problem is not necessarily in the flashing or resets, but something in the binary.
Thanks a lot @Itheras and @mowtschan learned a lot 😃 Going to close this one and enjoy my tags
and just as a reminder: from readme
@Itheras thanks for noticing, I just flashed your nrf51 firmware since I am missing the crystal, thanks @mowtschan for also pitching in. As far as I know, when using
BOARD=BOARD_SIMPLE
That is meant for my aliexpress board but without the crystal.Try this delete everything in the output . then use this command. NRF_MODEL=nrf51 make build . after it finish building sent this command NRF_MODEL=nrf51 BOARD=BOARD_ALIEXPRESS ADV_KEY_BASE64=YOUR_ADVERTISEMENT_KEY make patch . then flash as before but use the bin that says patched.
let me know if that works.