microsoft / vscode-arduino

Visual Studio Code extension for Arduino
Other
1.17k stars 225 forks source link

Custom programmers are not listed (nrf5 based boards) #898

Open dmikhalsky opened 5 years ago

dmikhalsky commented 5 years ago

Arduino Core for Nordic Semiconductor nRF5 based boards adds a number of additional programmers that are listed in Arduino IDE below the standard ones

arduino
image hosting

However, VS Code Arduino extension DOES NOT list them in "Select programmer" dialog

vs-code

dmikhalsky commented 5 years ago

It's not a "feature request". It's a blocking issue since its impossible to program nrf5-based boards from within VS Code

sstaub commented 5 years ago

The same problem exist on other Arduino boards, missing are EDBG programmers and others. In the moment the extension is complete useless.

programmers
a7hybnj2 commented 5 years ago

I use minicore and tinycore which have some chips that need their own programmer selection like "USBasp (ATTinyCore)" and those don't show up. This extension should pull the same list of programmers that the arduino IDE pulls.

barbudor commented 4 years ago

I have the same issue with Digistump vscode-arduino can read the board.txt to build correctly but cannot used Digistump specific programmer micronucleus

Current work around is to have a flash-it.cmd/flash-it.sh that can be called from the terminal.

a7hybnj2 commented 4 years ago

Current work around is to have a flash-it.cmd/flash-it.sh that can be called from the terminal.

Can you describe what flash-it.* does? Is it project specific? Can it be linked to the 'upload' button so you don't have to run it manually?

barbudor commented 4 years ago

It calls avrdude with the right patameters including the hex file. So it is programmer and project dependent But all things that Arduino IDE can do transparently from boards.txt and programmers.txt

antunjm commented 4 years ago

Hi, I have the same problem. I did not found other solutions than making a shell script to upload the .hex by micronucleus. I hope the guys can implement this in the future. Anyway, it still a great extension.

Best regards.

hairlesshobo commented 4 years ago

I had this same problem using a home built programmer that I prefer to use instead of USB upload with the Arduino bootloader. I submitted PR #767 for this exact issue over a year ago and it has been sitting open and pending review this entire time. I just added another comment to hopefully get a maintainer to review the PR. Maybe if you guys add comments to it as well they will consider reviewing the thing.

image

image

TheLinthus commented 4 years ago

Just had the similar problem with jtag2updi programmer.

767 is needing some approve. The solution seems to work pretty well.