Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom board shows up twice #77

Closed
garvamel opened this issue Oct 11, 2016 · 5 comments
Closed

Custom board shows up twice #77

garvamel opened this issue Oct 11, 2016 · 5 comments

Comments

@garvamel
Copy link

Added a custom board as instructed in #74, but the board appears twice in both Select Board and Select Environment.

Env:
macOS Sierra
ST 3
Deviot 1.2.5

Thanks!

@gepd
Copy link
Owner

gepd commented Oct 11, 2016

Please, upload the boardname.json so I can test it here

@garvamel
Copy link
Author

File is located at ~/.platformio/boards/ and nowhere else.

Thanks!

4MHzatmega328p.json.zip

@garvamel
Copy link
Author

garvamel commented Oct 12, 2016

Culprit is platformio_boards.json in User/Deviot in sublime packages folder. It keeps the definition stored even if files are removed. I had to remove deviot preference files for the board to be removed but after restart and adding the board again, it shows up twice once more.

@gepd
Copy link
Owner

gepd commented Oct 12, 2016

Ok I found the problem, you didn't set the platform in the json file, adding it solve the problem:

{
  "build": {
    "core": "arduino", 
    "extra_flags": "-DARDUINO_ARCH_AVR", 
    "f_cpu": "4000000L", 
    "mcu": "atmega328p", 
    "variant": "standard"
  }, 
  "frameworks": ["arduino"],
  "name": "Xenitt Gaviot (3.3V, 4MHz)",
  "platform": "atmelavr",
  "upload": {
    "maximum_ram_size": 2048, 
    "maximum_size": 32256, 
    "protocol": "arduino", 
    "require_upload_port": true, 
    "speed": 19200
  }, 
  "url": "http://www.xenitt.cl", 
  "vendor": "Xenitt"
}

After edit the 4MHzatmega328p.json file, remove platformio_boards.json in User/Deviot and restart ST, now it will show the boards normally

@garvamel
Copy link
Author

Awesome, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants