eerimoq / simba

Simba Embedded Programming Platform.
Other
340 stars 63 forks source link

nanoatmega328new board should be mapped to arduino nano #217

Open leonty opened 3 years ago

leonty commented 3 years ago

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 ========================="

eerimoq commented 3 years ago

Hi!

I don't have time to work on this project right now. Feel free to help out! =)