[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] [bug #54652] Missing support for ATmega328PB
From: |
Paul Evans |
Subject: |
[avr-libc-dev] [bug #54652] Missing support for ATmega328PB |
Date: |
Wed, 12 Sep 2018 13:29:15 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0 |
URL:
<https://savannah.nongnu.org/bugs/?54652>
Summary: Missing support for ATmega328PB
Project: AVR C Runtime Library
Submitted by: leonerd
Submitted on: Wed 12 Sep 2018 05:29:13 PM UTC
Category: Header
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Header files
Status: None
Percent Complete: 0%
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 2.0.0
Fixed Release: None
_______________________________________________________
Details:
(copied from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=867235)
Attempting to build a program for the new ATmega328PB, it seems the
device-specific IO file is not found:
avr-gcc -std=gnu99 -Wall -Os -DF_CPU=16000000 -mmcu=atmega328pb -flto
-ffunction-sections ...
In file included from src/test.c:1:0:
/usr/lib/avr/include/avr/io.h:623:6: warning: #warning "device type not
defined" [-Wcpp]
# warning "device type not defined"
^
I do have the required iom328pb.h file though:
-rw-r--r-- 1 root root 27K Jul 22 2016 /usr/lib/avr/include/avr/iom328pb.h
Further, I see that iom328pb.h isn't listed in the big long section of
#ifdef-guarded #includes in the main io.h. I see there is an attempted generic
fallback section based on value of __AVR_DEV_LIB_NAME__ but it seems for
whatever reason that isn't kicking in today.
If I simply add the required 2 lines (by copying the 328P example), my code
will compile fine. Attached is my patch and the new file.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Wed 12 Sep 2018 05:29:13 PM UTC Name: iom328pb.h Size: 27KiB By:
leonerd
<http://savannah.nongnu.org/bugs/download.php?file_id=44992>
-------------------------------------------------------
Date: Wed 12 Sep 2018 05:29:13 PM UTC Name: add-iom328pb-h.diff Size: 422B
By: leonerd
<http://savannah.nongnu.org/bugs/download.php?file_id=44993>
_______________________________________________________
Reply to this item at:
<https://savannah.nongnu.org/bugs/?54652>
_______________________________________________
Message sent via Savannah
https://savannah.nongnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [avr-libc-dev] [bug #54652] Missing support for ATmega328PB,
Paul Evans <=