S32DS3.6.2 build gPTP Example Code error

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

S32DS3.6.2 build gPTP Example Code error

Jump to solution
335 Views
Ryan_xjl
Contributor II

原来一直在S32DS3.5+RTD5..0.0开发,介于新的需求要开发gPTP相关功能,所以重新搭建新的开发环境:

S32DS_3.6.2_RFP_win32.x86_64.exe

SW32K3_S32M27x_RTD_R21-11_6.0.0_D2506_DesignStudio_updatesite.zip

SW32K3_FreeRTOS_11.1.0_6.0.0_CD1_D2506_DesignStudio_updatesite.zip

SW32K3xx_M7_gPTP_1.0.0_D2507_DesignStudio_updatesite.zip

SW32K3_TCPIP_STACK_3.0.0_D2507_DesignStudio_updatesite.zip

搭建完成后创建S32K388_gptp_free_rtos_ds工程,更新code直接编译发现下面错误:

Ryan_xjl_0-1779122975440.png

我的理解是不是环境搭建过程中是不是缺少插件的安装?

实际同样的情况lwip_FreeRTOS_s32k388也出现:

Ryan_xjl_1-1779123146816.png

但是对应的插件我都安装了,附件是S32K388_gptp_free_rtos_ds导出例程,刚开始搭建麻烦指点一下,谢谢!

 

 

0 Kudos
Reply
1 Solution
132 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @Ryan_xjl 

I have imported the lwip_FreeRTOS_s32k388 example on my side, and it appears that the stacks folder is missing, which is causing the errors.

As a workaround, you can modify the tcpip_itm_manifest.xml file and add S32K388 to the three device lists. This file can be found, for example, at: C:\NXP\S32DS.3.6.4\S32DS\software\PlatformSDK_S32K3\tcpip_itm_manifest.xml

Additionally, please refer to the thread S32K388 tcpip stack 4.0.0 missing lwip folder while compiling, where this issue has already been discussed. The thread also points to an example project that may be helpful for your case.

View solution in original post

0 Kudos
Reply
7 Replies
310 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @Ryan_xjl 

I was able to replicate the issue. The following changes were required to build the project without errors:

FreeRTOSConfig.h

Add the following definition:
#define configKERNEL_PROVIDED_STATIC_MEMORY 1

port.c

Add the declaration:
void xPortSysTickHandler( void ) __attribute__( ( naked ) );


Vector_Table.s

Change .globl vPortSVCHandler
to     .globl SVC_Handler
Change .long vPortSVCHandler
to     .long SVC_Handler+1

 

BR, VaneB

0 Kudos
Reply
271 Views
Ryan_xjl
Contributor II

你好,实际我不太关注这个错误,这些错误肯定可以修订,主要再S32DS3.5+RTD5.0.0直接导入IDE提供的标准例程没有出现编译出错问题,但是在S32DS3.6.2+RTD6.0.0同样的操作出现该现象,是不是插件安装不匹配导致,最担心是:

涉及的source code file都是SDK提供的,基本上不会修改,就是修改也是通过IDE界面配置修改,后面随着功能增加,会不断update Code,已经修改的文件再次覆盖,每次都需要修改一边,这样是不是不太方便!

0 Kudos
Reply
252 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @Ryan_xjl 

Regarding software compatibility, the current versions you are working with should operate without issues, as they all depend on RTD version 6.0.0.

Concerning the migration from RTD 5.0.0 to RTD 6.0.0, and from S32DS 3.5 to S32DS 3.6.2, several changes have been introduced in both the software and the IDE. Therefore, full backward compatibility cannot be guaranteed, although the overall functionality remains largely similar.

Finally, regarding the loss of modifications in generated files, this is expected behavior when using ConfigTools. Each time a new configuration is applied, the tool regenerates the files and restores them to their default state. Any manual changes made directly in these files are not preserved. Therefore, it is important to manage custom modifications carefully when working with generated code.

0 Kudos
Reply
202 Views
Ryan_xjl
Contributor II

