Build bbc microbit error

Questions and discussion about running MicroPython on a micro:bit board.
Target audience: MicroPython users with a micro:bit.
Post Reply
shaoziyang
Posts: 363
Joined: Sun Apr 17, 2016 1:55 pm

Build bbc microbit error

Post by shaoziyang » Sun Oct 09, 2016 2:13 am

Install yotta in Linux is not success, so I install it in windows, it is works now. But when I build source, it get error.
F:/szy/projects/bbcmicrobit/yotta_modules/ble-nrf51822/source/nRF5xGap.cpp:689:5
9: error: 'BLEProtocol::AddressType_t' is not a class or namespace
if (whitelistIn.addresses.type == BLEProtocol::AddressType_t::RANDOM
_PRIVATE_NON_RESOLVABLE) {
^
F:/szy/projects/bbcmicrobit/yotta_modules/ble-nrf51822/source/nRF5xGap.cpp: In m
ember function 'ble_error_t nRF5xGap::generateStackWhitelist(ble_gap_whitelist_t
&)':
F:/szy/projects/bbcmicrobit/yotta_modules/ble-nrf51822/source/nRF5xGap.cpp:906:6
1: error: 'BLEProtocol::AddressType_t' is not a class or namespace
if (whitelistAddresses.addr_type == BLEProtocol::AddressType_t::RAND
OM_PRIVATE_RESOLVABLE) {
^
ninja: build stopped: subcommand failed.
error: command ['ninja'] failed



[attachment=0]01.jpg[/attachment]
Attachments
01.jpg
01.jpg (91.74 KiB) Viewed 3425 times

Damien
Site Admin
Posts: 647
Joined: Mon Dec 09, 2013 5:02 pm

Re: Build bbc microbit error

Post by Damien » Mon Oct 10, 2016 11:07 am

See here for the same problem that other people are experiencing, and a work-around: https://github.com/bbcmicrobit/micropython/issues/338

Post Reply