bugAVR C Runtime Library - Bugs: bug #45304, Will it be possible please to add...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #45304: Will it be possible please to add support and document all possible interrupts for ATmega16/32HVB & ATmega8/16HVA

Submitter:  Mircea <byreal>
Submitted:  Thu 11 Jun 2015 05:13:27 PM UTC
   
 
Category:  Library Severity:  2 - Minor
Priority:  5 - Normal Item Group:  libc code
Status:  In Progress Assigned to:  joerg_wunsch
Percent Complete:  0% Open/Closed:  Open
Release:  1.8.0 Fixed Release:  None

Thu 11 Jun 2015 07:42:05 PM UTC, comment #1: 

All the interrupt vectors are there:


$ fgrep _vect ~/src/avr-libc/include/avr/iom32hvb.h | fgrep -v _vect_num | awk '{print $2}'
BPINT_vect
VREGMON_vect
INT0_vect
INT1_vect
INT2_vect
INT3_vect
PCINT0_vect
PCINT1_vect
WDT_vect
BGSCD_vect
CHDET_vect
TIMER1_IC_vect
TIMER1_COMPA_vect
TIMER1_COMPB_vect
TIMER1_OVF_vect
TIMER0_IC_vect
TIMER0_COMPA_vect
TIMER0_COMPB_vect
TIMER0_OVF_vect
TWIBUSCD_vect
TWI_vect
SPI_STC_vect
VADC_vect
CCADC_CONV_vect
CCADC_REG_CUR_vect
CCADC_ACC_vect
EE_READY_vect
SPM_vect


It's our general policy to follow the exact (*) naming of
the datasheet with our naming.  So, the only issue here is
that these HVA/HVB devices use an interrupt naming that
vastely differs from many other AVRs.

(*) As exact as possible in terms of a valid C name, of
course, so the datasheets "SPI, STC" is converted to
"SPI_STC" for the C name, for example.

The documentation used to be auto-generated from the old
XML files.  Alas, that process has never been moved forward
to the new XML, so yes, documentation might be missing.  I'm
leaving the bug open for that.

Joerg Wunsch <joerg_wunsch>
Group administrator
Thu 11 Jun 2015 05:13:27 PM UTC, original submission:  

Will it be possible please to add support and document all possible interrupts
for ATmega16/32HVB & ATmega8/16HVA

from
http://www.atmel.com/webdoc/AVRLibcReferenceManual/group__avr__interrupts.html
run

#include <avr/interrupt.h>
ISR(ADC_vect)
{
    // user code here
}

an an ATmega32HVB in atmel studio 6
start adc conversion on cell 1 to 4
the interrupt will not be triggered, and the avrlib reference manual does not
specify any other interrupt besides for ADC conversion, also trying to compile
the code generates an warning.

<i tried all this in an attempt to find if any of this are defined>
Warning    1    'ADC_vect' appears to be a misspelled signal handler
Warning    4    'ANALOG_COMP_0_vect' appears to be a misspelled signal handler
Warning    5    'ANALOG_COMP_1_vect' appears to be a misspelled signal handler
Warning    6    'ANALOG_COMP_2_vect' appears to be a misspelled signal handler
Warning    7    'ANALOG_COMP_vect' appears to be a misspelled signal handler
Warning    8    'ANA_COMP_vect' appears to be a misspelled signal handler


now there is clearly an interrupt there because the default int is being
triggered on VADCSR |= 1<<VADSC;
ISR(__vector_default)

also CADIC_vect interrupt is missing for any cpu (this is the IAR name but
could not find any equivalent in the avr-gcc even for other cpu)

also if we go to the avr-lib doc (the above link) and we search for atmega32hvb
we will find that it supports just some generic  interrupts like external/timer
.. nothing more witch makes me believe the support is missing ffor this micro
controller..

in conclusion either some interrupt names are missing from the definition files
for this micro or either the documentation is incomplete (see the above link
used for reference).

Will it be possible please to add support and document all possible interrupts
for ATmega16/32HVB & ATmega8/16HVA

Mircea <byreal>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by joerg_wunsch (Posted a comment)
  • -email is unavailable- added by byreal (Submitted the item)
  • -email is unavailable- added by byreal
  •  

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-06-11 joerg_wunsch Severity3 - Normal 2 - Minor
        StatusNone In Progress
        Assigned toNone joerg_wunsch
    2015-06-11 byreal Carbon-Copy- Added byreal

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code