Issue enabling PPP in MQX 4.1.0

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Issue enabling PPP in MQX 4.1.0

849 次查看
chrissolomon
Contributor III

Hi,

I am upgrading a product from MQX 4.0.1 to 4.1.0.1 and I think I may have come across a bug.

My understanding was that in order to enable a feature, you simply defined the feature's 'enable' define to 1 in the user_config.h.

I am using PPP in my project, so I defined RTCSCFG_ENABLE_PPP to 1, but the feature wasn't included.

On investigation it appears that the

#if RTCSCFG_ENABLE_PPP

lines in lots of files (ppp.c, pppfsm.c, pktrx.c, pkttx.c etc) is before any of the includes. This means that there is no way for the user_config ( and the 'enable' define ) to be included when these objects are compiled.

I have two options to make this work:

1) Move the #if in each file (which is what I chose)

2) Add -D RTCSCFG_ENABLE_PPP=1 to the compile flags.

Is this a mistake, or is the intention that compile flags now be used rather than the user_config?

Either way, I figured this observation would be useful for anyone else that can't figure out why it's not working.

Chris

标签 (1)
标记 (3)
0 项奖励
回复
1 回复

612 次查看
danielchen
NXP TechSupport
NXP TechSupport

I checked the folder "C:\Freescale\Freescale_MQX_4_1\rtcs\source\ppp", all files are wrapped with #if RTCSCFG_ENABLE_PPP.

Thank you for your sharing.

0 项奖励
回复