s32k312 clock error

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

s32k312 clock error

118件の閲覧回数
LEEYM
Contributor III

Hello.
I wonder why BusFault keeps happening when I use only the clock init function in my project. If I don't use that function, it works fine, but it doesn't work when I use that function. I don't have a clue whether I need to set the clock or what I need to do

 

Connection from "127.0.0.1" via 127.0.0.1. Connection from port "50865" to 6224 Connection from "127.0.0.1" via 127.0.0.1. Connection from port "50869" to 7224 Telnet server running on 127.0.0.1:51794 Requesting next symbol pxCurrentTCB Symbol pxCurrentTCB not found. Requesting next symbol pxReadyTasksLists Symbol pxReadyTasksLists not found. Requesting next symbol xDelayedTaskList1 Symbol xDelayedTaskList1 not found. Requesting next symbol xDelayedTaskList2 Symbol xDelayedTaskList2 not found. Requesting next symbol xPendingReadyList Symbol xPendingReadyList not found. Requesting next symbol uxCurrentNumberOfTasks Symbol uxCurrentNumberOfTasks not found. Requesting next symbol uxDeletedTasksWaitingCleanUp Symbol uxDeletedTasksWaitingCleanUp not found. Requesting next symbol xSuspendedTaskList Symbol xSuspendedTaskList not found. Requesting next symbol xSchedulerRunning Symbol xSchedulerRunning not found. Requesting next symbol FreeRTOSDebugConfig Symbol FreeRTOSDebugConfig not found. Requesting next symbol _tx_thread_current_ptr Symbol _tx_thread_current_ptr not found. Requesting next symbol _tx_thread_created_ptr Symbol _tx_thread_created_ptr not found. Requesting next symbol _tx_thread_created_count Symbol _tx_thread_created_count not found. Requesting next symbol _tx_thread_system_state Symbol _tx_thread_system_state not found. Copyright 2025 P&E Microcomputer Systems,Inc. Command Line :C:\NXP\S32DS.3.6.2\eclipse\plugins\com.pemicro.debug.gdbjtag.pne_6.0.3.202506131845\win32\pegdbserver_console -device=NXP_S32K3xx_S32K312 -startserver -singlesession -serverport=7224 -gdbmiport=6224 -interface=USBMULTILINK -speed=5000 -port� PEmicro Interface detected - Flash Version 11.52 CMD>RE Initializing. INFO: DAP IDCODE = 0x6BA02477 INFO: DAP successfully powered up. DP CTRL/STAT = 0xF0000000 Target has been RESET and is active. CMD>CM C:\NXP\S32DS.3.6.2\eclipse\plugins\com.pemicro.debug.gdbjtag.pne_6.0.3.202506131845\supportFiles_ARM\NXP\S32K3xx\nxp_s32k312_1x32x500k_hse_disabled.arp Initializing. INFO: DAP IDCODE = 0x6BA02477 INFO: DAP successfully powered up. DP CTRL/STAT = 0xF0000000 Initialized. ;version 1.04, 11/05/2024, Copyright 2024 P&E Microcomputer Systems, www.pemicro.com [S32K3x2_hse_disabled] ;device nxp, s32k312, 1x32x500k,desc=hse_disabled ;begin_cs device=$00400000, length=$001F4000, ram=$20400000 Loading programming algorithm ... Done. Programming sequency is : erase, blank check, program, and verify {default} CMD>VC Verifying object file CRC-16 to device ranges ... block 00400000-0040E1EB ... Calculated CRC-16 does not match block. (File = $A315, Device = $2975) Current content of flash does not match application to be programmed CMD>EM Erasing. Module has been erased. CMD>PM Programming. Checking range of data. Checked. Processing Object File Data ... . Programmed. CMD>VC Verifying object file CRC-16 to device ranges ... block 00400000-0040E1EB ... Ok. Checksum Verification Successful. (Cumulative CRC-16=$A315) CMD>RE Initializing. INFO: DAP IDCODE = 0x6BA02477 INFO: DAP successfully powered up. DP CTRL/STAT = 0xF0000000 Target has been RESET and is active. INFO: DAP IDCODE = 0x6BA02477 INFO: DAP successfully powered up. DP CTRL/STAT = 0xF0000000 Starting reset script (C:\NXP\S32DS.3.6.2\eclipse\plugins\com.pemicro.debug.gdbjtag.pne_6.0.3.202506131845\supportFiles_ARM\NXP\S32K3xx\S32K312.mac) ... REM Enable clocks for selected cores in MC_ME module Delaying for 200mS ... Done. REM Initialize RAM and DMA: REM Initialize DMA TCD: REM Copy valid executable code to RAM for each core to be used. REM Enable required cores in MC_ME: Delaying for 20mS ... Done. Reset script (C:\NXP\S32DS.3.6.2\eclipse\plugins\com.pemicro.debug.gdbjtag.pne_6.0.3.202506131845\supportFiles_ARM\NXP\S32K3xx\S32K312.mac) completed. BusFault: A bus fault has occurred during instruction prefetching. HardFault: A fault has been escalated to a hard fault.

0 件の賞賛
返信
3 返答(返信)

84件の閲覧回数
VaneB
NXP TechSupport
NXP TechSupport

Hi @LEEYM 

Are you using the external clock or the FIRC as the source for SCS_CLK? Also, are you working with a custom board or an evaluation board (EVB)?

If you are using a custom board with an external clock, please ensure that the configuration matches the actual clock frequency on your hardware.

If you are using an EVB, could you please share your configuration settings? That way, I can replicate the setup on my side.

 

BR, VaneB

0 件の賞賛
返信

73件の閲覧回数
LEEYM
Contributor III

i using the external clock or the FIRC.. But I don't know much about hardware, so I can't tell if the clock is from outside or if I use fifc. Where can I find this? ldo? this picture is my setting.. it's normal set

 

LEEYM_0-1759188914890.png

 

0 件の賞賛
返信

32件の閲覧回数
VaneB
NXP TechSupport
NXP TechSupport

Hi @LEEYM 

Based on the image you shared, it looks like you are configuring an external 16 MHz clock as the main source clock. Please verify that this configuration matches your hardware setup to avoid potential issues.

0 件の賞賛
返信