This is the mail archive of the mailing list for the eCos project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug 1001683] New: Cortex-M3: Startup Code does not initialize lastof available interrupts vectors

Please do not reply to this email. Use the web interface provided at:

           Summary: Cortex-M3: Startup Code does not initialize last of
                    available interrupts vectors
           Product: eCos
           Version: CVS
          Platform: Other (please specify)
        OS/Version: Cortex-M
            Status: UNCONFIRMED
          Severity: normal
          Priority: low
         Component: HAL
             Class: Advice Request

Created an attachment (id=1954)
 --> (
Fix Cortex-M interrupt vector initialization

Using an STM32F103 I ran into a HardFault exception when using DMA2_CH5 with
interrupts enabled.

It seems no interrupt handler is registered by the startup code for this
particular interrupt source. The DMA2_CH5 interrupt is the last entry in the
interrupt list according to STM32F103 reference manual.

Please see attached patch to the startup code on Cortex-M architecture to use
the correct constant (CYGNUM_HAL_VSR_COUNT) when iterating over all interrupts
and installing hal_default_interrupt_vsr().

This patch works for me and allows DMA2_CH5 to signal transfer complete by

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]