I am migrating from another toolset. I have a project that uses banked codespace, with a common from 0x00000-0x07FFF, and two banks from 0x08000-0x0FFFF. I have three subroutines that I need to locate at the end of each section. SUB_COMMON is being placed in Common. SUB_BANK0 is being placed in Bank0 SUB_BANK1 is being placed in Bank1 The appropriate bank assignments have been made. Target Options, BL51 Locate tab, Code directive SUB_COMMON(07F56) places SUB_COMMON in the right place in the Common section. SUB_BANK0(0FFFA) appears to try and place it at 0x0FFFA in the Common section, and not in the Bank0 section. SUB_BANK0(C0:0FFFA) generates a linker syntax error.
SUB_BANK0(0FFFA) appears to try and place it at 0x0FFFA in the Common section, and not in the Bank0 section. SUB_BANK0(C0:0FFFA) generates a linker syntax error. In the BL51 Misc Tab under Misc Controls, you must use the BANKx directive to locate a segment in that bank. It works just like the CODE/COMMON directive. For example: BANK0(SUB_BANK0(0xFFFA)) locates SUB_BANK0 at address FFFA in bank 0. Jon
Thanks.