S32R45 ddmaInitPhase Error

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

S32R45 ddmaInitPhase Error

1,117 Views
kj0126
Contributor II

I am developing 4 chip radar board that has a S32R45 as MCU and 4 TEF82xx as transceiver devices.
I will use DDMA with ddmaInitPhase in order to channel calibration.
but Whenever I put ddmaInitPhase values of each TX, RsdkRfeCalibration() returns RSDK_TEF82XX_TX#_CAL_ERROR.
If I remove a ddmaInitPhase line or replace all phase values with 0, then there is no error
I checked that ddmaInitPhase values are 0 to 360 (deg) value in float type.

The code I used:
rfeFrameParams.opt.pTef82XXSpecific->phaseRotator.ddmaInitPhase[txId] = <TX phases>;

I find out where it makes an error.
Tx0Error and Tx1Error of rfeId[2] are 1. but the others are 0s.

CalibStatus:
rfeId[0]: RfPrPhaseCal=Error
rfeId[1]: all success(No error)
TX0 of rfeId[2]: PoutCal=Error
TX1 of rfeId[2]: PoutCal=Error, RfPrCal=Error
TX2 of rfeId[2]: RfPrPhaseCal=Error
rfeId[3]: RfPrPhaseCal=Error

Besides, I had similar problem about turning on 12 TX of 4 chips
Turning on 12 TX causes RsdkRfeCalibration(0) to return RSDK_TEF82XX_TX1_TX2_TX3_CAL_ERROR
When turning on 3 TX of rfeId[2] makes "PoutCal" error:
https://community.nxp.com/t5/S32-Design-Studio/S32R45-RsdkRfeCalibration-ERROR/m-p/1799421#M11806

Questions:
1. How I could use ddmaInitPhase of all 4 devices?
2. Is it related to previous problem?

0 Kudos
Reply
7 Replies

930 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

We will try to reproduce this on our side.

But can you also try to see if you have the same error when using only 2 MMIC or 3 MMICs?

Check if the error happens with all possible combinations of Leader-Follower

  • L/F1, L/F2, L/F3,
  • L/F1/F2, L/F1/F3, L/F2/F3
  • L/F1/F2/F3

Just to understand if a specific MMIC is the issue, the amount or a combination of these 2 factors.

Best regards,

Peter

0 Kudos
Reply

917 Views
kj0126
Contributor II

Hello, I check which Leader-Follower combinations make error

3 TX problem
L: work
L/F1: work
L/F2: RsdkRfeCalibration error
L/F3: RsdkRfeCalibration error
L/F1/F2: RsdkRfeCalibration error
L/F1/F3: RsdkRfeCalibration error
L/F2/F3: RsdkRfeCalibration error
L/F1/F2/F3: RsdkRfeCalibration error

When setting ddmaInitPhase values
L: work
L/F1: work
L/F2: RsdkRfeCalibration error
L/F3: shut down at RsdkRfeFrameConfig()
L/F1/F2: RsdkRfeCalibration error
L/F1/F3: shut down at RsdkRfeFrameConfig()
L/F2/F3: shut down at RsdkRfeFrameConfig()
L/F1/F2/F3: RsdkRfeCalibration error

0 Kudos
Reply

1,017 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Can you share if you are using a custom board? and also can you share the rsdkRfeChirpShape and the phaseRotator configurations?

I will investigate with the TEF82XX team too.

Best regards,

Peter

 

0 Kudos
Reply

858 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

I just received guidance from the TEF82XX team.

They have reviewed the information available, but it is still quite challenging to exactly determine what the root cause of this issue could be. If we suspect a software flow related issue regarding using multiple TEF82xx devices the same issue should occur when only 1TX is enabled on all devices. But given the issue is most dominantly present when all TX are enabled, the main suspect becomes the supply on the customer board.

So as a test you could request to test 1TX per TEF82xx (so 4TX in total) and see if the is an issue (or perhaps on a specific TEF82xx). Next would be to analyze the supplies and investigate if they remain stable when the calibration is started.

Also noting PoutCal error, this can occur if the maximum tx_curr_gain_ctrl_profilex is reached, however this is not expected for 10dBm output power. Please refer to the attached picture. The customer can try and read this register to check the value, if the value is 255 (maximum) at 10dBm, this may indicate problems with the RF design on the PCB.

petervlna_0-1710223694937.png

Best regards,

Peter

0 Kudos
Reply

1,013 Views
kj0126
Contributor II
Yes, I'm using a custom board.
 
rsdkRfeChirpShape values:
  • NR_FRONTENDS: 4
  • SAMPLING_FREQ: 40000 (kSps)
  • SAMPLES_PER_CHIRP: 704
  • CHIRPS_PER_FRAME: 257
  • CHIRP_SHAPES: 1
Chirp Shape:
  • T_START: 1000 (ns)
  • T_PRE_SAMPLING: 2000 (ns)
  • T_POST_SAMPLING: 50 (ns)
  • T_RETURN: 1000 (ns)
  • CENTER_FREQUENCY: 77000 (MHz)
  • ACQ_BANDWIDTH: 510 (MHz)
  • CHIRPS_SLOPE_DIRECTION: 1
  • TX_CHAN_ENABLE: 7 for each device
  • TX_CH_POWER: 10 (dBm) for all TX
  • RX_CH_GAIN: 6 (dB) for all RX
phaseRotator configurations:
    enablePhaseRotators = 1
    ddmaMode = RSDK_TEF82XX_PR_DDMA_FUNCTIONAL_MODE
 
    for (txId = 0; txId < 3; txId++) {
        ddmaInitPhase[txId] = <calibration value for each TX>
        useDDMA[txId] = 1
        ddmaPhaseUpdate[txId] = 22.5 * (txId + rfeId * RSDK_TEF82XX_MAX_TX_CHANNELS(= 3))
    }
 
    other options are used default
 
12 TX phase calibration values I used:
    0., 230.13963827, 14.86648893, 187.2978748, 212.67644102, 165.84156695,
    199.27407542, 296.7449174, 296.64637783, 236.18048414, 197.88880786, 50.71657448
0 Kudos
Reply

913 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Please see the feedback from RADAR team:

With my 4MMIC board I tried the same configuration and did not face the problem. This can be associated to a HW issue. Let me ping the TEF82XX team to get possible causes on the TX calibration errors.

Best regards,

Peter

 

0 Kudos
Reply

1,094 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

I have contact RADAR team with your issue.

Once they respond I will answer here.

Best regards,

Peter

0 Kudos
Reply