There's an error turning the example code

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

There's an error turning the example code

702件の閲覧回数
bohee2
Contributor II

Hello.

We are using the s32k324 model now.

Among the example codes supported by nxp, you are using C:\NXP\S32DS.3.5\S32DS\software\PlatformSDK_S32K3\RTD\Crypto_TS_T40D34M30I0R0\examples\S32DS\S32K3XXX\Hse_Ip_AesEncAsyncIrq_S32K344.

I turned the code, but I got an error like the picture, so I don't know how to solve it, so I'm writing.

bohee2_1-1734948645472.png

Searching for Kernel Symbols...
rsp_qC - qSymbol: 5F74785F7468726561645F63757272656E745F707472
_tx_thread_current_ptr not found. ThreadX analysis not enabled.
rsp_qC - qSymbol: 707843757272656E74544342
pxCurrentTCB not found. FreeRTOS analysis not enabled.
Unable to load libusb0.dll
Copyright 2024 P&E Microcomputer Systems,Inc.
Command Line :C:\NXP\S32DS.3.5\eclipse\plugins\com.pemicro.debug.gdbjtag.pne.expansion_5.9.2.202409131555\win32\pegdbserver_console -device=NXP_S32K3xx_S32K344 -startserver -singlesession -serverport=7224 -gdbmiport=6224 -interface=USBMULTILINK -speed=50�
PEmicro Interface detected - Flash Version 11.37

CMD>RE

Initializing.
Target has been RESET and is active.
CMD>CM C:\NXP\S32DS.3.5\eclipse\plugins\com.pemicro.debug.gdbjtag.pne.expansion_5.9.2.202409131555\supportFiles_ARM\NXP\S32K3xx\nxp_s32k344_1x32x980k_hse_enabled.arp

Initializing.
Initialized.

;version 1.02, 01/18/2024, Copyright 2024 P&E Microcomputer Systems, www.pemicro.com [S32K3x4_hse_enabled]

;device nxp, s32k344, 1x32x980k,desc=hse_enabled

;begin_cs device=$00400000, length=$003D4000, 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-0040688F ...
Ok.
Checksum Verification Successful. (Cumulative CRC-16=$7FF3)
Application verified in memory. No need to reprogram.

CMD>RE

Initializing.
Target has been RESET and is active.

Starting reset script (C:\NXP\S32DS.3.5\eclipse\plugins\com.pemicro.debug.gdbjtag.pne.expansion_5.9.2.202409131555\supportFiles_ARM\NXP\S32K3xx\S32K344.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.5\eclipse\plugins\com.pemicro.debug.gdbjtag.pne.expansion_5.9.2.202409131555\supportFiles_ARM\NXP\S32K3xx\S32K344.mac) completed.

BusFault: An imprecise (asynchronous) data access error has occurred.
HardFault: A fault has been escalated to a hard fault.

This is an error I'm having right now.

I'm attaching the code as well.

Please tell me how to resolve it.

 

Thank you.

 

タグ(1)
1 返信

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

Hi @bohee2 

I noticed that you mentioned using an S32K324 device, but it appears you are loading an example code intended for the S32K344 device. Please follow these steps:

  1. Generate a new project with the correct MCU, specifically for the S32K324.
  2. Copy the application source files from your existing project to the new one.
  3. Transfer any customizations you made to the project properties (e.g., configuration settings, peripheral setup, etc.).

If the issue persists, could you try attaching to the running target instead of loading the executable? This will allow us to pause and inspect the memory address at which the MCU is running. If the MCU is located at memory address 0x20400100 or similar, it indicates that the device is in recovery mode.

 

BR, VaneB

0 件の賞賛
返信