Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
s32k1:同じFTMチャネルでPWM周波数とデューティサイクルを測定する方法 こんにちは、 S32K1xxとFTM 入力キャプチャを使用して PWM 信号を測定しています。 現在、1 つのチャネル (例: FTM0_CH1) を使用して周波数を取得できます。 同じチャネルを使用して周波数とデューティ サイクルの両方を測定するにはどうすればよいでしょうか? SDK またはプロセッサ Expert 構成を使用して、同じ FTM チャネル内でエッジ (立ち上がり/立ち下がり) を切り替えることは可能ですか? 例や推奨方法があれば教えていただけると幸いです。 よろしくお願いします! Re: s32k1:How to measure PWM frequency and duty cycle on the same FTM channel こんにちは、レオさん。返信ありがとうございます。 現在のプロジェクトでは、 S32 Design Studio for Arm v2.2 そして S32SDK_S32K1xx_RTM_3.0.0なので、最新の IDEs または SDKs バージョンにアップグレードするのは便利ではありません。 ご提供いただいたサンプルをダウンロードし、それをどのように設定すれば良いか理解しました。 デューティサイクル そして 周期測定。しかし、私の主な疑問は、どのように使用するかということです 単一チャネル 両方を測定する PWMデューティサイクルと周期 同時に、つまり、両方の例を 1 つに結合する方法です。 デューティ サイクルと周期測定の両方の例を一緒に実装する方法が見つからなかったSO、コード内のキャプチャ エッジ (立ち上がり/立ち下がり) を切り替えて測定を実行してみました。 このアプローチが許容可能または推奨されるかどうかを確認してください。 static uint32_t read_ts32_ch2(void) { uint32_t ovf_before = g_ftm_ovf; (void)FTM0->CONTROLS[2].CnSC; // Clear CHF step 1 uint32_t cap32 = FTM0->CONTROLS[2].CnV; // Clear CHF step 2 & get timestamp uint16_t cap16 = (uint16_t)(cap32 & 0xFFFFu); // Only the lower 16 bits are valid uint32_t ovf_after = g_ftm_ovf; // If overflow occurred after capture and cap16 is small, // assume the capture happened before the overflow and apply compensation if ((ovf_after != ovf_before) && (cap16 < 0x8000u)) { ovf_before++; } return (ovf_before << 16) | cap16; } #if 1 // Function works but sometimes has errors due to edge-switching jitter void FTM0_CH2_Input_Detect(void) { uint32_t cap_ts = read_ts32_ch2(); // Captured channel counter value //bool PwmIOStatus = FTM_DRV_GetChnEventStatus(FTM0,2); // ---------- Rising edge ---------- //if (PwmIOStatus & (1u << 2)) //{ if(!waiting_fall) { /* ---------- Rising edge ---------- */ rise_prev = rise_curr; rise_curr = cap_ts; /* Arm the next edge: falling edge */ waiting_fall = 1; FTM0->CONTROLS[2].CnSC = (FTM0->CONTROLS[2].CnSC & ~(FTM_CnSC_ELSA_MASK | FTM_CnSC_ELSB_MASK)) | (FTM_CnSC_ELSB_MASK); if (got_first_rise) { period_cnt = (uint32_t)(rise_curr - rise_prev); if (period_cnt == 0u) { got_first_rise = 0; } /* Protection */ else { pwm_freq_hz = frequency / period_cnt; } } else { got_first_rise = 1; } } else { /* ---------- Falling edge ---------- */ fall_curr = cap_ts; /* Switch back to rising edge */ waiting_fall = 0; FTM0->CONTROLS[2].CnSC = (FTM0->CONTROLS[2].CnSC & ~(FTM_CnSC_ELSA_MASK | FTM_CnSC_ELSB_MASK)) | (FTM_CnSC_ELSA_MASK); if (got_first_rise && (fall_curr >= rise_curr)) { high_cnt = (uint32_t)(fall_curr - rise_curr); if ((period_cnt != 0) && (pwm_freq_hz != 0)) { // duty_pct = ((float)high_cnt * 100.0f) / (float)period_cnt; new_sample = 1; } } } /* Redundant flag clear */ // FTM0->STATUS = (1u << 2); //} } 回复: s32k1:How to measure PWM frequency and duty cycle on the same FTM channel こんにちは、レオさん。返信ありがとうございます。 現在のプロジェクトでは、 S32 Design Studio for Arm v2.2とS32SDK_S32K1xx_RTM_3.0.0を使用しているSO、最新の IDEs または SDKs バージョンにアップグレードするのは便利ではありません。 ご提供いただいた例をダウンロードし、デューティ サイクルと周期の測定を取得するように構成する方法を理解しました。しかし、私の主な疑問は、 1 つのチャネルを使用してPWM デューティ サイクルと周期の両方を同時に測定する方法、つまり、両方の例を 1 つに組み合わせる方法です。 デューティ サイクルと周期測定の両方の例を一緒に実装する方法が見つからなかったSO、コード内のキャプチャ エッジ (立ち上がり/立ち下がり) を切り替えて測定を実行してみました。 このアプローチが許容可能または推奨されるかどうかを確認してください。 static uint32_t read_ts32_ch2(void) { uint32_t ovf_before = g_ftm_ovf; (void)FTM0->CONTROLS[2].CnSC; // Clear CHF step 1 uint32_t cap32 = FTM0->CONTROLS[2].CnV; // Clear CHF step 2 & get timestamp uint16_t cap16 = (uint16_t)(cap32 & 0xFFFFu); // Only the lower 16 bits are valid uint32_t ovf_after = g_ftm_ovf; // If overflow occurred after capture and cap16 is small, // assume the capture happened before the overflow and apply compensation if ((ovf_after != ovf_before) && (cap16 < 0x8000u)) { ovf_before++; } return (ovf_before << 16) | cap16; } #if 1 // Function works but sometimes has errors due to edge-switching jitter void FTM0_CH2_Input_Detect(void) { uint32_t cap_ts = read_ts32_ch2(); // Captured channel counter value //bool PwmIOStatus = FTM_DRV_GetChnEventStatus(FTM0,2); // ---------- Rising edge ---------- //if (PwmIOStatus & (1u << 2)) //{ if(!waiting_fall) { /* ---------- Rising edge ---------- */ rise_prev = rise_curr; rise_curr = cap_ts; /* Arm the next edge: falling edge */ waiting_fall = 1; FTM0->CONTROLS[2].CnSC = (FTM0->CONTROLS[2].CnSC & ~(FTM_CnSC_ELSA_MASK | FTM_CnSC_ELSB_MASK)) | (FTM_CnSC_ELSB_MASK); if (got_first_rise) { period_cnt = (uint32_t)(rise_curr - rise_prev); if (period_cnt == 0u) { got_first_rise = 0; } /* Protection */ else { pwm_freq_hz = frequency / period_cnt; } } else { got_first_rise = 1; } } else { /* ---------- Falling edge ---------- */ fall_curr = cap_ts; /* Switch back to rising edge */ waiting_fall = 0; FTM0->CONTROLS[2].CnSC = (FTM0->CONTROLS[2].CnSC & ~(FTM_CnSC_ELSA_MASK | FTM_CnSC_ELSB_MASK)) | (FTM_CnSC_ELSA_MASK); if (got_first_rise && (fall_curr >= rise_curr)) { high_cnt = (uint32_t)(fall_curr - rise_curr); if ((period_cnt != 0) && (pwm_freq_hz != 0)) { // duty_pct = ((float)high_cnt * 100.0f) / (float)period_cnt; new_sample = 1; } } } /* Redundant flag clear */ // FTM0->STATUS = (1u << 2); //} } Re: s32k1:How to measure PWM frequency and duty cycle on the same FTM channel 当社製品にご興味をお持ちいただき、また当社コミュニティに貢献していただき、ありがとうございます。 RTD の最新バージョンに更新すると、最近のバグ修正とパフォーマンスの向上のメリットが得られます。現在使用しているバージョンは数リリース前のものなので、安定性と互換性に影響する可能性があります。RTD を最新の状態に保つことで、最新の機能や拡張機能にアクセスできるようになります。 S32K1xx シリーズを使用した開発では、最新の S32DS および RTD バージョンを使用することをお勧めします。 • S32 Design Studio 3.6.4 – Windows/Linux • S32K1_S32M24X リアルタイム・ドライバ AUTOSAR R21-11 バージョン 3.0.0 IDEをダウンロードするには、 S32プラットフォーム用のS32 Design Studioページにアクセスしてください-> ダウンロード -> S32 Design Studio 3.6.4 – Windows/Linux RTD をダウンロードするには、 S32K1ページ-> デザイン リソース -> ソフトウェア -> S32K1 用リアルタイム・ドライバ -> オートモーティブ SW - S32K1_S32M24x - Cortex-M 用リアルタイム・ドライバにアクセスしてください。 各SWへのインストールフロー/詳細についてはリリースノートをご確認ください。 … SW をインストールしたら、デューティ サイクルと周期の測定については添付の例を参照できます。 ftm0_ch0 (PTD15) を PWM として、ftm1_ch2 (PTC14) を ICU として設定します。SO、テストのために接続してください。さらに、PTD16 はデバッグ目的のためだけに、測定開始前と測定停止後に切り替わります。 式タブで結果を確認します: デューティサイクルの例 期間の例 次の RTD を使用して例が構築およびテストされました。 - S32K1_S32M24X リアルタイム・ドライバ AUTOSAR R21-11 バージョン 3.0.0 この情報が役に立つことを願います。リアルタイム・ドライバ (RTD) の使用に関してさらに質問がある場合は、お気軽にお問い合わせください。
View full article
I.MX 93 FRDMがhello_worldでクラッシュする こんにちは、 ダウンロードしたバージョン: https://github.com/nxp-real-time-edge-sw/heterogeneous-multicore/tree/main(v2.9-202407) 起動すると、数秒間動作しますが、その後常に同じ場所でクラッシュします (これにより、u-boot がリセットされます)。スクリーンショットを参照してください。いつも同じ場所でクラッシュするのは普通ですか? よろしくお願いします、 Re: I.MX 93 FRDM crashes on hello_world 再、 プレビルドはこちら: (Linux 6.12.34_2.1.0): https://www.nxp.com/design/design-center/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applications-processors:IMXLINUX FRDM-IMX93 をフラッシュするには UUU を使用します。 Linux の起動を停止して u-boot に入り、次のコマンドを入力します。 ファットロード mmc 1:0 0xD0000000 hello_world_ca55_RTOS0_UART2.bin dcache フラッシュ; icache フラッシュ; CPU リリース 1 0xD0000000 ファットロード mmc 1:0 0xD1000000 hello_world_ca55_RTOS1_UART1.bin dcache フラッシュ; icache フラッシュ; 0xD1000000 に移動 それでは正常に動作しています!!! そこで、FRDM-IMX93 用の私のツールチェーンを使用して u-boot をビルドする方法と、それを UUU でフラッシュするスクリプトを調べてもらえますか? よろしくお願いいたします。 Re: I.MX 93 FRDM crashes on hello_world こんにちは、 まず、今日は 異種マルチコア v3.2-202507 すると結果は同じになります。 hello_world の例のビルドを作成する手順は次のとおりです。 ./CMSIS_5-Real-Time-Edge-v3.2-202507.zip を解凍します。 ./FreeRTOS-Kernel-Real-Time-Edge-v3.2-202507.zip を解凍します。 ./heterogeneous-multicore-Real-Time-Edge-v3.2-202507.zip を解凍します。 ./lwip-Real-Time-Edge-v3.2-202507.zip を解凍します。 ./mcuxsdk-middleware-multicore-Real-Time-Edge-v3.2-202507.zip を解凍します。 ./mcux-sdk-Real-Time-Edge-v3.2-202507.zip を解凍します。 ./rpmsg-lite-Real-Time-Edge-v3.2-202507.zip を解凍します。 ./soem-Real-Time-Edge-v3.2-202507.zip を解凍します。 mv ./FreeRTOS-Kernel-Real-Time-Edge-v3.2-202507 ./FreeRTOS-Kernel mv ./heterogeneous-multicore-Real-Time-Edge-v3.2-202507 ./heterogeneous-multicore mv ./mcux-sdk-リアルタイムエッジ-v3.2-202507 ./mcux-sdk mv ./CMSIS_5-リアルタイムエッジ-v3.2-202507 ./mcux-sdk/CMSIS mkdir ミドルウェア mv ./mcuxsdk-middleware-multicore-リアルタイムエッジ-v3.2-202507 ./middleware/multicore mv ./lwip-リアルタイムエッジ-v3.2-202507 ./middleware/lwip mv ./rpmsg-lite-リアルタイムエッジ-v3.2-202507 ./middleware/multicore/rpmsg_lite mv ./soem-Real-Time-Edge-v3.2-202507 ./middleware/soem エラーがない場合は echo でインストールが成功しました。SO、インストールを試みます… コアのエコー: cd ./異種マルチコア ARMGCC_DIR=~/toolchains/arm-gnu-toolchain-12.2.rel1-x86_64-aarch64-none-elf/ をエクスポートします。 ./build_apps.sh a-core mcimx93evk_ca55 フリートス m コアのエコー: ARMGCC_DIR=~/toolchains/arm-gnu-toolchain-12.2.rel1-x86_64-arm-none-eabi/ をエクスポートします。 ./build_apps.sh m-core mcimx93evk_cm33 フリートス エコー、掃除しましょう…: ./build_apps.sh クリーン エコー終了 SO、よろしければリンクをご覧ください: https://github.com/nxp-real-time-edge-sw/heterogeneous-multicore/releases/tag/Real-Time-Edge-v3.2-202507 https://github.com/nxp-mcuxpresso/mcux-sdk/releases/tag/Real-Time-Edge-v3.2-202507 https://github.com/nxp-mcuxpresso/FreeRTOS-Kernel/releases/tag/Real-Time-Edge-v3.2-202507 https://github.com/nxp-mcuxpresso/lwip/releases/tag/Real-Time-Edge-v3.2-202507 https://github.com/nxp-mcuxpresso/mcuxsdk-middleware-multicore/releases/tag/Real-Time-Edge-v3.2-202507 https://github.com/nxp-mcuxpresso/rpmsg-lite/releases/tag/Real-Time-Edge-v3.2-202507 https://github.com/nxp-real-time-edge-sw/soem/releases/tag/Real-Time-Edge-v3.2-202507 https://github.com/nxp-mcuxpresso/CMSIS_5/releases/tag/Real-Time-Edge-v3.2-202507 この場合のビルドは問題ありません: .binをアップロードするにはimx93 では SD カードを使用し、コンピューターから直接イメージを書き込み、SD を評価ボードに接続します。 SO、ここで私の画像を見ることができます: 次に、表示されている U-Boot について説明します。 リポジトリはこちらです: https://github.com/u-boot/u-boot/releases/tag/v2025.10 次にこれもダウンロードします: https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.21.bin https://github.com/nxp-imx/imx-atf/tree/lf_v2.8 https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-sentinel-0.11.bin このドキュメントを使用して続行します: https://docs.u-boot.org/en/latest/board/nxp/imx93_frdm.html しかし、ここでは、次の 2 つのコマンドにツールチェーンを使用します。 PLAT=imx93 CROSS_COMPILE=/ホーム/tcouille/toolchains/Arm-gnu-toolchain-12.2.rel1-x86_64-aarch64-none-elf/bin/aarch64-none-elf- bl31 を作成します。 そして : $ export CROSS_COMPILE=/home/tcouille/toolchains/arm-gnu-toolchain-12.2.rel1-x86_64-aarch64-none-elf/bin/aarch64-none-elf- $ make imx93_frdm_defconfig $ make 次に、UUU を使用します: : https://github.com/nxp-imx/mfgtools/releases/tag/uuu_1.5.201 次のように入力します: ./uuu -v -b emmc_all .\flash.bin このコマンドを入力して、2 つの cortex-A で 2 つの hello_world サンプルを起動します。 ファットロード mmc 1:0 0xD0000000 hello_world_ca55_RTOS0_UART2.bin dcache フラッシュ; icache フラッシュ; CPU リリース 1 0xD0000000 ファットロード mmc 1:0 0xD1000000 hello_world_ca55_RTOS1_UART1.bin dcache フラッシュ; icache フラッシュ; 0xD1000000 に移動 そして数秒後、u-boot がリセットされます... よろしくお願いいたします。 Re: I.MX 93 FRDM crashes on hello_world こんにちは、 このボードのスクリプトをCANますか: mcimx93evk_ca55 ここで再現を試みるテスト対象の uboot のバージョン。 敬具
View full article
S32DS 3.6.4 can't found RTD Hello! Recently, I installed S32DS 3.6.4 & RTD 6.0.0. However, when I attempt to create a new app project, I am unable to select RTD. How can I fix it? Re: S32DS 3.6.4 can't found RTD Thank you for your interest in our products and for contributing to our community. According to RTD 6.0.0 Release Notes: So when you create a new project, please make sure you select NXP GCC 10.2.0 in the following step: I hope this information is helpful.
View full article
OPWMCB Mode in eMIOS – Lead vs. Trail Edge Hi I’ve been working with eMIOS PWM IP in OPWMCB mode and wanted to understand the practical difference between these two configurations: EMIOS_PWM_IP_MODE_OPWMCB_TRAIL_EDGE EMIOS_PWM_IP_MODE_OPWMCB_LEAD_EDGE To investigate, I created a simple test project and observed the output signals. Surprisingly, I couldn’t see any noticeable difference between the two modes on the waveform. Here’s my setup: Time base: Channel 23 Channels: CH1 and CH2 generating center-aligned PWM The same time base also triggers the ADC at the middle of the period for current sampling. My questions: What is the actual difference between these two OPWMCB modes? Under what conditions does this difference become visible? For my design (center-aligned PWM with ADC sampling at mid-period), which mode is best and why? Looking forward to your insights and explanations! Re: OPWMCB Mode in eMIOS – Lead vs. Trail Edge Thank you for your interest in our products and for contributing to our community. Regarding your questions: 1&2 .- The main difference is noted with deadtime insertion. The trail edge mode increasing high time. Alternatively, by selecting the lead edge mode, deadtime insertion decrease high time. For more details, please refer to 6.4. OPWMCB example project section of S32M27x/S32K3 – eMIOS Usage. On the other hand, it could also affect the flag event (I don't remember having tried it.), and therefore the interrupt and triggering support. For reference consult 6.6. PWM design considerations section. And please test it on your own taking as reference the 6.1 OPWMB example project. 3.- Such topic is addressed in https://community.nxp.com/t5/S32K/Design-Strategy-for-Complementary-PWM-Generation-for-motor/td-p/2170567 I hope this information is helpful.
View full article
项目无法作为 IAR EW 导出 我按照"HOWTO: Export S32DS Project to IAR EW (S32K14x/S32K11x)" 中的说明操作,但在"Export" 中找不到"Project Info Export Wizard" 选项。 Re: The project cannot be exported as IAR EW 你好、 这一功能在配备处理器专家的旧版 S32DS 中也有。我对 IAR Workbench 不熟悉,但我想您可以将项目作为 ProjectInfo.xml 导入 WB IDE。
View full article
How Do You Ensure Reliability and Redundancy in Large Enterprise Storage Environments? Hello everyone, As our enterprise storage needs grow, maintaining high reliability, redundancy, and performance is more important than ever. We’re actively exploring best practices to ensure our enterprise storage infrastructure remains both resilient and efficient, with minimal risk of data loss or downtime. I’d love to hear from others managing large-scale storage environments. What strategies and technologies have you found to be the most effective in ensuring reliability and redundancy? Here are a few specific areas I’m interested in: RAID configurations: Which RAID level works best for large environments and why? Data replication: How do you ensure fast and reliable replication? Backup strategies: How often do you back up critical data, and do you leverage cloud or offsite solutions? Disaster recovery: Tips for designing a robust disaster recovery plan? Fault tolerance: How do you effectively manage hardware failure or network issues? Automation: How does automation play a role in improving reliability? Looking forward to hearing your thoughts and experiences!
View full article
RT1176 custom board no access to LPUART1 or JTAG/SWD ... I have a custom board, that is very close to the EVKB board, except no USB or MIPI. I cannot seem to access serial downloader mode to use the Secure Provisioning Tool via UART, nor obtain any access via JTAG/SWD for programming. The chip seems to be working, on that there is an ON/OFF button that when held for 5 seconds, or whatever the length is, powers the chip off, and then pressing the button again powers it on. I've double-triple checked everything, and it nearly matches the EVKB board, however one things I noticed that was not done was to connect VDD_MIPI_* or VDD_USB_* to anything, again, as the board doesn't use MIPI or USB. Could not connecting those power pins be causing the problems I'm having with accessing UART or JTAG/SWD? Re: RT1176 custom board no access to LPUART1 or JTAG/SWD ... The image I posted is from that red circled area, and I am using the exact components, values as detailed in the EVKB there. Re: RT1176 custom board no access to LPUART1 or JTAG/SWD ... Hi @application_ninja , In MIMXRT1170-EVKB board  , RC delay time is 30000*0.00000022=0.0066s  =6.6ms. Please check your board, if your board use the same RC delay circuit, Please use an oscilloscope to measure the signal circled in red in the image. Best Regards Re: RT1176 custom board no access to LPUART1 or JTAG/SWD ... As an FYI, this is what my delay circuit looks like...  Blue being DCDC_IN and yellow being DCDC_PSWITCH. Re: RT1176 custom board no access to LPUART1 or JTAG/SWD ... Not sure what you mean by: "VDD_SNVS_DIG is internal LDO output.", so is 0v output correct for this, or not? My custom board is nearly identical to the EVKB except for not using MIPI/USB/AUDIO. I've gone over things many times, just cannot figure out why I cannot get it into serial downloader mode nor use JTAG/SWD to program it. Re: RT1176 custom board no access to LPUART1 or JTAG/SWD ... Hi @application_ninja , VDD_SNVS_DIG is  internal LDO output. 1: I suggest you can compare your customed board with MIMXRT1170-EVKB board, check the difference. 2: If you have MIMXRT1170-EVKB board, did you try modify the MIMXRT1170-EVKB board same as your customed board? Best Regards Re: RT1176 custom board no access to LPUART1 or JTAG/SWD ... Apparently VDD_SNVS_DIG is low, and controlled by software, so my design is correct? https://www.nxp.com/docs/en/data-sheet/IMXRT1170BCEC.pdf "The power rail VDD_SNVS_DIG is controlled by software." Re: RT1176 custom board no access to LPUART1 or JTAG/SWD ... OK, so it's looking like I'm not getting anything on VDD_SNVS_DIG, not sure why, but any thoughts as to what could cause this off hand? Re: RT1176 custom board no access to LPUART1 or JTAG/SWD ... That was going to be my next steps, however quite difficult to test / probe, thus my first questions to see if not connecting those VDD_MIPI_* and VDD_USB_* could be the cause, since everything else seems to power up correctly and I get correct voltages everywhere. Thank you. Re: RT1176 custom board no access to LPUART1 or JTAG/SWD ... Hi @application_ninja , Could you use an oscilloscope to check if the power-up sequence is normal, especially the RC delay circuit?  Best Regards MayLiu Re: RT1176 custom board no access to LPUART1 or JTAG/SWD ... Yes, thank you, I have verified all that, I have a positive voltage on BOOT_CFG_0, and have positive voltage on the RXD LPUART1 pin coming from the chip, so everything appears as though it should be working, but I get nothing from the secure provisioning tool, nor from the sdphost tool. All my power rails look good, proper voltages, my ONOFF button works, reset button, just really stumped as to why I cannot program / read the chip. Re: RT1176 custom board no access to LPUART1 or JTAG/SWD ... Hi @application_ninja , Thanks for your updated information. First, I suggest you follow the HDUG recommended design for your customed hardware development board. Second, please check the Boot Mode pins settings of your custom development board. If you want use the Secure Provisioning Tool via UART, you need set as serial downloader mode. Third,  Only LPUART1 support serial downloader mode. Wish it helps you. Best Regards MayLiu Re: RT1176 custom board no access to LPUART1 or JTAG/SWD ... Yes, I am aware of that document, but that does not answer my question, and as you have confirmed what the document states, those are "recommendations", they are not listed as "requirements" for proper board operation. So going by the way you have stated and the documentation reads, as "recommended" they do not have to be performed for proper board  / chip operation. Which leads back to my question, could not doing these "recommendations" cause the problems I am seeing? Re: RT1176 custom board no access to LPUART1 or JTAG/SWD ... Hi @application_ninja , Thank you so much for your interest in our products and for using our community. In MIMXRT1170HDUG, it describe that Unused pins recommendation  https://www.nxp.com/webapp/Download?colCode=MIMXRT1170HDUG Please follow the  Recommended connections for unused analog interfaces. Wish it helps you. If you still have question about it, please kindly let me know.  Best Regards MayLiu
View full article
SE050E Ed25519 (EdDSA) キーのインポートと署名は成功しましたが、検証に失敗しました 親愛なるサポート、 顧客は、SE05X モジュールを使用して Ed25519 (EdDSA) キーのインポートおよび署名検証テストを実行したときに次の問題が発生したため、次の確認を求めています。 1. Ed25519 の署名/検証に使用する正しいアルゴリズム ID (0xA0 または 0xA3) は何ですか? 2. 署名のバイト順序(逆にする必要がありますか)? 3. 署名 TLV とタグ番号の順序は解析に影響しますか? 4. 「6A80」エラー コードの正確な定義は何ですか? 5. メッセージ入力は生データにすべきか、ハッシュにすべきか? 詳細なテスト結果は次のとおりです。 ### 🧾 I. テスト環境 * マイコン: **STM32L476RET6** ツールチェーン: **STM32CubeIDE** * インターフェース: **I²C** * SE05Xファームウェア: **v1.8.0** * ローカル比較ライブラリ: **libsodium (Ed25519-pure)** --- ### 🔍 II. テスト結果の要約 | 操作 | APDU コマンド | SW | 結果 | | ---- | ----------------- | ---- | -- | | 秘密鍵のインポート | WRITE_ED25519_KEY | 9000 | 成功 | | 公開キーの読み取り | READ_ED25519_PUB | 9000 | 成功 | | 署名 | ED25519_SIGN | 9000 | 成功 | | 検証 | ED25519_VERIFY | 6A80 | 失敗 | ローカル署名検証 | libsodium verify | PASS | 成功 | ### 🧩 I. 問題の概要 顧客は、STM32L476 プラットフォーム上の APDU コマンドを使用して SE05X と通信します。 現在、**Ed25519 キーのインポートと署名操作はどちらも成功しています (SW=9000)** が、**Ed25519 署名検証コマンドは SW=6A80 を返します**。 ログによると: * インポート時の SW=9000 * 署名時のSW=9000 * 検証中のSW=6A80 ローカル ライブラリ (libsodium) は、同じメッセージと署名を使用して成功を確認します。 したがって、顧客は問題が**アルゴリズム ID、署名バイト順序、または TLV 形式の順序**にあると疑っています。 --- ### 🧠 II. メーカーの確認が必要な重要な質問 #### **1️⃣ Ed25519アルゴリズムIDの使用 Ed25519 のアルゴリズム ID に使用する値を確認してください。 * ドキュメントでは `0xA0` (Ed25519-PURE) と説明されています。 顧客の現在のコードは `0xA3` (Ed25519ph/ctx) を使用します。 SE05X 署名検証は、アルゴリズム ID の不一致により 6A80 を返しますか? ```c // 現在使用中 uint8_t アルゴ = 0xA3; // Ed25519 アルゴリズム ID tlv_put(ペイロード、sizeof(ペイロード)、&poff、TAG_2、&algo、1); 「」 --- #### **2️⃣ SE05X 署名出力ではバイト順序の反転が必要ですか? SE05X によって返される署名は R||S (64 バイト) です。 R と S の両方でバイト反転が必要かどうかを確認してください。 顧客のテストにより次のことが明らかになりました: * **反転なし** → SE05X 検証失敗 (6A80) * **取り消し** → ローカルビザの検証は成功しましたが、SE05Xビザの検証は依然として失敗しました。 ```c // 現在の処理ロジック extract_sig64_from_rapdu(rapdu、rlen、sig64); 逆バイト(sig64, 32); 逆バイト(sig64 + 32, 32); memcpy(署名, sig64, 64); 「」 顧客は、SE05X の Ed25519 署名を **そのまま** 使用すべきかどうかを確認したいと考えています。 --- #### **3️⃣ VERIFY APDU の TLV 順序** Ed25519 検証の TLV パラメータの順序を確認してください。 顧客は現在次のシーケンスを使用しています。 「」 TAG_1(キーID) TAG_2(アルゴリズム) TAG_4(署名) TAG_3(メッセージ) 「」 ただし、一部の文書では次のように記載されています。 「」 TAG_1(キーID) TAG_2(アルゴリズム) TAG_5(署名) TAG_3(メッセージ) 「」 シーケンスまたはタグ ID が正しくない場合、エラー 6A80 が発生しますか? ```c tlv_put(ペイロード、sizeof(ペイロード)、&poff、TAG_1、key_id、4); tlv_put(ペイロード、sizeof(ペイロード)、&poff、TAG_2、&algo、1); tlv_put(ペイロード、sizeof(ペイロード)、&poff、TAG_4、署名、64); tlv_put(ペイロード、sizeof(ペイロード)、&poff、TAG_3、メッセージ、msg_len); 「」 --- #### **4️⃣ SW=6A80**の意味 `SW=6A80` の SE05X の具体的な意味を教えてください。 このエラーは次のことを示していますか? * 署名の不一致(検証失敗)、または * APDU構造/TLV長さ/パラメータエラー? 顧客は、さらなるデバッグのために EdDSA 操作のエラー コードのリストを希望しています。 --- #### **5️⃣ Ed25519 メッセージ入力形式 Ed25519-PURE モードでは、事前ハッシュ (SHA512) データの代わりに **生のメッセージ** を渡す必要がありますか? 現在、顧客は次のように元のメッセージを直接送信しています。 ```c // 現在の署名入力 tlv_put(ペイロード、sizeof(ペイロード)、&poff、TAG_3、msg、msg_len); 「」 SE05X が内部で SHA512 計算を実行しているかどうかを確認してください。 ご返信をお待ちしております! Re: SE050E Ed25519 (EdDSA) Key Import and Signing Success but Verification Fails カン様 上記の方法に従ってテストを行った後、ゲストは不安を感じました。 感谢! Re: SE050E Ed25519 (EdDSA) Key Import and Signing Success but Verification Fails こんにちは@Nancy_LAN 、 弊社のMWは、これらの関数を既に実装したデモ「ex_eddsa」を提供しています。まずはお客様のボードでこのデモをテストし、正しく動作するか確認してから、お客様が作成したコードと比較して違いを確認することができます。「x6a80」は「データフィールドのパラメータが正しくありません」という意味です。 すてきな一日を! カン --------------------------------------------------------------------------------- 注記: - この投稿があなたの質問への回答である場合は、「正解としてマーク」ボタンをクリックしてください。ありがとう! - スレッドは最後の投稿から7週間フォローされます。それ以降の返信は無視されます。 後ほど関連する質問がある場合は、新しいスレッドを開いて、閉じたスレッドを参照してください。 ---------------------------------------------------------------------------------
View full article
Inference Degradation on i.MX95 Neutron NPU Dear NXP Technical Support Team, We are currently developing a pose estimation model using ResNet as the backbone, and are considering deploying it on a product based on the i.MX95 platfo However, we are encountering significant degradation in inference accuracy when running quantized models on the Neutron NPU. Our investigation revealed that even with standard classification models, quantized models that perform correctly on the CPU show degraded results after conversion for NPU execution. This issue also affects ResNet, which we use as our backbone. Through partial NPU assignment testing using neutron-converter, we confirmed that the degradation occurs when layers other than specific Conv2D layers are assigned to the NPU. We would appreciate your insights regarding the following: What could be the cause of the inference degradation? For example, quantization or conversion parameter issues, hardware limitations of the NPU, or bugs in the neutron-converter. Are there any known issues related to this problem? For example, bugs in BSP 6.12.20 or eIQ Toolkit 1.16.0, known limitations when running ResNet models on the NPU, or any other documented issues with the i.MX95 NPU. What countermeasures can we take to mitigate this issue? Development Environment Hardware: i.MX95 EVK BSP Version: 6.12.20_2.0.0(NXP) eIQ Toolkit: 1.16.0 (Windows) Model Conversion Pipeline PyTorch → ONNX: torch.onnx (opset version 15) ONNX → TensorFlow (.pb): PINTO0309/onnx2tf INT8 Quantization: tensorflow.lite.TFLiteConverter (version 2.12.0) NPU Conversion: neutron-converter (version 2.0.2+0X0cebb80a) Inference Results When executing on the NPU, the inference accuracy drops drastically. We tested with quantized models of MobileNetV2 and ResNet18 (from torchvision) using ImageNetV2 (500 samples): model float32 CPU Accuracy (Top1 / Top5) int8 CPU Accuracy (Top1 / Top5) int8 NPU Accuracy (Top1 / Top5) MobileNetV2 70.2% / 89.4% 68.4% / 88.6% 0.2% / 0.8% ResNet18 64.0% / 86.6% 63.6% / 87.4% 0.0% / 0.6% Additional Test We performed partial NPU assignment tests using the --include-operators option in neutron-converter on the quantized ResNet18 model. We observed that assigning layers other than specific Conv2D layers to the NPU leads to inference degradation. case NPU assignment result Accuracy Top1 / Top5 Baseline none (all CPU) ー(baseline) 63.6 / 87.4 % Case 1 all bad 0.0 / 0.6 % Case 2 Conv2D layers which in/out shape is [1×56×56×64] good 64.0 / 87.4 % Case 3 Case 2 + Add layers bad 0.0 / 0.6 % Case 4 Case 2 + other Conv2D layers bad 0.0 / 0.8 % Thank you so much for your support. Best regards, Ryosuke Re: Inference Degradation on i.MX95 Neutron NPU Hello, Please note that the i.MX95 is still in pre-production stage so we cannot offer support to it, please contact your local NXP Sales/NXP FAE for further assistance. Best regards/Saludos, Aldo.
View full article
SJA1110 による IGMP スヌーピング こんにちは、 私は S32G と SJA1110 で bsp43 を実行しており、IGMP スヌーピングを有効にしてマルチキャスト ストリームを動的にルーティングしようとしています。IGMP に関連するいくつかの固有の問題を特定しましたが、解決方法がわかりません。IGMP スヌーピングを無効にすると、マルチキャスト パケットがスイッチに溢れるようになることを確認しました。SO、IGMP スヌーピング オプションが何かを実行しているということです... ただし、これは予期された動作ではありません。 マルチキャストトラフィックは常に、列挙された最も低いアクティブポートに転送されます。 ポート 3 のノードが IGMP 経由のトラフィックを要求し、ポート 4 から出力されるストリームは、ポート 1 がトラフィックを要求したかのように、ポート 1 から出力されます (そのリンクがアクティブな場合)。ポート 1 のリンクがアクティブでない場合、そのリンクがアクティブであればトラフィックはポート 2 に転送されます。 mdbを使用してトラフィックを手動でルーティングすることはできますが、IGMPスヌーピングがこれを自動的に管理することを期待しています。 マルチキャストクエリーを有効にしても、スイッチポートからメンバーシップクエリーが出力されない DSAブリッジインターフェースにはIGMPクエリがありますが、スイッチにコネクテッドされた他のリンクにはIGMPクエリが表示されません。 ブリッジ ポートからの IGMP クエリをトラップし、スイッチ ポートにリダイレクトするための tc ルールを設定する必要があるのではないかと思います。 これが Linux 構成の問題なのか、スイッチ ハードウェアの制限なのかはわかりません。 ご提案があればよろしくお願いします。
View full article
S32 Design Studio v3.6.x および LQFP パッケージ用の S32K39x ピンツール こんにちは、 既存の例をインポートすることと、S32K396 用の RTD 6 QLP01 を使用して新しいアプリケーション プロジェクトを生成することの両方を試しました。 ピン ツールのグラフィック表示は BGA パッケージでは見栄えが良いのですが、パッケージを 176LQFP に変更すると、LQFP パッケージの上部にピンがなくなります (すべて左、右、下部にあります)。 これは対処が予定されている問題ですか、それとも私のインストールの問題ですか? ありがとうございます! Re: S32 Design Studio v3.6.x and S32K39x Pins tool for LQFP package バグレポートが S32 Design Studio チームに送信されました。彼らはこのバグを確認し、FUTUREリリースで修正する予定です。 Re: S32 Design Studio v3.6.x and S32K39x Pins tool for LQFP package ハイ この問題を報告していただきありがとうございます。この問題は S32DS チームに報告済みです。返答が届き次第お知らせします。 現在、ピンのポジショニングが正しく表示されていません。S32K396RM (Rev. 4 11 2024).pdf のS32K36_IOMUX.xlsxファイルのS32K396_176lqfp_EPを参照してください。正しいピンのポジショニング。 よろしくお願いします、 ロビン --------------------------------------------------------------------------------- 注記: - この投稿があなたの質問への回答である場合は、「解決策として承認」ボタンをクリックしてください。ありがとう! - Threadは最後の投稿から7週間フォローされます。それ以降の返信は無視されます。 後ほど関連する質問がある場合は、新しいThreadを開いて、閉じたThreadを参照してください。 ---------------------------------------------------------------------------------
View full article
门禁卡 晚上好。我购买了 Mifare Plus X(2K/4K)卡。当我尝试将它们升级到网络安全级别 SL3 时,我收到一条错误消息,提示该卡的网络安全级别为 SL1。要升级到 SL3,我需要在 SL1 卡初始化时设置的 AES 密钥。有可能获得它们吗? Re: Access cards 您好, MIFARE Plus S 状态设置为不再生产。MIFARE Plus产品组合的重点产品是MIFARE Plus EV2。 要获得有关MIFARE Plus S和X的更多支持,请通过代理商网络联系您的当地代理商|恩智浦半导体。 不便之处,敬请原谅。 Eduardo。 Re: Access cards 下午好。保护卡片免受黑客攻击和伪造。它们将用于人员出入控制系统。 我尝试使用 MIFARE Plus S та MIFARE Plus X。 我无法将它们提高到 SL3 网络安全级别。 Re: Access cards 您好, 能否请您说明在项目中使用 MIFARE Plus X 的原因?您申请的目的是什么? 支持 MIFARE Plus X 的资源受到限制,并根据 NDA(保密协议)进行保密。有关此部分的更多信息,请通过代理商网络联系您的本地代理商|恩智浦半导体。 Eduardo。 Re: Access cards 下午好,是的,卡片是个性化的。该制造商只生产使用恩智浦芯片的卡。 制造商没有关于卡片个性化代码的信息。 Re: Access cards 下午好,是的,卡片是个性化的。该制造商只生产使用恩智浦芯片的卡。 制造商没有关于卡片个性化代码的信息。 Re: Access cards 你好@Serhii91 希望你一切顺利。 请确认您使用的是否是已个性化的卡片?如果是这样,请联系卡片制造商/发行商,尝试获得更多有关个人化过程中使用的密钥的信息。 Eduardo。
View full article
S32K35X8EVBとADTJA1101 これらのボードを Sabre コネクタと一緒に起動するのに苦労しています。言い換えが含まれていると思われるこの投稿を見つけました。何をする必要があるのか分かりません。データシートと比較すると、その投稿では選択と混合が行われているようです。 現在、RMII とリセット ピンについて言及しているすべてのピンが Config ツールからマップされています。SMI と通信でき、ID レジスタを確認できました。RMII を使用するために次に何が必要なのかわかりません。また、ツール内でのリファレンス クロックの設定内容や、変更する抵抗リンクについても不明です。何かアドバイスをCANますか? https://community.nxp.com/t5/S32K/S32K3X8EVB-Q289-rework-for-RMII/mp/2023038#M44835
View full article
S32 Design Studio for S32 Platform v.3.5 Activation Code I want to install S32DS version 3.5, but I can't find the activation code, and it says I don't need the activation code to activate it.
View full article
S32 Design Studio for S32 Platform v.3.5 激活码 想安装S32DS3.5版本,找不到激活码,提示不需要激活码激活
View full article
S32Z2 Python script error issue Dear;        The customer uses NXP S32Z2 to design a real-time computing board, and the IDE uses NXP S32DS. 3.6.3. Currently, during debugging, occasional S32Z2 Python script error issues occur, with the specific phenomenon being "failure during execution of Python script", as shown in Figure 1. The relevant error log information is as follows:         540,987 1-list-features 541,001 1^done,features=["frozen-varobjs","pending-breakpoints","thread-info","data-read-memory-byte\ s","breakpoint-notifications","ada-task-info","language-option","info-gdb-mi-command","undefined-com\ mand-error-code","exec-run-start-option","data-disassemble-a-option","simple-values-ref-types","pyth\ on"] 541,002 (gdb) 541,142 2-list-thread-groups 541,142 3-gdb-version 541,150 2^done,groups=[{id="i1",type="process"}] 541,150 (gdb) 541,151 ~"GNU gdb (GDB src=ga98a3c7ad40 bld=ga98a3c7ad40 ) 15.1\n" 541,151 ~"Copyright (C) 2024 Free Software Foundation, Inc.\n" 541,151 ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is fre\ e software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitt\ ed by law." 541,151 ~"\nType \"show copying\" and \"show warranty\" for details.\n" 541,151 ~"This GDB was configured as \"--host=x86_64-w64-mingw32 --target=arm-none-eabi\".\n" 541,151 ~"Type \"show configuration\" for configuration details.\n" 541,151 ~"For bug reporting instructions, please see:\n" 541,151 ~"<https://www.gnu.org/software/gdb/bugs/>.\n" 541,151 ~"Find the GDB manual and other documentation resources online at:\n <" 541,151 ~"http://www.gnu.org/software/gdb/documentation/>.\n\n" 541,151 ~"For help, type \"help\".\n" 541,151 ~"Type \"apropos word\" to search for commands related to \"word\".\n" 541,151 3^done 541,151 (gdb) 541,151 4-environment-cd C:/Users/developer/Desktop/MyWorkspace/modifiedPlatform/100713_PLT_COM_S32Z\ 280_R52_Core 541,166 4^done 541,166 (gdb) 541,166 5-gdb-set breakpoint pending on 541,166 5^done 541,167 (gdb) 541,167 6-gdb-set detach-on-fork on 541,167 6^done 541,167 (gdb) 541,167 7-enable-pretty-printing 541,167 7^done 541,167 (gdb) 541,167 8-gdb-set python print-stack none 541,167 8^done 541,167 (gdb) 541,168 9-gdb-set print object on 541,168 9^done 541,168 (gdb) 541,168 10-gdb-set print sevenbit-strings on 541,169 10^done 541,169 (gdb) 541,169 11-gdb-set host-charset UTF-8 541,169 11^done 541,169 (gdb) 541,169 12-gdb-set target-charset GBK 541,170 12^done 541,170 (gdb) 541,170 13-gdb-set target-wide-charset UTF-16 541,170 13^done 541,170 (gdb) 541,170 14-gdb-set dprintf-style call 541,170 14^done 541,170 (gdb) 541,170 15source .gdbinit 541,171 &"source .gdbinit\n" 541,171 &".gdbinit: No such file or directory.\n" 541,171 15^error,msg=".gdbinit: No such file or directory." 541,171 (gdb) 541,171 16-gdb-set mi-async off 541,171 16^done 541,171 (gdb) 541,172 17-gdb-set record full stop-at-limit off 541,173 17^done 541,173 (gdb) 541,173 18-gdb-set auto-solib-add on 541,173 18^done 541,173 (gdb) 541,174 19-gdb-set substitute-path C:\\Users\\tgp\\Documents\\Platform_SW_git\\COM_Lane\\COM_PFCC_S3\ 2Z280_Platform_SW_Core_R52\\Debug_RAM/../Project_Settings/Startup_Code/ C:\\Users\\developer\\Deskto\ p\\MyWorkspace\\modifiedPlatform\\100713_PLT_COM_S32Z280_R52_Core\\Project_Settings\\Startup_Code\\ 541,174 20-gdb-set substitute-path C:\\Users\\tgp\\Documents\\Platform_SW_git\\COM_Lane\\COM_PFCC_S3\ 2Z280_Platform_SW_Core_R52\\Debug_RAM/../include/ C:\\Users\\developer\\Desktop\\MyWorkspace\\modifi\ edPlatform\\100713_PLT_COM_S32Z280_R52_Core\\include\\ 541,204 21-gdb-set substitute-path C:\\Users\\tgp\\Documents\\Platform_SW_git\\COM_Lane\\COM_PFCC_S3\ 541,204 19^done 541,204 (gdb) 2Z280_Platform_SW_Core_R52\\Debug_RAM/../src/ C:\\Users\\developer\\Desktop\\MyWorkspace\\modifiedPl\ atform\\100713_PLT_COM_S32Z280_R52_Core\\src\\ 541,205 20^done 541,205 (gdb) 541,206 21^done 541,206 (gdb) 541,207 22py _IS_LOGGING_ENABLED = True 541,207 23py _REMOTE_TIMEOUT = 30 541,207 24py _CORE_NAME = "S32Z280_R52_0_0" 541,207 25py _SOC_NAME = "S32Z280" 541,207 26py _GDB_SERVER_PORT = 45000 541,207 27py _JTAG_SPEED = 16000 541,207 28py _RESET_DELAY = 0 541,207 29py _PROBE_IP = "s32dbg:usb#00:04:9f:08:bc:b1" 541,207 30py _CCS_IP = "127.0.0.1" 541,207 31py _CCS_PORT = 41475 541,207 32source C:\NXP\S32DS.3.6.3\eclipse\../S32DS/tools/S32Debugger/Debugger/scripts/s32z2e2/s32z\ 2e2_attach.py 541,234 &"py _IS_LOGGING_ENABLED = True\n" 541,234 22^done 541,234 (gdb) 541,235 &"py _REMOTE_TIMEOUT = 30\n" 541,235 23^done 541,235 (gdb) 541,235 &"py _CORE_NAME = \"S32Z280_R52_0_0\"\n" 541,235 24^done 541,235 (gdb) 541,235 &"py _SOC_NAME = \"S32Z280\"\n" 541,235 25^done 541,235 (gdb) 541,236 &"py _GDB_SERVER_PORT = 45000\n" 541,236 26^done 541,236 (gdb) 541,236 &"py _JTAG_SPEED = 16000\n" 541,236 27^done 541,236 (gdb) 541,236 &"py _RESET_DELAY = 0\n" 541,236 28^done 541,236 (gdb) 541,237 &"py _PROBE_IP = \"s32dbg:usb#00:04:9f:08:bc:b1\"\n" 541,237 29^done 541,237 (gdb) 541,237 &"py _CCS_IP = \"127.0.0.1\"\n" 541,238 30^done 541,238 (gdb) 541,238 &"py _CCS_PORT = 41475\n" 541,238 31^done 541,238 (gdb) 541,238 &"source C:\\NXP\\S32DS.3.6.3\\eclipse\\../S32DS/tools/S32Debugger/Debugger/scripts/s32z2e2/\ s32z2e2_attach.py\n" 541,300 =cmd-param-changed,param="pagination",value="off" 541,306 32^done 541,306 (gdb) 541,306 33py board_init() 541,306 &"py board_init()\n" 541,307 ~"... board_init() skipped.\n" 541,307 33^done 541,307 (gdb) 541,307 34py core_init() 541,331 &"py core_init()\n" 541,331 ~"Selected CORE=S32Z280_R52_0_0\n" 541,347 ~"Primary session connecting...\n" 541,360 =cmd-param-changed,param="remotetimeout",value="30" 545,535 ~"^Error:Target connection failed. Please re-check the settings." 545,535 ~"Processor: S32S250" 545,535 ~"Probe: S32 Debugger TAP (usb#00:04:9f:08:bc:b1)" 545,535 ~"[CCS: Bus error]" 545,535 ~"//" 545,535 ~"Additional error details:" 545,535 ~"[GTA: target access error]" 545,535 ~":GtaTaErr(1303)" 545,535 ~" File \" \", line 1, in " 545,535 ~" File \"C:\\NXP\\S32DS.3.6.3\\eclipse\\../S32DS/tools/S32Debugger/Debugger/scripts/s32z2e\ 2/s32z2e2_attach.py\", line 80, in core_init" 545,536 ~" connect()" 545,536 ~" File \"C:\\NXP\\S32DS.3.6.3\\eclipse\\../S32DS/tools/S32Debugger/Debugger/scripts/s32z2e\ 2/s32z2e2_attach.py\", line 52, in connect" 545,536 ~" gta_lib.establish_connection(" 545,536 ~" File \"C:\\NXP\\S32DS.3.6.3\\S32DS\\tools\\S32Debugger\\Debugger\\scripts\\s32z2e2//../u\ tils\\gta_lib.py\", line 89, in establish_connection" 545,536 ~" return connect(" 545,536 ~" File \"C:\\NXP\\S32DS.3.6.3\\S32DS\\tools\\S32Debugger\\Debugger\\scripts\\s32z2e2//../u\ tils\\errors.py\", line 275, in wrapper" 545,537 ~" v = func(*args, **kwargs)" 545,537 ~" File \"C:\\NXP\\S32DS.3.6.3\\S32DS\\tools\\S32Debugger\\Debugger\\scripts\\s32z2e2//../u\ tils\\gta_lib.py\", line 152, in connect" 545,537 ~" gdb_exec(\"monitor ctx connect\", from_tty=True, errcode=ErrorCode.ConnectError).unwra\ p()" 545,537 ~" File \"C:\\NXP\\S32DS.3.6.3\\S32DS\\tools\\S32Debugger\\Debugger\\scripts\\s32z2e2//../u\ tils\\mem_reg_utils.py\", line 65, in wrapper" 545,538 ~" result = Result(Error(value, str(error_msg)))"      The red part shows an error in the debugging tool link. Is this Python script a configuration issue or a problem with the GDB tool? Please help analyze it. If there is a configuration error, is there a script file updated with Python? Thank you! Re: S32Z2 Python script error issue Hi Chenyin, When my program stalls, I try to connect to the target board via the Probe to observe the error context. However, I often encounter connection errors #1303 or #101. What do these errors (1303 and 101) mean about the processor's state? Restarting the target device might resolve the Probe connection issue, but it also destroys the error context. This is why I want to understand the reason of error #1303 and #101. thanks for any help!
View full article
CAN FD 8Mbps 在评估板S32K3X4EVB-T172上, 当 CAN FD 传输速度从 4 Mbps 提高到 5 或 8Mbps 时,数据相位波形输出停止。我想请教如何解决这个问题。 数据传输在 500 kbps 至 4 Mbps 范围内正常运行。 仲裁阶段为 1 Mbps,有效载荷为 64 字节。 Re: CAN FD 8Mbps 谢谢您的答复。我将把 CAN 收发器换成支持 8Mbps 的,然后再试一次。 Re: CAN FD 8Mbps 你好@番茄1 S32K3X4EVB-T172 中使用了 TJA1443,我可以看到 TJA1443 的速度受限。 这可能就是 8Mbps 无法成功运行的原因。
View full article
sja1110 100base-tx UDP 失敗 こんにちは: 1.flash_image.bin->sja1110-uc.binをダウンロードします そして switchcore_0_Config.hex -> sja1110-switch.bin (hex から bin) switch_config_s32g_vnp_rdb デモ プロジェクトからボードへの転送が成功しました。 2. その後、100base-tx (192.168.0.200) に正常に ping を実行できます。 3. しかし、sja1110 ECT ツールを 100base-tx に接続することはできません。また、100base-T1 にも接続できません。 アドバイスをお願いします、よろしくお願いします!
View full article
MIMXRT1042 XJM5B lpuart 引脚不工作 大家好 我正在使用 MIMXRT1042 XJM5B EVK 和 LPUART1。LPUART1 引脚连接至 J1(微型 USB 端口)。我可以通过 USB 连接在终端上成功发送和接收数据。 但是,当我移除跳线 J11 和 J13(将 LPUART1 RX 和 TX 线路连接到 USB 接口)以使用外部 TTL 转 USB 变流器时,我只能在调试时在终端上接收数据。一旦我停止调试并 RESET 板,UART 将不再回显我发送的数据。 我观察到 LPUART4 也有同样的行为。我启用了内部上拉电阻(22 kΩ),但仍无法正常工作。当我在 RX 和 TX 线路上添加外部上拉时,UART 通信正常工作,我可以在终端上看到回波数据。 是否有其他人遇到过这个问题,或者能否说明为什么只有在调试时才会出现这种情况? Re: MIMXRT1042 XJM5B lpuart pin not working 感谢您的回复。 我在 LPUART4 上使用"evkmimxrt1040_lpuart_edma_rb_transfer" SDK 示例,在 LPUART1 上也看到了相同的行为。 Re: MIMXRT1042 XJM5B lpuart pin not working 感谢您提供的最新信息。 1: 请使用示波器检查 UART TX 和 RX 信号,确认波形是否正常。并验证 UART 波特率,请确保没有明显偏差。 2: 出现问题时,请打印 UART 错误日志,并检查设置了哪些 LPUART 错误标志。请提供详细信息,如具体的错误标记。 3: 您使用的是哪个 SDK 演示? 顺祝商祺! Re: MIMXRT1042 XJM5B lpuart pin not working 谢谢您的答复、 我担心的是,当我调试 LPUART4 代码时,即使没有外部上拉,TX 和 RX 上的数据也能正常工作。但是,在退出调试模式并正常闪烁代码后,接收和传输的数据会损坏。 Re: MIMXRT1042 XJM5B lpuart pin not working 嗨,@RajPadmani、 非常感谢您关注我们的产品并使用我们的社区。 关于您的问题,我查看了 MIMXRT1040-EVK 的原理图、 在 NTS0102 的结构图(图 11)中,我们可以看到一个 10 kΩ 电阻器。 如果 UART 电缆很长或存在明显的外部干扰,建议在 RX 线路上添加一个外部上拉电阻,以确保信号稳定性并避免浮空线路引起的通信问题。 希望它能帮到你。 如果您还有疑问,请告诉我。 敬上 MayLiu
View full article
DDR training failed in S32DS3.5 update14 Hello, expert Customer reported DDR training failed S32DS3.5 update14, but this system worked before and there is no significant change in the HW. The PHY Init seems to only pass around 50% of the time while the Diag Write and Operational tests fail 100% of the time. I have checked the device information which customer filled, no error found. Would you please have a look at the attached screenshots/logs and provide suggestions on what might be wrong? S32_CONFIG_TOOL S32DS Re: DDR training failed in S32DS3.5 update14 Hi Yi, Could you please provide additional information in order to investigate this further. You mentioned - "no significant change in the HW", is there any change? Are they using the exact same board & DRAM as before? What is the software setup customer is using now? (S32DS 3.5.14 + which RTD version) What are the versions in the working setup? (S32DS & RTD) DRAM part name and device configuration in DDR View, to double check the configuration Also, it would help to see the training logs. Please set Log Level to Detailed Debug in DDR View, run the training and provide the content in Logs View, for both passing and failing cases. Thank you, Maria Re: DDR training failed in S32DS3.5 update14 Hello, Maria After some investigation, found that customer had a corrupted file that was mishandling the PMIC watchdog. This was interfering with the DDR tool causing the observed failures. As soon as he replaced the corrupted file, everything works as expected. Thanks for your support, this ticket can be closed.
View full article