[Microbit-Python] Differences between BBC: microbit and pyboard

hot.toast hot.toast at yahoo.co.uk
Sun Aug 7 09:31:37 EDT 2016


Below  is the full output from yt build.

I tried yt up followed by yt build  (as Ben suggested) but this didn't 
prevent the error.







sudo yt build
info: generate for target: bbc-microbit-classic-gcc-nosd 0.2.3 at 
/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_targets/bbc-microbit-classic-gcc-nosd
GCC version is: 4.9.3
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/arm-none-eabi-gcc
suppressing warnings from ble-nrf51822
suppressing warnings from nrf51-sdk
fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
suppressing ALL warnings from mbed-classic, ble, ble-nrf51822 & nrf51-sdk
-- Configuring done
-- Generating done
-- Build files have been written to: 
/home/xxx/Projects/Python/MicroBit/micropython-master/build/bbc-microbit-classic-gcc-nosd
[102/292] Building CXX object 
ym/ble-nrf51822/source/CMakeFiles/ble-nrf51...roBit/micropython-master/yotta_modules/ble-nrf51822/source/nRF5xGap.cpp.oThis
FAILED: /usr/bin/arm-none-eabi-g++ -DYOTTA_MODULE_NAME=ble-nrf51822 
-fno-exceptions -fno-unwind-tables -ffunction-sections -fdata-sections 
-Wall -Wextra -fno-rtti -fno-threadsafe-statics -mcpu=cortex-m0 -mthumb 
-D__thumb2__ -Os -g -gdwarf-3 -DNDEBUG -Igenerated/include 
-I/home/xxx/Projects/Python/MicroBit/micropython-master 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/mbed-classic 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/microbit-dal 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/ble 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/ble-nrf51822 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/nrf51-sdk 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/ble-nrf51822/source/btle 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/ble-nrf51822/source/btle/custom 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/ble-nrf51822/source/common 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/nrf51-sdk/source/nordic_sdk/components/ble/ble_radio_notification 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/nrf51-sdk/source/nordic_sdk/components/ble/ble_services/ble_dfu 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/nrf51-sdk/source/nordic_sdk/components/ble/common 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/nrf51-sdk/source/nordic_sdk/components/ble/device_manager 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/nrf51-sdk/source/nordic_sdk/components/ble/device_manager/config 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/nrf51-sdk/source/nordic_sdk/components/ble/peer_manager 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/nrf51-sdk/source/nordic_sdk/components/device 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/nrf51-sdk/source/nordic_sdk/components/drivers_nrf/ble_flash 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/nrf51-sdk/source/nordic_sdk/components/drivers_nrf/delay 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/nrf51-sdk/source/nordic_sdk/components/drivers_nrf/hal 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/nrf51-sdk/source/nordic_sdk/components/drivers_nrf/pstorage 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/nrf51-sdk/source/nordic_sdk/components/drivers_nrf/pstorage/config 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/bootloader_dfu 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/bootloader_dfu/hci_transport 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/crc16 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/hci 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/scheduler 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/timer 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/util 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/fds 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/fstorage 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/experimental_section_vars 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/nrf51-sdk/source/nordic_sdk/components/softdevice/common/softdevice_handler 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/nrf51-sdk/source/nordic_sdk/components/softdevice/s130/headers 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/nrf51-sdk/source/nordic_sdk/components/toolchain 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/mbed-classic/api 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/mbed-classic/hal 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/mbed-classic/targets/hal 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/mbed-classic/targets/cmsis 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/mbed-classic/targets 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/mbed-classic/targets/cmsis/TARGET_NORDIC 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/mbed-classic/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/mbed-classic/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_GCC_ARM 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/mbed-classic/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_GCC_ARM/TARGET_MCU_NRF51_16K_S110 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_MICROBIT 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries/scheduler 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries/crc16 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries/util 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s110_nrf51822_8_0_0 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s130_nrf51822_1_0_0 
-I/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/ble-nrf51822/source 
-DTOOLCHAIN_GCC -DTOOLCHAIN_GCC_ARM -DMBED_OPERATORS -DNRF51 
-DTARGET_NORDIC -DTARGET_M0 -D__MBED__=1 -DMCU_NORDIC_16K 
-DTARGET_NRF51_MICROBIT -DTARGET_MCU_NORDIC_16K 
-DTARGET_MCU_NRF51_16K_S110  -DTARGET_NRF_LFCLK_RC 
-DTARGET_MCU_NORDIC_16K -D__CORTEX_M0 -DARM_MATH_CM0 -DNO_BLE -include 
"/home/xxx/Projects/Python/MicroBit/micropython-master/build/bbc-microbit-classic-gcc-nosd/yotta_config.h" 
-Wno-sign-compare -Wno-unused-variable -Wno-unused-parameter 
-Wno-unused-function -Wno-missing-field-initializers -w -MMD -MT 
ym/ble-nrf51822/source/CMakeFiles/ble-nrf51822.dir/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/ble-nrf51822/source/nRF5xGap.cpp.o 
-MF 
"ym/ble-nrf51822/source/CMakeFiles/ble-nrf51822.dir/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/ble-nrf51822/source/nRF5xGap.cpp.o.d" 
-o 
ym/ble-nrf51822/source/CMakeFiles/ble-nrf51822.dir/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/ble-nrf51822/source/nRF5xGap.cpp.o 
-c 
/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/ble-nrf51822/source/nRF5xGap.cpp
/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/ble-nrf51822/source/nRF5xGap.cpp: 
In member function 'virtual ble_error_t nRF5xGap::setWhitelist(const 
Gap::Whitelist_t&)':
/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/ble-nrf51822/source/nRF5xGap.cpp:689:59: 
error: 'BLEProtocol::AddressType_t' is not a class or namespace
          if (whitelistIn.addresses[i].type == 
BLEProtocol::AddressType_t::RANDOM_PRIVATE_NON_RESOLVABLE) {
                                                            ^
/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/ble-nrf51822/source/nRF5xGap.cpp: 
In member function 'ble_error_t 
nRF5xGap::generateStackWhitelist(ble_gap_whitelist_t&)':
/home/xxx/Projects/Python/MicroBit/micropython-master/yotta_modules/ble-nrf51822/source/nRF5xGap.cpp:906:61: 
error: 'BLEProtocol::AddressType_t' is not a class or namespace
          if (whitelistAddresses[i].addr_type == 
BLEProtocol::AddressType_t::RANDOM_PRIVATE_RESOLVABLE) {
                                                              ^
[102/292] Building CXX object 
ym/ble-nrf51822/source/CMakeFiles/ble-nrf51...oBit/micropython-master/yotta_modules/ble-nrf51822/source/btle/btle.cpp.o
ninja: build stopped: subcommand failed.
error: command ['ninja'] failed







On 07/08/16 13:06, Carlos P.A. wrote:
> The hex file you've downloaded from the website packs micropython together
> with your script file. Admittedly it's not the latest version, as it is
> missing things like the radio and voice modules, but it has REPL access.
>
> If you want to use the latest version of micropython you don't have to
> compile it from source, the flash utility uflash and the code editor Mu
> contain it already :
> https://github.com/ntoll/uflash
> https://github.com/ntoll/mu
>
> I'm on mobile, so I cannot easily check online, but I was under the
> impression that the README contains all required packages, there is also an
> issue in the github repository that had more detailed steps for debian
> (which should be transferable), and you could also check the "compiler
> install scrip" I put together a little while ago for
> https://github.com/carlosperate/microbit-dev-env .
>
> Other than that the error is not very explicit, is that all it printed
> about it? Could you copy the entire output in a file and post it?
>
> On 7 Aug 2016 12:40, "hot.toast via Microbit" <microbit at python.org> wrote:
>> I'm getting confused over the differences between running micropython on
> the pyboard and on the BBC:microbit.
>> I have been playing with the  pyboard for a number of months and have a
> reasonable understanding of how to use micropython on that platform. But it
> is my current belief that the BBC:microbit does not ship with a python
> interpreter and that I have to roll my own using yotta and copy the
> resultant hex file to the microbit before i can get a REPL prompt .
>> 1. Is that belief correct? (I don't seem to have to  load the firmware
> using DFU like on the pyboard)
>> 2. I have successfully complied basic micropython to a .hex file using
> the web interface and got this running on my microbit, so I know the board
> is working correctly.
>> 3. I have tried to follow the instructions on
> https://github.com/bbcmicrobit/micropython/README.md. using a Linux Mint
> 17.3 system but when I get to "yt build" (or make all) I get the following
> error
>> [102/291] Building CXX object
> ym/ble-nrf51822/source/CMakeFiles/ble-nrf51822.dir/adsafdas/micropython-master/yotta_modules/ble-nrf51822/source/nRF5xn.cpp.o
>> ninja: build stopped: subcommand failed.
>> error: command ['ninja'] failed
>>
>> Any ideas where to go next?
>> _______________________________________________
>> Microbit mailing list
>> Microbit at python.org
>> https://mail.python.org/mailman/listinfo/microbit
>
>
> _______________________________________________
> Microbit mailing list
> Microbit at python.org
> https://mail.python.org/mailman/listinfo/microbit


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/microbit/attachments/20160807/f3633da8/attachment-0001.html>


More information about the Microbit mailing list