S32K312 port set

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

S32K312 port set

Jump to solution
1,212 Views
JH_ZHANG
Contributor I

The board was newly manufactured using S32K312.

To check if the board is operating normally, LEDs were connected to ports 4 and 5 of PortB and pins 8 of PortE (Pin 28,27,26).

I use Port_Example_S32K312 in Port S32K3XX Examples

JH_ZHANG_0-1703640621251.png

 


I tried to check the operation of the LED, but an error occurred when I tried to build after changing the package (Q172 > Q100).

JH_ZHANG_1-1703640684496.png

 

 

It's my first time using Design Studio and the S32K series, so I'm having a lot of difficulties.

Please help.

Please share a basic example of using peripheral.(How to: blinking LED example using S32DS)

S32K312-Q100

Debugger is using PE Micro.

0 Kudos
Reply
1 Solution
1,025 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @JH_ZHANG,

I loaded the blink_LED.elf from your project.

Seems like the S32_HW_Init() function is optimized out.

I see in the register view that the pins do not have MSCR[OBE] set.

 

Regards,

Daniel

View solution in original post

0 Kudos
Reply
6 Replies
1,093 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi ZHANG,

Initially, you wrote that you could not compile the project.

It seems you can compile it now, the project runs on the MCU but does not work properly, is it so?

Can you share the test project here?

 

Thank you,

Daniel

0 Kudos
Reply
1,049 Views
JH_ZHANG
Contributor I

Hi daniel 

that's right, now I can compile the project.

but Sometimes it operates normally and sometimes it doesn't.
I don't know why it works like this.

I am sending the project file here as an attachment.

Please check.

best regards!

0 Kudos
Reply
1,026 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @JH_ZHANG,

I loaded the blink_LED.elf from your project.

Seems like the S32_HW_Init() function is optimized out.

I see in the register view that the pins do not have MSCR[OBE] set.

 

Regards,

Daniel

0 Kudos
Reply
1,128 Views
JH_ZHANG
Contributor I

The program was coded using the RTD Tool. In debug mode, the operation proceeds, but the LEDs do not work on the board. Is there anything else I need to configure?

The figure below is the actual code written.

 

JH_ZHANG_1-1704152326484.png

 

Regards,

ZHANG

0 Kudos
Reply
1,167 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @JH_ZHANG,

Did you regenerate the RTD code from the Configuration tool?

Does the Configuration tool report any errors?

 

Regards,

Daniel

0 Kudos
Reply
1,127 Views
JH_ZHANG
Contributor I

Hi Daniel 

yes, I regenerated the RTD code from configuration Tool.

no error. 

and debug mode operating is OK.

but board is not working 

pin set is below

JH_ZHANG_0-1704163594837.png

JH_ZHANG_1-1704163618200.png

 

JH_ZHANG_0-1704163168118.png

and schematic is below

JH_ZHANG_1-1704163221924.png

 

JH_ZHANG_2-1704163349759.png

 

best regards,

Zhang

0 Kudos
Reply