Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
#S32K388 S32K388 LPI2C 进入调试模式后将停止运行 在使用 lpi2c 时,我遇到了程序卡在调试模式的情况。但是,当我断开 PE 连接并重新启动程序后,它就能正常工作了。程序在运行时卡在了调试模式。 做 { /* 主发送数据 */ Lpi2c_Ip_MasterSend(实例); ElapsedTicks += OsIf_GetElapsed(&CurrentTicks, I2C_TIMEOUT_TYPE); while ((Lpi2c_Ip_MasterGetTransferStatus(Instance, NULL_PTR) == LPI2C_IP_BUSY_STATUS) && (ElapsedTicks < TimeoutTicks)); 有什么办法解决这个问题吗? Re: #S32K388 S32K388 LPI2C will stop when debug mode is entered 嗨@zhangyu5454 请问是否已选中“I2C调试启用”选项? 当 MCR[DBGEN] = 1 时,在调试 MCU 时,LPI2C 模块将继续工作。 当 MCR[DBGEN] = 0 时,在对应用程序进行编程并正常运行电路板(不连接调试器)后,LPI2C 应该能够按预期工作。 BR,VaneB Re: #S32K388 S32K388 LPI2C will stop when debug mode is entered 嗨@zhangyu5454 下图供您参考: Re: #S32K388 S32K388 LPI2C will stop when debug mode is entered 感谢您的回复。我使用 .mex 文件配置 i2c,如何设置才能控制 MCR[DBGEN] =1? Re: #S32K388 S32K388 LPI2C will stop when debug mode is entered 嗨@zhangyu5454 此选项已添加到最新RTD版本中,现在可以直接通过外设工具进行配置。 由于您使用的是较早的 RTD 版本,建议在应用程序代码中配置 MCR[DBGEN]。 Re: #S32K388 S32K388 LPI2C will stop when debug mode is entered 我注意到我们的页面显示方式不同,我找不到这个选项,请注意我的版本是 RTD5.0。
View full article
FS6500の障害フラグ消去動作 チームの皆さん、こんにちは。 FS6500の障害フラグ消去動作について質問があります。   データシートによると、MODEレジスタ(アドレス0x15)内のLPOOF(ビット0)およびDFS(ビット1)フラグは、電源投入リセットまたはレジスタ読み出し操作によってのみクリアされます。 しかし、私のハードウェアテストの結果はこうです。   MODEレジスタへの書き込みは、予期せずLPOOFおよびDFS障害ビットをクリアしてしまう。   データシートには書き込みアクセスでこれらのステータスフラグが消えるという説明はありません。 この現象の根本原因について説明してもらえますか?   これはシリコンの意図された挙動なのか、それとも記録されていない副作用なのか?   ありがとうございます。よろしくお願いいたします。   DEVKIT-MPC5744P FS6500 Re: Fault flag clearing behavior of FS6500 こんにちは、 指示書が正しく書かれているか確認してください。 ほとんどのソフトウェアドライバでは、レジスタ書き込みは読み取り・修正・書き込み(RMW)シーケンスとして実装されています。 データシートに読み取りモードによってLPOOF/DFSがクリアされると記載されている場合、読み取りフェーズ中に既にフラグがクリアされている可能性があります。その後の書き込みは、書き込み操作によってクリアリングが行われたという印象を与えるに過ぎない。 よろしくお願いいたします。 ピーター
View full article
i.MX8MQ: Boot ROMはFlexSPI/QSPI NOR FLASHからの起動をサポートしていますか? こんにちは、 ハードウェア: - i.MX8MQ(REV A0)、EVKデザインに基づくカスタムボード - QSPI NOR:マイクロンMT25QL256A(32MB、3.3V、クアッドコネクテッド) - BSP: Yocto Scarthgap、NXP BSP、U-BOOT 2024.04(u-BOOT-IMX) 目標:FlexSPI NORフラッシュからブートローダー(SPL + ATF + U-Boot)を起動する。 カーネルとルートファイルシステムはeMMC上に残ります。 効果的な点: - U-Boot(uuu SDP/SDPV経由でRAMにロード)は問題なく動作します - 「SFプローブ」がフラッシュを正しく検出します:MT25QL256A、32 MiB - U-Bootはフラッシュの読み書きが安定してできる(検証 「SF Protect Unlock」後の読み返しテスト) - 画像はIMXBOOT_TARGETS = 「flash_evk_flexspi」で構築されます フラッシュメモリのレイアウト(チップからの読み出しで検証済み): 0x000000: FCFB ヘッダー - 「qspihdr check」レポート 「Q(F)SPIにブート構成ヘッダーが見つかりました」 タグ = 42464346、バージョン = 56010000 0x001000: IVT - d1 00 20 41、エントリ = 0x007E1000、 boot_data = 0x007E0FE0、self = 0x007E0FC0 0x060000: U-Boot の適切な FIT (d00dfeed) が一致します CONFIG_SYS_SPI_U_BOOT_OFFS=0x60000 問題点: ブートスイッチをQSPI/FlexSPIに設定し、USBケーブルで起動した場合 物理的に切断されたため、ボードは起動しません。何もない シリアルコンソールに印刷され(SPLバナーは表示されません)、 ROMはシリアルダウンロードモードに切り替わります。 uuu -lsusb 2:1 MX8MQ SDP: 0x1FC9 0x012B NXP FLASH BT_FUSE_SELは焼損していません。ブート設定はGPIO経由で行われます。 ブートピン。 私が既に試したこと: - 両方のヘッダー形式: scripts/qspi_header (c0ffee01 タグ) および scripts/fspi_header (FCFBタグ)。soc.mak をSO修正した flash_evk_flexspiオフセット0のfspi_headerを使用します。 - 変動するFCFBパラメータ:sflashA1Size、serialClkFreq(50MHz -> 20MHz)、 dataSetupTime/dataHoldTime, sflashPadType - 「Uuu -B QSPI」(公式組み込みスクリプト) - 「Qspihdr Update Safe」および「Qspihdr init safe」 - フラッシュを完全に消去するのと、完全な画像を書き込むこと: 起動動作は基本的に同一です(SDPはその後に現れます) ~1.6秒対~1.8秒)を比較し、ROMが読み取っていない可能性を示唆しています フラッシュ自体が。 質問: 1.i.MX8MQブートROMはシリアルNORからの起動をサポートしていますか? FlexSPIでフラッシュを使うべきでしょうか?リファレンス・マニュアルのセクションは持っています NANDフラッシュとSD/MMCをブートデバイスとしてリストアップしていますが、できませんでした FlexSPI/QSPI NORのリストは見つかりません。i.MX8MM/8MNのドキュメントのようです 説明は難しいですが、8MQについてはよくわかりません。 2. もし対応しているなら、フラッシュの正確な予想レイアウトはどうなりますか? FCFB の場合、IVT はオフセット 0x400 または 0x1000 にあるべきでしょうか 0x0に存在しますか? 3. 選択すべき正しいBOOT_MODE / BOOT_CFGの組み合わせは何ですか? i.MX8MQでFlexSPI NORブートは可能ですか? 4. REV A0シリコンに関して既知の正誤表はありますか? FlexSPIブート? よろしくお願いします。
View full article
S32K3 spi clk abnormal low I use S32K344 EVB to do spi test. I use LPSPI1 unit as master with pin from PTB14 to PTB17, and RTD 4.0.0 P19. The spi is mode 3: CPOL=1, CPHA=1 After call for Spi_SyncTransmit, I measure the scope like below, The clk pin get to low before the frame really tramsmit, what might be the reason for that? How to fix it? Re: S32K3 spi clk abnormal low Hi @zyt  This behavior is typically caused by the first workaround for ERR050456, which performs a reset of the LPSPI module. This situation has already been discussed in other threads, such as Extra SPI Clock Pulse Appears Before CS Line Goes Low on [MCU S32K312]. As explained in that thread, an alternative workaround can be applied that is expected to eliminate the low pulse. To enable this workaround define the following macro in your project: ERR_IPV_LPSPIV2_E050456_2ND_SOLUTION BR, VaneB
View full article
Kinetis(KW3x/4x、MCX W7xおよびMCX W23)オートモーティブ用パワープロファイルツール、IIoT、CGM、ローカライゼーション用 このページはKinetis(KW35/KW38/KW45/KW47)およびMCX Wx(MCX W71/72)に関する実験的なコネクティビティ電力プロファイリングツールに捧げられています。 これにより、あなたのアプリケーション(オートモーティブやIIoT)での消費電力を推定し、ソリューションのバッテリー寿命を評価するのに役立ちます。 このページには'One コネクティビティ Power Profiling Tool'専用の電源プロファイルツールが掲載されており、以下が含まれます: 新:KW43(オートモーティブ)およびMCX W70(IIoT)製品をシミュレーションに基づくスタンドアロンで提供。 KW3x/KW4x(オートモーティブ)およびMCX W7x(IIoT)製品として単独で販売されています。 単体でMCX W23(IIoT)製品。 MCX W71およびW72製品はスタンドアロン(IIoT)で提供されています。 新:シミュレーションに基づく単体(IIoT)のMCX W70製品。 Bluetooth LE 802.15.4 マター & ZED id:NXPナレッジベース [開始日: 2026年7月31日]
View full article
FRDM-MX95 PROソフトウェアパッケージはありますか? MX95 PRO向けに利用可能なOSソフトウェアパッケージはどのようなものか気になっています。 Android AAOSはデモイメージとして利用可能でしょうか?具体的に何が利用可能になるのか、誰かとCANで話し合える人はいますか? Re: FRDM-MX95 PRO software packages? 現在、IMX95 FRDM Pro用のLinux 6.18.20_2.0.0デモイメージのみが提供されています i.MXアプリケーション・プロセッサ向け組み込みLinux |NXP Semiconductors 上記のリンクからデモ画像をダウンロードできます。Android用にはボードファイルを確認しました。最新のAndroid 16.0.0_2.0.0はカーネル6.18.20_2.0.0をベースにしている。SO、FRDM Proのサポートは可能ですが、このバージョンはまだAndroidがこのボードで認証しておらず、19x19 EVKと15x15 FRDMのみです Re: FRDM-MX95 PRO software packages? FRDM-MX95にAndroid オートモーティブが搭載されるのか、それともFRDM-MX95 Proバージョンにアップグレードしなければならないのか、何か新しい情報はありますか? Re: FRDM-MX95 PRO software packages? 車載 Androidチームの確認をもう一度させてください。オーナーは休暇中で、来週オフィスに戻ってきます。何か進展があればお知らせします Re: FRDM-MX95 PRO software packages? 以下のリンクを参照してください https://www.nxp.com/design/design-center/software/embedded-software/i-mx-software/android-automotive-os-for-i-mx-applications-processors:ANDROID-AUTO 車載 Androidのデモ画像はIMX95 19x19 EVK用のみです Re: FRDM-MX95 PRO software packages? AndroidやAAOSの計画はありますか?FRDM MX95 ProにAAOSバージョンがないのは不思議です。特に評価ボード 19x19は生産終了でベンチダウンしています。Proが19x19のプロセッサーで評価ボードとして使えない理由はありますか? Re: FRDM-MX95 PRO software packages? 残念ながら、車載 AndroidチームからIMX95 FRDMボードのサポート計画がないとの情報を受けました Re: FRDM-MX95 PRO software packages? 質問するために彼らに連絡する方法はありますか? あるいは、新しいFRDM Proボードのコンパイル方法についての指示をもらえたり、コンパイルしやすくするためにボードパッケージファイルを提供してもらえないかもしれません。 Re: FRDM-MX95 PRO software packages? ありがとう。Android オートモーティブ のサポートが本当に不足しているようです。FRDMには大きな可能性がありますが、NXPの追加サポートがなければ私たちは孤立しなければなりません。私の理解では、evkはToradexのサポートから外され、生産終了です。FRDM Proも同じハードウェアなので、ある程度のサポートがあるはずです。画像作成がずっと楽になるBSPが必要です。 Re: FRDM-MX95 PRO software packages? まだこれをサポートする計画がないので、ビルド用のパッケージを提供することはできないと思います Re: FRDM-MX95 PRO software packages? まだ掲載されていませんが、コミュニティの皆さんにお知らせしたいのは、 Android 16.0.0_2.0.0(L6.18.20_2.0.0 BSP) をeMMCにフラッシュでき、 FRDM-IMX95-PRO ボード上で問題なく動作したことです。AOSP Android 16は十分に動作し、自分専用のTrustyアプレットを展開し、対応するAndroidアプリで通信することができました。 今日NXPのウェブサイトで Android 17.0.0_1.0.0(L6.18.37_2.1.0 BSP )が投稿されているのを見ました(Android 16が動作するなら、Android 17も動作するはずだと思います)
View full article
RW612 FLEXCOMM3/I2S3 Supporting driver We are using RW612 FLEXCOMM3/I2S3 with the following fixed hardware wiring: - GPIO24 = I2S DATA input from PCM6120 SDOUT - GPIO25 = I2S SCK output to PCM6120 BCLK - GPIO26 = I2S WS output to PCM6120 FSYNC The codec is PCM6120 in slave mode. RW612 is intended to be the I2S master generating BCLK/WS and receiving audio data. What we have verified: - GPIO25/GPIO26 can be driven correctly in plain GPIO mode - FLEXCOMM3 clock source is AUDIO PLL at 12.288 MHz - I2C communication with PCM6120 is working - PCM6120 register configuration is accepted Observed behavior: 1. FLEXCOMM3 configured as I2S RX with kI2S_MasterSlaveNormalMaster does not generate any SCK/WS edges on GPIO25/GPIO26. 2. FLEXCOMM3 configured as I2S TX with kI2S_MasterSlaveNormalMaster also does not work: FIFOSTAT.TXNOTFULL=1, but TXLVL remains 0 after writes to FIFOWR, and no SCK/WS edges appear on the pins. 3. PCM6120 reports missing clocks (ASI_STS=0xFF, DEV_STS1=0x80). Questions: 1. Is RW612 FLEXCOMM I2S RX in Normal Master mode expected to drive SCK/WS onto external pins? 2. Is a single FLEXCOMM instance supported for the use case “master clock generation + receive data from external codec”, or is a dual-FLEXCOMM architecture (TX master + RX slave with I2S bridge) required? 3. For FLEXCOMM3 I2S TX master, are there additional prerequisites for FIFO writes to be accepted beyond I2S_TxInit(), FIFOWR writes, and MAINENABLE? 4. Is there any known limitation specific to FLEXCOMM3 on GPIO24/25/26 (AON domain) for I2S clock output? Pls help about the topic Re: RW612 FLEXCOMM3/I2S3 Supporting driver Hi @duyhung, hope you are doing well. Would you please clarify if you are using FreeRTOS or Zephyr to perform the tests? Are you using the FRDM-RW612 board? Please also provide which version (either SDK or Zephyr) you are using, and if you're taking an example as base for your development. Additionally, the Reference Manual of RW612 (UM11865) includes a basic configuration guide for I2S peripheral in section 28.2, would you please confirm if you have followed this general steps? Re: RW612 FLEXCOMM3/I2S3 Supporting driver Hi @RomanVR , Thank you for your response. Please find the clarifications below. 1. RTOS We are using bare-metal and FreeRTOS for both test. No Zephyr is involved in these tests. All initialization and I2S configuration are done directly with the NXP SDK drivers. 2. Board We are not using the FRDM-RW612. We are using a custom Dev Board based on RW612ETA2I. The MCU is the same, but the board layout differs. The audio codec (PCM6120) is wired to FLEXCOMM3 / I2S3 on the following fixed pins: Signal GPIO Direction I2S DATA (SDOUT from PCM6120) GPIO24 Input I2S SCK (BCLK to PCM6120) GPIO25 Output I2S WS (FSYNC to PCM6120) GPIO26 Output I2C SDA (PCM6120 config) GPIO56 (FC14) Bidirectional I2C SCL (PCM6120 config) GPIO57 (FC14) Bidirectional AUX_EN (PCM6120 power) GPIO54 Output 3. SDK Version We are using SDK_2.x_RD-RW612-BGA, version 25.03.00. 4. Base Example We used rdrw612bga_i2s_dma_record_playback as the reference example. That example uses FLEXCOMM1 (TX master) + FLEXCOMM0 (RX slave) + I2S bridge, which we confirmed is working. However, our hardware constraint forces us to use a single FLEXCOMM (FC3 only) for the entire I2S link to PCM6120. PCM6120 must work in Slave mode because we dont have External clock to source for BCLK . We attempted to configure FC3 as kI2S_MasterSlaveNormalMaster to have it generate SCK/WS while receiving data. 5. UM11865 Section 28.2 – I2S Configuration Steps We have reviewed UM11865 Section 28.2 and can confirm all 6 configuration steps are followed: Step 1: Flexcomm enabled with CLOCK_EnableClock + RESET + CLOCK_AttachClk Step 2: FIFO configured (FIFOCFG=0x35, ENABLETX=1, SIZE=8) Step 3: I2S pins set via IO_MUX_SetPinMux(IO_MUX_FC3_I2S), AON MCI_IOMUX enabled Step 4: Rate configured (CFG1 MSTSLVCFG=0b11=NormalMaster, DIV=3 → BCLK=3.072MHz) Step 6: DMA enabled in FIFOCFG Despite following all steps, we observe: - No SCK/WS edges on GPIO25/GPIO26 - TX FIFO not accepting data: TXNOTFULL=1 but TXLVL stays 0 after FIFOWR writes Section 28.2 Step 4 states "For controller operation, the clock determines the I2S rate" but does not specify whether PERSEL=I2S_RECEIVE with NormalMaster is expected to drive SCK/WS onto the pads. Can you clarify: 1. Is PERSEL=I2S_RECEIVE (0b101) capable of driving SCK/WS as outputs when MSTSLVCFG=NormalMaster? 2. Why does TXLVL remain 0 after writes to FIFOWR with PERSEL=I2S_TRANSMIT? Is MAINENABLE required before FIFOWR writes are accepted? 6. Observed Issue – Our Specific Question After all configuration above, GPIO25 and GPIO26 produce zero edges. PCM6120 reports missing clocks (ASI_STS = 0xFF, DEV_STS1 = 0x80). We further ran a diagnostic: we configured FC3 as I2S TX master (instead of RX master) and found that writes to FIFOWR do not increment TXLVL — FIFOSTAT stays at 0x30 (TXNOTFULL=1, TXLVL=0) regardless of how many words we write. Relevant register state after TX master probe:   CFG1 = 0x17003C (MSTSLVCFG=3 = NormalMaster, DATALEN=24, MAINENABLE=0) DIV = 3 (divider=4, BCLK = 12.288MHz / 4 = 3.072MHz) FIFOCFG = 0x35 (ENABLETX=1, TXI2SE0=1) FIFOSTAT = 0x30 (TXNOTFULL=1, TXLVL=0 after writes) After MAINENABLE=1: STAT = 0x5 (BUSY=1, LR=1 — clock logic running internally) SCK/WS edges on GPIO25/GPIO26: 0 Our specific question to NXP: When FLEXCOMM3 I2S is configured as kI2S_MasterSlaveNormalMaster (either TX or RX), is it expected behavior on RW612 that SCK/WS are not driven onto GPIO25/GPIO26 (AON domain), even though STAT shows the peripheral is internally running? Alternatively: Is a single-FLEXCOMM topology (one FC as both clock master and RX data receiver) supported by the RW612 I2S hardware, or does RW612 always require two separate FlexComm instances (one TX master + one RX slave via I2S bridge) for this use case? Thank you. Re: RW612 FLEXCOMM3/I2S3 Supporting driver Hi @duyhung, thanks for providing additional details of your setup. Based on the reference manual (RM00278), when the I2S instance is configured in normal master mode, the SCK and WS signals are configured to be generated but not to transmit or receive data, as it is detailed in section 31.1.2 of the RM00278 in CFG1[MSTSLVCFG] register. In the I2S driver, this configuration is applied within the "I2S_TxInit();" function, which also configures the Flexcomm instance being used and the FIFO as a transmitter instance. Given the previous information, the double Flexcomm topology with shared signals (as it is done in the example you have already tested) is suggested, as it is demonstrated in a similar example shown in Figure 9 in section 3.6.2.1.1 of UM11865. Additionally, if you are taking as base the I2S with DMA playback example, would you please share the modifications you have done to the example?
View full article
FRDM-MX95 PRO 软件套装? 我想知道MX95 PRO会有哪些操作系统软件版本可用?是否会提供Android AAOS的演示镜像?我们能否联系到相关人员,了解具体有哪些服务或产品可供选择? Re: FRDM-MX95 PRO software packages? 目前,仅提供适用于 imx95 frdm pro 的 Linux 6.18.20_2.0.0 演示镜像。 适用于 i.MX 应用处理器的嵌入式 Linux | 恩智浦半导体 您可以从上面的链接下载演示镜像。对于安卓系统,我检查了开发板文件,最新的安卓 16.0.0_2.0.0 基于内核 6.18.20_2.0.0,因此应该支持 FRDM Pro,但这个版本的安卓系统尚未在该开发板上验证过,目前只验证过 19x19 EVK 和 15x15 FRDM。 Re: FRDM-MX95 PRO software packages? 请问frdm-mx95是否会支持Android Automotive?还是必须升级到frdm-mx95专业版? Re: FRDM-MX95 PRO software packages? 请参考以下链接。 https://www.nxp.com/design/design-center/software/embedded-software/i-mx-software/android-automotive-os-for-i-mx-applications-processors:ANDROID-AUTO 自动安卓演示图片仅适用于 imx95 19x19 evk Re: FRDM-MX95 PRO software packages? 我再确认一下安卓自动团队的情况,负责人正在休假,下周才会回来上班,有任何更新我会通知你。 Re: FRDM-MX95 PRO software packages? 是否有针对安卓或AAOS系统的计划?FRDM MX95 Pro 没有 AAOS 版本似乎很奇怪,尤其是考虑到评估板 19x19 已经停产并停止测试。19x19处理器的Pro版为什么不能用作评估板? Re: FRDM-MX95 PRO software packages? 我可以通过什么方式联系他们询问问题? 或者他们能否给我们一些关于如何编译新的frdm pro板的说明?也许他们可以提供板包文件,以便我们更容易地进行编译? Re: FRDM-MX95 PRO software packages? 很遗憾,我从安卓汽车团队那里得知,他们没有任何支持IMX95 FRDM主板的计划。 Re: FRDM-MX95 PRO software packages? 谢谢。目前看来,Android车载系统确实缺乏支持。frdm 具有很大的潜力,但如果没有 nxp 的额外支持,我们就只能靠自己了。据我了解,Evk 已停止获得 Toradex 的支持并停产。由于 frdm pro 与 frdm pro 采用相同的硬件,因此应该可以获得一些支持。我们需要电路板支持包。,它可以让构建镜像变得更加容易。 Re: FRDM-MX95 PRO software packages? 由于他们目前还没有支持这方面的计划,我认为他们无法提供任何构建代码包,软件包。 Re: FRDM-MX95 PRO software packages? 虽然还没有被列入名单,但我只是想告诉大家,我已经成功地将Android 16.0.0_2.0.0 (L6.18.20_2.0.0 电路板支持包。)刷入 eMMC,并且在我的FRDM-IMX95-PRO板上运行良好。 AOSP Android 16 运行良好,我可以部署自己的自定义 Trusty 小程序,并让相应的 Android 应用随后与其通信。 我今天在NXP网站上看到了Android 17.0.0_1.0.0 (L6.18.37_2.1.0 电路板支持包。) (如果Android 16可以运行,我猜Android 17也应该可以运行)。
View full article
i.MX8MP散热器解决方案 我们正在考虑为基于 i.MX 8M Plus 的信息娱乐应用采用以下被动散热解决方案: 铝制散热片:20 × 20 × 1.5 毫米(最大可达 30 × 30 × 2 毫米) TIM:汉高贝格奎斯特间隙填充剂 TGF 2000 铝板将用作 i.MX 8M Plus 顶部的散热片。 对于典型的车载信息娱乐系统工作负载而言,这种解决方案是否足够?如果没有,您能否推荐合适的散热器尺寸或任何其他散热要求? Re: i.MX8MP Heat Spreader Solution 嗨@Wobaffet , 感谢您联系恩智浦技术支持! 为此,我建议查阅i.MX8MP 硬件设计指南,特别是第 7.8 章“散热器注意事项”,其中提供了有关 i.MX8MP 热管理和散热器实施的详细信息和设计建议。 本章涵盖了确保设备具有良好的热性能和可靠运行所需的关键要求和注意事项。 此致, 查维拉
View full article
S32K3 DMA 逻辑链路通道 你好, 我应该如何使用DMA逻辑链路通道功能(主循环或次循环)?我使用通道 0 连接到通道 1。为什么通道 0 完成了传输并导致中断,而通道 1 没有传输任何数据? 附件是我的测试项目 BR 杰森 回复: S32K3 DMA logic link channel 需要检查此配置。
View full article
FS6500的故障标志清除行为 大家好, 我有一个关于 FS6500 故障标志清除行为的问题。   根据数据手册,MODE 寄存器(地址 0x15)内的 LPOOF(位 0)和 DFS(位 1)标志只能通过上电复位或寄存器读取操作清除。 然而,根据我的硬件测试:   向 MODE 寄存器写入数据还会意外地清除 LPOOF 和 DFS 故障位。   数据手册中没有说明写入操作可以清除这些状态标志。 您能否帮忙解释一下造成这种现象的根本原因?   这是硅芯片的预期行为还是未记录的副作用?   谢谢 & 此致敬礼   DEVKIT-MPC5744P FS6500 Re: Fault flag clearing behavior of FS6500 你好, 请检查您的书写说明是否正确。 在大多数软件驱动程序中,寄存器写入操作都是以读-修改-写 (RMW) 序列实现的。 如果数据手册规定读取 MODE 会清除 LPOOF/DFS,那么这些标志可能在读取阶段就已经被清除了。随后的写入操作只会造成写入操作导致清除的假象。 顺祝商祺! Peter
View full article
S32K3 SPIクロック異常低 私はSPIテストを行うためにS32K344 EVBを使用しています。私はPTB14からPTB17までのピンを持つLPSPI1ユニットをマスターとして使用し、RTD 4.0.0を使用しています。P19.SPIはモード3:CPOL=1、CPHA=1です。 Spi_SyncTransmit を呼び出した後、以下のようにオシロスコープで測定したところ、フレームが実際に送信される前にクロックピンが低くなりました。その原因は何でしょうか?どうすれば直せますか? Re: S32K3 spi clk abnormal low こんにちは、 @zyt この動作は通常、EPSPIモジュールのリセットを実行するERR050456の最初の回避策によって引き起こされます。この状況はすでに他のThreadで議論されており、例えば [MCU S32K312]でCSラインが低くなる前に追加のSPIクロックパルスが現れる。 そのThreadで説明されているように、低パルスを解消できると予想される代替の回避策を適用できます。この回避策を有効にするには、プロジェクトに次のマクロを定義してください。 ERR_IPV_LPSPIV2_E050456_2ND_SOLUTION BR、VaneB
View full article
i.MX8MQ: Does the Boot ROM support booting from FlexSPI/QSPI NOR flash? Hello, Hardware: - i.MX8MQ (REV A0), custom board based on EVK design - QSPI NOR: Micron MT25QL256A (32MB, 3.3V, Quad connected) - BSP: Yocto Scarthgap, NXP BSP, U-Boot 2024.04 (u-boot-imx) Goal: Boot the bootloader (SPL + ATF + U-Boot) from FlexSPI NOR flash. Kernel and rootfs remain on eMMC. What works: - U-Boot (loaded to RAM via uuu SDP/SDPV) runs fine - "sf probe" detects the flash correctly: mt25ql256a, 32 MiB - U-Boot can read and write the flash reliably (verified with read-back tests after "sf protect unlock") - Image is built with IMXBOOT_TARGETS = "flash_evk_flexspi" Flash layout (verified by reading back from the chip): 0x000000: FCFB header - "qspihdr check" reports "Found boot config header in Q(F)SPI" tag = 42464346, version = 56010000 0x001000: IVT - d1 00 20 41, entry = 0x007E1000, boot_data = 0x007E0FE0, self = 0x007E0FC0 0x060000: U-Boot proper FIT (d00dfeed), matches CONFIG_SYS_SPI_U_BOOT_OFFS=0x60000 Problem: With boot switches set to QSPI/FlexSPI boot and the USB cable physically disconnected, the board does not boot. Nothing is printed on the serial console (SPL banner never appears), and the ROM falls back to serial download mode: uuu -lsusb 2:1 MX8MQ SDP: 0x1FC9 0x012B NXP FLASH BT_FUSE_SEL is not blown; boot configuration is done via GPIO boot pins. What I have already tried: - Both header formats: scripts/qspi_header (c0ffee01 tag) and scripts/fspi_header (FCFB tag). Fixed soc.mak so that flash_evk_flexspi uses fspi_header with offset 0. - Varying FCFB parameters: sflashA1Size, serialClkFreq (50MHz -> 20MHz), dataSetupTime/dataHoldTime, sflashPadType - "uuu -b qspi" (the official built-in script) - "qspihdr update safe" and "qspihdr init safe" - Erasing the flash completely vs. writing the full image: boot behaviour is essentially identical (SDP appears after ~1.6s vs ~1.8s), which suggests the ROM may not be reading the flash at all. Questions: 1. Does the i.MX8MQ Boot ROM support booting from serial NOR flash over FlexSPI at all? The Reference Manual section I have lists NAND flash and SD/MMC as boot devices, but I could not find FlexSPI/QSPI NOR listed. i.MX8MM/8MN documentation seems to describe it, but I am unsure about 8MQ. 2. If it is supported, what is the exact expected flash layout? Should the IVT be at offset 0x400 or 0x1000 when an FCFB is present at 0x0? 3. What is the correct BOOT_MODE / BOOT_CFG combination to select FlexSPI NOR boot on i.MX8MQ? 4. Are there any known errata for REV A0 silicon regarding FlexSPI boot? Thank you.
View full article
发送协议 大家好 我正在尝试弄清楚如何在 S32K311 PCB 板上实现 SENT 协议,以检测致动器的位置,因为它有一个位置传感器。由于 NXP 没有与 SENT 协议相关的块集。如果有人愿意分享,那将对我们非常有帮助。 Re: SENT Protocol 您好@ Ganesh808 如果您正在使用 S32 DS + RTD,我们的 S32 DS 示例代码提供了一个使用 flexio 实现 SENT 协议的演示。 如果你使用的是 MBDT,以下是我见过的一个类似答案: https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SENT-Protocol-Support-in-S32K3-MBDT/td-p/1775025 如果您在使用 MBDT 开发项目时遇到任何问题,请下次在 MBDT 论坛中提问。这是一个专门用于回答MBDT问题的论坛。
View full article
#S32K388 S32K388 LPI2Cはデバッグモードに入ると停止します lpi2cを使用している際に、プログラムがデバッグモードで停止してしまうという状況に遭遇しました。しかし、PE接続を切断してプログラムを再起動したところ、正常に動作しました。プログラムが実行中にデバッグモードで停止した。 する ヤージュ /* マスターがデータを送信する */ Lpi2c_Ip_MasterSend(Instance); ElapsedTicks += OsIf_GetElapsed(&CurrentTicks, I2C_TIMEOUT_TYPE); }while ((Lpi2c_Ip_MasterGetTransferStatus(Instance, NULL_PTR) == LPI2C_IP_BUSY_STATUS) && (ElapsedTicks < TimeoutTicks)); この問題を解決する方法はありますか? Re: #S32K388 S32K388 LPI2C will stop when debug mode is entered こんにちは@zhangyu5454 I2Cデバッグ有効化オプションが選択されているか確認してもらえますか? MCR[DBGEN] = 1のとき、LPI2CモジュールはMCUのデバッグ中も動作を続けます。 MCR[DBGEN] = 0の場合、アプリケーションをプログラムし、デバッガを接続せずに通常通りボードを動作させた後、LPI2Cは期待通りに動作します。 BR、VaneB Re: #S32K388 S32K388 LPI2C will stop when debug mode is entered ご返信ありがとうございます。私は.mexを使ってi2cの設定をしていますが、どうやってMCR[DBGEN] =1をコントロールするように設定すればいいですか? Re: #S32K388 S32K388 LPI2C will stop when debug mode is entered こんにちは@zhangyu5454 参考までに、以下の画像を掲載しました。 Re: #S32K388 S32K388 LPI2C will stop when debug mode is entered こんにちは@zhangyu5454 このオプションは最新のRTDリリースに追加され、ペリフェラルツールから直接設定できるようになりました。 以前のRTDバージョンを使用しているため、アプリケーションコード内でMCR[DBGEN]を設定するのが推奨されます。 Re: #S32K388 S32K388 LPI2C will stop when debug mode is entered ページの表示が異なっていることに気づきました。このオプションが見つかりませんでした。私のバージョンはRTD5.0です。
View full article
RW612 FLEXCOMM3/I2S3 サポートドライバー 当社では、以下の固定ハードウェア配線でRW612 FLEXCOMM3/I2S3を使用しています。 - GPIO24 = PCM6120 SDOUTからのI2Sデータ入力 - GPIO25 = PCM6120 BCLKへのI2S SCK出力 - GPIO26 = PCM6120 FSYNCへのI2S WS出力 コーデックはスレーブモードのPCM6120です。 RW612は、BCLK/WSを生成し、オーディオデータを受信するI2Sマスターとして設計されています。 確認した内容: - GPIO25/GPIO26はプレーンGPIOモードで正しく駆動可能です - クロックFLEXCOMM3 12.288 MHzのオーディオ PLLです - PCM6120とのI2C通信が正常に動作している - PCM6120レジスタ構成が受け入れられます 観察された行動: 1. kI2S_MasterSlaveNormalMasterでI2S RXとして構成されたFLEXCOMM3は、GPIO25/GPIO26でSCK/WSエッジを生成しません。 2. kI2S_MasterSlaveNormalMaster で I2S TX として構成された FLEXCOMM3 も動作しません。FIFOSTAT.TXNOTFULL=1 ですが、FIFOWR への書き込み後も TXLVL は 0 のままで、ピンに SCK/WS エッジが表示されません。 3. PCM6120はクロックの欠落を報告します(ASI_STS=0xFF、DEV_STS1=0x80)。 質問: 1.RW612 FLEXCOMM I2S RXがノーマルマスターモードでSCK/WSを外部ピンに駆動することが期待されますか? 2. 「マスタークロック生成+外部コーデックからデータ受信」というユースケースで単一のFLEXCOMMインスタンスがサポートされているのか、それともデュアルFLEXCOMMアーキテクチャ(TXマスター+RxスレーブとI2Sブリッジ)が必要か? 3.FLEXCOMM3 I2S TXマスターの場合、I2S_TxInit()、FIFOWR書き込み、およびMAINENABLE以外に、FIFO書き込みを受け入れるための追加の前提条件はありますか? 4. FLEXCOMM3のGPIO24/25/26(AONドメイン)におけるI2Sクロック出力に関して、既知の制限事項はありますか? この話題について助けてください Re: RW612 FLEXCOMM3/I2S3 Supporting driver こんにちは、 @duyhung さん。お元気でお過ごしでしょうか。 テストを行うためにFreeRTOSを使っているのか、それともZephyrを使っているのか、教えていただけますか?FRDM-RW612ボードを使用していますか? また、どのバージョン(SDKかZephyr)を使っているか、また開発の基準として例を取っているかも教えてください。 さらに、RW612(UM11865)のリファレンス・マニュアルには28.2節にI2Sペリフェラルの基本構成ガイドが含まれていますが、この一般的な手順を踏んだか確認していただけますか? Re: RW612 FLEXCOMM3/I2S3 Supporting driver こんにちは、 @RomanVR さん。 ご回答ありがとうございます。下記の説明をご覧ください。 1. RTOS 私たちは使用しています ベアメタルとFreeRTOSの両方でテストを実施しました。これらのテストにはZephyrは関与していません。すべての初期化およびI2S設定はNXP SDKsドライバで直接行います。 2. ボード 私たちは ない FRDM-RW612を使用します。私たちは カスタム開発ボード RW612ETA2Iをベースにしています。MCUは同じですが、ボードのレイアウトが異なります。 オーディオコーデック(PCM6120)は以下の固定ピンで FLEXCOMM3 / I2S3 に接続されています: 信号GPIO方向 I2Sデータ(PCM6120からのSD出力) GPIO24 入力 I2S SCK(BCLKからPCM6120へ) GPIO25 出力 I2S WS(FSYNCからPCM6120) GPIO26 出力 I2C SDA (PCM6120設定) GPIO56 (FC14) 双方向 I2C SCL(PCM6120設定) GPIO57 (FC14) 双方向 AUX_EN(PCM6120電源) GPIO54 出力 3. SDKバージョン 私たちは SDK_2.x_RD-RW612-BGA、バージョン25.03.00 を使用しています。 4. 基本例 私たちは rdrw612bga_i2s_dma_record_playback 参考例として。この例では FLEXCOMM1(TXマスター)+ FLEXCOMM0(RXスレーブ)+ I2Sブリッジ。動作確認済みです。 しかし、ハードウェアの制約により、 シングルFLEXCOMM(FC3のみ) PCM6120へのI2Sリンク全体について。PCM6120はスレーブモードで動作する必要があります。なぜなら、BCLKのソースとなる外部クロックがないからです。FC3を次のように構成しようと試みました kI2S_MasterSlaveNormalMaster データを受信しながらSCK/WSを生成するようにする。 5. UM11865 セクション 28.2 – I2S 設定手順 セクション28.2 UM11865確認し、6つの構成すべてを確認しています 手順は以下の通りです: ステップ1:Flexcommを有効にし、CLOCK_EnableClock+RESET + CLOCK_AttachClk ステップ2:FIFOXの設定(FIFOCFG=0x35、ENABLETX=1、SIZE=8) ステップ3:IO_MUX_SetPinMux(IO_MUX_FC3_I2S)でI2Sピンを設定し、AON MCI_IOMUX有効化 ステップ4:レート設定(CFG1 MSTSLVCFG=0b11=NormalMaster、DIV=3 → BCLK=3.072MHz) ステップ6:FIFOCFGでDMAを有効にする すべての手順に従ったにもかかわらず、以下のことが観察されました。 - GPIO25/GPIO26にSCK/WSエッジがない - TX FIFOがデータを受け付けない: TXNOTFULL=1だが、FIFOWR書き込み後もTXLVLは0のまま セクション28.2のステップ4には「コントローラの動作に関しては、クロックが I2S レート」ですが、PERSEL=I2S_RECEIVE が NormalMasterはパッドにSCK/WSを駆動する予定です。 もう少し詳しく教えていただけますか: 1.PERSEL=I2S_RECEIVE (0b101) は SCK/WS を出力として駆動できますか? MSTSLVCFG=NormalMaster の場合? 2. PERSEL=I2S_TRANSMITを指定してFIFOWRに書き込みを行った後、TXLVLが0のままになるのはなぜですか? FIFOWR書き込みを受け入れる前にMAINENABLEが必要ですか? 6.観察された問題点 – 具体的な質問 上記の設定がすべて完了したら、 GPIO25とGPIO26はゼロエッジを生成します。PCM6120 はクロックが欠落していることを報告します (ASI_STS = 0xFF、 DEV_STS1 = 0x80)。 さらに診断を実行しました。FC3を次のように構成しました。 I2S TXマスター (RXマスターの代わりに)そして、 FIFOWRへの書き込みはTXLVLをインクリメントしない — FIFOSTATは 0x30 (TXNOTFULL=1、TXLVL=0)私たちが書く単語の数に関係なく。 TXマスタプローブ後の関連レジスタの状態:   CFG1 = 0x17003C (MSTSLVCFG=3 = ノーマルマスター、DATALEN=24、MAINENABLE=0) DIV = 3 (分周器=4、BCLK = 12.288MHz / 4 = 3.072MHz) FIFOCFG = 0x35 (ENABLETX=1、TXI2SE0=1) FIFOSTAT = 0x30 (書き込み後、TXNOTFULL=1、TXLVL=0) MAINENABLE=1 の後: STAT = 0x5 (BUSY=1、LR=1 — クロックロジックが内部で動作中) GPIO25/GPIO26のSCK/WSエッジ: 0 NXPへの具体的な質問: FLEXCOMM3 I2Sが kI2S_MasterSlaveNormalMaster (TXまたはRX)として設定されている場合、RW612上でSCK/WSがGPIO25/GPIO26(AONドメイン)に駆動され ない ことが期待される動作でしょうか?STATではペリフェラルが内部で動作していると示されていてもです。 あるいは、単一のFLEXCOMMトポロジー(1つのFCがクロックマスターとRXデータ受信機の両方として)はRW612 I2Sハードウェアで サポートされている のでしょうか?それともRW612は常に2つの別々のFlexCommインスタンス(1つのTXマスター+1つのI2Sブリッジ経由のRXスレーブ)を必要とするのでしょうか? よろしくお願いします。 Re: RW612 FLEXCOMM3/I2S3 Supporting driver こんにちは、 @duyhung さん。セットアップの詳細情報を提供していただきありがとうございます。 参考マニュアル(RM00278)に基づき、I2Sインスタンスが通常のマスターモードで設定されている場合、SCKおよびWS信号は生成されるものの、データの送受信はしないように設定されており、これはCFG1[MSTSLVCFG]レジスタの31.1.RM00278 2節に詳述されています。I2Sドライバーでは、この構成は「I2S_TxInit(;「関数」は、使用中のFlexcommインスタンスと送信機インスタンスとしてのFIFOも設定します。 上記の情報に基づくと、共有信号を使用したダブルFlexcommトポロジー(既にテストした例で行われているように)が推奨されます。これは、 UM11865のセクション3.6.2.1.1の図9に示されている同様の例で実証されています。 また、I2SとDMA再生のサンプルコードをベースにしている場合、そのサンプルコードに加えた変更点について教えていただけますでしょうか?
View full article
Is .exe the usual package format? Hi, I'm the developer of CAN/UART bootloaders for some microcontroller families. I want to figure out whether it makes sense to extend the range of supported microcontrollers and to add support for some NXP devices. So far, I never worked with NXP microcontrollers. I was a little bit surprised that when I search for the term "bootloader" here in the forums and on the NXP website, I find a lot of windows executables to be downloaded. When I add the term "bootloader" to the search bar on the main web site, the second hit is even a direct link to a crypto currency web side. When I want to have a look at the "Unified bootloader Demo", do I really have to have a Windows PC and have to download and execute an .exe file? best regards Torsten
View full article
KW45B41Z-EVK: BLE clock source and internal clock path for the BLE radio to get 2.4GHz Hello NXP Team, I am working with the KW45B41Z-EVK  and would like to understand the clock architecture used by the BLE subsystem. I have gone through the KW45B41 Reference Manual, KW45B41Z-EVK User Manual, and the SDK clock initialization code, but I could not find a detailed description of the BLE clock source and its internal clock path. Could you please clarify the following: What is the primary clock source used by the BLE (for example, SOSC, FRO, PLL, or another clock source)? What is the complete clock path from the oscillator to the BLE radio to get 2.4GHz? Specifically, which clock modules, multiplexers, dividers, or PLLs are involved before the clock reaches the BLE subsystem? Does the BLE subsystem use different clock sources during advertising, scanning, connected mode, or sleep mode? Is there a clock tree diagram or application note that illustrates the BLE clock architecture for the KW45B41 device? Which sections of the Reference Manual or any other NXP documentation describe this in detail? If possible, a block diagram of the BLE clock path or references to the relevant documentation would be greatly appreciated. Thank you for your support. Best regards, Re: KW45B41Z-EVK: BLE clock source and internal clock path for the BLE radio to get 2.4GHz Hello, Hope you are doing well! The primary clock source for the BLE subsystem is the OSC-RF (RF Oscillator), in conjunction with an external crystal or resonator, generates a reference clock for the KW45 Radio. It supports either 26 MHz or 32 MHz and operates in a completely separate power domain from the main CPU clock domain, serving exclusively as the reference clock for the Radio subsystem. The KW45 Reference Manual includes two figures that might be particularly helpful to visualize the BLE clock architecture: Figure 68. Device clock sources and trees Figure 222. Radio Clocking As described in section 55.4.4 of the RM, the radio uses three clock sources: the Radio XO (OSC-RF), the FRO-192M, and the SOC 32.768 kHz from the CCM32K module. During active operating mode (including advertising, scanning, and connected), all three clock domains are simultaneously active. The OSC-RF and its XCVR PLL are running to support radio TX and RX (this is managed internally by the NBU firmware), the FRO-192M is clocking the NBU CM3 core for Link Layer execution, and the 32K_CLK is running in the background to track connection and advertising intervals. For low-power mode behavior, Table 209 describes how each clock module behaves across the different power states. It might also be helpful to use the Clocks Tab from MCUXpresso Config Tools. There, you can visualize the clock sources routed for each domain, see the interactive clock tree, and change clock sources as needed. It also generates the clock initialization source code, which can be a helpful reference for understanding how each clock domain is configured at startup. Best regards, Sofia.
View full article
SENT Protocol Hi community I am trying to figure out how to implement SENT protocol on S32K311 PCB board for position detection of Actuator as it has position sensor. As NXP doesn't have Block set related to SENT protocol. It will be a great help if someone is willing to share. Re: SENT Protocol Hi@Ganesh808 If you are using S32 DS + RTD, our S32 DS example code provides a demo of implementing the SENT protocol using flexio. If you are using MBDT, here's a similar answer I've seen: https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SENT-Protocol-Support-in-S32K3-MBDT/td-p/1775025 If you are developing a project using MBDT and encounter any problems, please ask in the MBDT forum next time. This is a dedicated forum for answering MBDT questions.
View full article
#S32K388 S32K388 LPI2C will stop when debug mode is entered When using lpi2c, I encountered a situation where the program got stuck in debug mode. However, when I disconnected the PE connection and restarted the program, it worked properly. The program got stuck in debug mode during runtime. do { /* Master send data */ Lpi2c_Ip_MasterSend(Instance); ElapsedTicks += OsIf_GetElapsed(&CurrentTicks, I2C_TIMEOUT_TYPE); }while ((Lpi2c_Ip_MasterGetTransferStatus(Instance, NULL_PTR) == LPI2C_IP_BUSY_STATUS) && (ElapsedTicks < TimeoutTicks)); Is there any way to solve this problem? Re: #S32K388 S32K388 LPI2C will stop when debug mode is entered Hi @zhangyu5454  Could you please check if the I2C Debug Enable option is selected? When MCR[DBGEN] = 1, the LPI2C module continues to work while the MCU is being debugged. When MCR[DBGEN] = 0, after programming the application and running the board normally (without a debugger attached), the LPI2C should work as expected. BR, VaneB Re: #S32K388 S32K388 LPI2C will stop when debug mode is entered Hi @zhangyu5454  I have included the image below for reference: Re: #S32K388 S32K388 LPI2C will stop when debug mode is entered Thanks for your reply.I use .mex to configure i2c, how can I set it to control MCR[DBGEN] =1 Re: #S32K388 S32K388 LPI2C will stop when debug mode is entered Hi @zhangyu5454  This option has been added to the latest RTD release and can now be configured directly through the Peripherals Tool.  As you are using an earlier RTD version, configuring MCR[DBGEN] in the application code would be the recommended approach. Re: #S32K388 S32K388 LPI2C will stop when debug mode is entered I noticed that our pages display differently, I couldn't find this option, note that my version is RTD5.0
View full article