Issue enabling PPP in MQX 4.1.0

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Issue enabling PPP in MQX 4.1.0

716件の閲覧回数
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 返信

479件の閲覧回数
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 件の賞賛