Property 'upload.tool.serial' is undefined, and other ISP issues

Ok so heres the issue I'm having. I'm trying to upload some code to one of my custom PCB, 32u4 boards. I tried to connect to it with my ATMEL-ICE and burn the Leonardo bootloader onto it. And that failed. So I loaded up Microchip Studio and had Arduino compile a binary of a really basic sketch with boot loader, then I loaded the HEX file threw MC Studio. Worked like a charm, or more precisely, the code loaded and verified.

So I went back to the 2.x IDE and tried to upload the same basic sketch threw the ICE. Sam thing Upload Tool undefined. So I tried it on 1.8X. Similarly a failure. Finally I dropped O-Scope probes on the SPI lines. And I could see that the Arduino IDE wasn't sending anything. MC Studio had bi-directional traffic, so the chip could be talked to but Arduino IDE won't even try.

My best guess is that I messed up some config somewhere while trying to clean out old libraries and board definitions for stuff I don't use anymore. But I have no idea WHAT or how to fix it.




I can't quite help you. The screenshot of IDE 1.8.x shows a normal upload, not an upload using programmer (ICSP).

It also shows that the board does not react on the software reset that is issued by the IDE (opening/closing the board with a baudrate of 1200). This usually happens when your sketch causes corruption of the CDC stack; there are two functionalities in it

  1. Identify the board to the operating system.
  2. React on the software reset.

If your sketch overwrites variables used by the above two functionalities, your board will either not be recognised or will not react on the software reset.

What is the clock frequency of the 32U4 on your board? When I started playing with the 3.3V/8MHz Pro Micro, I programmed the first sketch as Leonardo or Micro. After that the board was no longer recognised in Windows device manager. Is your board still recognised in Windows device manager?

Well so in the 1.8, I have Atmel ICE selected but its still trying to use serial and that's the issue. I don't want to use seral but it keeps trying to use it.

As to the boards clock. I'm trying to run it at 5v. I've used both 8 and 16mhz crystals. And I've tried all sorts of fuse settings. But the root issue is that neither of the IDE's is willing to use the ICE ISP programmer. :frowning: It doesn't send any SPI data and it doesn't toggle the reset pin. Its deffinatly an issue with the IDE not the hardware :frowning:

Just setting the programmer will not magically make de IDE use it. Did you use "upload using programmer" from de menu? Shortcut <ctrl><shift>U.

1 Like

Ohhhh right that's a thing! I'm so used to using ATTINY UDPI that I forgot thats a thing! I'll try it tonight!

Color me embarrassed.... ty so much! that was what I was forgetting......

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.