非常感谢你如此耐心的帮助我解决困惑,可能是我表达的不够明白,或者我刚开始学习,方便明确表达我的意思,我提供了整个操作流程的视频,可以更好表达我的诉求,再次感谢你如此耐心的帮助我

PS:过程中有个现象,不知道是不是该情况导致

附件是操作流程视频

Ryan_xjl_0-1779283989505.png

 

0 Kudos
Reply
179 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @Ryan_xjl 

No worries, the language difference can sometimes cause misunderstandings, and I really appreciate that you shared a video showing the issue.

The window displayed when opening ConfigTools is simply a warning indicating that the project was created using an older version of the tool than the one you are currently using. This only becomes relevant if you try to open the .mex file again with the original (older) version. In your case, it should not cause any problem. Also, when creating a project from scratch, this warning does not appear.

Finally, the build error you encountered when compiling the example can be resolved by applying the changes I mentioned in my first reply.

I hope this helps clarify your questions.

0 Kudos
Reply
139 Views
Ryan_xjl
Contributor II

非常感谢,这个问题目前就按照当前的思路进行

附件的这个工程操作流程与gPTP工程一样,是否可以协助看看(发现stack没有生成)

Ryan_xjl_0-1779381372816.pngRyan_xjl_1-1779381514711.pngRyan_xjl_2-1779381531505.png

0 Kudos
Reply
133 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @Ryan_xjl 

I have imported the lwip_FreeRTOS_s32k388 example on my side, and it appears that the stacks folder is missing, which is causing the errors.

As a workaround, you can modify the tcpip_itm_manifest.xml file and add S32K388 to the three device lists. This file can be found, for example, at: C:\NXP\S32DS.3.6.4\S32DS\software\PlatformSDK_S32K3\tcpip_itm_manifest.xml

