#avr Logs

May 28 2020

#avr Calendar

12:01 AM day_ is now known as day
04:44 AM Metalsutton: Hey all
04:45 AM Metalsutton: I am having some issues with a chip I have just got. Its an ATMega328P
04:45 AM Metalsutton: Amtel Studio says that "Connection failed on the reset line
04:45 AM Metalsutton: Target connector seems to be reversed " However I have checked this and its fine
04:48 AM matrixuser: hi
04:48 AM matrixuser: perhaps it got fused wrong and reset-pin is now in alternate function
04:48 AM matrixuser: or ISP is disabled
04:52 AM Smidge204: Metalsutton: What tool are you using to program it?
04:53 AM matrixuser: I used an USBasp a very long time , because it is my own board (http://matrixstorm.com/avr/tinyusbboard/firmwares.html#firmwaresprogrammer)
04:53 AM matrixuser: but I am using AVR ISp MKII , too
04:53 AM matrixuser: for thing where fuses got wrong I am using an serial programmer
04:54 AM matrixuser: sorry
04:54 AM matrixuser: parallel programmer of course
04:55 AM matrixuser: http://jayakody2000lk.blogspot.com/2020/03/avr-high-voltage-programmer-2.html
04:55 AM Metalsutton: I am using a AVR ISP MKII
04:56 AM matrixuser: ok, good choise
04:56 AM Metalsutton: And the chips are from digikey
04:56 AM matrixuser: did you power your chip?
04:56 AM Metalsutton: It is powered.
04:56 AM Metalsutton: I have done continuity test on reset line
04:56 AM matrixuser: do you have newest firmware on your ISP MKII
04:57 AM Metalsutton: Possibly not.
04:57 AM matrixuser: okay, becasue next thing I would ask is if green LED is flashing
04:57 AM matrixuser: but this only is reliable with newest firmware
04:57 AM Metalsutton: I currently have a red flashing light
04:57 AM matrixuser: ok
04:57 AM Metalsutton: And orange flashing when i connect it.
04:57 AM matrixuser: red means connection error
04:57 AM Metalsutton: connector is in correctly.
04:58 AM Metalsutton: Using a 10k pull up resistor too
04:58 AM matrixuser: https://upload.wikimedia.org/wikipedia/commons/9/9f/Isp_headers.svg
04:59 AM matrixuser: ist top view
04:59 AM matrixuser: so not the view looking into the pins
05:10 AM Smidge204: I assume this is a "naked" chip on a breadboard
05:10 AM matrixuser: yes, I assume it is empty, too
05:10 AM matrixuser: but it still need power
05:11 AM matrixuser: it also need bypass caps
05:11 AM Smidge204: Also, a easy mistake to make: MOSI on the programmer connects to MISO on the chip
05:11 AM matrixuser: no
05:11 AM matrixuser: MOSI connects to MOSI
05:11 AM matrixuser: thats why the name
05:11 AM matrixuser: Naster Out Slave In
05:11 AM matrixuser: who is who is very clear
05:12 AM matrixuser: just du a right connection ans AVR ISP becomes green
05:12 AM matrixuser: this is your first step - before testing if it is programmable
05:13 AM Smidge204: hmm I may have been confused with the DI/DO convention of the chips I've been workign with lately
05:14 AM matrixuser: yes, maybe
05:14 AM matrixuser: at the moment Metalsutton has power issues
05:15 AM matrixuser: otherwise AVR ISP II would be green led
05:15 AM matrixuser: I am afk for a while - need to eat sth ;)
05:43 AM Metalsutton: Is the reset line suppose to share conductivity with ground?
06:25 AM matrixuser: no
06:26 AM matrixuser: reset needs to be high by pullup
10:05 AM gxt__ is now known as gxt
12:13 PM splud is now known as dementia
12:14 PM dementia is now known as splud
02:24 PM GenTooMan: hmm anyone here mess with the stm32 I'm puzzled with on "use the HAL" which seems pretty combersome or write my own routines to directly handle the configuration.
02:26 PM MrMobius: GenTooMan, did you try ##stm32?
02:34 PM nohit: GenTooMan: so what do you need ?
02:40 PM nohit: i have a template project that doesnt use hal
02:51 PM nohit: if you wanna use hal, just use cubemx and it will give you a makefile project. that's the easiest and fastest way
09:36 PM rue_mohr: GenTooMan,
09:36 PM rue_mohr: I used openocd
09:36 PM rue_mohr: documentation is a bit thin, but its working out
09:39 PM rue_mohr: haha
09:39 PM rue_mohr: cm3
09:39 PM rue_mohr: not openocd
11:59 PM day_ is now known as day