Skip to main content
doebber
Associate II
Nov 13, 2006 10:35 AM UTC
Question

program crash when using printf

Posted on November 13, 2006 at 11:35

program crash when using printf

This topic has been closed for replies.

3 replies

doebber
doebberAuthor
Associate II
Nov 13, 2006 6:50 AM UTC
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
doebberAuthor
Associate II
Nov 13, 2006 7:59 AM UTC
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
doebberAuthor
Associate II
Nov 13, 2006 10:35 AM UTC
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