Hi, I'm new to Keil but have been working with micros for many years. I am using Keil vision 2 and am programming a Cypress USB chip. The code compiles with no errors. I can download it from Cypress EZ-USB GUI, and it works fine. When I click on the start/stop debug session I get the error message "could not load file , xxxmyfile, debugger aborted". If I choose not to load the application at start up under the debugging options, I can run the program but it isn't functioning correctly (as is does when I download it by Cypress EZ-USB). The problem seems to be listed in the xx.m51 file as UNRESOLVED EXTERNAL SYMBOL for a couple of cases. I'm probably missing something very dumb so expect I might get flamed.
Well, it seemed kinder than just saying, "there is no point in trying to debug this code - it doesn't even build properly!" ;-)
Thank you for your replies. Mabee I've been using assembler based projects for too long, but here's my question. Why does is build 0 errors Why whe I the download Hex file it runs perfectly And finally why when I click on the Start/stop debug session it gives me a hard time?
an undefined will pick up garbash. Probably the garbage picked by the uC and the garbage picked by the simulator is different. "one mans garbage, another mans treasure" Erik
Hi, Maybe you declared some EXTERNAL address but did not use it.