I’m trying to create a “Hello World” project for BBC micro:bit, using MBed platform. Reference the following on MBed page:
System is Windows 10 64 bit.
I select New Project on the Home page, and select Board BBC micro:bit and Platform MBed. Using just the blank default code, when I try to build, I get the following:
Executing task: platformio.exe run <
[12/27/17 16:55:52] Processing bbcmicrobit (platform: nordicnrf51; board: bbcmicrobit; framework: mbed)
Verbose mode can be enabled via -v, --verbose
option
AttributeError: ‘PlatformIOLibBuilder’ object has no attribute ‘get_inc_dirs’:
File “C:\Users\frank.platformio\penv\lib\site-packages\platformio\builder\main.py”, line 158:
env.SConscript(“$BUILD_SCRIPT”)
File “C:\Users\frank.platformio\packages\tool-scons\script..\engine\SCons\Script\SConscript.py”, line 541:
return _SConscript(self.fs, *files, **subst_kw)
File “C:\Users\frank.platformio\packages\tool-scons\script..\engine\SCons\Script\SConscript.py”, line 250:
exec file in call_stack[-1].globals
File “C:\Users\frank.platformio\platforms\nordicnrf51\builder\main.py”, line 128:
target_elf = env.BuildProgram()
File “C:\Users\frank.platformio\packages\tool-scons\script..\engine\SCons\Environment.py”, line 224:
return self.method(*nargs, **kwargs)
File “C:\Users\frank.platformio\penv\lib\site-packages\platformio\builder\tools\platformio.py”, line 76:
env.Append(LIBS=env.BuildProjectLibraries())
File “C:\Users\frank.platformio\packages\tool-scons\script..\engine\SCons\Environment.py”, line 224:
return self.method(*nargs, **kwargs)
File “C:\Users\frank.platformio\penv\lib\site-packages\platformio\builder\tools\piolib.py”, line 785:
lib_builders = env.GetLibBuilders()
File “C:\Users\frank.platformio\packages\tool-scons\script..\engine\SCons\Environment.py”, line 224:
return self.method(*nargs, **kwargs)
File “C:\Users\frank.platformio\penv\lib\site-packages\platformio\builder\tools\piolib.py”, line 757:
env, join(libs_dir, item), verbose=verbose)
File “C:\Users\frank.platformio\penv\lib\site-packages\platformio\builder\tools\piolib.py”, line 51:
env, path, verbose=verbose)
File “C:\Users\frank.platformio\penv\lib\site-packages\platformio\builder\tools\piolib.py”, line 111:
self.process_extra_options()
File “C:\Users\frank.platformio\penv\lib\site-packages\platformio\builder\tools\piolib.py”, line 259:
“pio_lib_builder”: self
File “C:\Users\frank.platformio\packages\tool-scons\script..\engine\SCons\Script\SConscript.py”, line 541:
return _SConscript(self.fs, *files, **subst_kw)
File “C:\Users\frank.platformio\packages\tool-scons\script..\engine\SCons\Script\SConscript.py”, line 250:
exec file in call_stack[-1].globals
File “C:\Users\frank.platformio\lib\nrf51-sdk\platformio_extra.py”, line 4:
pio_lib_builder.env.Prepend(CPPPATH=pio_lib_builder.get_inc_dirs())
========================================================================================= [ERROR] Took 1.79 seconds =========================================================================================
The terminal process terminated with exit code: 1
I did have to install the tool chain manually (C:\Users\frank.platformio\packages\framework-mbed@4.50701.0). Because when it tried to download the tool chain, it produced a short progress bar and then quickly said that download had failed and it automatically tried other mirrors with the same result. I have had that problem with almost every package it has tried to install. For the other systems I worked with, I was able to get around that problem by downloading and manually un-compressing the files, as was discussed in another thread on this board. Not sure if that is related to the problem I am having here. I am able to build regular MBED (LPC1768), Arduino, and Arduino DUE despite having to do the manual downloading workaround.
Am I doing something incorrectly here?
Thanks,
Frank