Working on TMS320DRx416 having ARM926EJ-S core

Talk about the project itself, the community, where we are and what we need. Great place to introduce yourself and make friends as well.

Working on TMS320DRx416 having ARM926EJ-S core

Postby Sanyam10 » Mon Sep 12, 2016 9:55 am

Hello All,

I am new to this processor. This processor have two cores

1. C64x DSP

2. ARM926EJ-S.

I am working on ARM926EJ-S. Using CCs V5.4 as an IDE .

One very strange problem i am facing. I define

#define M_PI 3.14159265358979f

float rad2deg = 180.0f / (float)M_PI; or #define rad2deg 57.295779513f

The above statements define in some .h file

In my user defined functions i am trying to do some multilpication like below:

1. y = x*rad2deg;

y and x both are float defined

if x is except 0.0 then i am getting correct value of the above calculation.

But if my x is 0.0 then 0.0 * rad2deg should be 0 but i am getting garbage value (i.e. 3.654321111 e-37) . This value also near to zero but not zero.

Due to this i am facing difficulty in executing proper algorithm which depend upon this logic.

Please help me to understand this problem and provide some solution.

Thanks

Sanyam Agarwal
Sanyam10
 
Posts: 1
Joined: Mon Sep 12, 2016 9:50 am

Return to Community

Who is online

Users browsing this forum: No registered users and 3 guests