Post Created date
Comfused with AVR bootloader flash section
On reset, the avr jumps to 0x1E000 which is the start of the bootloader section set by the fuses. Your vector table is at 0x1A000, which is where your reset vector is located...
Monday, 16 May 2022 - 17:42
ATMEGA4809 VPort for SS
The toolchain is doing as instructed, generating correct code as expected.   It seems to be that an access to vport directly after a port access invalidates/screws up...
Monday, 16 May 2022 - 00:44
ATMEGA4809 VPort for SS
it appears that you need a gap between the two styles.   I never noticed that before. I'm sure I have mixed them, but typically you use one or the other or if you do...
Sunday, 15 May 2022 - 17:56
ATMEGA4809 VPort for SS
SPI0.INTFLAGS |= SPI_TXCIF_bm;If you are into cycle counting why use |= instead of = (edit, or skip it altogether, the flag is not being used at all), it will also preserve...
Saturday, 14 May 2022 - 20:53
Attiny406 I2C communication problem
0b1111 & 0b0010 equals "true"?  Its true if it gets converted to a bool-   if( 0b1111 & 0b0010 ){ /* if is just a bool test, 2 is not 0, so is true, so we are...
Saturday, 14 May 2022 - 10:37
Attiny406 I2C communication problem
while((TWI0.MSTATUS & TWI_WIF_bm)!=1); if((TWI0.MSTATUS & ~(1<<TWI_RXACK_bp))==1){Now you need to figure how to test bits. Most of the time you want to get 0, or...
Friday, 13 May 2022 - 21:53
Attiny406 I2C communication problem
A good start is to figure out what the difference is between && and &   TWI0.MSTATUS &&   You are using 'logical and' && everywhere, when you...
Friday, 13 May 2022 - 18:09
ATTiny404 - Invert Input does not seem to work on PA0 (RESET/UPDI)
When a pin is in UPDI mode, it just happens that you can also read it because UPDI is 'listening' on the same pin. You have no control over things like dir/out because UPDI...
Friday, 13 May 2022 - 17:45
ATtiny3217 I2c problem
No one knows what is hiding behind 'atmel_start_init()', but if interrupts are not enabled ( sei() ), no interrupts.
Friday, 13 May 2022 - 00:07
Program getting stuck after a function is called. Not sure why.
What do you mean by this exactly? What is cbi/sbi? When you change a pin you typically want to only change a single pin, preserving the state of the other pins on the same port....
Tuesday, 10 May 2022 - 07:36
Program getting stuck after a function is called. Not sure why.
Using a port is extremely easy and straightforward...what is all this worthless crap for? Partly my fault. I showed some example in another thread, and the pin struct was used....
Monday, 9 May 2022 - 19:26
Custom linker script
The additional options does not always do what you want it seems.   Under ld option categories, chose miscellaneous, the add your script option- -script=myscript.x The...
Sunday, 8 May 2022 - 21:07

Pages