s32k312 develop error

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

s32k312 develop error

ソリューションへジャンプ
1,086件の閲覧回数
LEEYM
Contributor III

During the development of the s32k312 example, in the header file of Siul2_port_ip_cfg.h

/*! @brief Defines for user pin and port configurations */

 

at the bottom of the sentence

 


#define LPSPI2SCK_PIN 13u
#define LPSPI2SCK_PORT PTB_H_HALF
#define LPSPI2CS0_PIN 9u
#define LPSPI2CS0_PORT PTB_H_HALF
#define D13SOUT_PIN 2u
#define D13SOUT_PORT PTE_L_HALF
#define D12CLK_PIN 8u
#define D12CLK_PORT PTC_L_HALF
#define D14CS0_PIN 0u
#define D14CS0_PORT PTB_L_HALF
#define D3SIN_PIN 0u
#define D3SIN_PORT PTE_L_HALF

Verified pin port definitions.

I think it should be automatically generated if I newly define the pin and proceed with the update code, but I don't know why it's not generated.

Also, where can I refer to the pin port that I mean here? I can't find it no matter how much I look it up.

It doesn't match the pin number from PINS..

Please help me, experts

0 件の賞賛
返信
1 解決策
1,067件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

Once you fill in the Identifier, the S32 Configuration Tool will automatically generate these defines in Siul2_port_ip_cfg.h.
The corresponding PGPDOx registers can be found in /generate/include/Siul2_Dio_Ip_Cfg.h.

Siul2_port_ip_cfg Identifier Label.png


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "ACCEPT AS SOLUTION" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

元の投稿で解決策を見る

0 件の賞賛
返信
5 返答(返信)
1,068件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

Once you fill in the Identifier, the S32 Configuration Tool will automatically generate these defines in Siul2_port_ip_cfg.h.
The corresponding PGPDOx registers can be found in /generate/include/Siul2_Dio_Ip_Cfg.h.

Siul2_port_ip_cfg Identifier Label.png


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "ACCEPT AS SOLUTION" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 件の賞賛
返信
1,064件の閲覧回数
LEEYM
Contributor III

Thanks your Replying Robin_Shen

AND I have more question in S32DS IDE

 

1. I want to do spi communication, but I want to put a timer interrupt on the master side for touch sensor use, but I don't know the function, so how can I check this?


2. Also, regarding the IDE function, I was wondering where can I find the reference? I need to access the register to just write the C language, but I don't have time for that..

I look forward to hearing from you again, thank you Robinshen

タグ(1)
0 件の賞賛
返信
1,056件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Here is a brief introduction to the PIT timer and how to use the function in RTD.
If you have installed S32K3 RTD, examples can be found by clicking File -> New -> S32DS Project From Example

As you know, S32K3 has many derivatives, so to reduce effort, in the most recent RTD releases we only provide examples for K344, K358, and K396.

S32K3xx PIT and STM with RTD - Training.png

0 件の賞賛
返信
1,048件の閲覧回数
LEEYM
Contributor III
Thank you for your answer.

When I checked, all I needed was an IRQ pin, not a time interrupt. It doesn't matter if I just use it as a GPIO input, right?
0 件の賞賛
返信
1,029件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Did you download the 08_S32K3xx_PIT_and_STM_with_RTD_Training.zip?

08_S32K3xx_PIT_and_STM_with_RTD_Training.png

By the way, there are Gpt examples in S32K3 RTD 5.0.0, for example: Pit_Gpt_Ip_Example_S32K344

Pit_Gpt_Ip_Example_S32K344 RTD5.0.0.png

0 件の賞賛
返信