We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi, I'm trying to put a C function in a specific adress but I'm not having success to do it. Below I describe in some steps what I tried to do. 1- First I create a source code with my special function in it. I called this source code as "switch.c"; 2- In the link options (Project Menu -> Options for target xxx -> BL51 locate) I write ?CO?switch(0x1e00). I hope that passing this information to the linker it will put my function in the adress 0x1e00 but it doesn't work. Maybe this procedure is just for constants. Somebody knows how can I put my function in a fixed adress?
Project Menu -> Options for target xxx -> BL51 locate) I write ?CO?switch(0x1e00). This locates the constant code segments to address 0x1E00 in code space. However, program code is stored in the program segment which begins with ?PR?. Refer to http://www.keil.com/support/man/docs/c51/c51_ap_segname.htm and to http://www.keil.com/support/man/docs/c51/c51_ap_progobj.htm for details on how segments are named. Jon