public inbox for ecos-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug 1001387] New: Kinetis Interrupt vector enumeration incorrect
@ 2011-11-16 14:46 bugzilla-daemon
  2011-11-16 20:44 ` [Bug 1001387] " bugzilla-daemon
  2011-11-17 17:56 ` bugzilla-daemon
  0 siblings, 2 replies; 4+ messages in thread
From: bugzilla-daemon @ 2011-11-16 14:46 UTC (permalink / raw)
  To: ecos-bugs

Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001387

           Summary: Kinetis Interrupt vector enumeration incorrect
           Product: eCos
           Version: CVS
          Platform: Other (please specify)
        OS/Version: Cortex-M
            Status: UNCONFIRMED
          Severity: normal
          Priority: low
         Component: HAL
        AssignedTo: unassigned@bugs.ecos.sourceware.org
        ReportedBy: tf+bugs.ecos@r-finger.com
                CC: ecos-bugs@ecos.sourceware.org, ilijak@siva.com.mk
             Class: Advice Request


In the Kinetis port (using TWRK60N512), the enum KinetisExtInterrupt_e, and
consequently the vectors returned by CYGHWR_HAL_KINETIS_PIN_IRQ_VECTOR() seem
incorrect; for example, for PORTA returned value is 88, but should be 103. I
suspect this is because the platform does not define
CYGNUM_HAL_INTERRUPT_SYS_TICK and CYGNUM_HAL_INTERRUPT_EXTERNAL; the fallback
arm values for these are 0 and 1 respectively, while the Kinetis values should
be 15 and 16 respectively.

-- 
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug 1001387] Kinetis Interrupt vector enumeration incorrect
  2011-11-16 14:46 [Bug 1001387] New: Kinetis Interrupt vector enumeration incorrect bugzilla-daemon
@ 2011-11-16 20:44 ` bugzilla-daemon
  2011-11-17 17:56 ` bugzilla-daemon
  1 sibling, 0 replies; 4+ messages in thread
From: bugzilla-daemon @ 2011-11-16 20:44 UTC (permalink / raw)
  To: ecos-bugs

Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001387

--- Comment #1 from Ilija Kocho <ilijak@siva.com.mk> 2011-11-16 20:43:55 GMT ---
(In reply to comment #0)
> In the Kinetis port (using TWRK60N512), the enum KinetisExtInterrupt_e, and
> consequently the vectors returned by CYGHWR_HAL_KINETIS_PIN_IRQ_VECTOR() seem
> incorrect; for example, for PORTA returned value is 88, but should be 103. I
> suspect this is because the platform does not define
> CYGNUM_HAL_INTERRUPT_SYS_TICK and CYGNUM_HAL_INTERRUPT_EXTERNAL; the fallback
> arm values for these are 0 and 1 respectively, while the Kinetis values should
> be 15 and 16 respectively.

Tomas

It's a matter of different enumerations:

In Freescale's headers, the interrupt (and exception) numbers simply begin from
0 (including Stack Pointer reset value).

ARM CMSIS standard begins counting from -14 (NMI) that places SysTick at -1 and
makes External Interrupts start at 0.

eCos has separate enumerations for system exceptions and interrupt vectors (see
hal/cortexm/arch/<version>/include/hal_intr.h). In the same file you will find
definitions for CYGNUM_HAL_INTERRUPT_SYS_TICK (0) and
CYGNUM_HAL_INTERRUPT_EXTERNAL (1), hence External Interrupt enumeration starts
from 1.

Speaking of Kinetis interrupt enumeration one additional clarification just
FAOD. /Reserved/ interrupts remain with their original names i.e.
.._Reserved108 follows .._PORTE in order to maintain correspondence with
Freescale's names. Simply regard them as names not numbers. With the time, some
of them, as new devices appear, may be assigned by Freescale to new
peripherals. Even the present list is an union of two devices: K60 and K40.

Ilija

-- 
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug 1001387] Kinetis Interrupt vector enumeration incorrect
  2011-11-16 14:46 [Bug 1001387] New: Kinetis Interrupt vector enumeration incorrect bugzilla-daemon
  2011-11-16 20:44 ` [Bug 1001387] " bugzilla-daemon
@ 2011-11-17 17:56 ` bugzilla-daemon
  1 sibling, 0 replies; 4+ messages in thread
From: bugzilla-daemon @ 2011-11-17 17:56 UTC (permalink / raw)
  To: ecos-bugs

Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001387

Tomas Frydrych <tf+bugs.ecos@r-finger.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |NOTABUG

--- Comment #2 from Tomas Frydrych <tf+bugs.ecos@r-finger.com> 2011-11-17 17:56:28 GMT ---
Ah ok, that makes sense. Sorry about the noise.

-- 
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug 1001387] New: Kinetis Interrupt vector enumeration incorrect
@ 2011-11-16 14:46 bugzilla-daemon
  0 siblings, 0 replies; 4+ messages in thread
From: bugzilla-daemon @ 2011-11-16 14:46 UTC (permalink / raw)
  To: unassigned

Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001387

           Summary: Kinetis Interrupt vector enumeration incorrect
           Product: eCos
           Version: CVS
          Platform: Other (please specify)
        OS/Version: Cortex-M
            Status: UNCONFIRMED
          Severity: normal
          Priority: low
         Component: HAL
        AssignedTo: unassigned@bugs.ecos.sourceware.org
        ReportedBy: tf+bugs.ecos@r-finger.com
                CC: ecos-bugs@ecos.sourceware.org, ilijak@siva.com.mk
             Class: Advice Request


In the Kinetis port (using TWRK60N512), the enum KinetisExtInterrupt_e, and
consequently the vectors returned by CYGHWR_HAL_KINETIS_PIN_IRQ_VECTOR() seem
incorrect; for example, for PORTA returned value is 88, but should be 103. I
suspect this is because the platform does not define
CYGNUM_HAL_INTERRUPT_SYS_TICK and CYGNUM_HAL_INTERRUPT_EXTERNAL; the fallback
arm values for these are 0 and 1 respectively, while the Kinetis values should
be 15 and 16 respectively.

-- 
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-11-17 17:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-16 14:46 [Bug 1001387] New: Kinetis Interrupt vector enumeration incorrect bugzilla-daemon
2011-11-16 20:44 ` [Bug 1001387] " bugzilla-daemon
2011-11-17 17:56 ` bugzilla-daemon
  -- strict thread matches above, loose matches on Subject: below --
2011-11-16 14:46 [Bug 1001387] New: " bugzilla-daemon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).