Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

Relocating vector table cortex M3 question.

Posted by boogalee on January 21, 2016

Hi,

im using CC2538(cortex m3)

if i want to port on CC2538, i have to relocate vector table.

so i had searched datasheet, i founded my code have to be located at 0x0020_0000~

but, vector table address is set at reset 0x0000_0000. this is rom area.

so i have to relocate vector table address.

i had tried access vector table offset register(VTABLE) <- other vendor's register name was VTOR.

i just had access this register and just allocate appropriate value.

~~~~

define VTABLE ( * ( ( uint32_t * ) 0xE000ED08 ) )

VTABLE = 0x0020000F; ~~~~ i had defined VTABLE ( * ( ( uint32_t * ) 0xE000ED08 ) ) which VTABLE register's address

and allocate appropriate address value.

it was working !!

but... i dont know why it was worked....

what should i know to relocate vector address value.

Regrads. WON HEE LEE


Relocating vector table cortex M3 question.

Posted by edwards3 on January 21, 2016

Are you sure you have to relocate the table? Lots of Cortex-M will mirror the vector table region in memory to address 0 even when there is no physical memory at 0.


Relocating vector table cortex M3 question.

Posted by boogalee on January 21, 2016

yes ! i had checked datasheet and i had tested it.

if i didn't relocate vector table's addres, it didn't work.

but attached below code

~~~~

define VTABLE ( * ( ( uint32_t * ) 0xE000ED08 ) )

VTABLE = 0x0020000F; ~~~~ it had worked.

and then i had realized that i have to relocate vector table.

but... i dont know why it was working yet...


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists