Skip to content

nanoatmega328new board should be mapped to arduino nano #217

@leonty

Description

@leonty

Environment: VS Code + PlatformIO
Problem: it allows to choose "arduino nano 328 (new bootloader)" in combination with simba but then the project generation fails with a message that the board is not supported by simba.

Log:
PIO Core Call Error: "The current working directory /Users/leonty/PlatformIO/Projects/atmega328_simba_test will be used for the project.\n\nThe next files/directories have been created in /Users/leonty/PlatformIO/Projects/atmega328_simba_test\ninclude - Put project header files here\nlib - Put here project specific (private) libraries\nsrc - Put project source files here\nplatformio.ini - Project Configuration File\n\n\nError: Processing nanoatmega328new (platform: atmelavr; board: nanoatmega328new; framework: simba)\n--------------------------------------------------------------------------------\nTool Manager: Installing platformio/framework-simba @ >=7.0.0\nTool Manager: framework-simba @ 15.0.3 has been installed!\nVerbose mode can be enabled via -v, --verbose option\nCONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/nanoatmega328new.html\nPLATFORM: Atmel AVR (3.1.0) > Arduino Nano ATmega328 (New Bootloader)\nHARDWARE: ATMEGA328P 16MHz, 2KB RAM, 30KB Flash\nDEBUG: Current (avr-stub) On-board (avr-stub, simavr)\nPACKAGES: \n - framework-simba 15.0.3 \n - toolchain-atmelavr 1.50400.190710 (5.4.0)\nValueError: BOARD nanoatmega328new is not supported by Simba.:\n File "/Users/leonty/.platformio/penv/lib/python3.8/site-packages/platformio/builder/main.py", line 170:\n env.SConscript("$BUILD_SCRIPT")\n File "/Users/leonty/.platformio/packages/tool-scons/scons-local-4.0.1/SCons/Script/SConscript.py", line 598:\n return _SConscript(self.fs, *files, **subst_kw)\n File "/Users/leonty/.platformio/packages/tool-scons/scons-local-4.0.1/SCons/Script/SConscript.py", line 287:\n exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)\n File "/Users/leonty/.platformio/platforms/atmelavr/builder/main.py", line 162:\n target_elf = env.BuildProgram()\n File "/Users/leonty/.platformio/packages/tool-scons/scons-local-4.0.1/SCons/Environment.py", line 219:\n return self.method(*nargs, **kwargs)\n File "/Users/leonty/.platformio/penv/lib/python3.8/site-packages/platformio/builder/tools/platformio.py", line 61:\n env.ProcessProgramDeps()\n File "/Users/leonty/.platformio/packages/tool-scons/scons-local-4.0.1/SCons/Environment.py", line 219:\n return self.method(*nargs, **kwargs)\n File "/Users/leonty/.platformio/penv/lib/python3.8/site-packages/platformio/builder/tools/platformio.py", line 127:\n env.BuildFrameworks(env.get("PIOFRAMEWORK"))\n File "/Users/leonty/.platformio/packages/tool-scons/scons-local-4.0.1/SCons/Environment.py", line 219:\n return self.method(*nargs, **kwargs)\n File "/Users/leonty/.platformio/penv/lib/python3.8/site-packages/platformio/builder/tools/platformio.py", line 342:\n SConscript(env.GetFrameworkScript(f), exports="env")\n File "/Users/leonty/.platformio/packages/tool-scons/scons-local-4.0.1/SCons/Script/SConscript.py", line 661:\n return method(*args, **kw)\n File "/Users/leonty/.platformio/packages/tool-scons/scons-local-4.0.1/SCons/Script/SConscript.py", line 598:\n return _SConscript(self.fs, *files, **subst_kw)\n File "/Users/leonty/.platformio/packages/tool-scons/scons-local-4.0.1/SCons/Script/SConscript.py", line 287:\n exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)\n File "/Users/leonty/.platformio/platforms/atmelavr/builder/frameworks/simba.py", line 59:\n SConscript(\n File "/Users/leonty/.platformio/packages/tool-scons/scons-local-4.0.1/SCons/Script/SConscript.py", line 661:\n return method(*args, **kw)\n File "/Users/leonty/.platformio/packages/tool-scons/scons-local-4.0.1/SCons/Script/SConscript.py", line 598:\n return _SConscript(self.fs, *files, **subst_kw)\n File "/Users/leonty/.platformio/packages/tool-scons/scons-local-4.0.1/SCons/Script/SConscript.py", line 287:\n exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)\n File "/Users/leonty/.platformio/packages/framework-simba/make/platformio.sconscript", line 4187:\n raise ValueError("BOARD {} is not supported by Simba.".format(board))\n========================= [FAILED] Took 15.85 seconds ========================="

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions