??? 11/30/06 12:21 Modified: 11/30/06 12:34 Read: times |
#128721 - ALLOCATE_EXTERN fixes FX2 xdata registers addr Responding to: ???'s previous message |
ALLOCATE_EXTERN fixes FX2 xdata registers address.
The definition and explanation of ALLOCATE_EXTERN is described in FX2regs.H Without this declaration before the #include, FX2 registers on xdata space is not 'fixed', and you'll get linker warning. Code will be generated, but it doesn't work, because the register address is wrong. It must be declared in only one of your source file. Usually, Cypress framework (fw.c) declares it. Humm.. it was the actual cause? Then the root is that you ignored the linker warning. Some warnings Keil puts can be safely though, but there are this kind of warning that cannot be ignored, you must fix it. Tsuneo |