HCS12 Recompiling Libraries for Lower Part of Flash

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

HCS12 Recompiling Libraries for Lower Part of Flash

ソリューションへジャンプ
1,454件の閲覧回数
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 解決策
507件の閲覧回数
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 返答(返信)
508件の閲覧回数
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 件の賞賛
507件の閲覧回数
JonByar
Contributor I
Thanks for the infomation.  That worked great.
0 件の賞賛