#avr Logs

Jan 16 2019

#avr Calendar

12:13 PM jancoow: let's try to programm it :P
12:24 PM jancoow: someone knows if I need the pull up resistor for the reset pin when progrmaming with updi?
12:54 PM polprog: a pullup there neer hurts
12:54 PM polprog: never*
01:08 PM jancoow: well..
01:08 PM jancoow: Idk if updi will work then
01:08 PM polprog: why wouldnt it
01:08 PM jancoow: I'm not sure
01:08 PM jancoow: I can't find anything about it
01:15 PM cehteh: reset has a pretty weak internal pullup, its good enough when you dont connect it or drive it actively and/or have little noise
01:15 PM cehteh: otherwise just add a resistor and fine
01:48 PM jancoow: I need to programm it over reset
02:15 PM jancoow: Ugh..
02:23 PM cehteh: you mean high voltage programming?
05:52 PM [1]MrMobius is now known as MrMobius
08:35 PM rue_shop3: ok, in what avr project did I write an ANSI terminal with colour and positioning code
08:36 PM Maya-sama is now known as Miyu
08:36 PM rue_shop3: either m328 or m32 I think
08:37 PM rue_shop3: #define CLEARSCREEN() USART_printstring( "\x1b[2J");USART_printstring( "\x1b[1;1H")
08:37 PM rue_shop3: #define RED() USART_printstring( "\x1b[31m")
08:37 PM rue_shop3: #define BLUE() USART_printstring( "\x1b[34m")
08:37 PM rue_shop3: #define YELLOW() USART_printstring( "\x1b[33m")
08:37 PM rue_shop3: #define PURPLE() USART_printstring( "\x1b[35m")
08:37 PM rue_shop3: #define GREEN() USART_printstring( "\x1b[32m")
08:37 PM rue_shop3: must be this one
08:38 PM rue_shop3: oooh its the dummy load
08:40 PM rue_shop3: ooh and there is how to connect with kermit, ok
09:11 PM Thrashbarg: rue_shop3: what the heck?
09:15 PM rue_shop3: I just found how to position the cursor
09:16 PM rue_shop3: so, I'm gonna write a packet visulizer that runs on the m328 and pushes everything as a terminal
09:17 PM Thrashbarg: you're gonna chew up SRAM pretty quick with that code :P
09:18 PM rue_shop3: those would be statically allocated, the compiler should only store each string once
09:18 PM * rue_shop3 thinks
09:18 PM Thrashbarg: nup
09:18 PM Thrashbarg: need to define constants as PROGMEM so they don't get copied to SRAM on reset
09:19 PM rue_shop3: progmem char * ansistrings[] = ?
09:20 PM Thrashbarg: but then you need to change USART_printstring to use pgm_read_byte() to read the string instead of using a pointer
09:20 PM Thrashbarg: that's where things get tricky...
09:20 PM rue_shop3: hmm
09:20 PM rue_shop3: I dont usually have so much static data like this
09:21 PM Thrashbarg: yeah
09:21 PM rue_shop3: root@blackie2:/files/programming/c/avr/atmega328/serialInterface# less usart.c &
09:21 PM rue_shop3: #$@^#%&@
09:23 PM rue_shop3: void USART_printstring(unsigned char *data){
09:23 PM rue_shop3: while(*data) {
09:23 PM rue_shop3: USART_Transmit(*data);
09:23 PM rue_shop3: data++; }}
09:23 PM rue_shop3: I can easily enough make a printprogstring
09:23 PM rue_shop3: er sumthin
09:24 PM rue_shop3: this will push the limits a bit, lets play
09:24 PM rue_shop3: :S ok, it looks like I have 32 usart.c files that are unlinked
09:24 PM Thrashbarg: yea you'd change USART_Transmit to USART_Transmit(pgm_read_byte(data));
09:25 PM rue_shop3: yea, bigger problem
09:25 PM Thrashbarg: hmm
09:25 PM * rue_shop3 hits his head o the desk a few times
09:26 PM rue_shop3: there are 40 copied versions of the uart library in this tree
09:26 PM rue_shop3: W T F
09:29 PM rue_shop3: 7 versions... }:-|
09:29 PM rue_shop3: 5 versions of its header file...
09:49 PM rue_shop3: apt-get install xxdiff
09:49 PM rue_shop3: 455 upgraded, 462 newly installed, 149 to remove and 1098 not upgraded.
09:49 PM rue_shop3: nope nope nope nope nope nope...
10:35 PM rue_shop1: arg
10:35 PM rue_shop1: I think the fileserver needs a new power supply
10:35 PM rue_shop1: *sigh*
11:02 PM * rue_shop1 waits for the filesystem to rebuilt
11:02 PM rue_shop1: ddd
11:56 PM day_ is now known as day