Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
Problem with MCUXpresso for VSCode SWO Console output Hi! Setup MCUXpresso for VSCode Board KW47-LOC Project kw47loc_hello_world_swo_cm33_core0 LinkServer 25.6.131 or 26.3.123 Description I want to test the SWO capabilities so it can be used with my custom board. On MCUXpresso IDE, it's working well, but on MCUXpresso for VSCode, I have the issue where the SWO console will stop displaying serial output after ~30s. This is really constant. Steps to reproduce - Start a debugging session with the board and project - Halt on main, then press continue - Pause the execution, then configure SWO clock via the Analysis window - Run SWO ITM via the Probe window - Select MCUXpresso SWO console via Output, then resume the execution - Serial output start displaying, then after ~30s it hangs Thank you for your time!
View full article
Error when runnning sample with SDcard in MIMRT700? I got this error when running SDCard sample in SDK for MIMRT700. Currently, I did not format my card. I investigated that we do not need to format card before running. What should I do to solve this problem? Re: Error when runnning sample with SDcard in MIMRT700? @Habib_MS  Thank you for your response. If I want to format Sdcard on PC, which format of SDcard I need to format? I have many data on my sdcard, so I want to format it. I have the other question. Currently, I am using the sample tflm_cifar10_cm33_core0  and I want to use SDcard with the sample tflm_cifar10_cm33_core0  to load data from sdcard. If I set JP65 to 1-2, whether I can run tflm_cifar10_cm33_core0? Re: Error when runnning sample with SDcard in MIMRT700? Hello @nnxxpp, I tested the SDK v26.06 example "mimxrt700evk_sdcard_fatfs_cm33_core0" and it runs correctly on my side, regardless of whether the SD card is formatted. Could you please verify that JP65 is set to 1-2? The default EVK configuration is 2-3. Also, please test with one of the SD cards recommended in the example_board_readme file located in the example's doc folder. BR Habib Re: Error when runnning sample with SDcard in MIMRT700? Hello @nnxxpp, The example creates a FAT file system on the SD card by calling the f_mkfs() function, which is executed from main, as shown in the following image: The FF_USE_MKFS macro is enabled in ffconf.h, which allows the application to create the file system when needed. You can find additional information about f_mkfs() on this page. Therefore, the SD card does not need to be pre-formatted with a specific configuration before running the example, since the example is able to create the file system itself. Regarding JP65, the tflm_cifar10_cm33_core0 example should run without issues when JP65 is set to 1-2. According to the RT700-EVK schematic, JP65 only controls the output selection of a multiplexer and does not affect the functionality used by this example, as shown in the following image: BR Habib Re: Error when runnning sample with SDcard in MIMRT700? @Habib_MS  Thank you for deep explanation. I understood much more. I also check my several SDcards and I found that one of them works (Sandisk 256GB) and I could run sdcard_fatfs sample. Yes, as you mention, after setting JP65 to 1-2, I could run eqi tflm sample successfully. Re: Error when runnning sample with SDcard in MIMRT700? @Habib_MS  This is the memory configuration of sdcard_fatfs. I could run sample with this memory configuration. But when I changed the memory configuration as below image (this configuration for NPU tflite model. It is ok when not using sdcard) I got error when debugging. The reason seems from memory configuration. How to fix this problem? Thank you. Re: Error when runnning sample with SDcard in MIMRT700? Hello @nnxxpp, I am glad to hear both examples are running successfully. As this question is separate from the original issue, could you please create a new community post for it? Feel free to tag me and I will be happy to continue assisting you. BR Habib Re: Error when runnning sample with SDcard in MIMRT700? Yes. Thank you. I found that the reason is not from memory configuration. It is from that I incorrectly config size to load data from sdcard.
View full article
S32K344 - EMIOS - IPM (Input Period Measurement) erroneous data acquisition Hi, I'm writing a bare metal driver for the EMIOS module on my  S32K3X4EVB-T172 evaluation board. Currently, I'm using EMIOS_0 configured, with a 256x global prescaler, with channels as follows: CH_23 -> MC Up Counter ( Timebase for Emios Counter Bus A) @ 625 kHz  CH_17 -> Running in OPWMB mode (using Counter Bus A) CH_22 -> MC Up Counter ( Timebase for Emios Counter Bus F) @ 156.25 kHz CH_9 -> Running in IPM mode (using Counter Bus F ) I'm generating a 16.18hz signal with 50% duty cycle, validated by the oscilloscope, that I'm routing from the OPWMB channel (PTA0) to the IPWMB channel (PTA1). Every 10ms I'm acquiring a IPM sample, which consistently returns 9657/9658, giving me a measured period of 9657 * 0,0000064 = 0,0618048, resulting in a frequency of 1/0,0618048 = 16,18hz. The Issue I'm having is related the almost periodical acquisition of erroneous values (as shown below). period[0] UINT16 40017 period[1] UINT16 9658 period[2] UINT16 9657 period[3] UINT16 9658 period[4] UINT16 40017 period[5] UINT16 9658 period[6] UINT16 9657 period[7] UINT16 9658 period[8] UINT16 40017 period[9] UINT16 9658 period[10] UINT16 9657 period[11] UINT16 40018 period[12] UINT16 9657 period[13] UINT16 9658 period[14] UINT16 9657 period[15] UINT16 40018 Here's a code snippet explaining my current polling-based acquisition logic (no dma and no interrupts): if ((EMIOS0->UC[9].S & 1u) != 0u) { UINT16 a1 = (UINT16)EMIOS0->UC[9].A; UINT16 b1 = (UINT16)EMIOS0->UC[9].B; UINT16 a2 = (UINT16)EMIOS0->UC[9].A; UINT16 b2 = (UINT16)EMIOS0->UC[9].B; if (a1 != a2) { if (b1 != b2) { period[ Index ] = (UINT16)(a2 - b2); } else { period[ Index ] = (UINT16)(a1 - b1); } } else { period[ Index ] = (UINT16)(a2 - b2); } Index++; if (Index > 99u) Index = 0u; EMIOS0->UC[9].S = EMIOS_UC_CLEAR_STATUS_FLG; /* 80008001u */ } When testing different frequencies, the appearance of outliers is highly reduced but still present. Here's an example with 303hz: period[0] UINT16 519 period[1] UINT16 519 period[2] UINT16 519 period[3] UINT16 519 period[4] UINT16 519 period[5] UINT16 519 period[6] UINT16 519 period[7] UINT16 519 period[8] UINT16 519 period[9] UINT16 519 period[10] UINT16 519 period[11] UINT16 519 period[12] UINT16 519 period[13] UINT16 30879 period[14] UINT16 519 period[15] UINT16 519 period[16] UINT16 519 period[17] UINT16 519 period[18] UINT16 519 period[19] UINT16 519 period[20] UINT16 519 period[21] UINT16 519 period[22] UINT16 519 period[23] UINT16 519 period[24] UINT16 519 period[25] UINT16 519 period[26] UINT16 519 period[27] UINT16 519 period[28] UINT16 519 period[29] UINT16 519 period[30] UINT16 519 period[31] UINT16 519 period[32] UINT16 519 period[33] UINT16 519 period[34] UINT16 519 period[35] UINT16 519 period[36] UINT16 519 period[37] UINT16 519 period[38] UINT16 519 period[39] UINT16 519 period[40] UINT16 519 period[41] UINT16 519 period[42] UINT16 519 period[43] UINT16 519 period[44] UINT16 519 period[45] UINT16 519 period[46] UINT16 519 period[47] UINT16 519 period[48] UINT16 519 period[49] UINT16 519 period[50] UINT16 519 period[51] UINT16 519 period[52] UINT16 519 period[53] UINT16 519 period[54] UINT16 519 period[55] UINT16 519 period[56] UINT16 519 period[57] UINT16 519 period[58] UINT16 30879 period[59] UINT16 519 Any help? Re: S32K344 - EMIOS - IPM (Input Period Measurement) erroneous data acquisition Hello @fede_ls , Your polling logic is probably not the primary source of the observed outliers. The values strongly suggest that the period calculation does not handle the rollover of the selected counter bus correctly. The current expression (uint16_t)(A - B) assumes a full 16-bit counter rollover at 65536, but your counter bus F appears to roll over at approximately 35176 ticks. Therefore, whenever the captured period crosses the counter rollover, an additional offset of 65536 - 35176 = 30360 ticks is added, which exactly matches the observed outliers.   Please check the period/modulus configured for CH22, which is used as counter bus F for the IPM channel. The period should be calculated using this actual counter bus modulo value, not using implicit 16-bit unsigned subtraction.   Best regards, Pavel
View full article
MPC5777 BSDL BGA_512 Hello, i'm looking for the BSDL file for this component : MPC5777 BGA-512 Can you send me the file ? Thanks Re: MPC5777 BSDL BGA_512 Hello, I am sending it to you via private message. For future please rise the ticket on NXP.com Best regards, Peter
View full article
iMX8M Plus 2nd MIPI CSIカメラ:FIFOオーバーフローエラー こんにちは、 私はデュアルカメラのアプリケーションを開発しています。 カメラの解像度と画像フォーマットは2592x1944、RAW8です。 データパスとドライバ構造は カメラ(センサ ドライバ.c)-->MIPI-CSI2 (imx8-mipi-csi2-sam.c) --> ISI (imx8-isi-cap.c)--> RAM ドライバーを改造した後、CSI1の映像ストリームは2592x1944、RAW8、50~60fpsで正常に受信できました。 CSI2から別のビデオストリームを取得したいのですが、FIFOオーバーフローエラーのためうまくいきません。 [ 43.892406] mxc-mipi-csi2.1:フレーム終了イベント情報:1 [ 43.897023] MXC-MIPI-CSI2.1:フレームスタートイベント情報:2回 [ 43.901811] MXC-MIPI-CSI2.1:奇数フレームイベント後の非画像データ:0 [ 43.908248] MXC-MIPI-CSI2.1:奇数フレームイベント前の非画像データ:0 [ 43.914771] MXC-MIPI-CSI2.1:偶数フレームイベント情報後の非画像データ:0 [ 43.921297] MXC-MIPI-CSI2.1:フレームイベント前の非画像データ:0 [ 43.927906] MXC-MIPI-CSI2.1:未知のエラーイベント情報: 0 [ 43.932868] mxc-mipi-csi2.1:CRCエラーイベント:0 [ 43.937484] MXC-MIPI-CSI2.1:ECCエラーイベント情報:0件 [ 43.942097] mxc-mipi-csi2.1: FIFOオーバーフローエラーイベント情報:1209788 [ 43.948100] MXC-MIPI-CSI2.1:ロストフレーム終了エラーイベント:0 [ 43.953672] MXC-MIPI-CSI2.1:ロストフレームスタートエラーイベント情報:0 [ 43.959413] MXC-MIPI-CSI2.1:SOTエラーイベント情報:0 hs-settleとclk-settleのパラメータを変更してみましたが、うまくいきませんでした。 リファレンスマニュアルによると、CSI1の最大動作周波数は500MHzですが、CSI2は266MHzです。 CSI2周波数が低いと、フレーム解像度やフレームレートが制限されますか? どうすれば解決できますか? i.MX 8M | i.MX 8M Mini | i.MX 8M Nano Re: iMX8M Plus 2nd MIPI CSI Camera : FIFO Overflow Error こんにちは、 この問題は解決しましたか?私もビジョン ComponentsのIMX900Cカメラ(2048x1536)で同じ問題を経験しています。CSI1からISI0へのストリーミングは30fpsで正常に動作しますが、同じ設定でCSI2からISI1へのストリーミングを行うとオーバーフローエラーが発生します。 よろしくお願いします! Re: iMX8M Plus 2nd MIPI CSI Camera : FIFO Overflow Error こんにちは、igorpardykov 再開まで今しばらくお待ちください。 下のリファレンスマニュアルを再度確認しました。 • 4Kp30で2つの未処理カメラストリーム(すなわちスケーリングなし)、 システム負荷とユースケース RAW8形式のビデオストリーム(CSCをバイパス)を取得したいのですが、それは未処理のストリームに対応しているということでしょうか? これはISIが2つの4Kp30動画ストリームを同時に使うことをサポートしているということでしょうか? 2fps未満のフレームレートを遅くした場合(例えば30fps未満)、FIFOオーバーフローの問題は解決できますか? 2つのISPが同時に利用されている場合、それぞれが以下をサポートしています: ・最大解像度1080p(1936x1188)」 ちなみに、私はISPを一切使用しておらず(デバイスツリーで全て無効化しています)、ISIのみを使用しています。 事前に感謝いたします。 Re: iMX8M Plus 2nd MIPI CSI Camera : FIFO Overflow Error こんにちは、Dy はい、おっしゃる通りです。FIFOオーバーフローはISIのパフォーマンス機能によって発生する可能性があります。 セクション13.1.2で説明されているi.MX 8M Plusアプリケーション プロセッサ リファレンス・マニュアル ディスプレイ・インターフェース 「ISIの主な特徴は以下の通りです。 画像プロセッシング ・1080p30で処理された2つのカメラストリーム ・2つの未処理カメラストリーム(すなわちスケーリングなし)は4Kp30で、 システム負荷とユースCASE... 2つのISPが同時に利用されている場合、それぞれが以下をサポートしています: ・最大解像度1080p(1936x1188)」 よろしくお願いします イゴール
View full article
ADC1_MA1ピンをS32K312のADC入力として使えますか? NXPチームの皆様、こんにちは。 S32K312コントローラーを使っていて、ポテンショメーター電圧を読み取るためにADC1_MA1とラベル付けされたピンを使いたいと思っています。 ADC1_MA1 ADCの外部多重化器のアドレス出力ピンであることは理解しています。しかし、SIUL2、ADC、ピンマルチックスの設定で、このピンを通常のADCアナログ入力として使える設定があるかどうか確認したいです。 私の要件は、0V~3.3Vの範囲のポテンショメータのワイパー電圧を接続し、それをADC1で読み取ることです。 確認いただけますか: Is ADC1_MA1 物理的にADCの入力チャネルやサンプル&ホールド回路に接続されていますか? このピンはソフトウェアでADC入力として設定できますか? もしADC入力として使えない場合、PCBがすでにこのピンに接続されたポテンショメータを設計している場合、推奨されるハードウェアの回避策はありますか? ありがとう。 よろしくお願いします、 エサッキ Re: Can ADC1_MA1 pin be used as ADC input on S32K312? こんにちは、エサキさん。 ADC1_MA1はADCマルチプレクサの出力であり、デジタルピンで、出力方向です。このピンの機能は「S32K3 ADC 外部チャネルの利用」で説明されています。 ADC1_MA1ピンには ダイレクトシグナル がなく、ADC入力として使用できません。ダイレクト信号セクションに記載されたADCを持つピンのみがADC入力として使用可能です。 残念ながら、他に信頼できる解決策はなく、ハードウェア回路の変更をお勧めします。 よろしくお願いいたします ロビン Re: Can ADC1_MA1 pin be used as ADC input on S32K312? こんにちは、 @Robin_Shen さん。 分かりやすいご説明とご確認をいただき、ありがとうございます。サポートいただき感謝します。 よろしくお願いします、 エサッキ
View full article
pn7220 天线电流 您好,请问如何通过 libnfc-nxp-rfExt.conf 或其他配置文件配置 PN7220 的 NFC 天线电流?我们的测试表明天线电流过高,需要降低。 Re: pn7220 antenna current 你好@zhangkai 建议启用 DPC,但在启用 DPC 之前,需要对其进行校准。 Re: pn7220 antenna current 你好@zhangkai , 如果您只需要降低/限制电流,您可以按照此处描述的方法进行操作: https://community.nxp.com/t5/NFC-Knowledge-Base/PN7642-Basic-RF-power-limitation-using-DPC/ta-p/2187514 BR 托马
View full article
S32K388 STCU BIST: Does STCU_WDG value affect the online watchdog timeout? Hi NXP experts, I am developing on the S32K388 and using the SPD (Safety Peripheral Drivers) v1.0.6 as a reference to implement the STCU/BIST functionality. In my main.c, I enable the BIST test and then read the reset reason from MC_RGM. I observe that the reset reason returned is MCU_ST_DONE_RESET. I have the following questions: Does the value written to the STCU_WDG register affect the online watchdog timeout duration during BIST execution? In other words, is the WDTOSW flag directly triggered when the BIST execution time exceeds the STCU_WDG value? When MCU_ST_DONE_RESET is reported, can I conclude that both LBIST and MBIST completed normally and passed? Or does this reset reason only indicate that the STCU sequence finished, regardless of whether a timeout occurred? In my case, the ERR_STAT register shows WDTOSW = 1 and RFSF = 1 (see attached screenshot). Does this mean the BIST execution timed out and was prematurely terminated/aborted, so the memory tests were actually forced to stop before completion? Or can MCU_ST_DONE_RESET still be generated even if WDTOSW was set? I also checked the Bist_IntegrityTest() flow from the SPD driver (see attached code screenshot), which expects the LBIST/MBIST end flags (LBESW0/MBESW0) to be set to 1 after completion. However, during my actual debugging, I found that both the LBIST and MBIST end flag bits are 0, not 1. Why would the end flags be 0 even though MCU_ST_DONE_RESET was generated? Additional context: I am using the Safety Boot BIST configuration table similar to the SPD example. Observed STCU_WDG value: 0xC35E (49998). Observed STCU_ERR_STAT value: 0x80140 (RFSW=1, WDTOSW=1). Could you please help clarify the relationship between STCU_WDG, WDTOSW, MCU_ST_DONE_RESET, and the LBESW0/MBESW0 end flags? Thank you in advance. Best regards, Re: S32K388 STCU BIST: Does STCU_WDG value affect the online watchdog timeout? Hello, In my main.c, I enable the BIST test and then read the reset reason from MC_RGM. I observe that the reset reason returned is MCU_ST_DONE_RESET. That is correct behaviour. 1. Does the value written to the STCU_WDG register affect the online watchdog timeout duration during BIST execution? In other words, is the WDTOSW flag directly triggered when the BIST execution time exceeds the STCU_WDG value? No. STCU_WDG is watchdog for BIST execution. Not connected anyhow to SWT. SWT module is also tested by BIST, so the SWT module is not functional during the BIST. Therefore you guard execution time with STCU_WDG. When MCU_ST_DONE_RESET is reported, can I conclude that both LBIST and MBIST completed normally and passed? Or does this reset reason only indicate that the STCU sequence finished, regardless of whether a timeout occurred? You can only conclude that the test procedure ended. Results are stored in different registers like STCU2 Online LBIST Status (LBSSW0) - such will indicate you pass /fail conditions. In my case, the ERR_STAT register shows WDTOSW = 1 and RFSF = 1 (see attached screenshot). Does this mean the BIST execution timed out and was prematurely terminated/aborted, so the memory tests were actually forced to stop before completion? Or can MCU_ST_DONE_RESET still be generated even if WDTOSW was set? MCU_ST_DONE_RESET is always generated after test. No matter on the results. As during the test the registers and RAMs are tested with patterns. Reegisters need to be set to the default values - such are loaded during reset. Otherwise you will get all registers full of test patterns and the uC wont operate with such random values. RAMs need to be initialized by SW as the ECC syndromers will not match data after BIST execute test patterns on the RAMs. In my case, the ERR_STAT register shows WDTOSW = 1 and RFSF = 1  This means test fails. I also checked the Bist_IntegrityTest() flow from the SPD driver (see attached code screenshot), which expects the LBIST/MBIST end flags (LBESW0/MBESW0) to be set to 1 after completion. However, during my actual debugging, I found that both the LBIST and MBIST end flag bits are 0, not 1. Why would the end flags be 0 even though MCU_ST_DONE_RESET was generated? Explained above. Your BIST did not executed in the STCU_WDG timeout. Best regards, Peter Re: S32K388 STCU BIST: Does STCU_WDG value affect the online watchdog timeout? Hello, has this question been summarized? Re: S32K388 STCU BIST: Does STCU_WDG value affect the online watchdog timeout? Hello, let me summarize the answers and I will post them later. Best regards, Peter
View full article
デュアルMIPI CSI-2カメラを搭載したi.MX8MP FRDMでカスタムカメラを登録する際にカーネルパニックが発生する サポートチームの皆様、 現在、i.MX8MP FRDMボードを使用して2台のカメラを統合する作業を進めています。 カメラの構成は以下のとおりです。 * CSI2:0はOV5640カメラに接続されています。 * CSI2:1はカスタムカメラモジュールに接続されています。 両方のカメラで、画像パイプラインがISP機能を使わないようにデバイスツリーを設定しました。意図されたパイプラインは以下の通りです: 「センサ → MIPI CSI-2 → ISI → キャプチャー」 デバイスツリーファイルを添付しましたので、ご参照ください。「imx8mp-frdm-ov5640-cusdom.dts」 問題は、カスタムカメラドライバーがI2C3上でI2Cプローブ処理を正常に完了する一方で、「v4l2_async_register_subdev_sensor()」を呼び出すとカーネルパニックが発生することです。 要約すると、カーネルパニックが発生するのは、カスタムカメラが登録される時点で「mxc_isi.1」が作成または登録されていないためです。 関連するカーネルパニックログを添付します: "panic-log.txt" また、カスタムカメラドライバーのプローブ機能実装「custom_driver_probe.c」も添付しました i.MX8MP FRDMボードのデフォルトのデバイスツリー構成を参照して、「imx8mp-frdm-ov5640-cusdom.dts」を作成しました。 OV5640カメラは正常に動作しています。しかし、カスタムカメラはISIパイプラインとの接続を確立できず、最終的にカーネルのパニックを引き起こします。 デバイスツリーの設定とカスタムカメラドライバーの両方を確認しましたが、問題の根本原因を特定することはできませんでした。 添付の「imx8-media-dev.c」ファイルには、カーネルパニックが発生する場所を特定するための追加デバッグメッセージのみが含まれています。 私たちの目標は、i.MX8MPプラットフォーム上のMIPI CSI-2インターフェースを通じて、2台の異なるカメラを同時に操作することです。 添付のデバイスツリーとドライバーコードを確認し、どの設定や実装部分が誤っているか、あるいは欠けているかを教えていただけますか? 皆様のサポートとご助言をいただけると大変ありがたいです。 よろしくお願いします。 よろしくお願いします、 ソビ
View full article
S32K388 MemAcc 消去 PFLASH がフリーズ こんにちは!MemAcc_Example_S32K388を使用し、DFLASHをPFLASHに変更しました。しかし、pFlashを消去すると、MEMACC_JOB_PENDING == MemAcc_GetJobStatus(TEST_AREA)で処理が停止してしまいます。 TEST_AREAを1に設定することで、比較プログラムを修正しました。 こちらが修正されたプログラムです。私のミスを見つけて指摘してくれることを願っています。とても感謝します。 S32K3 Re: S32K388 Use MemAcc Erase PFLASH Stuck こんにちは@zhangyu5454さん 一つ問題があります。接頭辞が間違っています。正しくは Mem_43_INFLS です。 Re: S32K388 Use MemAcc Erase PFLASH Stuck Mem_43_INFLSに変更しようとしましたが、それでも動作しませんでした。ルーチンのDFLASHでMem_43_INFLSをabc123に変更したら、普通に動作します。ついにMemAcc Mem InvocationのDIRECT_STATIC それをINDIRECT STATICに変えれば問題が解決します
View full article
S32K388 STCU BIST:STCU_WDG 值是否会影响在线看门狗超时? 各位NXP专家,大家好! 我正在使用S32K388进行开发,并以SPD (安全外设驱动程序) v1.0.6为参考来实现 STCU/BIST 功能。 在我的main.c 文件中,我启用了 BIST 测试,然后从MC_RGM读取复位原因。我观察到返回的复位原因是MCU_ST_DONE_RESET 。 我有以下几个问题: 写入 STCU_WDG 寄存器的 值是否会 影响 BIST 执行期间的 在线看门狗超时 时长?换句话说, 当 BIST 执行时间超过 STCU_WDG 值时, WDTOSW 标志是否会被直接触发 ? 当 报告 MCU_ST_DONE_RESET 时,我是否可以得出结论, LBIST 和 MBIST 都已正常完成并通过 ?或者,此 RESET 原因仅表示 STCU 序列已完成,而不管是否发生超时? 就我而言, ERR_STAT 寄存器显示 WDTOSW = 1 和 RFSF = 1 (见附件截图)。这是否意味着 BIST 执行 超时并被提前终止/中止 ,导致内存测试 在完成前 被迫停止 ?或者即使 WDTOSW 已设置, 是否 仍然可以生成 MCU_ST_DONE_RESET ? 我还检查了 SPD驱动程序中的 Bist_IntegrityTest() 流程(见附件代码截图),该流程预期LBIST/MBIST完成后结束标志( LBESW0 / MBESW0 )应设置为1。然而,在实际调试过程中,我发现 LBIST和MBIST结束标志位均为0,而非1。 为什么即使 生成了 MCU_ST_DONE_RESET, 结束标志位仍然为0? 补充信息: 我正在使用类似于 SPD 示例的功能安全启动 BIST 配置表。 观察到的STCU_WDG值: 0xC35E (49998)。 观察到的STCU_ERR_STAT值: 0x80140 ( RFSW=1 , WDTOSW=1 )。 请问您能否帮忙解释一下STCU_WDG 、 WDTOSW 、 MCU_ST_DONE_RESET和LBESW0 / MBESW0结束标志之间的关系? 提前谢谢您。 此致, Re: S32K388 STCU BIST: Does STCU_WDG value affect the online watchdog timeout? 你好, 在我的main.c 文件中,我启用了 BIST 测试,然后从MC_RGM读取复位原因。我观察到返回的复位原因是MCU_ST_DONE_RESET 。 这是正确的行为。 1. 写入 STCU_WDG 寄存器的 值是否会 影响 BIST 执行期间的 在线看门狗超时 时长?换句话说, 当 BIST 执行时间超过 STCU_WDG 值时, WDTOSW 标志是否会被直接触发 ? 不。STCU_WDG 是 BIST 执行的监视程序。与SWT没有任何关联。SWT 模块也需要通过 BIST 进行测试,因此 SWT 模块在 BIST 期间无法正常工作。因此,您可以使用 STCU_WDG 来保护执行时间。 当 报告 MCU_ST_DONE_RESET 时,我是否可以得出结论, LBIST 和 MBIST 都已正常完成并通过 ?或者,此 RESET 原因仅表示 STCU 序列已完成,而不管是否发生超时? 只能得出测试程序结束的结论。结果存储在不同的寄存器中,例如 STCU2 在线 LBIST 状态 (LBSSW0) - 此类寄存器将指示您是否通过/失败条件。 就我而言, ERR_STAT 寄存器显示 WDTOSW = 1 和 RFSF = 1 (见附件截图)。这是否意味着 BIST 执行 超时并被提前终止/中止 ,导致内存测试 在完成前 被迫停止 ?或者即使 WDTOSW 已设置, 是否 仍然可以生成 MCU_ST_DONE_RESET ? MCU_ST_DONE_RESET 总是在测试后生成。结果如何并不重要。测试过程中,寄存器和 RAM 将按照特定模式进行测试。寄存器需要设置为默认值——这些值在RESET期间加载。否则,所有寄存器都会被测试模式填满,微控制器将无法处理这样的随机值。 由于 BIST 在 RAM 上执行测试模式后,ECC 校验和将无法匹配数据,因此需要通过软件初始化 RAM。 就我而言, ERR_STAT 寄存器显示 WDTOSW = 1 和 RFSF = 1 这意味着测试失败。 我还检查了 SPD驱动程序中的 Bist_IntegrityTest() 流程(见附件代码截图),该流程预期LBIST/MBIST完成后结束标志( LBESW0 / MBESW0 )应设置为1。然而,在实际调试过程中,我发现 LBIST和MBIST结束标志位均为0,而非1。 为什么即使 生成了 MCU_ST_DONE_RESET, 结束标志位仍然为0? 如上所述。 您的 BIST 未在 STCU_WDG 超时时间内执行。 顺祝商祺! Peter Re: S32K388 STCU BIST: Does STCU_WDG value affect the online watchdog timeout? 您好,这个问题有总结吗? Re: S32K388 STCU BIST: Does STCU_WDG value affect the online watchdog timeout? 你好, 我先总结一下答案,稍后会发布。 顺祝商祺! Peter
View full article
How do I implement Secure Boot on the i.MX95? I completed the secure boot process on imx8mp. Secure boot is achieved using HABv4 on an 8mp. Does imx95 also use HABv4 to implement secure boot? When compiling flash.bin, I did not see information such as CSF block or sld hab block. How do I perform a secure boot on IMX95? Re: How do I implement Secure Boot on the i.MX95? Hello @yyn  I hope you are doing very well. Please take a look to the introduction_ahab in the U-boot documentation. There is explained the Secure Boot process of the i.MX9 family. Best regards, Salas.
View full article
iMX8M Plus 第二代 MIPI CSI 摄像头:FIFO 溢出错误 您好, 我正在开发一款双摄像头应用。 相机分辨率和图像格式为 2592x1944,RAW8 数据通路和驱动程序结构是 摄像头(传感器驱动程序.c)-->MIPI-CSI2 (imx8-mipi-csi2-sam.c) --> ISI (imx8-isi-cap.c)--> RAM 修改驱动程序后,我成功地从 CSI1 获取了 2592x1944、RAW8、50~60fps 的视频流。 现在我想从 CSI2 获取另一个视频流,但由于 FIFO 溢出错误而无法工作。 [ 43.892406] mxc-mipi-csi2.1:帧结束事件:1 [ 43.897023] mxc-mipi-csi2.1:帧开始事件:2 [ 43.901811] mxc-mipi-csi2.1:奇数帧事件后的非图像数据:0 [ 43.908248] mxc-mipi-csi2.1:奇数帧事件之前的非图像数据:0 [ 43.914771] mxc-mipi-csi2.1:偶帧事件后的非图像数据:0 [ 43.921297] mxc-mipi-csi2.1:帧事件发生之前的非图像数据:0 [ 43.927906] mxc-mipi-csi2.1:未知错误事件:0 [ 43.932868] mxc-mipi-csi2.1:CRC 错误事件:0 [ 43.937484] mxc-mipi-csi2.1:ECC错误事件:0 [ 43.942097] mxc-mipi-csi2.1:FIFO 溢出错误事件:1209788 [ 43.948100] mxc-mipi-csi2.1:丢帧结束错误事件:0 [ 43.953672] mxc-mipi-csi2.1:丢帧起始错误事件:0 [ 43.959413] mxc-mipi-csi2.1:SOT错误事件:0 我尝试修改 hs-settle 和 clk-settle 参数,但没有成功。 根据参考手册,CSI1 最大工作频率为 500MHz,而 CSI2 为 266MHz。 较低的CSI2频率会限制帧分辨率还是帧速率? 我该如何解决这个问题? i.MX 8M | i.MX 8M Mini | i.MX 8M Nano Re: iMX8M Plus 2nd MIPI CSI Camera : FIFO Overflow Error 你好, 这个问题解决了吗?我的 Vision Components IMX900C 相机 (2048x1536) 也遇到了同样的问题。在 CSI1 -> ISI0 上以 30fps 的帧率成功传输,但在相同的设置下,CSI2 -> ISI1 出现溢出错误。 谢谢您! Re: iMX8M Plus 2nd MIPI CSI Camera : FIFO Overflow Error 你好,igorpardykov 感谢您的支持。 我再次查阅了参考手册。 • 2路未经处理的4Kp30摄像机流(即无缩放),具体取决于 系统负载和用例 我想要获取 RAW8 格式的视频流(绕过 csc),这样它就对应于未处理的视频流,对吗? 这是否意味着 ISI 支持同时使用两个 4Kp30 视频流? 如果我降低第二帧速率(例如低于 30fps),能否解决 FIFO 溢出问题? 当两个互联网服务提供商同时使用时,每个服务提供商都支持: • 最高分辨率可达 1080p (1936x1188) 供您参考,我完全不使用 ISP(已在设备树中全部禁用),只使用 ISI。 提前谢谢您。 Re: iMX8M Plus 2nd MIPI CSI Camera : FIFO Overflow Error 嗨 Dy 是的,你说得对,FIFO溢出可能是由于ISI的性能限制造成的。 第 13.1.2 节中描述显示界面i.MX 8M Plus 应用处理器参考手册 ISI 的主要特点包括:…… 图像处理 • 2路处理后的1080p30摄像头视频流 • 2路未处理的摄像头视频流(即(无缩放)在 4Kp30 下,取决于 系统负载和使用场景…… 当两个互联网服务提供商同时使用时,每个服务提供商都支持: • 最高分辨率可达 1080p (1936x1188) 此致 伊戈尔
View full article
How do I implement Secure Boot on the i.MX95? 我在imx8mp 上完成了 安全启动的流程。 8mp 上使用 HABv4 实现安全启动。 imx95 也是使用HABv4实现安全启动吗? 编译flash.bin  没有看到 CSF block ,sld hab block 等信息。 我应该如何完成 imx95 的安全启动? Re: How do I implement Secure Boot on the i.MX95? 你好@yyn 希望你一切都好。 请参阅 U-boot 文档中的 introduction_ahab 部分。 本文解释了 i.MX9 系列的安全启动过程。 顺祝商祺! 萨拉斯。
View full article
S32K344 - EMIOS - IPM(入力周期測定)データ取得エラー こんにちは、 私はS32K3X4EVB-T172評価ボードのEMIOSモジュール用のベアメタルドライバーを書いています。 現在、EMIOS_0設定済みで、256倍グローバルプリスケーラーを使い、チャネルは以下の通りです: CH_23 -> MCアップカウンター(EmiosカウンターバスAのタイムベース)@ 625 kHz CH_17 -> OPWMBモードで動作中(カウンタバスAを使用) CH_22 -> MCアップカウンター(EmiosカウンターバスFのタイムベース)@ 156.25 kHz CH_9 -> IPMモードで動作中(カウンタバスFを使用) オシロスコープで検証された16.18Hzの信号を生成し、50%のデューティサイクルで、OPWMBチャネル(PTA0)からIPWMBチャネル(PTA1)へルーティングしています。 10msごとにIPMサンプルを取得しており、常に9657/9658が返されるため、測定された周期は9657 * 0.0000064 = 0.0618048となり、結果として周波数は1/0.0618048 = 16.18Hzとなります。 私が抱えている問題は、ほぼ周期的に誤った値が取得されることに関連しています(以下に示すとおり)。 期間[0] UINT16 40017 期間[1] UINT16 9658 期間[2] UINT16 9657 期間[3] UINT16 9658 期間[4] UINT16 40017 期間[5] UINT16 9658 期間[6] UINT16 9657 期間[7] UINT16 9658 期間[8] UINT16 40017 期間[9] UINT16 9658 期間[10] UINT16 9657 期間[11] UINT16 40018 期間[12] UINT16 9657 期間[13] UINT16 9658 期間[14] UINT16 9657 期間[15] UINT16 40018 こちらは、現在のポーリングベースの取得ロジック(DMAなし、割り込みなし)を説明するコードスニペットです: もし(((EMIOS0->UC[9].S & 1u) != 0u) { UINT16 a1 = (UINT16)EMIOS0->UC[9]。A: UINT16 b1 = (UINT16)EMIOS0->UC[9]。B; UINT16 a2 = (UINT16)EMIOS0->UC[9]。A: UINT16 b2 = (UINT16)EMIOS0->UC[9]。B; if ( a1 != a2 ) { if ( b1 != b2 ) { 期間[インデックス] = ( UINT16 )( a2 - b2 ) ; } そうでない場合、 { 期間[インデックス] = ( UINT16 )( a1 - b1 ) ; } } そうでない場合、 { 期間[インデックス] = ( UINT16 )( a2 - b2 ) ; } インデックス++; if ( Index > 99 u ) インデックス= 0 u ; EMIOS0->UC[9]。S = EMIOS_UC_CLEAR_STATUS_FLG; /* 80008001u */ } 異なる周波数でテストを行った場合、外れ値の出現は大幅に減少するものの、依然として存在する。303Hzの例を以下に示します。 期間[0] UINT16 519 期間[1] UINT16 519 期間[2] UINT16 519 期間[3] UINT16 519 期間[4] UINT16 519 期間[5] UINT16 519 期間[6] UINT16 519 期間[7] UINT16 519 期間[8] UINT16 519 期間[9] UINT16 519 期間[10] UINT16 519 期間[11] UINT16 519 期間[12] UINT16 519 期間[13] UINT16 30879 期間[14] UINT16 519 期間[15] UINT16 519 期間[16] UINT16 519 期間[17] UINT16 519 期間[18] UINT16 519 期間[19] UINT16 519 期間[20] UINT16 519 期間[21] UINT16 519 期間[22] UINT16 519 期間[23] UINT16 519 期間[24] UINT16 519 期間[25] UINT16 519 期間[26] UINT16 519 期間[27] UINT16 519 期間[28] UINT16 519 期間[29] UINT16 519 期間[30] UINT16 519 期間[31] UINT16 519 期間[32] UINT16 519 期間[33] UINT16 519 期間[34] UINT16 519 期間[35] UINT16 519 期間[36] UINT16 519 期間[37] UINT16 519 期間[38] UINT16 519 期間[39] UINT16 519 期間[40] UINT16 519 期間[41] UINT16 519 期間[42] UINT16 519 期間[43] UINT16 519 期間[44] UINT16 519 期間[45] UINT16 519 期間[46] UINT16 519 期間[47] UINT16 519 期間[48] UINT16 519 期間[49] UINT16 519 期間[50] UINT16 519 期間[51] UINT16 519 期間[52] UINT16 519 期間[53] UINT16 519 期間[54] UINT16 519 期間[55] UINT16 519 期間[56] UINT16 519 期間[57] UINT16 519 期間[58] UINT16 30879 期間[59] UINT16 519 何かお役に立てることはありますか? Re: S32K344 - EMIOS - IPM (Input Period Measurement) erroneous data acquisition こんにちは、 @fede_ls さん、 おそらく、あなたの投票ロジックは、観測された異常値の主な原因ではないでしょう。これらの値は、周期計算が選択されたカウンタバスのオーバーフローを正しく処理していないことを強く示唆している。現在の式 (uint16_t)(A - B) は、16 ビットカウンタが 65536 で完全にロールオーバーすることを想定していますが、カウンタバス F は約 35176 ティックでロールオーバーするようです。したがって、キャプチャされた期間がカウンターのロールオーバーをまたぐたびに、観測された外れ値と正確に一致する 65536 - 35176 = 30360 ティックの追加オフセットが追加されます。   IPMチャネルのカウンターバスFとして使われるCH22の周期/モジュラスをご確認ください。周期は、暗黙的な16ビット符号なし減算ではなく、この実際のカウンタバスの剰余値を使用して計算する必要があります。   よろしくお願いいたします。 パベル
View full article
VSCode SWOコンソール出力におけるMCUXpressoの問題 こんにちは! 設定 VS Code 用 MCUXpresso ボード KW47-LOC プロジェクト kw47loc_hello_world_swo_cm33_core0 LinkServer 25.6.131または26.3.123 概要 SWOの機能をテストして、カスタムボードで使えるようにしたいと思っています。MCUXpresso IDEでは問題なく動作していますが、VSCode用のMCUXpressoでは、SWOコンソールが30~秒後にシリアル出力が表示されなくなる問題が発生します。これは本当にずっと続いていることだ。 再現手順 ボードとプロジェクトを使用してデバッグセッションを開始します。 メイン画面で停止し、次に続行を押してください。 - 実行を一時停止し、分析ウィンドウからSWOクロックを設定します。 - プローブウィンドウからSWO ITMを実行します - 出力からMCUXpresso SWOコンソールを選択し、実行を再開します。 シリアル出力が表示され始めるが、約30秒後にフリーズする。 お時間をいただきありがとうございました!
View full article
pn7220アンテナ電流 こんにちは、libnfc-nxp-rfExt.confやその他の設定ファイルを使ってPN7220のNFCアンテナ電流を設定する方法についてアドバイスいただけますか?我々のテスト結果によると、アンテナ電流が高すぎるため、低減する必要がある。 Re: pn7220 antenna current こんにちは、 @zhangkai さん。 DPCを有効にすることを推奨しますが、DPCを有効にする前に、キャリブレーションを行う必要があります。 Re: pn7220 antenna current こんにちは、 @zhangkai さん、 もし電流を減らす・制限だけが必要な場合は、ここで説明している方法と同じことができます:https://community.nxp.com/t5/NFC-Knowledge-Base/PN7642-Basic-RF-power-limitation-using-DPC/ta-p/2187514  BR トーマ
View full article
如何在 FRDM-RW612 EVK 上启用外部 U.FL 天线 您好,NXP团队: 我正在使用 FRDM-RW612 EVK 和 SDK 中的 wifi_cli 示例。加载的 Wi-Fi 固件是 rw61x_sb_wifi_a2.bin。 我已将 Molex 1461539050 外置天线连接到 EVK 上的 UFL 连接器 (J11)。但是,与板载PCB天线相比,我没有观察到RSSI有任何改善。在某些情况下,RSSI 甚至会略低一些。 根据 FRDM-RW612 原理图和用户指南,我了解到射频开关 (U16 - RTC7608U) 用于在板载 PCB 天线和外部 UFL 连接器之间进行选择,而 RF_CNTL_3 是该开关的控制信号: RF_CNTL_3 = 0 -> PCB 天线(默认) RF_CNTL_3 = 1 -> 外部 UFL 天线 如何控制 RF_CNTL_3? RF_CNTL_3 是否由 Wi-Fi 固件自动驱动?如果是,它的默认值是多少?如何修改该值? 启用 EVK 的外置天线是否需要任何硬件或固件配置? 任何指导或示例代码都将不胜感激。 谢谢! Re: How to enable the external U.FL antenna on FRDM-RW612 EVK 您好, 让我查一下。 问候, 丹尼尔。 Re: How to enable the external U.FL antenna on FRDM-RW612 EVK 您好, 我已给你发送私信。 问候, 丹尼尔。 Re: How to enable the external U.FL antenna on FRDM-RW612 EVK @DanielRuvalcaba你好,请问你是否已经核实过此事?如果有任何更新,请告知。 谢谢,此致敬礼! 普拉蒂尤什 Re: How to enable the external U.FL antenna on FRDM-RW612 EVK 嗨@DanielRuvalcaba 我还想将天线切换到 FRDM-RW612 上的 UFL 连接器 (J11)。 请问您能分享一下具体操作方法吗? 我们是通过前端模块(FEM)设置来切换天线吗? 问候 马尔钦 Re: How to enable the external U.FL antenna on FRDM-RW612 EVK 您好, 我通过私信联系到了你。 问候, 丹尼尔。
View full article
TagWriterはPN7160タグを読み取ることができません 私はRWandCEのサンプルプログラム(LPC55S69+PN7160)を実行しています。AndroidスマートフォンでTagWriterアプリを使ってタグを読み取ろうとすると、応答がなく失敗します。ログには、ポーリングモードが有効になったことが示されています。しかし、TagInfoはそれを読み取ることはできますが、「通信中断」のポップアップが表示され、電話機に表示される結果が正しくない可能性があります。これは、検出ループでポーリングとリスニングの両方が有効になっているためでしょうか?しかし、私の要件は、ポーリングとリスニングの両方を同時に有効にすることです。また、Androidスマートフォン上のすべてのエミュレーションカードも無効にしました。 どうか助けてください、ありがとうございます。 LPC55xx Re: TagWriter can not read the PN7160 tag こんにちは、 @BillyHu さん。 あなたの調子が良いといいのですが。 PN7160 FWを最新バージョンに更新してみてください。詳細については、 PN7160 - MCUXpressoのFWアップデート を参照してください。 よろしくお願いいたします。 エドゥアルド。 Re: TagWriter can not read the PN7160 tag こんにちは、エドゥアルドさん。 私のファームウェアのバージョンは既に12.50.11です。ポールとリッスンは個別に使うと問題なく動作しますが、discoveryTechnologiesで両方を有効にしていると、タグライターを使ってPN7160のカードエミュレーションを読み取ることができません。そちら側でも同様の問題が発生したことはありますか? ありがとうございます Re: TagWriter can not read the PN7160 tag エドゥアルド様、 何かご提案はありますか?この現象はPN7160では正常なものですか? ありがとうございます
View full article
RDDRONE-BMS772 Development Board I'd like to know more about the RDDRONE-BMS772 board. It includes pins for an external temperature sensor, and a thermistor is also included in the accessories. Can this board be used to measure battery temperature? However, the accessories only list a thermistor, not a temperature sensor. If the board can be used to measure temperature, do I need to buy the temperature sensor separately? And where should the temperature sensor be installed? Re: RDDRONE-BMS772开发板 Hello fan007 Good day! I'd like to know more about the RDDRONE-BMS772 board. It includes pins for an external temperature sensor, and a thermistor is also included in the accessories. Can this board be used to measure battery temperature? However, the accessories only list a thermistor, not a temperature sensor. If the board can be used to measure temperature, do I need to buy the temperature sensor separately? And where should the temperature sensor be installed? In Getting Started with the RDDRONE-BMS772 Reference Design, you can find a chapter that describes everything included in the purchase of this board. Yes, it includes an external thermistor with a cable, which can function as a temperature sensor. However, you can use another sensor that you consider more reliable. The board does have a dedicated port for connecting this sensor. More detailed information about its connection and use can be found in the documentation available on our website. Please review: UM11421, RDDRONE-BMS772 reference design - User guide (you need an account with us to access this document) An optional external temperature sensor can be added onto the RDDRONE-BMS772 board using connector J1. An example of application for this external sensor is used to monitor the cells temperature inside the battery pack. I hope this information has helped you, please let me know if you need help with anything else. Have a great day and best of luck.
View full article