I am trying to run some old code from Insiders Guide written in 2004. The code contained __arm and __thumb inside the functions to indicate to the compiler the function types either arm or thumb. After some searching I removed the __arm and __thumb from the functions and tried to put before the functions #pragma arm and #pragma thumb before the functions.
These changes cause different errors by the compiler. Stating that the symbols are now obsolete. How do I handle thumb and arm interworking in C Code.
Thanks for the help
It is working now. after removing the extra thumb.c, the only change I remember making to get it to start working is selecting use memory layout from target dialog checkbox.
There was a Thumb.C file and a Main.c file. I noticed it was saying that the thumb function was multiply defined. so I removed the thumb.c function since it looks redundant. In main.c there is a thumb function already defined. The errors went away. Still though does not look like it works correctly since some breakpoints are not being hit.
View all questions in Keil forum