Execution of OneRF_4Antennas_demo_s32r274 example project

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

Execution of OneRF_4Antennas_demo_s32r274 example project

Jump to solution
1,626 Views
sushant_sg
Contributor II

Hi,

We are trying to run the OneRF_4Antennas_demo_s32r274 example project (available with S32_RSDK_S32R274_372_RTM_1.2.0 update) with TEF810B RADAR front end.

We are using 1st configuration of RADAR Setup.

   MIMO_SLOTS = 1,

   CP_RATE = 1,

   ANT_COMB_TYPE = 3DFFT,

   RX_ACTIVE = 4,

   RFFT_SIZE = 512,

   DFFT_SIZE = 128.

We are getting the output dumps in ./data/out/ folder. But the adc_data_x.dat file has data of only two chirps as ADC sample buffer is of size: sizeof(uint16_t) * nrSamplesPerChirp * nrRxAnt * RSDK_SPT_DOUBLE_BUFFER;

where,

   sizeof(uint16_t) = 2

   nrSamplesPerChirp = 512,

   nrRxAnt = 4

   RSDK_SPT_DOUBLE_BUFFER = 2,

So the total size of buffer is 8KB.

After execution of "rsdkStatus = RsdkRfeFrameStart(0)" command the buffer is filled with the data of two chirps, but after sptDoneFlag = 1, the range FFT data stored in the range out buffer is of complete frame.

The range out buffer size is : sizeof(uint32_t) * nrRangeBins * nrDopplerBins * nrVirtAnt / gAppConfig.cpRate)

where,

   sizeof(uint32_t) = 4,

   nrRangeBins  = 256,

   nrDopplerBins  = 128,

   nrVirtAnt = 4,

   gAppConfig.cpRate = 1.

So the total size of range out buffer is 512KB.

If the input is 2 chirps why is the range FFT calculated for all 128 chirps(full frame).

Our final aim is to get ADC output data of full frame, that is (Number of samples per chirp * Number of chirps per frame * Active RX antenna).

   Number of samples per chirp = 512,

   Number of chirps per frame = 128,

   Active RX antenna = 4.

How we can get ADC data for full frame (Number of samples per chirp * Number of chirps per frame * Active RX antenna)?

Please guide us.

Thanks & Regards,

Sushant Gosavi

0 Kudos
1 Solution
1,236 Views
b41937
NXP Employee
NXP Employee

The issue you were seeing was a TEF810X driver issue that was fixed in RSDK 1.2.1.

View solution in original post

0 Kudos
5 Replies
1,236 Views
nxf19618
NXP Employee
NXP Employee

Hi Sushant,

The size of the data acquisition buffer is hardcoded to 2 chirps in S32_RSDK_S32R274_372_RTM_1.2.0 release. The size of this buffer will be configurable in the next Radar SDK release (1.3.0).

Until then you can use one of the dedicated SPT kernels to copy the data from the small acquisition buffer to a larger buffer which can contain an entire frame. For your particular use case you probably need S32R27X-37X_RSDK_RTM_1_2_0\SPT\SPT_kernels\src\SPT2\ADCSampleAcq_512smp_128crp.pspt

 

regards,

Cristian Savlovschi

Software Engineer

Automotive Microcontrollers and Processors

NXP Semiconductors

0 Kudos
1,234 Views
sushant_sg
Contributor II

Hi Cristian,

Thanks for reply.

We tried the SPT Kernel suggested in the reply, and analyzed the data in matlab.

We are constantly getting the peak at the distance of 2.5 meters after range FFT irrespective of physical location of object.

We even tried continuous mode that is "NR_FRAMES" in rru_config_0.ini file set to 0. But when we are running the RunRadarApp_S32R274.exe application file we are getting the peaks at every 2.5 mtrs( Screeshot of the same is attached here with). There is no change in the given screenshot, even the object is moved at various locations.

I am attaching the data folder for both continuous mode run with default SPT kernel provided in the code and for run ("NR_FRAME = 5") with the SPT kernel (ADCSampleAcq_512smp_128crp.pspt).

We are hoping that you can help us to resolve this issue and get this example project running.

Thanks & Regards,

Sushant Gosavi.

Screenshot (1).png

0 Kudos
1,234 Views
b41937
NXP Employee
NXP Employee

Hi Sushant,

You are configuring the front end to alternate between Tx1 and Tx2 every chirp (pre-requisite for MIMO) but you are processing the signal with non-MIMO SPT kernels (512x128). Select TX_CH_ENABLE as 0 all the time.

Regards,
Tudor

0 Kudos
1,234 Views
sushant_sg
Contributor II

Hi Tudor,

Thanks for replying.

We tried the configuration changes you suggested. 

But still we are getting same output in the continuous mode, (NR_FRAMES == 0)

I am sharing the Screenshot of the same (after running RunRadarApp_S32R274.exe  file) with this reply.

new_SS_config_change.png

I am also sharing the data folder for your reference (for both "NR_FRAMES ==0" and "NR_FRAMES == 10").

Please help us to run this example project.

Is there any TEF810B specific RADAR example project with S32R274?

If yes can you tell me where to find it?

Thanks & Regards,

Sushant Gosavi.

0 Kudos
1,237 Views
b41937
NXP Employee
NXP Employee

The issue you were seeing was a TEF810X driver issue that was fixed in RSDK 1.2.1.

0 Kudos