Multi Source Translation Content

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

Multi Source Translation Content

ディスカッション

ソート順:
Unable to access MT29F64G08AECAB 8GB NAND Flash from T2081 processor Hi, I have a T2081 NXP processor connected to an external NAND Flash MT29F64G08AECAB via IFC. My goal is to run diagnostic test on this NAND Flash on code warrior or simply read the device and manufacturer ID of this device on Code Warrior (for which I have written the code). To achieve this goal, I have done the following already: 1. Configured LAW for the NAND IFC in the generated T2081QDS_init_core.tcl starting from 0xFF800000 and of size 1MB.  ## LAW3 to IFC - NAND   # LAWBARH   mem [CCSR_ADDR 0x000C30] = 0x00000000   # LAWBARL   mem [CCSR_ADDR 0x000C34] = 0xFF800000   # LAWAR   mem [CCSR_ADDR 0x000C38] = 0x81F00013 2. Also have configured the CSPR and FTIM registers corresponding to NAND like below : set NAND_CS   5 # NAND Flash, addr 0xFF800000, 1MB size, 8-bit NAND, ECC disable   # CSPR_EXT   mem [CCSR_ADDR [expr 0x12400C + $NAND_CS * 0x0C]] = 0x00000000   # CSPR   mem [CCSR_ADDR [expr 0x124010 + $NAND_CS * 0x0C]] = 0xFF800103   # AMASK   mem [CCSR_ADDR [expr 0x1240A0 + $NAND_CS * 0x0C]] = 0xFFFF0000   # CSOR   mem [CCSR_ADDR [expr 0x124130 + $NAND_CS * 0x0C]] = 0x01082100   # IFC_FTIM0   mem [CCSR_ADDR [expr 0x1241C0 + $NAND_CS * 0x30]] = 0x1E0B0507   # IFC_FTIM1   mem [CCSR_ADDR [expr 0x1241C4 + $NAND_CS * 0x30]] = 0x2929090B   # IFC_FTIM2   mem [CCSR_ADDR [expr 0x1241C8 + $NAND_CS * 0x30]] = 0x01203819   # IFC_FTIM3   mem [CCSR_ADDR [expr 0x1241CC + $NAND_CS * 0x30]] = 0x15000000 Note that there are 2 chip selects (CS5 and CS6) going from the processor to NAND and for the time being I am trying to access the first 4GB and hence configuring CS5 only. 3. Configured TLB: fine   1M TLB entry  5 : 0xFF800000 - 0xFF8FFFFF for NAND   cache-inhibited, guarded   reg ${CAM_GROUP}L2MMU_CAM5  = 0x5000000A1C08000000000000FF80000000000000FF800001 4. And since the device support for this MT29F64G08AECAB could not be found in the installed directory, I followed the manual and created a .xml for this device (for 4GB) which I have attached here. After doing all of this, when I run the diagnostic test for the NAND device on code warrior, I get the below error: Nisarga_R_0-1786096350786.pngNisarga_R_0-1786096350786.png As an alternative I tried to write a simple C code to read back the device id from this device. So I wrote the below code in code warrior and I have attached it here. And as a result when I read back the IFC_NAND_MDR register I get back 0x124E0000 which is not matching with the Device ID. I would like to know if I am doing something wrong or missing out something because I am unable to run the diagnostic test or read back the device id. I have attached the respective T2081QDS_init_core.tcl and also the respective schematics for reference. Regards, Nisarga R   QorIQ T2 Devices Re: Unable to access MT29F64G08AECAB 8GB NAND Flash from T2081 processor I am discussing with the internal team now. Thanks Re: Unable to access MT29F64G08AECAB 8GB NAND Flash from T2081 processor Your NAND flash hardware connections appear to be aligned with the recommended design guidelines, assuming RCW[IFC_GRP_E2_BASE] = 0 and the NAND device is not being used as the boot source. Having said that, what Device ID value are you expecting to read back from the IFC_NAND_MDR register? We have never tried and tested with dual-die NAND devices and are not sure about its operation.  Based on our experience with the single die NAND flash devices, please check the following and share the results with us for further investigation. 1) Share the complete IFC register dump if possbile 2) Share the IFC interface pin-mux configuration. 3) If there is any update of the Codewarrior debug, please also let me know. 4) Please refer the below sections of RM and verify if your NAND flash implementation aligns with the information documented therein:  a) 13.2 External signal descriptions b) 13.5 NAND flash control machine c) 13.9 Initialization/Application information Thanks
記事全体を表示
S32K388 JumpApp Only runs with core 0 active. I created a bootloader program and placed it at addresses 0x400000 to 0x420000. Whenever I update the program via serial port, only Core 0 continues to run. How can I enable the other cores to also run? S32_SCB->VTOR = 0x00422000;     __asm volatile(         "msr msp, %0"         :         : "r"(appStack)         : "memory");     ((pFunction)appEntry)(); Re: S32K388 JumpApp Only runs with core 0 active. Hi @zhangyu5454, You can enable the cores in the startup code. Refer to the startup code (startup_cm7.s) of the default S32DS project. For example, if CM7_2_ENABLE == 1, the startup code will enable CM7_2 during system startup. The cores can also be enabled later from the CM7_0 application, either by configuring the relevant registers directly or by using the MCU MCAL driver or the Power_Ip driver. Refer to this example: https://community.nxp.com/t5/S32K-Knowledge-Base/S32K358-Multicore-Start-CM7-2-from-CM7-0/ta-p/1923889 BR, Daniel Re: S32K388 JumpApp Only runs with core 0 active. Thank you for your response. I have tried using Power_Ip, but when the line “Power_Ip_Init(&Power_Ip_HwIPsConfigPB);” appears in the program, the debugging process automatically ends. Moreover, even when I don’t press the reset button, the reset light remains illuminated, resulting in the device not being able to operate at all. When I use IP_MC_ME, the program runs normally, but it doesn’t produce any results. The other components also fail to start. This code snippet seems not to work well for model 388. Re: S32K388 JumpApp Only runs with core 0 active. Hi @zhangyu5454, If the MCU goes through a system reset, you need to read the source of the reset. You can call  Power_Ip_GetResetReason(); at the beginning of main() before  Power_Ip_Init(); Likely root cause is the V15 Switched-mode power supply - it must match the HW design. danielmartynek_0-1785236184264.pngdanielmartynek_0-1785236184264.pngdanielmartynek_0-1785236184264.pngdanielmartynek_0-1785236184264.pngdanielmartynek_0-1785236184264.png BR, Daniel Re: S32K388 JumpApp Only runs with core 0 active.#S32K388 According to your advice, I will implement it in the int main(void) section. Power_Ip_GetResetReason() was called. However, the test results remain unchanged.   int main(void) { Power_Ip_GetResetReason();         Power_Ip_Init(&Power_Ip_HwIPsConfigPB);     Clock_Ip_Init(&Mcu_aClockConfigPB[0]);         Power_Ip_SetMode(&Power_Ip_aModeConfigPB[0]); while (1) { Re: S32K388 JumpApp Only runs with core 0 active.#S32K388 Hi @zhangyu5454, What is the reset reason then? If I had to guess, it would be a POR/LVR. How is V15 powered on the PCB? Do you configure Power_Ip accordingly? Regards, Daniel Thank you. Re: S32K388 JumpApp Only runs with core 0 active.#S32K388 Thanks for your reply. I don't know much about these functions. Is there any related example or tutorial files? I tried to follow the S32K358 example but didn't succeed. Regarding the V15 power supply, I found that it is generated from an external 3.3V through a transistor controlled by a microcontroller to make 1.5V, with 1.1V also generated under microcontroller control. I also noticed that my hardware design doesn't have a 32.768 crystal oscillator, and the program gets stuck in Clock_Ip_ExtOsc.c in the loop do { SxoscStatus = ((Clock_Ip_apxXosc[Instance]->STAT & SXOSC_SXOSC_STAT_OSC_STAT_MASK) >> SXOSC_SXOSC_STAT_OSC_STAT_SHIFT); TimeoutOccurred = Clock_Ip_TimeoutExpired(&StartTime, &ElapsedTime, TimeoutTicks); } while ((0U == SxoscStatus) && (FALSE == TimeoutOccurred)); Re: S32K388 JumpApp Only runs with core 0 active.#S32K388 Hello @zhangyu5454, I understand that you are using an SMPS on the PCB, so it must be enabled in the Configuration Tool: danielmartynek_0-1786525102760.pngdanielmartynek_0-1786525102760.pngdanielmartynek_0-1786525102760.pngdanielmartynek_0-1786525102760.pngdanielmartynek_0-1786525102760.png danielmartynek_1-1786525162418.pngdanielmartynek_1-1786525162418.pngdanielmartynek_1-1786525162418.pngdanielmartynek_1-1786525162418.pngdanielmartynek_1-1786525162418.png Regarding SXOSC, make sure it is disabled: danielmartynek_2-1786525202445.pngdanielmartynek_2-1786525202445.pngdanielmartynek_2-1786525202445.pngdanielmartynek_2-1786525202445.pngdanielmartynek_2-1786525202445.png Re: S32K388 JumpApp Only runs with core 0 active.#S32K388 zhangyu5454_0-1786934052028.pngzhangyu5454_0-1786934052028.pngzhangyu5454_0-1786934052028.pngzhangyu5454_0-1786934052028.pngzhangyu5454_0-1786934052028.png Hello I followed your method to enable V15 and disable SXOSC. However, when debugging reaches the line `IP_PMC->SMPSCONFIG = ConfigValue;`—located within `Power_Ip_PMC_PowerInit`, which is inside `Power_Ip_Init`—the debugging session terminates automatically, and the board's reset indicator LED remains lit with a dim, steady glow. Re: S32K388 JumpApp Only runs with core 0 active.#S32K388 Hello @zhangyu5454, What are the values of ConfigValue in these two writes? IP_PMC->CONFIG = ConfigValue; IP_PMC->SMPSCONFIG = ConfigValue; The MCU is resetting due to an incorrect power mode configuration. Place the following loop at the beginning of main() so that you can debug it after the reset. volatile uint32_t loop = 1; while (loop) { } The loop variable can be modified from the debugger to allow execution to continue. Once the code is halted in the loop, call: Power_Ip_GetResetReason() It should return MCU_POWER_ON_RESET. Also read the Low Voltage Status and Control (LVSC) register to obtain more information about the reset event. Regards, Daniel Re: S32K388 JumpApp Only runs with core 0 active.#S32K388 Hi @zhangyu5454, I cannot reproduce this issue on my EVB with the config values you shared. Are you using the XS32K388EVB-Q289? If so, could you please let me know the position of jumper J118? danielmartynek_0-1787229063371.pngdanielmartynek_0-1787229063371.pngdanielmartynek_0-1787229063371.png If you are using a custom board, please share the schematic. If you prefer not to share it here, please create a support ticket and attach the schematic there. Thank you, BR, Daniel Re: S32K388 JumpApp Only runs with core 0 active.#S32K388 @Hi @zhangyu5454, I have difficulties to explain it. Can you measure V15 and V11 voltage during the Power_Ip initialization using an oscilloscope?
記事全体を表示
Alternator voltage regulation ICs Currently, I need some ICs which are used for alternator voltage regulation application and have these features: 1. Voltage regulation range: contain 28VDC. 2. Field current capacity: at least 7A. 3. Providing load balancing in dual alternators configuration. Could you suggest for me some ICs from your company which meet these requirements above ? Re: Alternator voltage regulation ICs Hi, The closest device in our portfolio is the AR6000 alternator regulator with LIN. It supports up to 12 A rotor excitation current and includes load response control, current limitation, overcurrent protection, thermal protection and LIN communication. However, the AR6000 is intended for 12 V automotive charging systems, with a selectable regulation setpoint from 10.6 V to 16 V. Therefore, it cannot regulate a 28 V charging system. The older TC80310 alternator regulator, which supports up to 8 A rotor excitation current, but its regulation voltage range is likewise limited to 10.6 V to 16 V, is no longer manufactured. In addition, the load response control available in these devices regulates the rate at which alternator load is applied. It does not provide active load sharing or current balancing between two alternators. BRs, Tomas
記事全体を表示
[S32DS 3.6.1]サンプルコードが消えた!? 餓死抬頭  タイトルの通り 最新のOSに、最新のS32DS v3.6.1をインストールします。 例のプロジェクトは*全く*見つかりません: どうしたの !?? CY9_0-1787706296255.pngCY9_0-1787706296255.png S32DS-S32PLATFORM S32DS-ARM   回复: [S32DS 3.6.1] Example Code disappear !? Windows専用ですか?Linuxで更新サイトを追加するとRTDは表示されません。 回复: [S32DS 3.6.1] Example Code disappear !? いいえ。S32K1 RTDが正しくインストールされていれば、S32DS v3.6.xでサンプルが表示されます。 S32K1 RTDの例を以下に示します。 S32K1 RTD 3.0.0.pngS32K1 RTD 3.0.0.png 回复: [S32DS 3.6.1] Example Code disappear !? しかし、それにはサンプルコードは含まれていないのですよね? 回复: [S32DS 3.6.1] Example Code disappear !? 前バージョンのS32K1 SDK 4.0.3以降、 S32K1 RTD に置き換えられています。 回复: [S32DS 3.6.1] Example Code disappear !? NXPさん、確認をお願いします。S32K1 SDKは廃止されているのでしょうか? 回复: [S32DS 3.6.1] Example Code disappear !? 次に、S32DSv3.4をダウンロードし、 SW32K1_S32DS_3.4.1_D2106.zipをインストールしてください。このソフトウェアパッケージは S32DS.3.4_b201217_win32.x86_64.exeダウンロードページからダウンロード可能です。 S32DS v3.4 SW32K1_S32DS_3.4.1_D2106 S32K1 SDK 4.0.2.pngS32DS v3.4 SW32K1_S32DS_3.4.1_D2106 S32K1 SDK 4.0.2.png SW32K1_S32DS_3.4.1_D2106.zipファイルには S32K1xx RTM 4.0.2用のS32 SDKが含まれています。インストール手順については、 S32 Design Studio v3.4 S32K1 Service Pack 1 releaseed! 回复: [S32DS 3.6.1] Example Code disappear !? なぜなら、それは別の問題を引き起こすからです。 私の以前のプロジェクトはRTM 4.0.2で作成されました。 インポート機能を使っても、以前のプロジェクトを開くことができません。 私にとって最善かつ最速の解決策は、以前のバージョンと RTM 4.0.2 をインストールすることです。 このくだらないことに時間を費やしすぎだ。 CY9_2-1787708167310.pngCY9_2-1787708167310.png 回复: [S32DS 3.6.1] Example Code disappear !? この SHxT バージョンのアンインストールを 中止しよ うとしています... このバージョンは絶対に使いません。 コメントありがとうございます。 回复: [S32DS 3.6.1] Example Code disappear !? S32DSがOSに報告するバージョンは3.6.1です!! `10`ではありません... CY9_0-1787722320774.pngCY9_0-1787722320774.png CY9_1-1787722371649.pngCY9_1-1787722371649.png 回复: [S32DS 3.6.1] Example Code disappear !? 1.S32DSのv3.6.xではS32K1 SDK 4.0.xは見られませんいかなる状況下でも。S32SDK_S32K1xx_RTM_4.0.2.exeをインストールしてもSDKの例はS32DSv3.6.xに表示されません。もしS32K1 SDKが必要なら、私の前の回答に従ってインストールしてください。 2. S32K1 RTD が正しくインストールされていない場合、 S32DS v3.6.xではサンプルも表示されません。先ほど紹介した動画で示した方法で SW32K1_S32M24x_RTD_R21-11_3.0.0_D2503_DesignStudio_updatesite.zip をインストールしてください。 回复: [S32DS 3.6.1] Example Code disappear !? 私はS32DS 3.6.10を使用しています。... デフォルトのインストールパスが `C:\NXP\S32DS.3.6.1\` になっている理由がわかりません。`C:...6.10\`ではありません 私の問題は: 「サンプルプロジェクト」が消えてしまった!! この手順ですでにS32K1_S32M24Xリアルタイム・ドライバをインストールしています:https://community.nxp.com/t5/S32-SDK/S32K1XX-SDK-installation/m-p/2073028/highlight/true#M4041 回复: [S32DS 3.6.1] Example Code disappear !? ハイ もしS32K1 SDK RTM 4.0.3を使う必要がある場合は、 S32DS v3.4 に S32K1 SDK RTM 4.0.3 をインストールしてください の議論を参照してください どこで見つけられますか?S32_SDK_S32K1xx_RTM_4.0.3. S32DS v3.4 はクリックでダウンロード可能です。 S32 Design Studio – Windows/Linux -> S32 Design Studio IDE -> 前回 -> S32 Design Studio for S32 プラットフォーム v.3.4 -> S32DS.3.4_b201217_win32.x86_64.exe   S32DS v3.5またはv3.6にS32K1 SDK 4.0.xをインストールすることは推奨されません。現在入手可能な情報によると、S32SDK S32K1XX 4.0.x を統合する予定はありません。S32DS 3.5以降のバージョンにインストールしてください。   新規プロジェクト開発には、 S32DS v3.6.10の最新の S32K1 RTD を使用することをお勧めします。古いSDKはバグ修正のためにアップデートされません。 S32K1 - > オートモーティブ SW - S32K1_S32M24x - Cortex-M - > S32K1_S32M24X AUTOSAR R21-11 バージョン 3.0.0 のリアルタイム・ドライバをダウンロードしてください->   SW32K1_S32M24x_RTD_R21-11_3.0.0_D2503_DesignStudio_updatesite.zip   必要なS32K1 RTDの特定バージョンをインストールするには 、 動画の説明書( 「S32 Design Studio 3.6.0でRTD 5.0.0のダウンロード、インストール、構成 方法」)をご参照ください。   そして、 Arm Embedded Processors v10.2 build 1728用のNXP GCC をインストールする のも忘れないでください NXP GCC for Arm Embedded Processors v10.2 build 1728.pngNXP GCC for Arm Embedded Processors v10.2 ビルド1728.png よろしくお願いいたします ロビン 回复: [S32DS 3.6.1] Example Code disappear !? ??? CY9_0-1787707907582.pngCY9_0-1787707907582.png RTMがない!?既にインストール済みなのに!? RTMのインストールが失敗しました!? CY9_1-1787708009334.pngCY9_1-1787708009334.png 原因 : CY9_2-1787708167310.pngCY9_2-1787708167310.png 「`」 # grep -in "RTM" * .*  PrjXX_LinMaster_144.mex:6: s32sdk_s32k1xx_rtm_402 .cproject:7: .cproject:201: .project:321: S32SDK_S32K1XX_RTM_4.0.2/middleware/lin/doxygen/LIN_Stack_Architecture.png .project:326: S32SDK_S32K1XX_RTM_4.0.2/middleware/lin/doxygen/LIN_Stack_Configuration_Data.png .project:331: S32SDK_S32K1XX_RTM_4.0.2/middleware/lin/doxygen/lin_stack.dox .project:336: S32SDK_S32K1XX_RTM_4.0.2/rtos/osif/doxygen/osif.dox .project:376: S32SDK_S32K1XX_RTM_4.0.2/プラットフォーム/ドライバ/src/clock/doxygen/clock_manager.dox .project:381: S32SDK_S32K1XX_RTM_4.0.2/platform/drivers/src/edma/doxygen/edma_driver.dox .project:386: S32SDK_S32K1XX_RTM_4.0.2/platform/drivers/src/interrupt/doxygen/interrupt.dox .project:391: S32SDK_S32K1XX_RTM_4.0.2/platform/drivers/src/lin/doxygen/lin.dox .project:396: S32SDK_S32K1XX_RTM_4.0.2/platform/drivers/src/lptmr/doxygen/lptmr.dox .project:401: S32SDK_S32K1XX_RTM_4.0.2/platform/drivers/src/lptmr/doxygen/lptmr_driver.dox .project:406: S32SDK_S32K1XX_RTM_4.0.2/プラットフォーム/ドライバ/src/pins/doxygen/pins.dox .project:411: S32SDK_S32K1XX_RTM_4.0.2/platform/drivers/src/clock/S32K1xx/doxygen/clock_S32K1xx.dox .project:417: file:/${eclipse_home}../S32DS/software/S32SDK_S32K1XX_RTM_4.0.2 「`」 回复: [S32DS 3.6.1] Example Code disappear !? `S32SDK_S32K1xx_RTM_4.0.2.exe` をインストールした後、 状況は変わっていません。
記事全体を表示
S32K142 LPSPI0 主设备(lpspi_transfer 示例):SCK 时钟未正确切换 NXP社区的各位朋友,大家好! 我正在使用NXP lpspi_transfer_s32k142 示例,在 S32K142 板上将 LPSPI0设置为主模式,没有对示例配置进行重大更改。 我的问题是SCK/时钟波形切换不正确。我正在使用逻辑分析仪监测SCK、MOSI、MISO和PCS信号。 对于8 位(1 字节)传输,我预期会有 8 个 SCK 时钟脉冲,但逻辑分析仪显示的是异常/连续的时钟波形,而不是预期的脉冲。 配置: LPSPI0 – 主控 500 kHz 8 位帧 PCS0 CPOL = 活跃高 CPHA = 第一边 传输类型 = 中断 我附上了显示 SCK 波形的逻辑分析仪截图。 请问有人能帮我理解一下为什么NXP示例中的SCK时钟无法正确切换,以及我应该检查哪些配置吗? 谢谢! Re: S32K142 LPSPI0 Master (lpspi_transfer example): SCK clock not toggling correctly 如果可以的话,我建议您将修改后的测试项目发送给我,以便我能快速重现您在 S32K142EVB 上遇到的问题。 Re: S32K142 LPSPI0 Master (lpspi_transfer example): SCK clock not toggling correctly 嗨,罗宾, 感谢您的反馈, 在我当前的配置中,“PCS 连续”选项未选中,生成的配置包含: .isPcsContinuous = false 我没有修改过这个设置。 在上传的波形图中,我也没有得到预期的干净的SPI时序。对于 1 字节的传输,我期望在整个传输过程中,PCS 钳位时,有 8 个 SCK 时钟脉冲(PCS 有效 → 8 个时钟脉冲 → PCS 无效)。然而,我的逻辑分析仪捕获并没有清楚地显示这种预期行为。SCK 脉冲似乎不规则,PCS/使能信号在整个 SPI 帧周围没有表现出预期的高/低行为。 我已附上电流波形图供您参考。 请问在使用 LPSPI_DRV_MasterTransferBlocking() API 和当前 LPSPI 配置时,这种 PCS 和 SCK 行为是否符合预期? 我还会测试启用 PCS 连续播放功能后的结果,并分享结果。 问候, 雷沙姆 Re: S32K142 LPSPI0 Master (lpspi_transfer example): SCK clock not toggling correctly HI 你上传的图片太模糊了,我看不清SPI波形。 您是否修改了lpspi_transfer_s32k142的LPSPI0配置,以选择PCS连续传输? lpspi_transfer_s32k142 LPSPI0 PCS continuous.pnglpspi_transfer_s32k142 LPSPI0 PCS continuous.pnglpspi_transfer_s32k142 LPSPI0 PCS 连续.png 建议在清晰的SPI波形图上使用箭头或文字标记您认为存在问题的位置。这将有助于我快速理解你的问题。 此致敬礼, Robin Re: S32K142 LPSPI0 Master (lpspi_transfer example): SCK clock not toggling correctly 您好, 请查看附件中的 ZIP 文件,其中包含针对 S32K142EVB 修改后的 LPSPI 传输测试项目。 请您检查一下项目,并告知我LPSPI传输配置是否正确,或者是否需要进行任何更改? 感谢你的支持 此致, 雷沙姆
記事全体を表示
S32K312MINI-EVB こんにちは、 私はNXP社のS32K312MINI-EVBボードを使用しています。 最初はボードが電源を入れていてLEDも点灯していましたが、USB接続はWindowsデバイスマネージャーで認識されませんでした。 PEmicroドライバーがインストールされていることも確認しました。デバイスマネージャーには以下が表示されます: Jungo コネクティビティ → pemicrovincdrv 別のPCと別のUSB接続でもテストしてみましたが、ボードは認識されませんでした。 トラブルシューティングの際、基板をUSB接続中に J19とJ20ジャンパーを取り外しました。基板のLEDが消灯した。 その後、ジャンパーを元に戻しましたが、今度はUSB経由で電源を供給しようとしてもボードの電源が入りません。J1を通して12Vを供給すると、RGB LEDのみが点灯します。 S32K312MINI-EVBハードウェアユーザーマニュアルによると: USB-C J9 → J19 = 1–2、J20 = 1–2 12V J1→J19=2~3、J20=2~3 J19/J20を適切に設定しましたが、電源LEDが点灯しません。 基板の電源回路が影響を受けている可能性や、どのテストポイントを測定すべきか、どなたか教えていただけませんか? J23(VBAT)、J24(VBST)、J16(P5V0)、J17(P3V3)、J27(GND)でのボードと電圧測定の写真を提供できます。 よろしくお願いします。 Re: S32K312MINI-EVB ハイ USBハブは使用しないでください。USBケーブルをコンピュータに直接接続してください。USB 3.0またはType-Cポートでの接続をお勧めします。 S32K312MINI on board debugger.pngS32K312MINI搭載 debugger.png 赤色のOSDA_LED D9は点灯しますか? そうしないと、OpenSDAが正しく動作せず、オンボードデバッガが使用できなくなる可能性があります。 回路図に従って、電圧を一つずつ確認してください。 よろしくお願いいたします ロビン
記事全体を表示
使用 PEmicro 10 针 JTAG/SWD 和 S32DS 3.6.8 对 S32K344 EVB 进行烧录的步骤 大家好, 我正在使用带有PEmicro 10 针 JTAG/SWD 调试探针的S32K344 EVB和S32 Design Studio (S32DS) 版本 3.6.8 。 我想将一个应用程序刷入 S32K344 的普通内部程序闪存中。我没有使用 HSE 安全启动、安全调试或任何其他安全功能。 请问谁能提供以下详细步骤: 将 PEmicro 10 引脚 JTAG/SWD 调试器连接到 S32K344 EVB。 在 S32DS 3.6.8 中创建正确的调试/运行配置。 选择合适的接口(SWD 或 JTAG)。 配置闪存编程设置(擦除、编程、验证)。 设置正确的目标设备和连接模式。 标准内部闪存编程所需的任何链接器或内存配置。 为避免安全调试/HSE相关问题,建议进行以下设置。 如果调试器检测到设备但在闪存编程过程中失败,请执行以下故障排除步骤。 我正在寻找使用 PEmicro 探针成功对 S32K344 EVB 进行编程和调试所需的完整烧录程序和确切的 S32DS 配置。 谢谢! Re: S32K344 EVB Flashing Procedure Using PEmicro 10-Pin JTAG/SWD and S32DS 3.6.8 你好@Aravind_Togaralli , 感谢您提供的解释和截图。 在更改 S32DS 配置之前,请先确认板上的调试器连接。如果您使用的是FRDM-A-S32K344 (以前称为S32K344MINI-EVB) ,则外部调试器必须连接到J9 20 针 Cortex Debug + ETM 接头。根据UM12406 表 1 ,必须移除跳线 JP11才能启用外部调试接口。 因此,请检查以下内容: 确认外部 PEmicro Multilink 已连接到J9 ,J9 是一个20 针调试接头。您的描述中提到了一个外部 10 针连接器,请检查连接器和所使用的任何适配器。 使用外部 Multilink 调试器时,请移除JP11 。 检查调试电缆的方向和引脚 1 的对齐情况。 更改 JP11 后,对电路板和 Multilink 进行断电重启,然后在 PEmicro 调试配置中刷新端口选择。 作为初始启动测试,您也可以使用安装了 JP11的板载调试器。这有助于在切换到外部 Multilink 之前确定项目和 MCU 是否正常工作。 请注意,即使使用外部调试器,USB 连接也必须保持连接状态,因为需要为电路板供电。   您还可以参考以下经过验证的项目: 例如 S32K344 EMAC lwIP FreeRTOS miniEVB,S32DS 3.6.1,RTD 6.0.0 本项目已在 S32K344MINI-EVB 上使用板载调试器和 Debug_FLASH 配置进行了测试。请先尝试启动此项目,并将其 Debug_FLASH 设置与您当前项目的设置进行比较。 如果板载调试器工作,但外部 Multilink 调试器不工作,则问题很可能与外部调试路径有关,特别是 JP11、J9 连接、电缆方向或适配器。在这种情况下,您也可以尝试使用另一个 USB 端口和 USB 电缆,最好将 Multilink 直接连接到 PC,而无需使用扩展坞或 USB 集线器。 相关讨论: PEmicro 连接助手 PEmicro 多链路连接和目标电压检查 如果问题仍然存在,请提供以下信息: 一张照片显示了调试器与电路板的连接情况。 如果适用,请提供Multilink和J9之间使用的具体适配器。 来自 S32DS 控制台的完整 PEmicro GDB 服务器输出。 另请注意,我未来几天不在办公室,因此回复可能会有所延迟。 顺祝商祺! 帕维尔 Re: S32K344 EVB Flashing Procedure Using PEmicro 10-Pin JTAG/SWD and S32DS 3.6.8   关于我之前的问题,我再补充一下。我按照你们团队建议的步骤操作了,但我仍然无法刷写/调试设备——启动时连接失败。 设置: 板:采用 S32K344 的定制板(非 NXP EVB) 探针:P&E Multilink Universal FX Rev D,通过板上的外部 10 针 JTAG 连接器连接(我没有使用板载/嵌入式调试器——我在调试配置的“端口”下明确选择了外部 Multilink FX 端口,如屏幕截图所示) IDE:S32DS,调试配置 = GDB PEmicro 接口调试 接口设置:已启用 SWD 协议,调试移位频率 = 5000 kHz,已启用“为目标供电” 会发生什么: 单击“调试”后,PEmicro 连接助手弹出,显示:“连接到启动配置对话框中指定的接口硬件或目标时发生错误”,提示我使用同一个 USB Multilink 端口重新尝试连接。 附图: 调试配置 — 主选项卡(已选择项目/ELF) PEmicro调试器选项卡 — 接口、端口、目标设备 (S32K344)、内核 (M7)、SWD 已启用、电源设置 PEmicro 调试器选项卡(滚动显示)— 调试移位频率、GDB 服务器/客户端设置 连接失败后,PEmicro 连接助手弹出错误提示 谢谢。 Aravind_Togaralli_1-1787741560103.pngAravind_Togaralli_1-1787741560103.png Aravind_Togaralli_2-1787741576274.pngAravind_Togaralli_2-1787741576274.png Aravind_Togaralli_3-1787741587983.pngAravind_Togaralli_3-1787741587983.png Aravind_Togaralli_4-1787741596878.pngAravind_Togaralli_4-1787741596878.png Re: S32K344 EVB Flashing Procedure Using PEmicro 10-Pin JTAG/SWD and S32DS 3.6.8 你好@Aravind_Togaralli , 最近在以下帖子中讨论过这种设置: https://community.nxp.com/t5/S32K/Assistance-Required-for-Flash-Programming-S32K344-Using-USB/m-p/2402539 有关 PEmicro 调试配置的详细步骤,请参阅: https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-Build-a-Project-and-Setup-Debugging-with-GDB-PEMicro/ta-p/1941848 对于不使用 HSE 或 AB Swap 的标准内部闪存编程,应使用自动生成的 PEmicro 调试配置和默认闪存编程算法。无需特殊链接器配置。 请先按照参考步骤操作。如果失败,请提供确切的电路板名称、PEmicro 探针型号和版本、调试配置的屏幕截图以及完整的 PEmicro 控制台日志。这将使我们能够确定实际的故障点。 顺祝商祺! 帕维尔
記事全体を表示
S32K388 JumpAppは、コア0がアクティブな場合にのみ動作します。 ブートローダープログラムを作成し、アドレス0x400000から0x420000に配置しました。シリアルポート経由でプログラムをアップデートすると、コア0だけが動作し続ける。他のコアも動かすにはどうすればいいですか? S32_SCB->VTOR = 0x00422000; __asm volatile(         「msr msp、 % 0」 : : "r" (appStack) : "メモリ" ); ((pFunction)appEntry)(); Re: S32K388 JumpApp Only runs with core 0 active. こんにちは@zhangyu5454さん スタートアップコードでコアを有効にすることができます。デフォルトのS32DSプロジェクトの起動コード(startup_cm7.s)を参照してください。 例えば、CM7_2_ENABLE == 1 の場合、起動コードはシステム起動時に CM7_2 を有効にします。 コアは、CM7_0アプリケーションから後から有効化することも可能で、関連するレジスタを直接設定するか、MCU MCALドライバやPower_Ipドライバを使用することで可能です。この例を参照してください。 https://community.nxp.com/t5/S32K-Knowledge-Base/S32K358-Multicore-Start-CM7-2-from-CM7-0/ta-p/1923889 BR、ダニエル Re: S32K388 JumpApp Only runs with core 0 active. ご回答ありがとうございます。Power_Ip を使ってみましたが、プログラムに「Power_Ip_Init(&Power_Ip_HwIPsConfigPB);」という行が現れると、デバッグプロセスが自動的に終了してしまいます。さらに、リセットボタンを押さなくてもリセットランプが点灯したままになり、結果としてデバイスが全く動作しなくなります。IP_MC_MEを使用すると、プログラムは正常に実行されますが、結果が何も生成されません。他のコンポーネントも起動しない。このコードスニペットはモデル388ではうまく動作していないようです。 Re: S32K388 JumpApp Only runs with core 0 active. こんにちは@zhangyu5454さん MCUがシステムリセットを経た場合、リセットのソースを読み取る必要があります。 電話してみていいよ Power_Ip_GetResetReason(); main() の開始時、 Power_Ip_Init(); おそらく根本原因はV15スイッチドモード電源であり、ハードウェアデザインと一致している必要があります。 danielmartynek_0-1785236184264.pngdanielmartynek_0-1785236184264.pngdanielmartynek_0-1785236184264.pngdanielmartynek_0-1785236184264.pngdanielmartynek_0-1785236184264.png BR、ダニエル Re: S32K388 JumpApp Only runs with core 0 active.#S32K388 あなたのアドバイスに従って、int main(void) セクションに実装します。Power_Ip_GetResetReason() が呼び出されました。しかし、検査結果は変わっていない。   int main(void) { Power_Ip_GetResetReason(); Power_Ip_Init(&Power_Ip_HwIPsConfigPB);     Clock_Ip_Init(&Mcu_aClockConfigPB[0]); Power_Ip_SetMode(&Power_Ip_aModeConfigPB[0]); (1) ヤージュ Re: S32K388 JumpApp Only runs with core 0 active.#S32K388 こんにちは@zhangyu5454さん では、リセットの理由は何ですか? 推測するなら、POR/LVRだろう。 V15は基板上でどのように電源供給されていますか? Power_IPを適切に設定していますか? よろしくお願いいたします。 ダニエル よろしくお願いします。 Re: S32K388 JumpApp Only runs with core 0 active.#S32K388 こんにちは、 @zhangyu5454 さん、 PCB上でSMPSを使用していると理解していますので、設定ツールで有効にする必要があります: danielmartynek_0-1786525102760.pngdanielmartynek_0-1786525102760.pngdanielmartynek_0-1786525102760.pngdanielmartynek_0-1786525102760.pngdanielmartynek_0-1786525102760.png danielmartynek_1-1786525162418.pngdanielmartynek_1-1786525162418.pngdanielmartynek_1-1786525162418.pngdanielmartynek_1-1786525162418.pngdanielmartynek_1-1786525162418.png SXOSCについては、無効になっていることを確認してください。 danielmartynek_2-1786525202445.pngdanielmartynek_2-1786525202445.pngdanielmartynek_2-1786525202445.pngdanielmartynek_2-1786525202445.pngdanielmartynek_2-1786525202445.png Re: S32K388 JumpApp Only runs with core 0 active.#S32K388 ご返信ありがとうございます。私はこれらの機能についてあまり詳しくありません。関連するサンプルファイルやチュートリアルファイルはありますか?S32K358のサンプルコードを参考にしようとしましたが、うまくいきませんでした。V15電源については、外部の3.3Vからトランジスタを介してマイクロコントローラで制御され1.5Vが生成され、1.1Vもマイクロコントローラ制御で生成されることがわかりました。また、私のハードウェア設計に32.768のクリスタルオシレーターがなく、プログラムがループ内でClock_Ip_ExtOsc.cで止まってしまうことにも気づきました Do { SxoscStatus = ((Clock_Ip_apxXosc[インスタンス]-統計>STAT & SXOSC_SXOSC_STAT_OSC_STAT_MASK) >> SXOSC_SXOSC_STAT_OSC_STAT_SHIFT); TimeoutOccurred = Clock_Ip_TimeoutExpired(&StartTime, &ElapsedTime, TimeoutTicks); } 一方で(((0U == SxoscStatus) && (FALSE = TimeoutOccurredd)); Re: S32K388 JumpApp Only runs with core 0 active.#S32K388 zhangyu5454_0-1786934052028.pngzhangyu5454_0-1786934052028.pngzhangyu5454_0-1786934052028.pngzhangyu5454_0-1786934052028.pngzhangyu5454_0-1786934052028.png こんにちは、あなたの方法に従ってV15を有効にしてSXOSCを無効にしました。しかし、デバッグが `Power_Ip_PMC_PowerInit` 内の `IP_PMC->SMPSCONFIG = ConfigValue;` という行に到達すると(この行は `Power_Ip_Init` 内にあります)、デバッグセッションは自動的に終了し、ボードのリセットインジケータ LED は薄暗い一定の光で点灯したままになります。 Re: S32K388 JumpApp Only runs with core 0 active.#S32K388 こんにちは、 @zhangyu5454 さん、 これら2つの書き込みにおけるConfigValueの値は何ですか? IP_PMC->CONFIG = ConfigValue; IP_PMC->SMPSCONFIG = ConfigValue; MCUは誤った電源モード設定のためにリセットされています。 次のループをmain()の最初に配置し、リセット後にデバッグできるようにします。 volatile uint32_t loop = 1; while (loop) { } ループ変数はデバッガから変更することで実行を継続できます。 ループ内でコードが停止したら、以下を呼び出します。 Power_Ip_GetResetReason() MCU_POWER_ON_RESETを返すはずです。 また、リセットイベントについての詳細を得るには、低電圧状態制御(LVSC)レジスタもご覧ください。 よろしくお願いいたします。 ダニエル Re: S32K388 JumpApp Only runs with core 0 active.#S32K388 こんにちは@zhangyu5454さん 共有してくれた設定値では、EVBでこの問題を再現できません。 XS32K388EVB-Q289を使用していますか?もしそうなら、ジャンパーJ118の位置を教えていただけますか? danielmartynek_0-1787229063371.pngdanielmartynek_0-1787229063371.pngdanielmartynek_0-1787229063371.png カスタム基板を使用している場合は、回路図を共有してください。ここで共有したくない場合は、サポートチケットを作成し、そこに回路図を添付してください。 ありがとうございました。 BR、ダニエル Re: S32K388 JumpApp Only runs with core 0 active.#S32K388 @こんにちは@zhangyu5454 、 それを説明するのは難しい。 Power_Ipの初期化時にオシロスコープでV15とV11の電圧を測定できますか?
記事全体を表示
T2081プロセッサからMT29F64G08AECAB 8GB NANDフラッシュにアクセスできない こんにちは、 私はT2081 NXPプロセッサを、IFC経由で外部NANDフラッシュMT29F64G08AECABに接続しています。 私の目標は、CodeWarrior上でこのNANDフラッシュの診断テストを実行するか、あるいはCodeWarrior上でこのデバイスのデバイスIDと製造元IDを読み取ることです(そのためのコードは既に作成済みです)。 この目標を達成するために、私は既に以下のことを実行しました。 1. 生成されたT2081QDS_init_core.tcl で、0xFF800000 から始まるサイズ 1MB のNAND IFC 用の LAW を設定しました。 ## LAW3からIFCへのNAND # ローバー mem [CCSR_ADDR 0x000C30] = 0x00000000 # LAWBARL mem [CCSR_ADDR 0x000C34] = 0xFF800000 # 戦争 mem [CCSR_ADDR 0x000C38] = 0x81F00013 2. また、以下のようにNANDに対応するCSPRレジスタとFTIMレジスタを設定しました。 NAND_CS 5 を設定 # NANDフラッシュ、アドレス0xFF800000、サイズ1MB、8ビットNAND、ECC無効 # CSPR_EXT mem [CCSR_ADDR [expr 0x12400C + $NAND_CS * 0x0C]] = 0x00000000 # CSPR mem [CCSR_ADDR [expr 0x124010 + $NAND_CS * 0x0C]] = 0xFF800103 #マスク mem [CCSR_ADDR [expr 0x1240A0 + $NAND_CS * 0x0C]] = 0xFFFF0000 # CSOR mem [CCSR_ADDR [expr 0x124130 + $NAND_CS * 0x0C]] = 0x01082100 # IFC_FTIM0 mem [CCSR_ADDR [expr 0x1241C0 + $NAND_CS * 0x30]] = 0x1E0B0507 # IFC_FTIM1 mem [CCSR_ADDR [expr 0x1241C4 + $NAND_CS * 0x30]] = 0x2929090B # IFC_FTIM2 mem [CCSR_ADDR [expr 0x1241C8 + $NAND_CS * 0x30]] = 0x01203819 # IFC_FTIM3 mem [CCSR_ADDR [expr 0x1241CC + $NAND_CS * 0x30]] = 0x15000000 プロセッサからNANDへ向かうチップセレクトが2つあり(CS5とCS6)、今のところ最初の4GBにアクセスしようとしているので、CS5のみの設定をしています。 3. 設定済みのTLB: 細かい 1M TLB エントリ 5 : 0xFF800000 - 0xFF8FFFFF (NAND キャッシュ禁止、ガード付き) reg ${CAM_GROUP} L2MMU_CAM5 = 0x5000000A1C08000000000000FF80000000000000FF800001 4. インストール済みディレクトリにはこのMT29F64G08AECABのサポートが見つからなかったため、マニュアルに従ってこのデバイス用の.xml(4GB分)を作成し、ここに添付しました。 これらすべてを実行した後、CodeWarriorでNANDデバイスの診断テストを実行すると、以下のエラーが表示されます。 Nisarga_R_0-1786096350786.pngNisarga_R_0-1786096350786.png 代替案として、このデバイスからデバイスIDを読み取るための簡単なC言語コードを書いてみました。そこで、以下のコードをCode Warriorで書き、ここに添付しました。その結果、IFC_NAND_MDRレジスタを読み戻すと、デバイスIDと一致しない0x124E0000が返されます。 診断テストを実行できない、またはデバイスIDを読み取れないのは、私が何か間違ったことをしているか、何かを見落としているからでしょうか。 参考資料として、関連するT2081QDS_init_core.tclファイルと回路図を添付しました。 よろしくお願いいたします。 ニサルガR   QorIQ T2デバイス Re: Unable to access MT29F64G08AECAB 8GB NAND Flash from T2081 processor 現在、社内チームと話し合っています。 よろしくお願いします。 Re: Unable to access MT29F64G08AECAB 8GB NAND Flash from T2081 processor RCW[IFC_GRP_E2_BASE] = 0でNANDデバイスが起動源として使われていない場合、NANDフラッシュのハードウェア接続は推奨される設計ガイドラインに沿っているようです。 とはいえ、IFC_NAND_MDRレジスタから読み取られるデバイスIDの値はどのような値を想定していますか? デュアルダイNANDデバイスについては試用・テストしたことがなく、その動作については不明です。 シングルダイNANDフラッシュデバイスに関する当社の経験に基づき、以下の点をご確認いただき、結果を当社にご共有ください。今後の調査に役立てさせていただきます。 1) 可能であれば、完全なIFCレジスタダンプを共有してください。 2) IFCインターフェースのピン-多体化構成を共有すること。 3) Codewarriorのデバッグに関するアップデートがあれば、私にも知らせてください。 4) 下記のRMのセクションを参照し、NANDフラッシュの実装がそこに記載されている情報と一致しているかどうかを確認してください。 a) 13.2 外部信号の説明 b) 13.5 NANDフラッシュ制御装置 c) 13.9 初期化/アプリケーション情報 よろしくお願いします。
記事全体を表示
S32K344 EVB Flashing Procedure Using PEmicro 10-Pin JTAG/SWD and S32DS 3.6.8 Hi Team, I am using an S32K344 EVB with a PEmicro 10-pin JTAG/SWD debug probe and S32 Design Studio (S32DS) version 3.6.8. I would like to flash an application into the normal internal Program Flash of the S32K344. I am not using HSE Secure Boot, Secure Debug, or any other security features. Could someone please provide the detailed steps for: Connecting the PEmicro 10-pin JTAG/SWD debugger to the S32K344 EVB. Creating the correct Debug/Run configuration in S32DS 3.6.8. Selecting the proper interface (SWD or JTAG). Configuring flash programming settings (Erase, Program, Verify). Setting the correct target device and connection mode. Any required linker or memory configuration for standard internal flash programming. Recommended settings to avoid Secure Debug/HSE-related issues. Troubleshooting steps if the debugger detects the device but fails during flash programming. I am looking for a complete flashing procedure and the exact S32DS configuration required for successful programming and debugging of the S32K344 EVB using a PEmicro probe. Thank you. Re: S32K344 EVB Flashing Procedure Using PEmicro 10-Pin JTAG/SWD and S32DS 3.6.8 Hello @Aravind_Togaralli , Thank you for the clarification and screenshots. Before changing the S32DS configuration, please verify the debugger connection on the board. If you are using the FRDM-A-S32K344, previously referred to as the S32K344MINI-EVB, the external debugger must be connected to the J9 20-pin Cortex Debug + ETM header. According to UM12406, Table 1, jumper JP11 must be removed to enable the external debug interface. Therefore, please check the following: Confirm that the external PEmicro Multilink is connected to J9, which is a 20-pin debug header. Your description mentions an external 10-pin connector, so please verify the connector and any adapter being used. Remove JP11 when using the external Multilink debugger. Verify the orientation of the debug cable and pin 1 alignment. Power-cycle the board and the Multilink after changing JP11, then refresh the Port selection in the PEmicro debug configuration. As an initial bring-up test, you can alternatively use the on-board debugger with JP11 installed. This can help determine whether the project and MCU are working before switching to the external Multilink. Please note that the USB connection must remain connected, as it is required to supply power to the board, even when an external debugger is used.   You can also use the following verified project as a reference: Example S32K344 EMAC lwIP FreeRTOS miniEVB, S32DS 3.6.1, RTD 6.0.0 This project was tested on the S32K344MINI-EVB using the on-board debugger and the Debug_FLASH configuration. Please try launching this project first and compare its Debug_FLASH settings with your current project. If the on-board debugger works but the external Multilink does not, the problem is most likely related to the external debug path, particularly JP11, the J9 connection, cable orientation, or adapter. In that case, you may also try another USB port and USB cable, preferably with the Multilink connected directly to the PC without a docking station or USB hub. Related discussions: PEmicro Connection Assistant PEmicro Multilink connection and target-voltage checks If the issue remains, please provide: a photo showing the debugger connection to the board, the exact adapter used between the Multilink and J9, if applicable, the complete PEmicro GDB server output from the S32DS Console. Please also note that I will be out of office for the next few days, so my responses may be delayed. Best regards, Pavel Re: S32K344 EVB Flashing Procedure Using PEmicro 10-Pin JTAG/SWD and S32DS 3.6.8   Following up on my earlier query. I followed the steps your team suggested, but I'm still unable to flash/debug the device — the connection fails during launch. Setup: Board: Custom board with S32K344 (not an NXP EVB) Probe: P&E Multilink Universal FX Rev D, connected via external 10-pin JTAG connector on the board (I am not using an onboard/embedded debugger — I explicitly selected the external Multilink FX port under "Port" in the debug configuration, as shown in the screenshots) IDE: S32DS, Debug Configuration = GDB PEmicro Interface Debugging Interface settings: SWD protocol enabled, Debug Shift Freq = 5000 KHz, "Provide power to target" enabled What happens: On clicking Debug, the PEmicro Connection Assistant pops up with: "An error occurred while connecting to the interface hardware or target specified in the Launch Configuration Dialog," prompting me to retry the connection with the same USB Multilink port. Attached screenshots: Debug Configuration — Main tab (project/elf selected) PEmicro Debugger tab — Interface, Port, Target device (S32K344), Core (M7), SWD enabled, Power settings PEmicro Debugger tab (scrolled) — Debug Shift Freq, GDB Server/Client settings PEmicro Connection Assistant error popup after failed connect attempt Thanks, Aravind_Togaralli_1-1787741560103.pngAravind_Togaralli_1-1787741560103.png Aravind_Togaralli_2-1787741576274.pngAravind_Togaralli_2-1787741576274.png Aravind_Togaralli_3-1787741587983.pngAravind_Togaralli_3-1787741587983.png Aravind_Togaralli_4-1787741596878.pngAravind_Togaralli_4-1787741596878.png Re: S32K344 EVB Flashing Procedure Using PEmicro 10-Pin JTAG/SWD and S32DS 3.6.8 Hello @Aravind_Togaralli , This setup was discussed recently in the following thread: https://community.nxp.com/t5/S32K/Assistance-Required-for-Flash-Programming-S32K344-Using-USB/m-p/2402539 For the detailed PEmicro debug configuration procedure, please also refer to: https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-Build-a-Project-and-Setup-Debugging-with-GDB-PEMicro/ta-p/1941848 For standard internal flash programming without HSE or AB Swap, the automatically generated PEmicro debug configuration and the default flash programming algorithm should be used. No special linker configuration is required. Please follow the referenced procedure first. If it fails, provide the exact board name, PEmicro probe model and revision, screenshots of the debug configuration, and the complete PEmicro console log. This will allow us to identify the actual point of failure. Best regards, Pavel
記事全体を表示
无法从 T2081 处理器访问 MT29F64G08AECAB 8GB 与非闪存 你好, 我有一个T2081 NXP 处理器,通过IFC连接到外部与非闪存 MT29F64G08AECAB 。 我的目标是在 Code Warrior 上对该与非 Flash 进行诊断测试,或者直接读取该设备的设备和制造商 ID(我已经为此编写了代码)。 为了实现这个目标,我已经完成了以下工作: 1. 在生成的T2081QDS_init_core.tcl 中配置 与非 IFC 的 LAW,起始地址为 0xFF800000,大小为 1MB 。 ## LAW3 到 IFC - 与非 # LAWBARH 内存 [CCSR_ADDR 0x000C30] = 0x00000000 # 律师协会 内存 [CCSR_ADDR 0x000C34] = 0xFF800000 # LAWAR 内存 [CCSR_ADDR 0x000C38] = 0x81F00013 2. 还配置了与 NAND 对应的CSPR 和 FTIM 寄存器,如下所示: 设置 NAND_CS 5 # 与非闪存,地址0xFF800000,容量1MB,8位与非,ECC禁用 # CSPR_EXT mem [CCSR_ADDR [expr 0x12400C + $NAND_CS * 0x0C]] = 0x00000000 # CSPR mem [CCSR_ADDR [expr 0x124010 + $NAND_CS * 0x0C]] = 0xFF800103 # AMASK mem [CCSR_ADDR [expr 0x1240A0 + $NAND_CS * 0x0C]] = 0xFFFF0000 # CSOR mem [CCSR_ADDR [expr 0x124130 + $NAND_CS * 0x0C]] = 0x01082100 # IFC_FTIM0 mem [CCSR_ADDR [expr 0x1241C0 + $NAND_CS * 0x30]] = 0x1E0B0507 # IFC_FTIM1 mem [CCSR_ADDR [expr 0x1241C4 + $NAND_CS * 0x30]] = 0x2929090B # IFC_FTIM2 mem [CCSR_ADDR [expr 0x1241C8 + $NAND_CS * 0x30]] = 0x01203819 # IFC_FTIM3 mem [CCSR_ADDR [expr 0x1241CC + $NAND_CS * 0x30]] = 0x15000000 请注意,处理器到与非 有 2 个片选信号(CS5 和 CS6),目前我正在尝试访问前 4GB,因此只配置了 CS5 。 3. 已配置TLB: 1M TLB 条目 5:0xFF800000 - 0xFF8FFFFF,适用于 与非 缓存禁止、受保护的缓存 寄存器${CAM_GROUP} L2MMU_CAM5 = 0x5000000A1C08000000000000FF80000000000000FF800001 4. 由于在安装目录中找不到对 MT29F64G08AECAB 的设备支持,我按照手册为该设备(4GB)创建了一个 .xml 文件,我已将其附在此处。 完成上述步骤后,当我在 CodeWarrior 上运行 与非 设备的诊断测试时,出现以下错误: Nisarga_R_0-1786096350786.pngNisarga_R_0-1786096350786.png 作为替代方案,我尝试编写一个简单的 C 代码来从该设备读取设备 ID。所以我用 CodeWarrior 编写了以下代码,并附在这里。因此,当我读取 IFC_NAND_MDR 寄存器时,我得到了 0x124E0000,这与设备 ID 不匹配。 我想知道是不是我做错了什么或者遗漏了什么,因为我无法运行诊断测试或读取设备 ID 。 我已附上相应的 T2081QDS_init_core.tcl 文件以及相应的原理图供您参考。 问候, 尼萨加 R   QorIQ T2 设备 Re: Unable to access MT29F64G08AECAB 8GB NAND Flash from T2081 processor 我正在和内部团队讨论。 谢谢! Re: Unable to access MT29F64G08AECAB 8GB NAND Flash from T2081 processor 假设 RCW[IFC_GRP_E2_BASE] = 0 且 与非 设备未用作启动源,则您的 与非 闪存硬件连接似乎符合推荐的设计指南。 也就是说,您希望从 IFC_NAND_MDR 寄存器中读取到什么设备 ID 值? 我们从未对双芯片与非设备进行过测试,因此不确定其运行情况。 根据我们对单芯片 与非 闪存设备的经验,请检查以下内容并将结果与我们分享,以便我们进一步调查。 1)如果可能,请分享完整的IFC寄存器转储文件。 2)共享IFC接口引脚复用配置。 3)如果 Codewarrior 调试功能有任何更新,也请告知我。 4)请参考以下RM章节,并核实您的与非闪存实现是否与其中记录的信息一致: a) 13.2 外部信号描述 b) 13.5 与非闪存控制机 c) 13.9 初始化/应用程序信息 谢谢!
記事全体を表示
S32K388 JumpApp 仅在核心 0 处于活动状态时运行。 我创建了一个引导加载程序,并将其放置在地址 0x400000 到 0x420000 处。每次我通过串口更新程序时,只有核心 0 继续运行。如何才能让其他核心也运行起来? S32_SCB->VTOR = 0x00422000; __asm volatile(         "msr msp, % 0" : : "r" (appStack) : “记忆” ); ((pFunction)appEntry)(); Re: S32K388 JumpApp Only runs with core 0 active. 嗨@zhangyu5454 , 您可以在启动代码中启用核心。请参阅默认 S32DS 项目的启动代码(startup_cm7.s)。 例如,如果 CM7_2_ENABLE == 1,则启动代码将在系统启动期间启用 CM7_2。 也可以稍后通过 CM7_0 应用程序启用内核,方法是直接配置相关寄存器,或者使用 MCU MCAL 驱动程序或 Power_Ip 驱动程序。请参考以下示例: https://community.nxp.com/t5/S32K-Knowledge-Base/S32K358-Multicore-Start-CM7-2-from-CM7-0/ta-p/1923889 BR,丹尼尔 Re: S32K388 JumpApp Only runs with core 0 active. 感谢您的回复。我尝试使用 Power_Ip,但是当程序中出现“Power_Ip_Init(&Power_Ip_HwIPsConfigPB);”这行代码时,调试过程会自动结束。此外,即使我不按下 RESET 按钮,RESET 指示灯仍然亮着,导致设备完全无法运行。当我使用 IP_MC_ME 时,程序运行正常,但没有产生任何结果。其他元器件也无法启动。这段代码似乎对 388 型号不太适用。 Re: S32K388 JumpApp Only runs with core 0 active. 嗨@zhangyu5454 , 如果 MCU 发生系统RESET,则需要读取RESET源。 您可以致电 Power_Ip_GetResetReason(); 在 main() 函数开头之前 Power_Ip_Init(); 根本原因可能是 V15 开关电源——它必须与硬件设计相匹配。 danielmartynek_0-1785236184264.pngdanielmartynek_0-1785236184264.pngdanielmartynek_0-1785236184264.pngdanielmartynek_0-1785236184264.pngdanielmartynek_0-1785236184264.png BR,丹尼尔 Re: S32K388 JumpApp Only runs with core 0 active.#S32K388 根据您的建议,我将在 int main(void) 部分中实现它。调用了 Power_Ip_GetResetReason() 函数。然而,测试结果依然没有改变。   int main(void) { Power_Ip_GetResetReason(); Power_Ip_Init(&Power_Ip_HwIPsConfigPB); Clock_Ip_Init(&Mcu_aClockConfigPB[0]); Power_Ip_SetMode(&Power_Ip_aModeConfigPB[0]); 当(1) { Re: S32K388 JumpApp Only runs with core 0 active.#S32K388 嗨@zhangyu5454 , 那么RESET的原因是什么? 如果让我猜的话,应该是POR/LVR。 V15在PCB板上是如何供电的? 您是否已相应地配置 Power_Ip? 此致, 丹尼尔 谢谢! Re: S32K388 JumpApp Only runs with core 0 active.#S32K388 你好@zhangyu5454 , 我知道您在PCB板上使用了SMPS电源,因此必须在配置工具中启用它: danielmartynek_0-1786525102760.pngdanielmartynek_0-1786525102760.pngdanielmartynek_0-1786525102760.pngdanielmartynek_0-1786525102760.pngdanielmartynek_0-1786525102760.png danielmartynek_1-1786525162418.pngdanielmartynek_1-1786525162418.pngdanielmartynek_1-1786525162418.pngdanielmartynek_1-1786525162418.pngdanielmartynek_1-1786525162418.png 关于SXOSC,请确保已禁用: danielmartynek_2-1786525202445.pngdanielmartynek_2-1786525202445.pngdanielmartynek_2-1786525202445.pngdanielmartynek_2-1786525202445.pngdanielmartynek_2-1786525202445.png Re: S32K388 JumpApp Only runs with core 0 active.#S32K388 谢谢你的回复。我不太了解这些功能。是否有相关的示例或教程文件?我尝试按照 S32K358 的示例进行操作,但没有成功。关于 V15 电源,我发现它是由外部 3.3V 电压通过微控制器控制的晶体管产生 1.5V 电压,同时在微控制器控制下还会产生 1.1V 电压。我还注意到我的硬件设计中没有 32.768 晶振(晶体振荡器),程序卡在了 Clock_Ip_ExtOsc.c 的循环中。 做 { SxoscStatus = ((Clock_Ip_apxXosc[Instance]->STAT & SXOSC_SXOSC_STAT_OSC_STAT_MASK) >> SXOSC_SXOSC_STAT_OSC_STAT_SHIFT); TimeoutOccurred = Clock_Ip_TimeoutExpired(&StartTime, &ElapsedTime, TimeoutTicks); } while ((0U == SxoscStatus) && (FALSE == TimeoutOccurred)); Re: S32K388 JumpApp Only runs with core 0 active.#S32K388 你好@zhangyu5454 , 这两次写入操作中 ConfigValue 的值分别是多少? IP_PMC->CONFIG = ConfigValue; IP_PMC->SMPSCONFIG = ConfigValue; 由于电源模式配置错误,MCU正在复位。 将以下循环放在 main() 函数的开头,以便在重置后进行调试。 volatile uint32_t loop = 1; while (loop) { } 可以通过调试器修改循环变量,以允许程序继续执行。 当代码在循环中停止执行时,调用: Power_Ip_GetResetReason() 它应该返回 MCU_POWER_ON_RESET。 另外,请查阅低电压状态和控制(LVSC)寄存器,以获取有关 RESET 事件的更多信息。 此致, 丹尼尔 Re: S32K388 JumpApp Only runs with core 0 active.#S32K388 zhangyu5454_0-1786934052028.pngzhangyu5454_0-1786934052028.pngzhangyu5454_0-1786934052028.png张宇5454_0-1786934052028.png 您好,我按照您的方法启用了V15并禁用了SXOSC。但是,当调试到达 `Power_Ip_PMC_PowerInit` 中的 `IP_PMC->SMPSCONFIG = ConfigValue;` 行(该行位于 `Power_Ip_Init` 内部)时,调试会话会自动终止,并且板载 RESET 指示灯 LED 会保持微弱而稳定的亮光。 Re: S32K388 JumpApp Only runs with core 0 active.#S32K388 嗨@zhangyu5454 , 我用你分享的配置值在我的EVB上无法重现这个问题。 您使用的是 XS32K388EVB-Q289 吗?如果可以的话,请问您能否告知跳线 J118 的位置? danielmartynek_0-1787229063371.pngdanielmartynek_0-1787229063371.pngdanielmartynek_0-1787229063371.png 如果您使用的是定制电路板,请分享原理图。如果您不想在此处分享,请创建支持工单并将原理图附加到工单中。 谢谢! BR,丹尼尔 Re: S32K388 JumpApp Only runs with core 0 active.#S32K388 @嗨@zhangyu5454 , 我很难解释清楚。 您能否使用示波器测量 Power_Ip 初始化期间的 V15 和 V11 电压?
記事全体を表示
S32K312MINI-EVB Hello, I am using an NXP S32K312MINI-EVB board. Initially, the board was powered ON and the LEDs were working, but the USB connection was not detected by Windows Device Manager. I verified that the PEmicro driver is installed. Device Manager shows: Jungo Connectivity → pemicrovincdrv I also tested the board with another PC and another USB connection, but the board was not detected. During troubleshooting, while the board was connected through USB, I removed the J19 and J20 jumpers. The board LEDs turned OFF. I then put the jumpers back, but now the board does not power on when i tried to give power supply though USB . when I supply 12 V through J1 only RGB led is ON. According to the S32K312MINI-EVB Hardware User Manual: USB-C J9 → J19 = 1–2, J20 = 1–2 12 V J1 → J19 = 2–3, J20 = 2–3 I have set J19/J20 accordingly, but the power LED remains OFF. Could someone please help me determine whether the board's power circuit may have been affected and which test points I should measure? I can provide photos of the board and voltage measurements at J23 (VBAT), J24 (VBST), J16 (P5V0), J17 (P3V3), and J27 (GND). Thank you. Re: S32K312MINI-EVB Hi Please do not use a USB hub; connect the USB cable directly to the computer. I recommend connecting via USB 3.0 or Type-C port. S32K312MINI on board debugger.pngS32K312MINI on board debugger.png Does the red OSDA_LED D9 light up? Otherwise, OpenSDA may not work properly, which would prevent the onboard debugger from being used. Please check the voltage one by one according to the schematic diagram. Best Regards, Robin
記事全体を表示
PEmicro 10ピンJTAG/SWDとS32DS 3.6.8を使用したS32K344 EVBのフラッシュ手順 チームの皆さん、こんにちは。 私は S32K344 EVB に PEmicro 10ピンJTAG/SWDデバッグプロー ブと S32 Design Studio(S32DS)バージョン3.6.8を組み合わせて使っています。 アプリケーションを S32K344の通常の内部プログラムフラッシュ にフラッシュしたいのです。HSEのSecure BootやSecure Debug、その他のセキュリティ機能は使っていません。 どなたか、以下の詳細手順を教えていただけませんか: PEmicro 10ピンJTAG/SWDデバッガをS32K344 EVBに接続します。 S32DS 3.6.8 で正しいデバッグ/実行構成を作成する。 適切なインターフェース(SWDまたはJTAG)の選択。 フラッシュプログラミング設定(消去、プログラム、検証)を構成します。 正しいターゲットデバイスと接続モードを設定してください。 標準的な内部フラッシュプログラミングに必要なリンカーやメモリ構成。 セキュアデバッグ/HSE関連の問題を回避するための推奨設定。 デバッガーがデバイスを検出したが、フラッシュプログラミング中に失敗した場合のトラブルシューティング手順。 PEmicroプローブを使用してS32K344 EVBのプログラミングとデバッグを正常に行うために必要な、完全なフラッシュ手順と正確なS32DS構成を探しています。 よろしくお願いします。 Re: S32K344 EVB Flashing Procedure Using PEmicro 10-Pin JTAG/SWD and S32DS 3.6.8 こんにちは、 @Aravind_Togaralli さん、 ご説明とスクリーンショットをありがとうございました。 S32DSの設定を変更する前に、ボード上のデバッガの接続を確認してください。FRDM-A-S32K344(以前はS32K344MINI-EVBと呼ばれていた)を使用している場合、外部デバッガはJ9の20ピンCortex Debug + ETMヘッダーに接続する必要があります。UM12406表1によると、外部デバッグインターフェースを有効にするためにジャンパーJP11を除去する必要があります。 したがって、以下の点をご確認ください。 外部のPEmicroマルチリンクがJ9に接続されていることを確認してください。 J9は 20ピン のデバッグヘッダーです。説明には外部10ピンコネクタが記載されているので、コネクタと使用しているアダプターを必ず確認してください。 外部マルチリンクデバッガを使用する場合は、 JP11を削除してください。 デバッグケーブルの向きとピン1の位置合わせを確認してください。 JP11を変更した後は、ボードとマルチリンクの電源を入れ直し、PEmicroデバッグ構成でポート選択を更新してください。 初期の起動テストとして、代わりにJP11をインストールした搭載デバッガを使うこともできます。これにより、外部マルチリンクに切り替える前にプロジェクトとMCUが動作しているかどうかを判断できます。 外部デバッガを使っていても、USB接続は接続されたままでいなければなりません。これはボードに電力を供給するために必要です。   また、以下の検証済みプロジェクトを参考にすることもできます: 例:S32K344 EMAC lwIP FreeRTOS miniEVB、S32DS 3.6.1、RTD 6.0.0 このプロジェクトは、S32K344MINI-EVB上で搭載デバッガとDebug_FLASH構成を用いてテストされました。まずはこのプロジェクトを起動してみて、そのDebug_FLASH設定を現在お使いのプロジェクトと比較してみてください。 搭載デバッガは動作するのに外部マルチリンクが動作しない場合、問題は外部デバッグ経路、特にJP11、J9接続、ケーブルの向き、またはアダプターに関連している可能性が高いです。その場合は、別のUSBポートとUSBケーブルを試してみるのも良いでしょう。できればMultilinkをドッキングステーションやUSBハブなしでPCに直接接続したものが望ましいです。 関連ディスカッション: PEmicro接続アシスタント PEmicroマルチリンク接続および目標電圧チェック 問題が解決しない場合は、以下の情報を提供してください。 デバッガーと基板の接続を示す写真。 MultilinkとJ9の間で使用されている正確なアダプター(該当する場合) S32DSコンソールからのPEmicro GDBサーバーの完全な出力。 また、数日間はオフィスを離れるため、回答が遅れる可能性があることをご了承ください。 よろしくお願いいたします。 パベル Re: S32K344 EVB Flashing Procedure Using PEmicro 10-Pin JTAG/SWD and S32DS 3.6.8   以前の質問について、改めてご連絡いたします。貴社チームが提案した手順に従いましたが、デバイスのフラッシュ/デバッグが依然としてできません。起動時に接続が失敗します。 設定: ボード:カスタムボードでS32K344(NXP EVBではありません) プローブ:P&E Multilink Universal FX Rev D、ボード上の外部10ピンJTAGコネクタで接続(オンボード/組み込みデバッガは使っていません — デバッグ設定の「Port」欄で外付けMultilink FXポートを明示的に選択しました。スクリーンショットに示されています) IDE: S32DS、デバッグ設定 = GDB PEmicroインターフェースデバッグ インターフェース設定:SWDプロトコル有効、デバッグシフト周波数=5000 KHz、「ターゲットに電力供給」有効 何が起こるか: 「デバッグ」をクリックすると、PEmicroの接続アシスタントに「起動設定ダイアログで指定されたインターフェースハードウェアまたはターゲットへの接続中にエラーが発生しました」と表示され、同じUSBマルチリンクポートで再接続を試みるよう促されました。 添付のスクリーンショット: デバッグ設定 — メインタブ(プロジェクト/エルフ選択) PEmicroデバッガタブ — インターフェース、ポート、ターゲットデバイス(S32K344)、コア(M7)、SWD有効、電源設定 PEmicro デバッガタブ(スクロール) — デバッグシフト周波数、GDBサーバー/クライアント設定 接続失敗後のPEmicro Connection Assistantエラーポップアップ よろしくお願いします。 Aravind_Togaralli_1-1787741560103.pngAravind_Togaralli_1-1787741560103.png Aravind_Togaralli_2-1787741576274.pngAravind_Togaralli_2-1787741576274.png Aravind_Togaralli_3-1787741587983.pngAravind_Togaralli_3-1787741587983.png Aravind_Togaralli_4-1787741596878.pngAravind_Togaralli_4-1787741596878.png Re: S32K344 EVB Flashing Procedure Using PEmicro 10-Pin JTAG/SWD and S32DS 3.6.8 こんにちは、 @Aravind_Togaralli さん、 このセットアップは最近、以下のThreadで議論されました: https://community.nxp.com/t5/S32K/Assistance-Required-for-Flash-Programming-S32K344-Using-USB/m-p/2402539 PEmicroのデバッグ設定手順の詳細については、以下も参照してください。 https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-Build-a-Project-and-Setup-Debugging-with-GDB-PEMicro/ta-p/1941848 HSEやABスワップなしの標準的な内部フラッシュプログラミングでは、自動生成されたPEmicroデバッグ構成とデフォルトのフラッシュプログラミングアルゴリズムを使用するべきです。特別なリンカー設定は必要ありません。 まずは、参照されている手順に従ってください。もし失敗した場合は、正確なボード名、PEmicroプローブモデルとリビジョン、デバッグ構成のスクリーンショット、そしてPEmicroコンソールログの全記録を提出してください。これにより、実際の故障箇所を特定できるようになります。 よろしくお願いいたします。 パベル
記事全体を表示
TapLinx Java Classic Library 中缺少 ClassicFactory 类 尊敬的恩智浦技术支持团队: 我下载了用于MIFARE Classic S70 4K卡的 Java TapLinx 库。但是,我发现ClassicFactory.class文件并未包含在 Classic TapLinx JAR 文件中。 据我了解, ClassicFactory用于创建 Classic 卡片实例,类似于我们使用DESFireFactory创建 DESFire 卡片: IDESFireEV3 desfire = DESFireFactory.getInstance() .getDESFireEV3(TapLinx.INSTANCE.getCustomModules()); 请问您能否就以下问题提供一些建议: ClassicFactory是否包含在单独的 JAR 文件或库中? 如果是这样,请问您能否提供我需要使用的正确库/版本? 使用 Java TapLinx 库 操作 MIFARE Classic S70 4K 时, 是否有不同的 API 或推荐方法? Classic TapLinx 库与我正在使用的 Java(非 Android)环境兼容吗? 我希望您能指导我如何使用 TapLinx 正确初始化和与 MIFARE Classic S70 4K 卡通信。 应用注册 身份验证服务器问题 代码示例 离线认证 在线身份验证 Re: ClassicFactory class Missing from TapLinx Java Classic Library 您好,先生, 感谢您对我们产品的关注。 请注意,不建议在新设计中使用 MIFARE Classic。产品支持页面( MIFARE Classic EV1 1K - 4K | NXP 半导体) 中已提及这一点, 建议改用 MIFARE DESFire Light | NXP 半导体 。 要获取适用于 MIFARE Classic 的正确 API,请打开 Taplinx Android 的 JavaDoc: https://www.nxp.com/webapp/Download? colCode=ANDROIDJAVADOC&appType=license 本文档展示了 MFClassic 的 API。   Fabian_R_0-1787778230590.pngFabian_R_0-1787778230590.png
記事全体を表示
ClassicFactory class Missing from TapLinx Java Classic Library Dear NXP Support Team, I have downloaded the Java TapLinx library to work with MIFARE Classic S70 4K cards. However, I noticed that the ClassicFactory.class file is not included in the Classic TapLinx JAR. As I understand, ClassicFactory is required to create the Classic card instance, similar to how we use DESFireFactory for DESFire cards: IDESFireEV3 desfire = DESFireFactory.getInstance() .getDESFireEV3(TapLinx.INSTANCE.getCustomModules()); Could you please advise me on the following: Is ClassicFactory included in a separate JAR or library? If so, could you please provide the correct library/version that I need to use? Is there a different API or recommended approach for working with MIFARE Classic S70 4K using the Java TapLinx library? Is the Classic TapLinx library compatible with the Java (non-Android) environment I am using? I would appreciate your guidance on how to correctly initialize and communicate with MIFARE Classic S70 4K cards using TapLinx. App registration Authentication server problems Code examples Offline authentication Online authentication Re: ClassicFactory class Missing from TapLinx Java Classic Library Hello sir, Thanks for your interest in our products. Please keep in mind that MIFARE Classic isn't recommended for new designs. This is mentioned in the product support page: MIFARE Classic EV1 1K - 4K | NXP Semiconductors the MIFARE DESFire Light | NXP Semiconductors is recommended instead. In order to get the correct APIs for MIFARE Classic, please open Taplinx Android's JavaDoc: https://www.nxp.com/webapp/Download?colCode=ANDROIDJAVADOC&appType=license This document shows the API for MFClassic.   Fabian_R_0-1787778230590.pngFabian_R_0-1787778230590.png
記事全体を表示
S32K142 LPSPI0 マスター (lpspi_transfer の例): SCK クロックが正しくトグルしない こんにちは、NXPコミュニティの皆さん、 私はNXPのlpspi_transfer_s32k142サンプルを、S32K142ボード上でLPSPI0をマスターモードで使用していますが、サンプル構成に大きな変更は加えていません。 私の問題は、 SCK/クロック波形が正しく切り替わらないことです。ロジックアナライザを使用して、SCK、MOSI、MISO、およびPCSを監視しています。 8ビット(1バイト)の転送の場合、8つのSCKクロックパルスが発生するはずですが、ロジックアナライザでは、期待されるパルスではなく、異常な/連続したように見えるクロック波形が表示されます。 構成: LPSPI0 – マスター 500kHz 8ビットフレーム PCS0 CPOL = アクティブハイ CPHA = 1番目のエッジ 転送タイプ = 割り込み SCK波形を示すロジックアナライザのスクリーンショットを添付しました。 NXPの例でSCKクロックが正しく切り替わらない理由と、どの設定を確認すればよいのか、どなたか教えていただけませんか? よろしくお願いします。 Re: S32K142 LPSPI0 Master (lpspi_transfer example): SCK clock not toggling correctly 可能であれば、修正済みテストプロジェクトを送ってほしい。そうすれば、S32K142EVBで直面した問題を素早く再現できるから。 Re: S32K142 LPSPI0 Master (lpspi_transfer example): SCK clock not toggling correctly こんにちは、ロビンさん。 ご返信ありがとうございます。 現在の構成では、PCS連続はチェックされておらず、生成された構成は次のようになっています。 .isPcsContinuous = false 私はこの設定を変更していません。 アップロードした波形でも、期待していたようなクリーンなSPIタイミングが得られていません。1バイトの転送の場合、転送完了までPCSがアサートされている間に8つのSCKクロックパルスが発生すると予想されます(PCSアクティブ→8クロックパルス→PCS非アクティブ)。しかし、私のロジックアナライザによるキャプチャでは、この期待される動作が明確に示されていません。SCKパルスは不規則に現れており、PCS/イネーブル信号はSPIフレーム全体にわたって期待されるハイ/ローの動作を示していません。 参考までに電流波形を添付しました。 このPCSやSCKの挙動は、LPSPI_DRV_MasterTransferBlocking()APIと現在のLPSPI構成で予想されるものかどうか確認していただけますか? PCSを常時有効にした状態でもテストを行い、結果を共有します。 よろしくお願いいたします。 レシャム Re: S32K142 LPSPI0 Master (lpspi_transfer example): SCK clock not toggling correctly ハイ アップロードした画像はぼやけすぎます。SPIの波形がはっきり見えません。 lpspi_transfer_s32k142のLPSPI0設定を変更して、 PCS連続モードを選択しましたか? lpspi_transfer_s32k142 LPSPI0 PCS continuous.pnglpspi_transfer_s32k142 LPSPI0 PCS continuous.pnglpspi_transfer_s32k142 LPSPI0 PCS 連続.png 明確なSPI波形で問題があると思われる箇所を示すために矢印やテキストを使うことが推奨されます。これにより、あなたの質問を迅速に理解できます。 よろしくお願いいたします ロビン Re: S32K142 LPSPI0 Master (lpspi_transfer example): SCK clock not toggling correctly こんにちは、 S32K142EVB用の修正済みLPSPI転送テストプロジェクトを含むZIPファイルを添付しましたのでご確認ください。 プロジェクトを確認して、LPSPIの転送設定が正しいか、または変更が必要か教えていただけますか? ご対応ありがとうございます。 よろしくお願いします、 レシャム
記事全体を表示
S32K312MINI-EVB 你好, 我使用的是NXP S32K312MINI-EVB开发板。 最初,电路板已通电,LED 指示灯也亮着,但 Windows 设备管理器未检测到 USB 连接。 我已确认 PEmicro 驱动程序已安装。设备管理器显示: Jungo 连接 → pemicrovincdrv 我还用另一台电脑和另一个 USB 连接测试了该电路板,但该电路板未被识别。 在故障排除过程中,当电路板通过 USB 连接时,我移除了J19 和 J20 跳线。电路板上的LED灯熄灭了。 然后我把跳线接回去了,但是现在当我尝试通过 USB 供电时,板无法开机。当我通过 J1 提供 12V 电压时,只有 RGB LED 灯亮起。 根据 S32K312MINI-EVB 硬件用户手册: USB-C J9 → J19 = 1–2,J20 = 1–2 12V J1 → J19 = 2–3,J20 = 2–3 我已经按要求设置了 J19/J20,但是电源指示灯仍然熄灭。 请问有人可以帮我判断一下电路板的电源电路是否可能受到影响,以及我应该测量哪些测试点吗? 我可以提供电路板的照片以及 J23 (VBAT)、J24 (VBST)、J16 (P5V0)、J17 (P3V3) 和 J27 (GND) 处的电压测量结果。 谢谢! Re: S32K312MINI-EVB HI 请勿使用USB集线器;请将USB线缆直接连接到电脑。我建议使用 USB 3.0 或 Type-C 接口连接。 S32K312MINI on board debugger.pngS32K312MINI 板载调试器.png 红色 OSDA_LED D9 指示灯是否亮起? 否则,OpenSDA 可能无法正常工作,这将阻止板载调试器的使用。 请根据电路图逐一检查电压。 此致敬礼, Robin
記事全体を表示
TapLinx Java Classic Library に ClassicFactory クラスがありません 親愛なるNXPサポートチームへ、 MIFARE Classic S70 4K カード で動作させるためにJava TapLinxライブラリをダウンロードしました 。しかし、 ClassicFactory.class ファイルがClassic TapLinxのJARに含まれていない ことに気付きました。 私の理解では、 ClassicFactoryはClassicカードインスタンスを作成するために必要であり、 DESFireカードでDESFireFactoryを使用するのと同様です。 IDESFireEV3 desfire = DESFireFactory.getInstance() .getDESFireEV3(TapLinx.INSTANCE.getCustomModules()); 以下の点についてアドバイスをいただけますか? ClassicFactoryは別のJARファイルまたはライブラリとして含まれていますか? もしそうなら、使うべき正しいライブラリやバージョンを教えていただけませんか? Java TapLinxライブラリを使ってMIFARE Classic S70 4Kを扱うための別のAPIや推奨の方法はありますか? Classic TapLinxライブラリは、私が使っているJava(非Android)環境と互換性がありますか? TapLinxを使ってMIFARE Classic S70 4Kカードを正しく初期化し、通信する方法についてご指導いただけるとありがたいです。 アプリ登録 認証サーバーの問題 コード・サンプル オフライン認証 オンライン認証 Re: ClassicFactory class Missing from TapLinx Java Classic Library お世話になります。 私たちの製品にご関心を持っていただき、ありがとうございます。 MIFARE Classicは新しいデザインには推奨されていないことを覚えておいてください。これは製品サポートページに記載されています:MIFARE Classic EV1 1K - 4K | NXP Semiconductors MIFARE DESFire Light | NXP Semiconductors をお勧めします。 MIFARE Classicの正しいAPIを取得するには、Taplinx AndroidのJavaDocを開いてください: https://www.nxp.com/webapp/Download?colCode=ANDROIDJAVADOC&appType=license このドキュメントでは、MFClassic の API について説明します。   Fabian_R_0-1787778230590.pngFabian_R_0-1787778230590.png
記事全体を表示
S32K142 LPSPI0 Master (lpspi_transfer example): SCK clock not toggling correctly Hello NXP Community, I am using the NXP lpspi_transfer_s32k142 example with LPSPI0 in Master mode on an S32K142 board, without major changes to the example configuration. My issue is that the SCK/Clock waveform is not toggling correctly. I am monitoring SCK, MOSI, MISO and PCS with a logic analyzer. For an 8-bit (1-byte) transfer, I expect 8 SCK clock pulses, but the logic analyzer shows an abnormal/continuous-looking clock waveform instead of the expected pulses. Configuration: LPSPI0 – Master 500 kHz 8-bit frame PCS0 CPOL = Active High CPHA = 1st edge Transfer type = Interrupt I have attached the logic analyzer screenshot showing the SCK waveform. Could someone please help me understand why the SCK clock is not toggling correctly in the NXP example and what configuration I should check? Thank you. Re: S32K142 LPSPI0 Master (lpspi_transfer example): SCK clock not toggling correctly If possible, I suggest you send me the modified test project so that I can quickly reproduce the problem you encountered on the S32K142EVB. Re: S32K142 LPSPI0 Master (lpspi_transfer example): SCK clock not toggling correctly Hi Robin, Thank you for your response. In my current configuration, PCS continuous is unchecked, and the generated configuration has: .isPcsContinuous = false I have not modified this setting. In the uploaded waveform, I am also not getting the expected clean SPI timing. For a 1-byte transfer, I expect 8 SCK clock pulses while PCS is asserted for the complete transfer (PCS active → 8 clock pulses → PCS inactive). However, my logic analyzer capture does not show this expected behavior clearly. The SCK pulses appear irregular, and the PCS/Enable signal is not showing the expected high/low behavior around the complete SPI frame. I have attached the current waveform for reference. Could you please confirm whether this PCS and SCK behavior is expected with the LPSPI_DRV_MasterTransferBlocking() API and the current LPSPI configuration? I will also test with PCS continuous enabled and share the result. Regards, Resham Re: S32K142 LPSPI0 Master (lpspi_transfer example): SCK clock not toggling correctly Hi The image you uploaded is too blurry; I can't see the SPI waveform clearly. Did you modify the LPSPI0 configuration of lpspi_transfer_s32k142 to select PCS continuous? lpspi_transfer_s32k142 LPSPI0 PCS continuous.pnglpspi_transfer_s32k142 LPSPI0 PCS continuous.pnglpspi_transfer_s32k142 LPSPI0 PCS continuous.png It is recommended to use arrows or text to mark where you think there is a problem on a clear SPI waveform. This will help me quickly understand your question. Best Regards, Robin Re: S32K142 LPSPI0 Master (lpspi_transfer example): SCK clock not toggling correctly Hi, Please find attached the ZIP file containing the modified LPSPI transfer test project for the S32K142EVB. Could you please check the project and let me know if the LPSPI transfer configuration is correct or if any changes are required? Thanks for your support. Best regards, Resham
記事全体を表示