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

 
 

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

Submitted by:  Mircea <byreal>
Submitted on:  Thu 11 Jun 2015 05:13:27 PM UTC  
 
Category: LibrarySeverity: 2 - Minor
Priority: 5 - NormalItem Group: libc code
Status: In ProgressPercent Complete: 0%
Assigned to: Joerg Wunsch <joerg_wunsch>Open/Closed: Open
Release: 1.8.0Fixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

All the interrupt vectors are there:

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>
Project AdministratorIn charge of this item.
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.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 11 Jun 2015 07:42:05 PM UTCjoerg_wunschSeverity3 - Normal=>2 - Minor
      StatusNone=>In Progress
      Assigned toNone=>joerg_wunsch
    Thu 11 Jun 2015 05:13:27 PM UTCbyrealCarbon-Copy-=>Added byreal

    Back to the top


    Powered by Savane 3.1-cleanup1