cancel
Showing results for 
Search instead for 
Did you mean: 

Startup File, 91x_it.c, Undefined_Handler

truf9
Associate II
Posted on March 13, 2008 at 12:50

Startup File, 91x_it.c, Undefined_Handler

1 REPLY 1
truf9
Associate II
Posted on May 17, 2011 at 09:50

Hello.

I'm working with Keil uVision and the ST-Library V2.0.

My application is loaded in Bank 0 and I want to use Bank1 storing data in flash. The examples of Keil for flash read/write doesn't run,

My Startup-File: STR91x.S

If you want store data in flash, the following assembler code is needed:

MOV r0, #0x40000

MCR p15,0x1,r0,c15,c1,0

This code is in 91x_init.s. I made a own startup-file and modified STR91x.s with the assembler code for flash read/write.

But now I have the problem, that i get sometimes an Undefined_Handler() and my application doesn't continue to run.

My question:

Which startup-file (STR91x.s or 91x_init.s) shall I use with the ST-Lib and Keil uVision?

Why is in 91x_it.c in Undefined_Handler() an infinite loop and how treat such an Handler. I dont see the cause for the undefined_Handler with the debugger. How can I find out, why it jumps to Undefined_Handler?

Thomas