Can't pass float variables between A5 and M4 core using MCC

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Can't pass float variables between A5 and M4 core using MCC

ソリューションへジャンプ
1,188件の閲覧回数
swapnilv
Contributor III

Hi,

I have MQX 4.0.1 installed on my pc.

I tried to flash the sample pingpong example given for MCC demo for twrvf65gs10 tower board on Vybrid evaluation kit.

I am able to see the desired output on terminal.

But when I try to pass float variable value  between A5 and M4 core; those values are not getting passed.

Even simple printf is not showing the float variable value.

I tried to declare simple float variable in main_task in file mcc.c and print the variable value on terminal as explained below:

float myTemp = 50.00;

printf("Test flt Variable: %f \n",myTemp);

But the float variable values are not shown on terminal window.

Output of print command is as shown below on terminal window:

Test flt Variable: f

Expected output is:

Test flt Variable: 50.000000;

Kindly look into it and let me know the solution.

Thanks & Regards,

Swapnil

0 件の賞賛
返信
1 解決策
1,025件の閲覧回数
swapnilv
Contributor III

Hi,

Below flag was set to 0 in twrvf65gs10_a5 project "user_config.h" file.

#define MQX_INCLUDE_FLOATING_POINT_IO   0

I changed it to 1 and now I can see the float values correctly.

Swapnil

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,025件の閲覧回数
swapnilv
Contributor III


Hi,

Any updates/inputs regarding above mentioned issue ?

Because a simple printf() is also not working for float variables.

Regards,

Swapnil

0 件の賞賛
返信
1,026件の閲覧回数
swapnilv
Contributor III

Hi,

Below flag was set to 0 in twrvf65gs10_a5 project "user_config.h" file.

#define MQX_INCLUDE_FLOATING_POINT_IO   0

I changed it to 1 and now I can see the float values correctly.

Swapnil

0 件の賞賛
返信