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
I have the hands-on-training from Infineon, but I haven't looked into the code samples from Phytec. Do the code samples cover running the program from the Flash? I believe it's a startup code issue as well and I'm going to look into it further. ->Scott: thanks for the comments. I'd like to point out that the only reason I've used Dave is that I'm using the Phytec board for a senior design project (Development time: 2 months in between a full-time load of classes). I would prefer to go without it, but I do not have the time to do so. (I prefer working without tools that abstract away understanding, but I don't have much time and probably won't work with the board again after I graduate). I'm going to try a few more things and post what is happening.