HCS12 Recompiling Libraries for Lower Part of Flash

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

HCS12 Recompiling Libraries for Lower Part of Flash

跳至解决方案
2,158 次查看
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.
标签 (1)
标记 (1)
0 项奖励
回复
1 解答
1,211 次查看
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 项奖励
回复
2 回复数
1,212 次查看
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 项奖励
回复
1,211 次查看
JonByar
Contributor I
Thanks for the infomation.  That worked great.
0 项奖励
回复