This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Interrupts not running when executing code on reset (kitCON167-CR)

I am a student using the school's copy of the Keil PK166 suite for a senior design lab.

I have run into a problem when attempting to run code directly from the flash memory on a Phytec kitCON-167CR.

When I reset the board, the program runs, but the interrupt service routines to not seem to be called.

Is there some setting that I'm missing?

My procedure:
-Set up a project in Dave
-Use template .uv2 file from HOT for C166CR
-Insert and compile code configured for Phytec kitCON-167CR
-Run flasht.exe (Infineon FlashTools) and download HEX code to the flash memory.
-exit flasht.exe, switch S3 dip switch position 1 to the off position
-reset board

When the program runs, it executes code not contained in interrupt service routines.

When the compiler is run in debug mode, or if I select "Run from address" in the FlashTools, then the interrupts work just fine. (I give the starting address of the main function when using FlashTools).

I believe that I'm just missing a setting somewhere, something with the interrupt vector table?

Any help you can provide will be greatly appreciated.

-James Southard, Jr
Senior EE Undergraduate
University of South Carolina

0