cancel
Showing results for 
Search instead for 
Did you mean: 

program crash when using printf

doebber
Associate II
Posted on November 13, 2006 at 11:35

program crash when using printf

3 REPLIES 3
doebber
Associate II
Posted on November 13, 2006 at 07:50

Hello!

My program crashes when using printf(). I use RVCT V3.0 together with KEIL-Debugger.

When program runs in debugger -> no problem.

When disable timer-interrupts -> no problem

My program is based on the KEIL-IAP example.

Has anyone on idea?

regards

Marc

doebber
Associate II
Posted on November 13, 2006 at 08:59

Hi,

my code size is only a few bytes.

I modified your IAP-example in the following way:

- add STR71xR.lib

- add function printf() in main loop

- add T3TIMI_IRQHandler

I could send you my project.

regards

Marc

doebber
Associate II
Posted on November 13, 2006 at 11:35

Hi,

another hint:

- when I change the file scat.scf to start the program from address 0x40000000 -> no problem

But I want to use the IAP-Driver in sector 0 and so my program should be able to start at 0x40002000. Is there something wrong with interrupt vectors ?

regards

Marc