Hot answers tagged

9

No, the ATmega's ISP does not operate over the UART pins but only the ISP pins. To program it via a UART, you need to first load a bootloader, unless your chip was pre-programmed by the vendor, something some offer as a value-added service (or even as an essential stock item, with an Arduino type bootloader)


3

The target board was not reset. The "Arduino as ISP" sketch uses pin 10 to reset the target, not the SS pin. So even on Mega, wire reset of target to pin 10, not to pin 53. Is this an error communicating with the ISP (Arduino) or is it an issue with the ISP talking to the target (ATMega8B on USBAVR)? the first error "not in sync" is a problem with ...


2

The code content works fine while compiled as an Arduino program - that is, using the proper setup() and loop() structure: void setup() { DDRB |= (1 << PB4); DDRB |= (1 << PB3); while (1) { PORTB &= ~(1 << PB4); PORTB &= ~(1 << PB3); delay(1); PORTB |= (...


2

To upload compiled code (.hex) to a bare atmega which doesn't have a bootloader installed you can use ISP. As this stands for in-system-programming you don't have to flash the chip before assembly, but you can flash it in-system, so when already soldered onto your pcb. There actually is no need for those adapters like shown in your first picture, which often ...


2

I can see you are on Linux so I won't give you instructions for using AVR Studio - but do know that if you have access to a Windows machine that is another option you could try. I can't tell you exactly why it is not working through the Arduino IDE - it could be that the settings are not set correctly or any number of reasons. What I can say is that it is ...


1

You can temporarily put it in an UNO. Don't connect this UNO via USB, but use jumper wires to connect the ISP pins plus the power pins to the other Arduino that you are using as an ISP programmer. (You could also use the (2x3) ISP header on the UNO if that's more convenient.) Or, you could use a high voltage programmer. Or get/desolder a crystal from some ...


1

Yes, that is possible and I've done the exact same thing with an ATmega328 which controls a DAC via SPI. If it wasn't possible ISP wouldn't be an option whenever SPI is already in use. You should make sure that the NRF's CS pin is high while flashing the firmware, otherwise it might corrupt a checksum verification or memory readout. Note the difference ...


1

Sounds like you need a Standalone programmer. I offer one, it loads the target device from a program you select on SD card. Up to 256 programs can be stored on 1 card. Check it out here www.crossroadsfencing.com/BobuinoRev17/Programmer.html


1

There is an official guide. Arduino as ISP and Arduino Bootloaders But you need to add the 2x3 ISP pin header since some of the signals isn't available on D0-D13 or any other pins.


1

Concerning your questions about clock division settings: have a look at this pretty tool, it gives you a avrdude query for setting fuses (take care!). The CKDIV8 bit of the low fuse is set by default, so an AT328p will run at 1MHz, clearing this bit will result in 8 MHz. When flashing you should never override any checks as this may damage/lock your chip. ...


1

Sounds like you have a bad Arduino ISP board. I've had limited success restoring bootloaders on some Arduinos with my bad USBtinyISP programmer by connecting a 9V power supply to the Arduino in addition to the 5V that the ICSP cable provides. Worth a try. Note that back when my USBtinyISP was working properly I didn't need to attach 9V, the 5V from the ...


Only top voted, non community-wiki answers of a minimum length are eligible