platformio / platform-atmelavr

Atmel AVR: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/atmelavr
Apache License 2.0
138 stars 105 forks source link

Invalid Board JSON for Sparkfun Pro Micro 5V #132

Closed R0ll1ngSt0ne closed 5 years ago

R0ll1ngSt0ne commented 5 years ago

Sparkfun Pro Micro 5V board claims PIDs 0x9205 and 0x9206.

The board JSON included with platformio (sparkfun_promicro16.json) lists incorrect PIDs:

"hwids": [
  [
    "0x1B4F",
    "**0x9203**"
  ],
  [
    "0x1B4F",
    "**0x9204**"
  ],

The above PIDs are for 3.3V version of the board, not 5V.

ivankravets commented 5 years ago

Thanks!

R0ll1ngSt0ne commented 5 years ago

You are welcome!

R0ll1ngSt0ne commented 5 years ago

I think there is still a problem with the JSON:

The PIDs claimed by Pro Micro 5V are PID: 0x9205 (bootloader); 0x9206 (sketch)

However, JSON now lists the PIDs in this order:

"hwids": [
  [
    "0x1B4F",
    "0x9205"
  ],
  [
    "0x1B4F",
    "0x9206"
  ],

It seems that when writing a sketch to the board, platformio writes the first PID to to the board - causing the board to use bootloader PID for sketch. I think the order of pids in the JSON should be reversed.

Thanks,

Michael

R0ll1ngSt0ne commented 5 years ago

Is there a way to specify in the JSON which if HWIDs are for bootloader and which are for a sketch?

ivankravets commented 5 years ago

Please re-test with the upstream version http://docs.platformio.org/en/latest/platforms/atmelavr.html#upstream