HCS12 Recompiling Libraries for Lower Part of Flash

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

HCS12 Recompiling Libraries for Lower Part of Flash

Jump to solution
1,401 Views
JonByar
Contributor I
I am using a HCS128E microprocessor with Codewarrior v4.6.

I want to use the lower page of flash (0x4000 - 0x7FFF) for my code.  The following line is in the default PRM file:

                              /* in case you want to use ROM_4000 here as well, make sure
                                 that all files (incl. library files) are compiled with the
                                 option: -OnB=b */

How do you recomile the libraries to make them work in the lower section of flash?

Thanks.
Labels (1)
Tags (1)
0 Kudos
1 Solution
454 Views
CrasyCat
Specialist III
Hello
 
I would proceed as follows:
  - Start CodeWarrior
  - Open your project
  - Check which ansi library is linked to the project
  - Select File -> Open
  - Browse for {Install}\lib\hc12c\hc12_lib.mcp (where {Install} stands for your installation directory).
  - Select the appropriate build target for the library file you are using
         "C Mb IEEE32/32" if you are linking "ansib.lib" to your application, ...
    You can check which is the lib file generated as follows:
      - Open target settings dialog (Press ALT + F7)
      - Switch to "Libmaker for HC12" panel.
      - The library file generated is displayed in the Library file name edit box.
  - Once you have found the appropriate target, open the target settings dialog (Press ALT + F)
  - Switch to "Compiler for HCI" panel and add the option to the Command line. 
 
CrasyCat

View solution in original post

0 Kudos
2 Replies
455 Views
CrasyCat
Specialist III
Hello
 
I would proceed as follows:
  - Start CodeWarrior
  - Open your project
  - Check which ansi library is linked to the project
  - Select File -> Open
  - Browse for {Install}\lib\hc12c\hc12_lib.mcp (where {Install} stands for your installation directory).
  - Select the appropriate build target for the library file you are using
         "C Mb IEEE32/32" if you are linking "ansib.lib" to your application, ...
    You can check which is the lib file generated as follows:
      - Open target settings dialog (Press ALT + F7)
      - Switch to "Libmaker for HC12" panel.
      - The library file generated is displayed in the Library file name edit box.
  - Once you have found the appropriate target, open the target settings dialog (Press ALT + F)
  - Switch to "Compiler for HCI" panel and add the option to the Command line. 
 
CrasyCat
0 Kudos
454 Views
JonByar
Contributor I
Thanks for the infomation.  That worked great.
0 Kudos