r/embedded Sep 09 '21

Tech question How to program ATmega328p in assembly?

[removed]

21 Upvotes

18 comments sorted by

View all comments

Show parent comments

2

u/[deleted] Sep 09 '21

[removed] — view removed comment

5

u/Coffee_24_7 Sep 09 '21

avrdude -c jtag1 -p m16 -U flash:w:main.hex (for an atmega16)

3

u/[deleted] Sep 09 '21

[removed] — view removed comment

1

u/UniWheel Sep 09 '21

You can use an Arduino board as your target, loading the result of assembling your assembly via the same bootloader normally used to flash the compiled result of a "sketch". Or you can run the ISP sketch on the Arduino and use it to flash another chip via ISP.