when I promgram mqx ,I found something wrong in the keil project.

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

when I promgram mqx ,I found something wrong in the keil project.

跳至解决方案
1,690 次查看
fengming
Contributor I

when I promgram mqx ,I found something wrong in the keil project( see attatched file ),but I do not know how to rectify it .

I will appreciate if you can help me !!!!

0 项奖励
回复
1 解答
1,488 次查看
c0170
Senior Contributor III

Hello feng ming,

what I spot immediately, your application invoked a couple of functions from timer code file, _timer_cancel is one of them. If you check the source code, entire file is conditionally compiled with condition MQX_USE_TIMER.

Had you set it to 1 in user_config and recompiled libraries?

Regards,

c0170

在原帖中查看解决方案

0 项奖励
回复
6 回复数
1,489 次查看
c0170
Senior Contributor III

Hello feng ming,

what I spot immediately, your application invoked a couple of functions from timer code file, _timer_cancel is one of them. If you check the source code, entire file is conditionally compiled with condition MQX_USE_TIMER.

Had you set it to 1 in user_config and recompiled libraries?

Regards,

c0170

0 项奖励
回复
1,488 次查看
fengming
Contributor I

Hi Martin:

      Thank you for your swift reply.

      Following your step:

           1.add #define MQX_USE_TIMER  1 in user_config.h,

           2.recompile the bsp and psp libraries,

           3.recompile the timer project.  0 error

        The problem has solved, thank you very much.

    

      

0 项奖励
回复
1,488 次查看
fengming
Contributor I

Hello Martin:

     I  perform the timer project in MQX and found  2 errors below:

         1  I compiled  timer project in ram model,it is ok.but when I compile it in flash model ,

              there are 3errors,why???

         2  I running timer project use COM5, because my computer do not have COM1,

             Do I need modify the source code??

        Regards,

         ming

0 项奖励
回复
1,488 次查看
c0170
Senior Contributor III

Hello feng mind,

I can't answer 1st question. In order to proceed, please post here errors you received, more information available, higher chance you will get the right answer.  Let me guess, you created your own application? When you change your target, it changes its properties, therefore you have to set again everything. Please revise your project settings.

2. No you don't need to.

Regards,

c0170

0 项奖励
回复
1,488 次查看
fengming
Contributor I

Hello Martin:

        The error picture below:

      flash debug error.jpg

       "int ram debug" the error never happened,

        and when  I download this project in "int ram debug" model, using COM5,

        but I can not receive any information,  must I use  "int flash debug" model ?

        I can not solve this problem and need your help.

       Thank you !!!!

       Best Regard

       ming

0 项奖励
回复
1,488 次查看
fengming
Contributor I

Hi Martin:

       I use TWR-K60N512 tower system module,

       and want to see the MQX(  timer project ) working process,

       but it is not give me any information through COM5,

       I am looking forward to your response .

       yours sincerely,

       ming

     

0 项奖励
回复