cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with internal flash

jpetereit29
Associate II
Posted on January 10, 2006 at 09:36

Problems with internal flash

1 REPLY 1
jpetereit29
Associate II
Posted on January 10, 2006 at 09:36

Hallo,

I programmed an application using STR710F. On my board I use internal and external flash. I started it 2 weeks ago. When I came back the system has stopped.

I debuged my application and has the following behaviour:

The program runs with my emulator.

The program runs in externla flash.

The program doesn't run in internal flash.

I made some tests and found out, that the program runs in internal flash only when the CPU speed (RCLK) is less than 18MHZ.

I initialize the clock as followesn (oscillator frequenc is 14,7456MHz):

case en44_2368:

RCCU_Div2Config (ENABLE);

RCCU_RCLKSourceConfig(RCCU_CLOCK2 );

RCCU_PLL1Config(RCCU_PLL1_Mul_12, RCCU_Div_2);

while (RCCU_FlagStatus(RCCU_PLL1_LOCK) == RESET);

RCCU_RCLKSourceConfig(RCCU_PLL1_Output);

The system runs until the line RCCU_RCLKSourceConfig(RCCU_PLL1_Output); Than it stops. When I link these functions into external flash the system runs until next function in internal flash is called.

However when I use an RCLK < 17MHz the system runs in internal flash. And it runs when I started my application two weeks ago with RCLK=44Mhz.

By the way. I can program the internal flash within using my own bootloader (bootloader is executes in external flash) without any problems.

Has anyone an idea why I can't execute the application in internal flash with RCLK = 44MHz?