Error creating new project


#1

I am getting an error when trying to create a new mbed project with the SAML21-XPRO-B.

Is there something wrong with the installation?

Could not Initialise Project
PIO Core Call Error: The next files/directories have been created in C:\Users\Brendan\AppData\Roaming\SPB_Data\Documents\PlatformIO\Projects\SAML21Plained_testing
 platformio.ini - Project Configuration File
 src - Put your source files here
 lib - Put here project specific (private) libraries Error: [06/01/18 12:31:06] Processing saml21_xpro_b (platform: atmelsam; board: saml21_xpro_b; framework: mbed)
 
 Verbose mode can be enabled via `-v, --verbose` option
 PLATFORM: Atmel SAM > Atmel SAML21-XPRO-B
 SYSTEM: SAML21J18B 48MHz 32KB RAM (256KB Flash)
 DEBUG: CURRENT(cmsis-dap) ON-BOARD(cmsis-dap) EXTERNAL(atmel-ice, blackmagic, jlink)
 WindowsError: [Error 2] The system cannot find the file specified: 'C:\\Users\\Brendan\\AppData\\Roaming\\SPB_Data\\.platformio\\packages\\framework-mbed\\features\\nanostack\\FEATURE_NANOSTACK_FULL':
 File "C:\Users\Brendan\AppData\Roaming\SPB_Data\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 165:
 env.SConscript("$BUILD_SCRIPT")
 File "C:\Users\Brendan\AppData\Roaming\SPB_Data\.platformio\packages\tool-scons\script\..\engine\SCons\Script\SConscript.py", line 541:
 return _SConscript(self.fs, *files, **subst_kw)
 File "C:\Users\Brendan\AppData\Roaming\SPB_Data\.platformio\packages\tool-scons\script\..\engine\SCons\Script\SConscript.py", line 250:
 exec _file_ in call_stack[-1].globals
 File "C:\Users\Brendan\AppData\Roaming\SPB_Data\.platformio\platforms\atmelsam\builder\main.py", line 162:
 target_elf = env.BuildProgram()
 File "C:\Users\Brendan\AppData\Roaming\SPB_Data\.platformio\packages\tool-scons\script\..\engine\SCons\Environment.py", line 224:
 return self.method(*nargs, **kwargs)
 File "C:\Users\Brendan\AppData\Roaming\SPB_Data\.platformio\penv\lib\site-packages\platformio\builder\tools\platformio.py", line 69:
 env.BuildFrameworks(env.get("PIOFRAMEWORK"))
 File "C:\Users\Brendan\AppData\Roaming\SPB_Data\.platformio\packages\tool-scons\script\..\engine\SCons\Environment.py", line 224:
 return self.method(*nargs, **kwargs)
 File "C:\Users\Brendan\AppData\Roaming\SPB_Data\.platformio\penv\lib\site-packages\platformio\builder\tools\platformio.py", line 278:
 SConscript(env.GetFrameworkScript(f))
 File "C:\Users\Brendan\AppData\Roaming\SPB_Data\.platformio\packages\tool-scons\script\..\engine\SCons\Script\SConscript.py", line 604:
 return method(*args, **kw)
 File "C:\Users\Brendan\AppData\Roaming\SPB_Data\.platformio\packages\tool-scons\script\..\engine\SCons\Script\SConscript.py", line 541:
 return _SConscript(self.fs, *files, **subst_kw)
 File "C:\Users\Brendan\AppData\Roaming\SPB_Data\.platformio\packages\tool-scons\script\..\engine\SCons\Script\SConscript.py", line 250:
 exec _file_ in call_stack[-1].globals
 File "C:\Users\Brendan\AppData\Roaming\SPB_Data\.platformio\platforms\atmelsam\builder\frameworks\mbed\mbed.py", line 174:
 get_dynamic_manifest(lib, lib_config, extra_includes))
 File "c:\users\brendan\appdata\roaming\spb_data\.platformio\penv\lib\site-packages\platformio\builder\tools\piolib.py", line 120:
 self.process_extra_options()
 File "c:\users\brendan\appdata\roaming\spb_data\.platformio\penv\lib\site-packages\platformio\builder\tools\piolib.py", line 258:
 with util.cd(self.path):
 File "c:\users\brendan\appdata\roaming\spb_data\.platformio\penv\lib\site-packages\platformio\util.py", line 107:
 os.chdir(self.new_path)
 [ERROR] Took 0.62 seconds
Report a problem

#2

Microchip (Atmel) left an ARM mbed project. So, if you go to the mbed official web-site you will not find these boards in supported list.

Could you try previous releases with mbed?

  • platform = atmelsam@2.6.0
  • platform = atmelsam@2.7.0

See https://github.com/platformio/platform-atmelsam/releases


#3

Hi Ivan ,

Thanks for getting back to me.
I downloaded 2.6.0 and it allowed me to create a new project.
However trying to upload this to the board resulted in the following error:

Open On-Chip Debugger 0.9.0-g932ec70 (2017-02-15-12:34)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Runtime Error: embedded:startup.tcl:60: Can't find atmel_saml21_xplained_pro.cfg
in procedure 'script'
at file "embedded:startup.tcl", line 60
*** [upload] Error 1

#4

Sorry, it was my issue! You don’t need to switch to old dev/platform. Please run pio update in VSCode IDE Terminal and build project again.

See the latest build log https://travis-ci.org/platformio/platform-atmelsam/jobs/390498216