Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
Hi All.

I can not find "Vector Table Offset Register" in XMC1000 series.(VTOR)

as you know, this register is core register(coretex m0)

where I can find this it?

Thanks.
0 Likes
4 Replies
Not applicable
XMC1000 is using Cortex M0, which does not support the vector table address relocation feature. Therefore, VTOR register is not available.
0 Likes
Not applicable
Hi All

nowadays, I did make s/w bootloader.(as you know, XMC1000 Series has boot code in rom so, we can not control communication side)

so, bootcode is place at 0x10001000 to 0x10003000.(it is just test so it has rough sizes)

when received application code, it is placed from 0x10003000.

but I have problem.

in Bootcode area, when jump to Application code,

it is occured hard fault. so it is in hard fault handler.

SP Value and PC value also update before jump.

(SP : 0X10003000 , PC : 0X10003004)

my code is below here.

__asm("msr msp, r0");
__asm("msr psp, r0");

/* Jump to PC (r1)*/
__asm("mov pc, r1");

or

__asm("bx r1");

What do you think about it?

Thanks.
0 Likes
Not applicable
I have ugual problem.
my boot loader address is 0x10001000 to 0x10005000
the application address is 0x10005001 to 0x10033000 (device is XMC1404 with 200 KB of flash)
how you solved the problem?
thanks
0 Likes
User12775
Level 5
Level 5
First solution authored First like received
You should use XMC1's BMI or change a MCU type(XMC4?)
0 Likes