[avr-libc-dev] [patch #9543] Add avrxmega3 devices.

2018-01-18 Thread Balint Cristian
Follow-up Comment #9, patch #9543 (project avr-libc):

Johann,

Uploaded avrxmega3-v5.diff.bz2 .

* Add _PROTECTED_WRITE_SPM in xmega.h (as per Atmel's upstream 3.6.1).


___

Reply to this item at:

  

___
  Message sent via/by Savannah
  http://savannah.nongnu.org/


___
AVR-libc-dev mailing list
AVR-libc-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avr-libc-dev


[avr-libc-dev] [patch #9543] Add avrxmega3 devices.

2018-01-18 Thread Balint Cristian
Additional Item Attachment, patch #9543 (project avr-libc):

File name: avrxmega3-v5.diff.bz2  Size:284 KB


___

Reply to this item at:

  

___
  Message sent via/by Savannah
  http://savannah.nongnu.org/


___
AVR-libc-dev mailing list
AVR-libc-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avr-libc-dev


[avr-libc-dev] [patch #9543] Add avrxmega3 devices.

2018-01-18 Thread Georg-Johann Lay
Follow-up Comment #8, patch #9543 (project avr-libc):

There must still be missing something, at least _PROTECTED_WRITE_SPM.  Apart
from a build warning for a missing prototype, it's neither resolved by a macro
nor my a symbol:


$ echo 'int main(){}' | avr-gcc -xc - -Wl,-u,eeprom_write_block
-mmcu=attiny1616
/srv/local/gnu/install/gcc-8/bin/../lib/gcc/avr/8.0.1/../../../../avr/lib/avrxmega3/libattiny1616.a(eewr_block_xmega.o):
In function `eeprom_write_block':
eewr_block_xmega.c:(.text.avr-libc+0x80): undefined reference to
`_PROTECTED_WRITE_SPM'
collect2: error: ld returned 1 exit status




___

Reply to this item at:

  

___
  Message sent via/by Savannah
  http://savannah.nongnu.org/


___
AVR-libc-dev mailing list
AVR-libc-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avr-libc-dev


[avr-libc-dev] [patch #9543] Add avrxmega3 devices.

2018-01-18 Thread Balint Cristian
Follow-up Comment #7, patch #9543 (project avr-libc):

Johann,


- Thank you for the quick review.
- I believe your proposed changes are fine.

* The task presented here is fairly easy to do, all basic ingredients are
Atmel's upstream stuff. Not sure why they are not collaborating with you guys.
They started to keep lots of changes on their own fork (their changes have no
logs or names).

* Perhaps migrating to a more collaborative platform like github would help
this project a lot.

* I attached outputs of a sample main() program for atn1616 target that looks
good to me [attiny16161-disasm.txt.bz2]. Cannot validate yet on real device
(waiting for real chip samples) .

* I am working on avrdude & USBASP-firmware too for support UPDI 
 too (is quite similar to TPI). As reference for UPDI there is
https://github.com/mraardvark/pyupdi, you probably already know that.



___

Reply to this item at:

  

___
  Message sent via/by Savannah
  http://savannah.nongnu.org/


___
AVR-libc-dev mailing list
AVR-libc-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avr-libc-dev


[avr-libc-dev] [patch #9543] Add avrxmega3 devices.

2018-01-18 Thread Balint Cristian
Additional Item Attachment, patch #9543 (project avr-libc):

File name: attiny16161-disasm.txt.bz2 Size:1 KB


___

Reply to this item at:

  

___
  Message sent via/by Savannah
  http://savannah.nongnu.org/


___
AVR-libc-dev mailing list
AVR-libc-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avr-libc-dev


[avr-libc-dev] [patch #9543] Add avrxmega3 devices.

2018-01-18 Thread Georg-Johann Lay
Follow-up Comment #6, patch #9543 (project avr-libc):

Thanks, I can build avr-libc now and a quick test looks good.

Regarding the changes to eewr_block_xmega.c, maybe it's clearer to
special-case the different NVM flavours instead of #define + #undef + #define
chains?

I allowed me to attach a respective patch as avrxmega3-v4.diff.bz2


___

Reply to this item at:

  

___
  Message sent via/by Savannah
  http://savannah.nongnu.org/


___
AVR-libc-dev mailing list
AVR-libc-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avr-libc-dev


[avr-libc-dev] [patch #9543] Add avrxmega3 devices.

2018-01-18 Thread Georg-Johann Lay
Additional Item Attachment, patch #9543 (project avr-libc):

File name: avrxmega3-v4.diff.bz2  Size:283 KB


___

Reply to this item at:

  

___
  Message sent via/by Savannah
  http://savannah.nongnu.org/


___
AVR-libc-dev mailing list
AVR-libc-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avr-libc-dev