Hi Alice
I'm studying using examples...
I'm using TWR-K70F120M kit and Codewarrior V10.7 and TWR-SER is connected to Hyperterminal on another PC.
I succeeded on several processor expert examples such as CRC, RNG, etc...
However for the RTC example I have tried it for several days but I can not make it and I don't know what the problem is.
Here I attached the pictures; one of Codewarrior workspace and the other is the captured screen of the Hyperterminal.
It is suspended forever at the line in the main()
while(!alarmTrig);
So, I think the rtc component does not work.
Sorry I cannot the zipped file here.
Thank you for our help..
Hello Kyuwon,
I test the RTC demo on my side, it can work well :
Please waiting some seconds, and do not step over to debug it , directly use "Resume" button.
Also you can disconnect the debugger ,then press reset button to have a try.
Hope it helps,
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Dear Alice_Yang;
Thank yoy for your reply...
I tested my system again using fully reinstalled Codewarrior and import example project..
However this situation is same..
I waited for about 5 minute after the message "Waiting for alarm ..", but "Alarm triggered !" not came out.
So, I stopped it, then resume at the line: AlarmTriggered();
At the time, I got the message which showed the same time as the setting time; 10/19/2010 17:37:50.
I attached the captured image here.
As you recommend, I did unplug the usb cable from TWR-MK70 board, then pressed the reset button.
But it is not fixed.
So, I think there is no software problem but its time to check the hardware.
Can you recommend how to check whether the RTC is working ?
I mean the jumper setting or how to hook an oscilloscope to test points.
And, when build the program I got three warnings..
I have tried again the project from a blank scratch.
from "New MCU project" not "import example project".. then add components same as the example.
After that I did "generate" and examine the generated code.
There are rtc.h and rtc.c, However, there are no code for "RTC1_SetAlarm()" and "RTC1_GetAlarm" .
There are only three functions; RTC1_Init(), RTC1_GetTime(), RTC1_SetTime()
What happened to my CW 10.7 Standard package ?
Does the project needs MQX RTOS ?
Hello Kyuwon,
- I just use the TWR-K70 board without TWR-SER, please have a look at my attached picture for jumper setting:
- Please choose "Advanced" in RTC_LDD component inspector , you will see SetAlarm and GetAlarm functions:
- This has nothing with MQX.
Hope it helps,
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Dear Alice Yang;
Thank you for your reply...
I checked every jumper and disassem and unplug my tower system..
As you can see in the attached photos, the jumpers are same as yours. and instead TWR-SER board I used PuTTy now.
However the problem is same as before. not fixed.
I have already spent much time on this project and very much depressed..
I'm sorry there is Moire pattern in the photos..
I hope something good answer..
Bye..
Hello Kyuwon Jeong,
Which product ? Different mcu use different compilers.
You can find it on "Compiler":
And manuls are under CW installer with "Compiler" name:
Hope it helps,
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thank you for your answer..
Actually I have TWR-K70F120M kit and Codewarrior V10.7.
The Quick Start Demo is with IAR IDE. But, I need example demo projet like Quick Start Demo, which can be used with Codewarrior.
Unfortuantely I cannot find such Demo projects.
Helklo Kyuwon,
There are some demos under CW installer :
Also when if you create project withe Processor Expert , add component (for example UART, ADC...),
there is demos under "help on component -> typical usage".
Hope it helps,
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------