How to use S32DS command line to import, update code, and cleanbuild the example in TCPIP stacks

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

How to use S32DS command line to import, update code, and cleanbuild the example in TCPIP stacks

336 Views
seanwu
Contributor IV

Dear sir,

I want to use S32DS command line to import, update code, and cleanbuild.
I can do successfull for the examples(Dio_Example_S32K388) in RTD, but failed for the examples in stacks, like lwip_FreeRTOS_s32k388.
Could you help to check? Or could you provide the method?

 

I test some examples of S32K388 and S32K344 like below.

Now just lwip_FreeRTOS_s32k388 is failed.

lwip_FreeRTOS_s32k344 is OK.

FreeRTOS_Toggle_Led_Example_S32K388 and FreeRTOS_Toggle_Led_Example_S32K344 are OK.

Dio_Example_S32K388 and Uart_Example_S32K388 are OK.

 

seanwu_0-1779266141313.png

 

And my cusomter now is using lwip_FreeRTOS_s32k388, so I need resolve this issue.

 

Test environment:

S32DS3.6.3

RTD : S32K3_S32M27x Real-Time Drivers ASR R21-11 Version 6.0.0 QLP04

FREERTOS: SW32K3 FreeRTOS 11.1.0 version 6.0.0 Code Drop

TCPIP stack: SW32K3_S32M27X_TCPIP_STACK_3.0.0_D2507

 

Thanks.

BR,

Sean Wu

Tags (1)
0 Kudos
Reply
7 Replies

300 Views
seanwu
Contributor IV

HI @PavelL ,

I use the command line(see attached file) to "update code"  lwip_FreeRTOS_s32k388. But It won't generate "FreeRTOS", "RTD", and "stacks" folders, and files in the folders like below(The picture is "update code" using S32DS.). 

seanwu_0-1779279138126.png

 

0 Kudos
Reply

271 Views
PavelL
NXP Employee
NXP Employee

Hello @seanwu ,

Double click on mex file. Click on icon Peripherals. Can you see this:

PavelL_0-1779279923463.png

If you can't see tcpip_stack and you can't even see the stack in Mange SDK Components window, try to fix tcpip_itm_manifest.xml as it has been discussed in this thread S32K388 tcpip stack 4.0.0 missing lwip folder while compiling

Best regards,

Pavel

0 Kudos
Reply

265 Views
seanwu
Contributor IV

Hi @PavelL ,

I can see "tcpip_stack_1", and add "S32K388" in tcpip_itm_manifest.xml.

S32DS can generate the folders after "Update Code", but command line still can't generate.

 

Thanks.

BR,

Sean Wu

seanwu_0-1779282030340.png

seanwu_1-1779282110998.png

 

0 Kudos
Reply

235 Views
PavelL
NXP Employee
NXP Employee

Hello @seanwu ,

Based on this related thread:

Load Config and Building in CLI failed

You need to (some updates might be required to meet your project):

  • load mex by -Load %PROJECT_PATH%\%PROJECT_NAME%.mex
  • This row is not equivalent to "Update Code", remove -HeadlessTool Peripherals
  • Explicitly set MCU by -MCU S32K388
  • Use -SDKVersion PlatformSDK_S32K3
  • "Click Update Code" by -ExportAll %PROJECT_PATH%
  • Alternatively, add debug stuff to see what's happening there by -consoleLog

So, the "Update code" could look like that:

.\s32dsc.exe -noSplash ^
-application com.nxp.swtools.framework.application ^
--launcher.ini %DS_INSTALL%\eclipse\s32ds.ini ^
-data %WORKSPACE% ^
-sdkPath %RTD_PATH% ^
-MCU S32K388 ^
-SDKVersion PlatformSDK_S32K3 ^
-Load %PROJECT_PATH%\%PROJECT_NAME%.mex ^
-ExportAll %PROJECT_PATH%

 

The example lwip_FreeRTOS_s32k344 can work only by accidentally, caused by some default settings. 

Best regards,

Pavel

0 Kudos
Reply

233 Views
seanwu
Contributor IV

Hi @PavelL ,

I read the thread before, and tried the command mantioned in the thread. But still failed.

-HeadlessTool is required; otherwise, the S32DS GUI window will pop up, which is not what the customer wants.

lwip_FreeRTOS_s32k344 is worked using my command.

Could you please try lwip_FreeRTOS_s32k388 using your suggested command?

My customer is using lwip_FreeRTOS_s32k388, so must resolve the issue.

 

Thanks.

BR,

Sean Wu

 

0 Kudos
Reply

135 Views
PavelL
NXP Employee
NXP Employee

Hello @seanwu ,

Finally, I am able to replicate your issue. My suggestions weren't good.

I can confirm that your script works well on lwip_FreeRTOS_s32k344 but doesn't work on lwip_FreeRTOS_s32k388.

Anyway, lwip_FreeRTOS_s32k388 example misses Pins driver, which had to be fixed first. I apologize I can't help more on that.

I have forwarded your new case to the SW team.

Best regards,

Pavel

0 Kudos
Reply

312 Views
PavelL
NXP Employee
NXP Employee

Hello @seanwu ,

You installation setup appears to be correct.

What do you mean by "failed"? Build errors or tcpip functional issue?

Please check my example Example S32K388 GMAC0 lwIP FreeRTOS S32DS 3.6.1 RTD600 - list of my changes is provided.

Best regards,

Pavel

0 Kudos
Reply