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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
1,691 Views
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 Kudos
Reply
1 Solution
1,489 Views
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

View solution in original post

0 Kudos
Reply
6 Replies
1,490 Views
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 Kudos
Reply
1,489 Views
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 Kudos
Reply
1,489 Views
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 Kudos
Reply
1,489 Views
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 Kudos
Reply
1,489 Views
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 Kudos
Reply
1,489 Views
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 Kudos
Reply