Interrupt Vector Redirection Method in Kinetis

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Interrupt Vector Redirection Method in Kinetis

技术社区计划将于12月21日至1月5日期间进行升级,升级期间暂时无法发布新问题。

Interrupt Vector Redirection Method in Kinetis

Interrupt technology is an important method to improve the efficiency of real-time CPU. In Kinetis, interrupt vector table is allocated in lowest ROM address of whole memory.

 

However in some application, we need move vector table to other address. A typical usage is developing boot loader code. The boot loader code occupies the first region of the FLASH memory (the lowest memory address space starting from 0x0000000).

This placement moves at the beginning of the available memory space and it is necessary to shift this address in the user application.

 

The CM0+ and CM4 core adds support for a programmable Vector Table Offset Register (VTOR)

to relocate the exception vector table, which is not existing in Freescale 8/16bit MCU. This device supports booting from internal flash and RAM.

Kinetis supports booting from internal flash with the reset vectors located at addresses 0x0 (initial SP_main), 0x4 (initial PC), and RAM with relocating the exception vector table to RAM.

 

for detail, see attached document and demo project made under CW10.6, and KDS

标签 (1)
附件
%3CLINGO-SUB%20id%3D%22lingo-sub-1100645%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EKinetis%E4%B8%AD%E7%9A%84%E4%B8%AD%E6%96%AD%E5%90%91%E9%87%8F%E9%87%8D%E5%AE%9A%E5%90%91%E6%96%B9%E6%B3%95%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1100645%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3Dutf-8%22%20%2F%26gt%3B%0A%3CP%3E%3CSPAN%20class%3D%22notranslate%22%3EInterrupt%20technology%20is%20an%20important%20method%20to%20improve%20the%20efficiency%20of%20real-time%20CPU.%20In%20Kinetis%2C%20interrupt%20vector%20table%20is%20allocated%20in%20lowest%20ROM%20address%20of%20whole%20memory.%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%3CSPAN%20class%3D%22notranslate%22%3E%20%3C%2FSPAN%3E%26nbsp%3B%3C%2FP%3E%3CP%20style%3D%22margin-bottom%3A%20.0001pt%3B%22%3E%3CSPAN%20class%3D%22notranslate%22%3EHowever%20in%20some%20application%2C%20we%20need%20move%20vector%20table%20to%20other%20address.%20A%20typical%20usage%20is%20developing%20boot%20loader%20code.%20The%20boot%20loader%20code%20occupies%20the%20first%20region%20of%20the%20FLASH%20memory%20(the%20lowest%20memory%20address%20space%20starting%20from%200x0000000).%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22margin-bottom%3A%20.0001pt%3B%22%3E%3CSPAN%20class%3D%22notranslate%22%3EThis%20placement%20moves%20at%20the%20beginning%20of%20the%20available%20memory%20space%20and%20it%20is%20necessary%20to%20shift%20this%20address%20in%20the%20user%20application.%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20style%3D%22margin-bottom%3A%20.0001pt%3B%22%3E%3CSPAN%20class%3D%22notranslate%22%3EThe%20CM0%2B%20and%20CM4%20core%20adds%20support%20for%20a%20programmable%20Vector%20Table%20Offset%20Register%20(VTOR)%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22margin-bottom%3A%20.0001pt%3B%22%3E%3CSPAN%20class%3D%22notranslate%22%3Eto%20relocate%20the%20exception%20vector%20table%2C%20which%20is%20not%20existing%20in%20Freescale%208%2F16bit%20MCU.%20This%20device%20supports%20booting%20from%20internal%20flash%20and%20RAM.%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22margin-bottom%3A%20.0001pt%3B%22%3E%3CSPAN%20class%3D%22notranslate%22%3EKinetis%20supports%20booting%20from%20internal%20flash%20with%20the%20reset%20vectors%20located%20at%20addresses%200x0%20(initial%20SP_main)%2C%200x4%20(initial%20PC)%2C%20and%20RAM%20with%20relocating%20the%20exception%20vector%20table%20to%20RAM.%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E8%AF%A6%E6%83%85%E8%AF%B7%E8%A7%81%E9%99%84%E4%BB%B6%E6%96%87%E6%A1%A3%E5%92%8C%E5%9C%A8CW10.6%E3%80%81KDS%E4%B8%8B%E5%88%B6%E4%BD%9C%E7%9A%84%E6%BC%94%E7%A4%BA%E9%A1%B9%E7%9B%AE%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1100645%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3E%E6%A6%82%E8%BF%B0%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
无评分
版本历史
最后更新:
‎03-09-2015 01:50 AM
更新人: