Hello, i bought a TERIDIAN 71M6511 development board, with codes written in C using KEIL UVISION IDE
I'm actually using it to develop mine but i ran into problem with the REGFILE directive. While trying mine, i added the following line of code in a header file, and attached to every sourc code:
#pragma regfile (tsc_lib.orc)
however, when i compiled i got the following error
ERROR C252: misplaced primary control, line ignored.
I would like to know exactly how to implement the REGFILE directive. Thank you.
"i added the following line of code in a header file"
The error description tells you exactly why that is wrong: http://www.keil.com/support/man/docs/c51/c51_c252.htm
See also: http://www.keil.com/support/man/docs/c51/c51_regfile.htm
Thank you very much, it was actually the first and only line of code in the header file, but it wasn't the first header file included in the source codes, once i made it the first header file, it compiled fine. Thanks.