Additionally, please refer to the thread S32K388 tcpip stack 4.0.0 missing lwip folder while compiling, where this issue has already been discussed. The thread also points to an example project that may be helpful for your case.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2367042%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3ES32DS3.6.2%20build%20gPTP%20Example%20Code%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2367042%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3E%3CP%3EThe%20original%20has%20been%20in%20the%20S32DS3.5%20%2B%20RTD5..0.0%20development%2C%20between%20the%20new%20demand%20to%20develop%20gPTP-related%20functions%2C%20so%20to%20rebuild%20a%20new%20development%20environment%3A%3C%2FP%3E%3CP%3ES32DS_3.6.2_RFP_win32.x86_64.exe%3C%2FP%3E%3CP%3ESW32K3_S32M27x_RTD_R21-11_6.0.0_D2506_DesignStudio_updatesite.zip%3C%2FP%3E%3CP%3ESW32K3_FreeRTOS_11.1.0_6.0.0_CD1_D2506_DesignStudio_updatesite.zip%3C%2FP%3E%3CP%3ESW32K3xx_M7_gPTP_1.0.0_D2507_DesignStudio_updatesite.zip%3C%2FP%3E%3CP%3ESW32K3_TCPIP_STACK_3.0.0_D2507_DesignStudio_updatesite.zip%3C%2FP%3E%3CP%3EAfter%20the%20build%20is%20complete%2C%20create%20the%20S32K388_gptp_free_rtos_ds%20project%20and%20update%20the%20code%20to%20compile%20directly%20to%20find%20the%20following%20error%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Ryan_xjl_0-1779122975440.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Ryan_xjl_0-1779122975440.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Ryan_xjl_0-1779122975440.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Ryan_xjl_0-1779122975440.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Ryan_xjl_0-1779122975440.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F385774i94A3BDCCDE9ECC1A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Ryan_xjl_0-1779122975440.png%22%20alt%3D%22Ryan_xjl_0-1779122975440.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EIs%20my%20understanding%20that%20the%20environment%20build%20process%20is%20not%20missing%20plugin%20installation%3F%3C%2FP%3E%3CP%3EThe%20actual%20same%20situation%20lwip_FreeRTOS_s32k388%20occurs%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Ryan_xjl_1-1779123146816.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Ryan_xjl_1-1779123146816.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Ryan_xjl_1-1779123146816.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Ryan_xjl_1-1779123146816.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Ryan_xjl_1-1779123146816.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F385775iED5F1B750015AFFB%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Ryan_xjl_1-1779123146816.png%22%20alt%3D%22Ryan_xjl_1-1779123146816.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EBut%20the%20corresponding%20plugins%20I%20have%20installed%2C%20attached%20is%20S32K388_gptp_free_rtos_ds%20export%20routine%2C%20just%20started%20to%20build%20please%20point%20me%20in%20the%20right%20direction%2C%20thank%20you!%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2367260%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32DS3.6.2%20build%20gPTP%20Example%20Code%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2367260%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%20actually%20I'm%20not%20too%20concerned%20about%20this%20error%2C%20these%20errors%20can%20certainly%20be%20revised%2C%20the%20main%20again%20S32DS3.5%20%2B%20RTD5.0.0%20directly%20into%20the%20standard%20routines%20provided%20by%20the%20IDE%20did%20not%20appear%20to%20compile%20error%20problems%2C%20but%20in%20the%20S32DS3.6.2%20%2B%20RTD6.0.0%20the%20same%20operation%20occurs%20the%20phenomenon%2C%20is%20not%20the%20plug-in%20installation%20mismatch%20caused%20by%20the%20most%20worried%20about%20it%3A%3C%2FP%3E%3CP%3EInvolved%20in%20the%20source%20code%20file%20are%20provided%20by%20the%20SDK%2C%20basically%20will%20not%20modify%2C%20that%20is%2C%20modify%20is%20also%20configured%20through%20the%20IDE%20interface%20to%20modify%20the%20back%20with%20the%20increase%20in%20functionality%2C%20will%20continue%20to%20update%20the%20Code%2C%20has%20been%20modified%20to%20cover%20the%20file%20again%2C%20each%20time%20you%20need%20to%20modify%20one%20side%2C%20so%20it%20is%20not%20too%20convenient!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2367143%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32DS3.6.2%20build%20gPTP%20Example%20Code%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2367143%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F232421%22%20target%3D%22_blank%22%3E%40Ryan_xjl%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20was%20able%20to%20replicate%20the%20issue.%20The%20following%20changes%20were%20required%20to%20build%20the%20project%20without%20errors%3A%3C%2FP%3E%0A%3CP%3E%3CEM%3E%3CSTRONG%3EFreeRTOSConfig.h%3C%2FSTRONG%3E%3C%2FEM%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-c%22%3E%3CCODE%3EAdd%20the%20following%20definition%3A%0A%23define%20configKERNEL_PROVIDED_STATIC_MEMORY%201%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%3CEM%3E%3CSTRONG%3Eport.c%3C%2FSTRONG%3E%3C%2FEM%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-c%22%3E%3CCODE%3EAdd%20the%20declaration%3A%0Avoid%20xPortSysTickHandler(%20void%20)%20__attribute__(%20(%20naked%20)%20)%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%3CBR%20%2F%3E%3CSTRONG%3E%3CEM%3EVector_Table.s%3C%2FEM%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-c%22%3E%3CCODE%3EChange%20.globl%20vPortSVCHandler%0Ato%20%20%20%20%20.globl%20SVC_Handler%0AChange%20.long%20vPortSVCHandler%0Ato%20%20%20%20%20.long%20SVC_Handler%2B1%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%2C%20VaneB%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2367813%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32DS3.6.2%20build%20gPTP%20Example%20Code%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2367813%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F232421%22%20target%3D%22_blank%22%3E%40Ryan_xjl%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ERegarding%20software%20compatibility%2C%20the%20current%20versions%20you%20are%20working%20with%20should%20operate%20without%20issues%2C%20as%20they%20all%20depend%20on%20RTD%20version%206.0.0.%3C%2FP%3E%0A%3CP%3EConcerning%20the%20migration%20from%20RTD%205.0.0%20to%20RTD%206.0.0%2C%20and%20from%20S32DS%203.5%20to%20S32DS%203.6.2%2C%20several%20changes%20have%20been%20introduced%20in%20both%20the%20software%20and%20the%20IDE.%20Therefore%2C%20full%20backward%20compatibility%20cannot%20be%20guaranteed%2C%20although%20the%20overall%20functionality%20remains%20largely%20similar.%3C%2FP%3E%0A%3CP%3EFinally%2C%20regarding%20the%20loss%20of%20modifications%20in%20generated%20files%2C%20this%20is%20expected%20behavior%20when%20using%20ConfigTools.%20Each%20time%20a%20new%20configuration%20is%20applied%2C%20the%20tool%20regenerates%20the%20files%20and%20restores%20them%20to%20their%20default%20state.%20Any%20manual%20changes%20made%20directly%20in%20these%20files%20are%20not%20preserved.%20Therefore%2C%20it%20is%20important%20to%20manage%20custom%20modifications%20carefully%20when%20working%20with%20generated%20code.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2368726%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32DS3.6.2%20build%20gPTP%20Example%20Code%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2368726%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F232421%22%20target%3D%22_blank%22%3E%40Ryan_xjl%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%0A%3CP%3ENo%20worries%2C%20the%20language%20difference%20can%20sometimes%20cause%20misunderstandings%2C%20and%20I%20really%20appreciate%20that%20you%20shared%20a%20video%20showing%20the%20issue.%3C%2FP%3E%0A%3CP%3EThe%20window%20displayed%20when%20opening%20ConfigTools%20is%20simply%20a%20warning%20indicating%20that%20the%20project%20was%20created%20using%20an%20older%20version%20of%20the%20tool%20than%20the%20one%20you%20are%20currently%20using.%20This%20only%20becomes%20relevant%20if%20you%20try%20to%20open%20the%20%3CEM%3E.mex%3C%2FEM%3E%20file%20again%20with%20the%20original%20(older)%20version.%20In%20your%20case%2C%20it%20should%20not%20cause%20any%20problem.%20Also%2C%20when%20creating%20a%20project%20from%20scratch%2C%20this%20warning%20does%20not%20appear.%3C%2FP%3E%0A%3CP%3EFinally%2C%20the%20build%20error%20you%20encountered%20when%20compiling%20the%20example%20can%20be%20resolved%20by%20applying%20the%20changes%20I%20mentioned%20in%20my%20first%20reply.%3C%2FP%3E%0A%3CP%3EI%20hope%20this%20helps%20clarify%20your%20questions.%3C%2FP%3E%0A%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2368499%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32DS3.6.2%20build%20gPTP%20Example%20Code%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2368499%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3E%3CP%3EThank%20you%20very%20much%20for%20being%20so%20patient%20to%20help%20me%20solve%20my%20confusion%2C%20maybe%20I%20didn't%20express%20myself%20clearly%20enough%2C%20or%20I'm%20just%20starting%20to%20learn%2C%20it's%20convenient%20to%20express%20my%20meaning%20clearly%2C%20I%20provided%20a%20video%20of%20the%20whole%20operation%20process%2C%20which%20can%20express%20my%20claim%20better%2C%20thanks%20again%20for%20being%20so%20patient%20to%20help%20me!%3C%2FP%3E%3CP%3EPS%3A%20There%20is%20a%20phenomenon%20in%20the%20process%2C%20I%20don't%20know%20if%20that%20situation%20is%20the%20cause%20of%20the%3C%2FP%3E%3CP%3EAttached%20is%20a%20video%20of%20the%20procedure%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Ryan_xjl_0-1779283989505.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Ryan_xjl_0-1779283989505.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F386190i3F9E718065F5ED63%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Ryan_xjl_0-1779283989505.png%22%20alt%3D%22Ryan_xjl_0-1779283989505.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E