S32K148 defaultISR with SDK RTM3.0.0

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

S32K148 defaultISR with SDK RTM3.0.0

Jump to solution
4,090 Views
wdong
Contributor III

hello, I am confused,

when I use the SDK RTM3.0.0, the board will defaultISR when getting the PIN_DRVS_Init(),as followed; but there is no problem without SDK,

all the programs are attached, please help me, Thank you!

 

Connection from "127.0.0.1" via 127.0.0.1. Connection from port "12262" to 6224
Connection from "127.0.0.1" via 127.0.0.1. Connection from port "12264" to 7224
Telnet server running on 127.0.0.1:51794
Searching for FreeRTOS Kernel Symbols...
rsp_qC - qSymbol: 707843757272656E74544342
pxCurrentTCB not found. FreeRTOS analysis not enabled.
BusFault: A precise (synchronous) data access error has occurred.
Possible BusFault location: 0x40049000.
HardFault: A fault has been escalated to a hard fault.

0 Kudos
Reply
1 Solution
4,054 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Have you check the clockMan1.c, did Processor Expert set clkGate=true for PORTA?
If still not work, then please update SDK S32K1xx RTM 3.0.3 by refer: S32 Design Studio for ARM 2.2 - Update 1 available

View solution in original post

0 Kudos
Reply
9 Replies
4,084 Views
chaitanya_kalyani
Contributor III

Hello @wdong ,

 

Unfortunately I don't have board to check the code but as per my knowledge there are two issues.

1. In processor you added more processors there you need to add only one processor depending on your no of pins. Consider if you are using 144 pin configuration then keep only one cpu:S32K148_144 and remove other components. 

chaitanya_kalya_1-1610461637989.png

After remove you can see like 

chaitanya_kalya_2-1610462091472.png

After removing if you are facing error then you can remove

1. RAM from Generator Configuration 

2. Cpu:S32K148_144 from processor

after removing you can add new Generator configuration and Processor by following below steps

1. Go to Component library 

2. Select processor 

3. Go to S32Kx-> S32K248 and double click you will see like below 

chaitanya_kalya_3-1610462383668.png

Select proper pin configuration and click finish.

Now Initialize clock and pins like below.

chaitanya_kalya_4-1610462624380.png

That's done .

 

0 Kudos
Reply
4,077 Views
wdong
Contributor III

many thanks. I change the program as your solution, but it doesn't work still.

0 Kudos
Reply
4,070 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi wdong,

Test attached two projects on S32K148EVB RevB, did not get hard fault.
Would you please let me know which board are you testing?
If there are some difference between S32K148EVB with your custom board?
Notice if external crystal is used and whether it's frequency meet the configuration.

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" 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 Kudos
Reply
4,065 Views
wdong
Contributor III

hi,

The board is designed by myself, the basic system is attached, thank you

I also found that, if i use the following code before pin init, it will work.

PCC-> PCCn[PCC_PORTA_INDEX] = PCC_PCCn_CGC_MASK; /* Enable clock to PORT A */

So, maybe some problem with my clock init.

微信图片_20210113112040.png

0 Kudos
Reply
4,062 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

I can see you configure PTA0 as output. If you click Generate Processor Expert Code, then you should see the clkGate=true in clockMan1.c.
The clock gate of PORT A should be initialize by Processor Expert, do not need enabled by yourself.

configure PTA0 output.png

Clock Gate PORTA.png

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" 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 Kudos
Reply
4,059 Views
wdong
Contributor III

but mine is 0x0, oh no!

wdong_0-1610510997941.png

 

0 Kudos
Reply
4,055 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Have you check the clockMan1.c, did Processor Expert set clkGate=true for PORTA?
If still not work, then please update SDK S32K1xx RTM 3.0.3 by refer: S32 Design Studio for ARM 2.2 - Update 1 available

0 Kudos
Reply
4,033 Views
wdong
Contributor III

hello,I have solved the problem, it's hardware problem, thank you very much!

0 Kudos
Reply
4,045 Views
wdong
Contributor III

I already update the SDK. and I checked that, clkGate = true in clockMan1.c, but the registers value is still 0x0, I am confused.

Please help me.

 

wdong_0-1610514989544.png

 

0 Kudos
Reply