code generate error

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

code generate error

跳至解决方案
2,226 次查看
gumu
Contributor V

Hi NXP team,

I have configured PTA14 as ADC_1, but  Siul2_Port_Ip_Cfg.c doesn't have generated code.

gumu_0-1681730065469.png

 

{
        .base                        = IP_SIUL2,
        .pinPortIdx                  = 12u,
        .mux                         = PORT_MUX_ALT3,
        .safeMode                    = PORT_SAFE_MODE_DISABLED,
        .inputFilter                 = PORT_INPUT_FILTER_DISABLED,
        .pullConfig                  = PORT_INTERNAL_PULL_NOT_ENABLED,
        .pullKeep                    = PORT_PULL_KEEP_DISABLED,
        .invert                      = PORT_INVERT_DISABLED,
        .inputBuffer                 = PORT_INPUT_BUFFER_ENABLED,
        .outputBuffer                = PORT_OUTPUT_BUFFER_DISABLED,
        .adcInterleaves              = { MUX_MODE_NOT_AVAILABLE, MUX_MODE_NOT_AVAILABLE },
        .inputMuxReg                 = {
                                         1u
                                       },
        .inputMux                    = { 
                                         PORT_INPUT_MUX_ALT2,
                                         PORT_INPUT_MUX_NO_INIT,
                                         PORT_INPUT_MUX_NO_INIT,
                                         PORT_INPUT_MUX_NO_INIT,
                                         PORT_INPUT_MUX_NO_INIT,
                                         PORT_INPUT_MUX_NO_INIT,
                                         PORT_INPUT_MUX_NO_INIT,
                                         PORT_INPUT_MUX_NO_INIT
                                       },
    },
    {
        .base                        = IP_SIUL2,
        .pinPortIdx                  = 16u,
        .mux                         = PORT_MUX_AS_GPIO,
        .safeMode                    = PORT_SAFE_MODE_DISABLED,
        .inputFilter                 = PORT_INPUT_FILTER_DISABLED,
        .pullConfig                  = PORT_INTERNAL_PULL_NOT_ENABLED,
        .pullKeep                    = PORT_PULL_KEEP_DISABLED,
        .invert                      = PORT_INVERT_DISABLED,
        .inputBuffer                 = PORT_INPUT_BUFFER_ENABLED,
        .outputBuffer                = PORT_OUTPUT_BUFFER_DISABLED,
        .adcInterleaves              = { MUX_MODE_NOT_AVAILABLE, MUX_MODE_NOT_AVAILABLE },
        .inputMux                    = {
                                         PORT_INPUT_MUX_NO_INIT,
                                         PORT_INPUT_MUX_NO_INIT,
                                         PORT_INPUT_MUX_NO_INIT,
                                         PORT_INPUT_MUX_NO_INIT,
                                         PORT_INPUT_MUX_NO_INIT,
                                         PORT_INPUT_MUX_NO_INIT,
                                         PORT_INPUT_MUX_NO_INIT,
                                         PORT_INPUT_MUX_NO_INIT
                                       },
    },

 

0 项奖励
回复
1 解答
2,191 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @gumu 

You are correct, the pins that are labeled as default in Config Tools it does not appear in the pin configuration structure since technically it would be making a double configuration of the same functionality.

在原帖中查看解决方案

0 项奖励
回复
3 回复数
2,214 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @gumu 

Did you update the code once you finish the changes on ConfigTools?

VaneB_0-1681755327672.png

 

B.R.

VaneB

0 项奖励
回复
2,210 次查看
gumu
Contributor V

Hi @VaneB ,

Yes, I clicked 'update code'.

PIN module is not able to generate code for these pins which are routed as default .

PTA14 is routed to ADC as default

Is it right?

 

2,192 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @gumu 

You are correct, the pins that are labeled as default in Config Tools it does not appear in the pin configuration structure since technically it would be making a double configuration of the same functionality.

0 项奖励
回复