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,693件の閲覧回数
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,491件の閲覧回数
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,492件の閲覧回数
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,491件の閲覧回数
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,491件の閲覧回数
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,491件の閲覧回数
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,491件の閲覧回数
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,491件の閲覧回数
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 件の賞賛
返信