#avr Logs

May 29 2020

#avr Calendar

02:11 AM plasmikg: Can flash my Pro Micro board (Caterina bootloader) with avrdude via USB cable? I think i did it with keyboards as a part of QMK automation..
02:17 AM plasmikg: * can i
02:35 AM plasmikg: ok, needed to specify '-c avr109' interface for Caterina
06:10 AM _ami_: FASTUSBasp is now compatible with Windows too. https://github.com/amitesh-singh/FASTUSBasp#windows
06:11 AM matrixuser: hi
06:11 AM matrixuser: I recommend USBaspLoader
06:11 AM matrixuser: https://github.com/baerwolf/USBaspLoader
06:11 AM matrixuser: I am the current maintainer
06:12 AM matrixuser: It is extemly fast to program, and it does not need extra serial-to-usb
06:12 AM matrixuser: the USB is done in bootloader
06:12 AM matrixuser: the AVR does not need hardware USB for this
06:15 AM _ami_: sure, i am not here to compare which is better. :)
06:15 AM matrixuser: :)
06:16 AM _ami_: in case of usbasploader, you waste 2 kb of space, which might not be an ideal case for some projects.
06:16 AM matrixuser: that is correct, you tradeof external chip for flash
06:16 AM matrixuser: but most of the time avr is big enough
06:16 AM matrixuser: ;)
06:18 AM matrixuser: but therefor it supports software update - you can replace it with sth. else if you want
06:23 AM cehteh: i am tinking about a bootloader which shares some libraries/clib with the firmware
06:24 AM matrixuser: USBaspLoader has API
06:24 AM matrixuser: to do that
06:24 AM matrixuser: for example bootloader_enter();
06:24 AM matrixuser: oor to write flash memory from eithin the firmware
06:25 AM cehteh: nah not api, but having common functions flashed at only one position
06:25 AM cehteh: thats possible with some linker magic
06:25 AM matrixuser: yes, it might be possible, but its is usually hard to compile PIC
06:25 AM matrixuser: (position indeended code)
06:25 AM matrixuser: independend
06:26 AM cehteh: may work without PIC
06:26 AM matrixuser: yes, but then it is not very dynamic
06:26 AM matrixuser: you can give compile external statements where some function will be
06:27 AM matrixuser: but bootloader then never must change this
06:27 AM cehteh: other way around
06:27 AM matrixuser: other way around is even more complex because of read-while-write
06:28 AM cehteh: because you rarely change the bootloader, and whjen you do so, then you have to recompile/reflash the application anyway
06:28 AM matrixuser: you have to make shure that no old firmware uses new bootloader ...
06:28 AM matrixuser: it is possible
06:29 AM matrixuser: I most likely would select the way of indirect function calls
06:29 AM matrixuser: which bootloader exports
06:29 AM matrixuser: similar like DLL
06:29 AM matrixuser: getProcAddress
06:29 AM cehteh: well basically say the bootloader becomes the OS that loads an application ..kindof except it gives the control over to the app completely
06:31 AM matrixuser: yes, you could have an header to check before exec/flash
06:32 AM matrixuser: however I most likely would not let linker hardcode the shared function symbold
06:33 AM matrixuser: I would use extfunc to get addr of exported functions
06:33 AM matrixuser: https://github.com/baerwolf/avrlibs-baerwolf
06:33 AM matrixuser: (EXTFUNC contains interfaces and macros to extend function pointers accross the 128k limit.)
12:32 PM Metalsutton: Hey all. I am having trouble entering programming mode on a atmega328
12:41 PM matrixuser: hi
12:41 PM matrixuser: didn't we discuss it today morning ?
12:54 PM Metalsutton: yup
12:54 PM Metalsutton: problem hasnt been resolved.
12:54 PM Metalsutton: Ive checked all connections
12:56 PM matrixuser: maybe first update your mkii firmware
12:56 PM matrixuser: to latest version
01:01 PM Metalsutton: would it vary between chips?
01:01 PM Metalsutton: Ive been able to program atmega328's in the past
01:18 PM Metalsutton: https://i.imgur.com/9hPXhHZ.png
01:34 PM matrixuser: ?
01:42 PM matrixuser: the up to date firmware will enshure correct LED color on mkii
01:56 PM Smidge204: That trace looks like the reset pin for a 328P DIP package :p
04:35 PM GenTooMan: PS thanks for directing me to the proper place. For some reason HexChat did not find ##stm32 but found #avr.
11:58 PM day_ is now known as day