Hi,
I debug on real hardware, the demo board DEMO9SQG8.
I created my project using the "New Project" Wizard of CodeWarrior IDE (version 5.7.0).
+ Device and connection : MC9S08QG8 , P&E multilink/ Cyclone Pro
+ Processor Expert : Device Initialization
+ C/C++ option: None, tiny, None
I changed the linked library from ansitis.lib to ansitfs.lib and added 3 lines of code.
This is the code of main.c
========================================================
#include <hidef.h> /* for EnableInterrupts macro */
#include "derivative.h" /* include peripheral declarations */
#include "math.h" // (1)
void MCU_init(void); /* Device initialization function declaration */
void main(void) {
double x=0; // (2)
MCU_init(); /* call Device Initialization */
x = sin(30); // (3)
for(;
{
} /* loop forever */
}
========================================================
CPKwok