HI-WAVE: RTSHC08.C not found

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

HI-WAVE: RTSHC08.C not found

跳至解决方案
3,609 次查看
UdovdM
Contributor I
I've got a problem with a program I wrote based upon MyWirelessApp: 802.15.4_MAC_FFD_1.063.Lib

Building gives no errors.
But in HI-WAVE:
(Target set to HCS08. Device set to 9S08GT60.)

* In the mode: Full Chip Simulation, the programm works fine.
It starts in the file C:\Documents and Settings\****\src\code\Sys\crt0.c

* In the mode: In-Circuit Debug/programming, it can't find the code to start with.
The Source window headline says C:\Documents and Settings\****\mcp\...\RTSHC08.C not found

I think that the file location should be: C:\Program Files\Metrowerks\CW08 V3.1\lib\hc08c\src\rtshc08.c , part of the Motorola HC08 library files.
The header states: PURPOSE : run-time support.

Why is that file needed?

In an older versions of my application, is always started with crt0.c



Thanks in advance,
Udo

13192-SARD (MC9S08GT60 + MC13192), CodeWarrior HC08 SE 3.1, PEMicro USB HCS08 Multilink
标签 (1)
标记 (1)
0 项奖励
回复
1 解答
1,531 次查看
CrasyCat
Specialist III
Hi
 
  Apparently you have a bunch of long arithmetic operation in your application.
  So there is no way you are going to be able to avoid linking RTSHC08.c to your application.
 
  Now you need to tell the debugger where to find the source file.
  I assume you are using HI-WAVE for debugging. Am I right?
 
  Then you need to add the path to the library source file to the paths the debugger will look for source file.
  - Start HI-WAVE
  - Select File -> Configuration
  - In the Environment Tab, select general Path
  - Add {Compiler}lib\hc08c\src to the General Path
  - Click OK to save the configuration.
 
The debugger should be able to display source code from rtshc08.c now.
 
Note that if you create your project using the wizard, the debugger will automatically be configured properly :smileywink:.
 
CrasyCat

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,531 次查看
CrasyCat
Specialist III
Hello
 
RTSHC08.c contains code for run time functions. These are the functions the compiler is using to execute arithmetic operation that are not directly supported by the core (floating point arithmetic, long arithmetic, and so on).
 
In order to figure out why the compiler needs these run time library, first step would be to look in the .map file generated by the linker. In that file you should be able to see which function from RTSHC08.c is used.
Looking further down in the file you should even be able to detect which function is using the run time function.
 
If you can provide me with this information I may be able to tell you why this happens and perhaps how to avoid that.
 
CrasyCat
0 项奖励
回复
1,531 次查看
UdovdM
Contributor I
Hi CrasyCat,

See attached My_Target.map.txt
(I removed some sensitive information)

It looks like I'm calling a lot of functions.

I have changed some of my functions since an older working version.
I will try to undo/disable these changes, and see what happens.
The functions should be floatingpoint-opperation free.

I also added some functions to UART.c : *Char, *Hex2, *Deci


Should I include RTSHC08.C in the project?


Udo
13192-SARD (MC9S08GT60 + MC13192), CodeWarrior HC08 SE 3.1, PEMicro USB HCS08 Multilink
0 项奖励
回复
1,532 次查看
CrasyCat
Specialist III
Hi
 
  Apparently you have a bunch of long arithmetic operation in your application.
  So there is no way you are going to be able to avoid linking RTSHC08.c to your application.
 
  Now you need to tell the debugger where to find the source file.
  I assume you are using HI-WAVE for debugging. Am I right?
 
  Then you need to add the path to the library source file to the paths the debugger will look for source file.
  - Start HI-WAVE
  - Select File -> Configuration
  - In the Environment Tab, select general Path
  - Add {Compiler}lib\hc08c\src to the General Path
  - Click OK to save the configuration.
 
The debugger should be able to display source code from rtshc08.c now.
 
Note that if you create your project using the wizard, the debugger will automatically be configured properly :smileywink:.
 
CrasyCat
0 项奖励
回复
1,531 次查看
UdovdM
Contributor I
I copied the old project files and replaced the code files with my new code, and it now works again.

If I single step and arithmetic operation is needed, the C source code can't be found but I can see the assembler code working.

Thanks,
Udo
0 项奖励
回复