Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
i.MX 8ULP SPI NANDブート:FCB0が破損した場合、ブートROMはFCB1にフォールバックしない こんにちは、NXPコミュニティの皆さん、 私はi.MX 8ULPを使用しており、SPI NANDフラッシュ(Winbond W25N04LW)からブートしています。 私の理解では、FCB0が破損した場合、ブートROMは自動的にFCB1に切り替わるはずです。しかし、 FCB0が破損すると、システムは起動に失敗します。具体的には、ブートROMはFCB1を読み込もうとすらしないようです。 以下は私の「SPI NANDブートパラメータ」ヒューズ設定です。 FlexSPI NAND検索ストライド :00(64ページ) FlexSPI NAND検索回数 :00(2) FlexSPI NAND CS間隔:00(100ns) FlexSPI NAND 列アドレス幅: 01 (13) その他のヒューズはすべてデフォルト値のままです。 プロトコルアナライザを使用してSPI通信を監視しました。電源投入時に、 i.MX 8ULPはページアドレス0x000000のFCB0を読み取るページデータ読み取り(13h)を発行します。 FCB0が破損しているため、Boot ROMは64ページの検索ストライドに基づくページアドレス0x000040でFCB1を読み取ると思っていました。しかし実際には、FCB1を試さずに再度FCB0を読み込もうとします。 参考までに、私のSPI NANDメモリマップは以下のとおりです。 0x00000000 ┌─────────────────────────────────┐ │ ブロック 0 : FCB0 │ 0x00040000 ├─────────────────────────────────┤ │ ブロック 1 : FCB1 │ 0x00080000 ├─────────────────────────────────┤ │ ブロック 2 : DBBT0 │ 0x000C0000 ├─────────────────────────────────┤ │ ブロック 3 : DBBT1 │ 0x00100000 ├─────────────────────────────────┤ │ ブロック4-15:プライマリファームウェア │ 0x00400000 ├─────────────────────────────────┤ │ ブロック 16~31:セカンダリファームウェア│ 0x00800000 └─────────────────────────────────┘ FCB0を意図的に破損させるために2つの異なる方法を試しましたが、どちらの場合も挙動は同じでした(FCB1は一度も読み取られませんでした): ブロック0を完全に消去しました。 FCBの指紋を「NFCB」から「NFC@」に変更しました。 質問: FCB0が破損した場合にフォールバックメカニズムでFCB1を読み取るために、追加のFuse設定や特定の構成が必要ですか? サポートありがとうございます。 i.MX8ULP Re: i.MX 8ULP SPI NAND Boot: Boot ROM does not fall back to FCB1 when FCB0 is corrupted 追記として、追加の観察事項と質問を述べたいと思います。 もしBoot ROMが特定のFCBを読み取れなかった場合、停止する前に同じFCBを一度だけ読み直すように設計されているのかもしれません。もしこの仮説が正しければ、「FlexSPI NAND検索カウント」ヒューズを増やすことで、起動ROMにさらに探索を強制することで問題が解決されるかもしれません。 i.MX 8ULPリファレンスマニュアルには明示的に詳述されていませんが、i.MX 91(互換性のあるSPI NANDブートアーキテクチャを共有していると思われる)のFusemapでは、検索カウントを次のように説明しています。 FlexSPI NAND検索カウント 00 - 2 01 - 2 10 - 4 11 - 8 この検索数の仕様は i.MX 8ULPでも同一であると考えてよいのでしょうか? どんなご意見でも大変ありがたく思います。 Re: i.MX 8ULP SPI NAND Boot: Boot ROM does not fall back to FCB1 when FCB0 is corrupted こんにちは、リタさん。 迅速なご返信とサポート、ありがとうございます! 念のため確認すると、私たちが観察している問題は内部のBoot ROM実行フェーズのみで発生しており、これはBSPやユーザーソフトウェアが読み込まれたり実行されたりする前の段階です。このため、BSPのバージョンはこの特定の動作には影響しないはずです。 私の核心的な質問は、ブートROMの内部仕様に関するものです。FCB0が破損している場合、i.MX 8ULPブートROMは具体的にどのような条件下でFCB1の読み取りを試みるのでしょうか? また、前回のフォローアップで述べたように、このフォールバック動作は i.MX 91のように「FlexSPI NAND 検索 Count」ヒューズ設定に関係しているのでしょうか? この内部ロジックについて、Boot ROMのエンジニアリングチームにご相談いただけると大変ありがたいです。 お時間を割いていただき、またご協力いただき、ありがとうございました! よろしくお願いします、 ミゾ族 Re: i.MX 8ULP SPI NAND Boot: Boot ROM does not fall back to FCB1 when FCB0 is corrupted こんにちは@DaisukeMizobuchiさん 使用しているBSPのバージョンは何ですか? 素敵な一日をお過ごしください よろしくお願いいたします。 リタ Re: i.MX 8ULP SPI NAND Boot: Boot ROM does not fall back to FCB1 when FCB0 is corrupted こんにちは、リタさん。 このThreadについて、さっさと続けてお願いします。Boot ROMのフォールバック動作や検索 Countのヒューズについて、社内のエンジニアリングチームに確認する機会はありましたか? たとえまだ調査中であっても、最新情報をお知らせいただければ大変ありがたいです。 ありがとう、 ミゾ族
View full article
IAR Plugin Manager for S32DS3.5 I am trying to integrate IAR EWARM FS 8.50.10 into S32 Design Studio 3.5. According to the NXP integration guide, the recommended flow is to install the IAR Plugin Manager from the IAR Eclipse update site and then use the Plugin Manager to install the corresponding IAR Eclipse plugin. However, the latest IAR Plugin Manager available from the current update site requires Java 17, while S32DS 3.5 is running with Java 11.0.11. As a result, the Plugin Manager cannot be resolved/started in S32DS 3.5. The Error Log shows: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=17))" Could anyone confirm: Which IAR Plugin Manager version/build was validated with S32DS 3.5? Where can I download the older Java 11-compatible IAR Plugin Manager package/update site? For IAR EWARM FS 8.50.10, which IAR Eclipse plugin version/build should be used with S32DS 3.5? If anyone still has a working S32DS 3.5 + IAR 8.50.10 environment, could you please share the installed IAR Plugin Manager/plugin version numbers? Thanks! Re: IAR Plugin Manager for S32DS3.5 Hello @LeoYang-, I have sent you a private message. Best regards, Julián
View full article
OpenSSLプロバイダーでCMS復号が失敗:EVP_PKEY_CTX_set_ecdh_cofactor_modeコマンドがサポートされていません se05x-openssl-privder の GitHub リポジトリで報告されたこの問題と同様の問題に遭遇しました。 https://github.com/NXPPlugNTrust/se05x-openssl-provider/issues/4 この問題に対する解決策はありますか? SE050
View full article
IMX8MM ECSPI引脚未配置为SPI;卡在GPIO模式 我有一颗 IMX8MM 处理器,我正在尝试将其配置为 Linux 6.6.52.2.2.1。其中一个关键外围设备位于 ECSPI1 上。在DTS中,引脚控制组设置如下: pinctrl_ecspi1: ecspi1grp { #define CAN_CS_N_PIN <&gpio5 9 GPIO_ACTIVE_LOW> fsl,pins = < MX8MM_IOMUXC_ECSPI1_SCLK_ECSPI1_SCLK 0x19 MX8MM_IOMUXC_ECSPI1_MOSI_ECSPI1_MOSI 0x19 MX8MM_IOMUXC_ECSPI1_MISO_ECSPI1_MISO 0x19 MX8MM_IOMUXC_ECSPI1_SS0_GPIO5_IO9 0x15F // GPIO CS to avoid known hardware bug >; }; 引脚控制组绑定到 ecspi1,如下所示 &ecspi1 { clocks = <&clk IMX8MM_CLK_ECSPI1_ROOT>, <&clk IMX8MM_CLK_ECSPI1_ROOT>; clock-names = "ipg", "per"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_ecspi1>; num-cs = <1>; cs-gpios = CAN_CS_N_PIN; #address-cells = <1>; #size-cells = <0>; status = "okay"; // Peripheral 0 }; 但是,当我使用 memtool 检查 SCLK、MOSI 和 MISO 的引脚复用配置时,它显示为 5,这是 GPIO 模式,也是默认值。 果然,时钟没有脉冲,但我可以使用 gpioset 命令将这些引脚作为 GPIO 进行控制。 这些引脚复用器处于默认值这一事实表明我在 DTS 中缺少某些东西,但我不知道是什么。有人了解情况吗? i.MX 8M | i.MX 8M Mini | i.MX 8M Nano Linux Re: IMX8MM ECSPI pins not configuring for SPI; stuck in GPIO mode 嗨@jmosi 请反编译你正在使用的 dtb 文件,需要检查是否有其他代码将 ECSPI 引脚设置为 GPIO 模式。 此致, 志明 Re: IMX8MM ECSPI pins not configuring for SPI; stuck in GPIO mode 分解过程已完成。初步检查未发现任何重复使用情况——ECSPI1 的引脚复用寄存器偏移量(0x1f4、0x1f8、0x1fc、0x200)除了我设置的(ecspi1grp)之外,没有出现在输出的任何其他 fsl、pin 属性中——但我对这些事情远非专家。您的意见非常宝贵。谢谢你! Re: IMX8MM ECSPI pins not configuring for SPI; stuck in GPIO mode 嗨@jmosi 我检查了反编译后的 DTS 文件,看起来一切正常——没有配置问题。请确认运行时是否正在使用此 DTB,以及是否存在 DTB 覆盖配置。 此致, 志明
View full article
[KW45B41Z]J-Link GDBサーバーエラー:カスタムハードウェア上でターゲットに接続できません チームの皆様へ 私は上記の問題に直面しています。この問題を解決するのを手伝ってください。 ハードウェア:KW45B41Zデバッガ付きカスタムボード:SEGGER J-Link IDE:MCUXpresso カスタムKW45B41Zボードのフラッシュ/デバッグを試みると、J-Link GDBサーバーから次のポップアップエラーが表示されます。「J-Link GDBサーバーがエラーを報告しました。」理由:エラー:ターゲットに接続できません。」 IDEとエラーポップアップのスクリーンショットを添付しました。カスタムデザインでJ-Linkが接続できない場合、この特定のMCUで推奨されるトラブルシューティング手順は何ですか?
View full article
i.MX 8ULP SPI 与非 启动:当 FCB0 损坏时,启动 ROM 不会回退到 FCB1。 NXP社区的各位好, 我正在使用 i.MX 8ULP,并从 SPI 与非 闪存(Winbond W25N04LW)启动。 我的理解是,如果 FCB0 损坏,启动 ROM 应该会自动回退到 FCB1。然而,当 FCB0 损坏时,系统却无法启动。具体来说,启动 ROM 似乎根本没有尝试读取 FCB1。 以下是我的“SPI 与非 启动参数”熔丝设置: FlexSPI 与非 搜索步长:00(64 页) FlexSPI 与非 搜索计数:00 (2) FlexSPI 与非 CS 间隔:00 (100ns) FlexSPI 与非列地址宽度:01 (13) 其他所有熔丝均保持默认值。 我使用协议分析仪监测了 SPI 通信。 上电后, i.MX 8ULP 发出页面数据读取 (13h) 请求,读取页面地址 0x000000 处的 FCB0。 由于 FCB0 已损坏,我预期启动 ROM 会读取地址为 0x000040 的 FCB1 (基于 64 页的搜索步长)。然而,它却直接尝试再次读取 FCB0,而没有尝试读取 FCB1。 作为参考,我的SPI 与非存储器映射如下: 0x00000000 ┌──────────────────────────────────┐ │ 区块 0:FCB0 │ 0x00040000 ├──────────────────────────────────┤ │ 区块 1:FCB1 │ 0x00080000 ├──────────────────────────────────┤ │ 模块 2:DBBT0 │ 0x000C0000 ├──────────────────────────────────┤ │ 模块 3:DBBT1 │ 0x00100000 ├──────────────────────────────────┤ │ 第 4–15 块:主固件 │ 0x00400000 ├──────────────────────────────────┤ │ 第 16–31 块:辅助固件 │ 0x00800000 └────────────────────────────────────┘ 我尝试了两种不同的方法来故意破坏 FCB0,但两种情况下行为都相同(FCB1 从未被读取): 已完全擦除第 0 块。 将 FCB 指纹从“NFCB”修改为“NFC@”。 问:当 FCB0 损坏时,是否需要任何额外的熔丝设置或特定配置才能启用回退机制以读取 FCB1? 感谢您的支持。 i.MX8ULP Re: i.MX 8ULP SPI NAND Boot: Boot ROM does not fall back to FCB1 when FCB0 is corrupted 作为更新,我想补充一点后续观察和问题。 如果启动 ROM 读取某个 FCB 失败,它会不会设计成在停止之前重试读取该 FCB 一次?如果这个假设是正确的,增加“FlexSPI 与非 搜索计数”熔丝可能会通过强制启动 ROM 进行更远距离的搜索来解决问题。 虽然 i.MX 8ULP 参考手册中没有明确详细说明,但 i.MX 91 的熔丝图(我认为它采用兼容的 SPI 与非启动架构)对搜索计数的描述如下: FlexSPI 与非 搜索计数 00 - 2 01-2 10 - 4 11 - 8 是否可以假设 i.MX 8ULP 的搜索计数规范与此相同? 任何见解都将不胜感激。 Re: i.MX 8ULP SPI NAND Boot: Boot ROM does not fall back to FCB1 when FCB0 is corrupted 嗨,丽塔, 感谢您的及时回复和支持! 需要澄清的是,我们观察到的问题完全发生在内部 启动 ROM 执行阶段,也就是在任何 电路板支持包。 或用户软件加载或执行之前。因此,电路板支持包。版本不应是造成这种特定行为的因素。 我的核心问题严格来说与内部启动 ROM 规范有关:当 FCB0 损坏时,i.MX 8ULP 启动 ROM 在什么情况下会尝试读取 FCB1? 另外,正如我在之前的后续问题中提到的,这种回退行为是否与“FlexSPI 与非 搜索计数”熔丝设置有关,类似于它在 i.MX 91 上的工作方式? 如果您能就此内部逻辑咨询一下启动 ROM 工程团队,我将不胜感激。 再次感谢您抽出时间提供帮助! 此致, 米佐 Re: i.MX 8ULP SPI NAND Boot: Boot ROM does not fall back to FCB1 when FCB0 is corrupted 嗨@DaisukeMizobuchi , 你使用的是哪个版本的电路板支持包? 祝你今天过得愉快 顺祝商祺! Rita Re: i.MX 8ULP SPI NAND Boot: Boot ROM does not fall back to FCB1 when FCB0 is corrupted 嗨,丽塔, 就此帖作个简单的后续补充。您有没有机会向内部工程团队核实一下启动 ROM 回退行为和搜索计数熔丝的相关情况? 即使仍在调查中,任何快速更新都将不胜感激。 谢谢, 米佐
View full article
IMX8MMのECSPIピンがSPI用に構成されず、GPIOモードのままになっている。 IMX8MMプロセッサをLinux 6.6.52.2.2.1用にセットアップしようとしています。重要なペリフェラルの一つはECSPI1に接続されています。DTSでは、ピン制御グループは以下のように設定されます: pinctrl_ecspi1: ecspi1grp { #define CAN_CS_N_PIN <&gpio5 9 GPIO_ACTIVE_LOW> fsl,pins = < MX8MM_IOMUXC_ECSPI1_SCLK_ECSPI1_SCLK 0x19 MX8MM_IOMUXC_ECSPI1_MOSI_ECSPI1_MOSI 0x19 MX8MM_IOMUXC_ECSPI1_MISO_ECSPI1_MISO 0x19 MX8MM_IOMUXC_ECSPI1_SS0_GPIO5_IO9 0x15F // GPIO CS to avoid known hardware bug >; }; ピン制御グループは次のようにecspi1に結合されます &ecspi1 { clocks = <&clk IMX8MM_CLK_ECSPI1_ROOT>, <&clk IMX8MM_CLK_ECSPI1_ROOT>; clock-names = "ipg", "per"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_ecspi1>; num-cs = <1>; cs-gpios = CAN_CS_N_PIN; #address-cells = <1>; #size-cells = <0>; status = "okay"; // Peripheral 0 }; しかし、memtoolを使ってSCLK、MOSI、MISOのピンmux設定を確認すると、5と表示されます。これはGPIOモードで、デフォルト値です。 案の定、クロックはパルスしませんが、gpiosetを使ってピンをGPIOとして制御できます これらのピンマルチプレクサがデフォルト値になっているということは、DTSに何か不足している部分があるということだが、何が不足しているのか分からない。何かご存知の方はいらっしゃいますか? i.MX 8M | i.MX 8M Mini | i.MX 8M Nano Linux Re: IMX8MM ECSPI pins not configuring for SPI; stuck in GPIO mode こんにちは、 @jmosiさん 使用しているdtbファイルを逆コンパイルして、ECSPIピンをGPIOモードに設定する他のコードがないか確認してください。 よろしくお願いします、 志明 Re: IMX8MM ECSPI pins not configuring for SPI; stuck in GPIO mode 分解ファイルが添付されています。初期調査では再利用は見られません。ECSPI1 のピンマルチプレクサ レジスタ オフセット (0x1f4、0x1f8、0x1fc、0x200) は、私が設定した (ecspi1grp) 以外の出力の fsl,pin プロパティには表示されません。しかし、私はこれらのことに関しては専門家ではありません。皆様のご意見を心よりお待ちしております。ありがとう! Re: IMX8MM ECSPI pins not configuring for SPI; stuck in GPIO mode こんにちは、 @jmosiさん 逆コンパイルしたDTSファイルを確認しましたが、異常はなく、設定上の問題も見当たりません。このDTBが実行時に使用されているかどうか、またDTBオーバーレイ構成が有効になっているかどうかを確認してください。 よろしくお願いします、 志明
View full article
[KW45B41Z] J-Link GDB Server Error: Could not connect to target on custom hardware Dear Team, I'm facing the above mentioned issue. Please help me to resolve this. Hardware: Custom board with KW45B41Z Debugger: SEGGER J-Link IDE: MCUXpresso When attempting to flash/debug my custom KW45B41Z board, the J-Link GDB Server throws the following popup error: "J-Link GDB Server reported an error. Reason: ERROR: Could not connect to target." I have attached a screenshot of my IDE and the error popup. What are the recommended troubleshooting steps for this specific MCU when J-Link fails to connect on a custom design? 
View full article
i.MX 8ULP SPI NAND Boot: Boot ROM does not fall back to FCB1 when FCB0 is corrupted Hi NXP Community, I am working with the i.MX 8ULP and booting from an SPI NAND flash (Winbond W25N04LW). My understanding is that if FCB0 is corrupted, the Boot ROM should automatically fall back to FCB1. However, when FCB0 is corrupted, the system fails to boot. Specifically, it appears that the Boot ROM does not even attempt to read FCB1. Here are my "SPI NAND boot parameters" Fuse settings: FlexSPI NAND Search Stride : 00 (64 pages) FlexSPI NAND Search Count : 00 (2) FlexSPI NAND CS Interval : 00 (100ns) FlexSPI NAND Column Address Width : 01 (13) All other Fuses are left at their default values. I monitored the SPI communication using a protocol analyzer. Upon power-on, the i.MX 8ULP issues a Page Data Read (13h) to read FCB0 at Page Address 0x000000. Since FCB0 is corrupted, I expected the Boot ROM to read FCB1 at Page Address 0x000040 (based on the 64-page search stride). Instead, it simply attempts to read FCB0 again without trying FCB1. For context, my SPI NAND memory map is as follows: 0x00000000 ┌─────────────────────────────────┐ │ Block 0 : FCB0 │ 0x00040000 ├─────────────────────────────────┤ │ Block 1 : FCB1 │ 0x00080000 ├─────────────────────────────────┤ │ Block 2 : DBBT0 │ 0x000C0000 ├─────────────────────────────────┤ │ Block 3 : DBBT1 │ 0x00100000 ├─────────────────────────────────┤ │ Block 4–15 : Primary firmware │ 0x00400000 ├─────────────────────────────────┤ │ Block 16–31 : Secondary firmware│ 0x00800000 └─────────────────────────────────┘ I tried two different methods to intentionally corrupt FCB0, but the behavior was identical in both cases (FCB1 was never read): Erased Block 0 completely. Modified the FCB fingerprint from 'NFCB' to 'NFC@'. Question: Are there any additional Fuse settings or specific configurations required to enable the fallback mechanism to read FCB1 when FCB0 is corrupted? Thanks in advance for your support. i.MX8ULP Re: i.MX 8ULP SPI NAND Boot: Boot ROM does not fall back to FCB1 when FCB0 is corrupted As an update, I would like to add a follow-up observation and question. Could it be that if the Boot ROM fails to read a given FCB, it is designed to retry reading that same FCB exactly once before stopping? If this hypothesis is correct, increasing the "FlexSPI NAND Search Count" fuse might resolve the issue by forcing the Boot ROM to search further. Although this is not explicitly detailed in the i.MX 8ULP Reference Manual, the Fusemap for the i.MX 91 (which I believe shares a compatible SPI NAND boot architecture) describes the Search Count as follows: FlexSPI NAND Search Count 00 - 2 01 - 2 10 - 4 11 - 8 Is it correct to assume that this search count specification is identical for the i.MX 8ULP? Any insights would be greatly appreciated. Re: i.MX 8ULP SPI NAND Boot: Boot ROM does not fall back to FCB1 when FCB0 is corrupted Hi Rita, Thank you for your prompt reply and support! Just to clarify, the issue we are observing occurs purely during the internal Boot ROM execution phase, which is before any BSP or user software is loaded or executed. Because of this, the BSP version should not be a factor in this specific behavior. My core question is strictly about the internal Boot ROM specifications: under what exact conditions does the i.MX 8ULP Boot ROM attempt to read FCB1 when FCB0 is corrupted? Also, as I mentioned in my previous follow-up, could this fallback behavior be tied to the "FlexSPI NAND Search Count" fuse setting, similar to how it works on the i.MX 91? I would greatly appreciate it if you could consult with the Boot ROM engineering team regarding this internal logic. Thanks again for your time and assistance! Best regards, mizo Re: i.MX 8ULP SPI NAND Boot: Boot ROM does not fall back to FCB1 when FCB0 is corrupted Hi @DaisukeMizobuchi , Which version BSP are you using? Wish you have a nice day Best Regards Rita Re: i.MX 8ULP SPI NAND Boot: Boot ROM does not fall back to FCB1 when FCB0 is corrupted Hi Rita, Just a gentle follow-up on this thread. Have you had a chance to check with the internal engineering team regarding the Boot ROM fallback behavior and the Search Count fuse? Even if it is still under investigation, any quick update would be greatly appreciated. Thanks, mizo
View full article
从样例中导入的工程报错 IDE版本: S32 Design Studio for S32 Platform Version: 3.6.1 Build id: 250327 RTD为:SW32ZE_RTD_R21-11_2.0.1_D2505_DesignStudio_updatesite.zip Re: 从样例中导入的工程报错 Hi,zzf Thank you for contacting us. Which example are you using? Have you used the update code button before building this project? BR Joey
View full article
适用于 S32DS3.5 的 IAR 插件管理器 我正在尝试将IAR EWARM FS 8.50.10集成到S32 Design Studio 3.5中。 根据 NXP 集成指南,推荐的流程是从 IAR Eclipse 更新站点安装IAR 插件管理器,然后使用插件管理器安装相应的 IAR Eclipse 插件。 然而,当前更新站点提供的最新 IAR 插件管理器需要Java 17 ,而 S32DS 3.5 运行的是Java 11.0.11 。因此,在 S32DS 3.5 中无法解析/启动插件管理器。错误日志显示: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=17))" 请问有人能确认一下吗? 哪个 IAR Plugin Manager 版本/构建版本已通过 S32DS 3.5 验证? 哪里可以下载旧版兼容 Java 11 的 IAR 插件管理器软件包/更新站点? 对于IAR EWARM FS 8.50.10 ,应该使用哪个 IAR Eclipse 插件版本/构建版本与 S32DS 3.5 配合使用? 如果还有人拥有可用的S32DS 3.5 + IAR 8.50.10环境,能否请您分享一下已安装的 IAR 插件管理器/插件版本号? 谢谢您! Re: IAR Plugin Manager for S32DS3.5 你好@LeoYang- , 我已向您发送私信。 此致, 朱利安
View full article
IMX8MM ECSPI pins not configuring for SPI; stuck in GPIO mode I have an IMX8MM processor I'm trying to get set up for Linux 6.6.52.2.2.1. One of the critical peripherals is on ECSPI1. In the DTS, the pin control group is set as follows: pinctrl_ecspi1: ecspi1grp { #define CAN_CS_N_PIN <&gpio5 9 GPIO_ACTIVE_LOW> fsl,pins = < MX8MM_IOMUXC_ECSPI1_SCLK_ECSPI1_SCLK 0x19 MX8MM_IOMUXC_ECSPI1_MOSI_ECSPI1_MOSI 0x19 MX8MM_IOMUXC_ECSPI1_MISO_ECSPI1_MISO 0x19 MX8MM_IOMUXC_ECSPI1_SS0_GPIO5_IO9 0x15F // GPIO CS to avoid known hardware bug >; }; The pin control group is bound to ecspi1 as follows &ecspi1 { clocks = <&clk IMX8MM_CLK_ECSPI1_ROOT>, <&clk IMX8MM_CLK_ECSPI1_ROOT>; clock-names = "ipg", "per"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_ecspi1>; num-cs = <1>; cs-gpios = CAN_CS_N_PIN; #address-cells = <1>; #size-cells = <0>; status = "okay"; // Peripheral 0 }; However, when I use memtool to check the pinmux configuration for SCLK, MOSI, and MISO, it says 5, which is GPIO mode and the default value Sure enough, the clock doesn't pulse, but I can control the pins as GPIOs using gpioset The fact that these pinmuxes are at the default values tells me I'm missing something in the DTS but I don't know what. Does anyone have insight? i.MX 8M | i.MX 8M Mini | i.MX 8M Nano Linux Re: IMX8MM ECSPI pins not configuring for SPI; stuck in GPIO mode Hi @jmosi  Please decompile the dtb you are using, need to check if there is any other code set ECSPI PINs to GPIO mode. Best Regards, Zhiming Re: IMX8MM ECSPI pins not configuring for SPI; stuck in GPIO mode Decomp is attached. Initial examination doesn't show any reuse -- the pinmux register offsets for ECSPI1 (0x1f4, 0x1f8, 0x1fc, 0x200) don't appear in any other fsl,pin properties in the output besides the one I set up (ecspi1grp) -- but I'm far from an expert on these things. Your input is more than welcome.  Thank you! Re: IMX8MM ECSPI pins not configuring for SPI; stuck in GPIO mode Hi @jmosi  I checked the decompiled DTS, and it appears to be normal—there are no configuration issues. Please confirm whether this DTB is being used at runtime and whether there is a DTB overlay configuration in place. Best Regards, Zhiming
View full article
CMS decrypt fails with OpenSSL provider: EVP_PKEY_CTX_set_ecdh_cofactor_mode command not supported I have experienced a problem which may same as this issue opened on the GitHub repository of se05x-openssl-privder: https://github.com/NXPPlugNTrust/se05x-openssl-provider/issues/4 Are there any solution for this issue? SE050
View full article
#ftm_pwm_S32K116 您好,尊敬的NXP同事: 我正在寻求关于ftm_pwm_s32k116项目的帮助,问题是无论我如何尝试更改代码或配置,MCU都无法在默认通道(FTM0-通道0,即)上输出PWM信号。PTD15)。 我的步骤如下: 1.从示例中导入新项目; 2.编译通过,我检查了引脚复用器和Flextimer配置,没有发现问题(实际上它是NXP的示例,我认为完全正确); 3.然后我把它刷入S32K116; 4.观察PTD15上的波形,没有发现任何问题,我尝试了将近两天; 我的项目压缩文件如下,谢谢。 Re: #ftm_pwm_S32K116 附上我的项目。 Re: #ftm_pwm_S32K116 嗨@Tracy_Lu 首先,我注意到您正在使用 Processor Expert,所以看来您使用的是较旧的软件版本。如果您开始使用 S32K1 设备进行开发,我们建议您使用最新的可用软件和工具,目前推荐使用 S32K1_S32M24X 实时驱动程序 AUTOSAR R21-11 版本 3.0.0。( S32K1 的实时驱动程序)以及适用于 S32 平台的 S32 设计工作室( S32 设计工作室 | NXP 半导体)。 但是,如果您想继续使用 S32K1 SDK,则最新的 SDK 版本已随 S32 Design Studio for S32 Platform 3.4 提供。 另外,请与我们联系您使用的是EVB电路板还是定制电路板? 如果您希望继续使用当前的软件配置,也请您分享您正在使用的确切 S32K1 SDK 版本。 BR,VaneB Re: #ftm_pwm_S32K116 您好,尊敬的NXP同事: 感谢您快速专业的回复。我根据示例项目 S32K116_Project_FTM 修改了代码(在 Gemini AI 的协助下),我想分享以下几点,以帮助像我一样的工程师解决编译和调试过程中遇到的问题: 1.我使用FTM功能来响应我的PMIC(TPS650366)的ESM(错误信号监控); 2.一开始我使用ftm_pwm_S32k116项目,但编译和调试都失败了,持续了大约两天。我在指定的引脚上看不到任何PWM输出。我确信我配置和调试都正确,而且是在Gemini AI的帮助下完成的; 3.然后我找到了另一个名为 S32K116_Project_FTM 的示例,我尝试编译它,没有出现错误。我得到了配置引脚的输出,即 PTD15(FTM0CH0)/16(FTM0CH1),虽然初始频率为 1Hz/5Hz,但我知道我离成功很近了; 4.实际上,我需要PWM频率在40KHz左右,所以我知道下一步是修改系统频率预分频器、MOD值、CnV(占空比),但我发现我无法更改MOD值(我更改了该值,但无法写入MCU的根目录),我反复尝试,搜索了所有可能对我有帮助的信息; 5.最后我发现,如果要更改 MOD 值,需要满足几个前提条件,例如关闭时钟、解除写保护……; 6.这是我编译后的代码,运行正常(在 PTD16 上输出约为 48KHz); int main(void) { /*! * 初始化: * ======================= */ WDOG_disable(); /* 禁用看门狗 */ SOSC_init_40MHz(); /* 初始化 40 MHz 晶振系统 */ RUN_mode_48MHz(); /* 初始化时钟:48 MHz 系统、核心和总线, 24 MHz 闪存。*/    FTM0_init(); /* 使用 8 MHz SIRCDIV1_CLK 初始化 FTM0 */   //FTM0_CH0_OC_init(); /* 初始化 FTM0 CH0,PTD15 */ FTM0_CH1_PWM_init(); /* 初始化 FTM0 CH1,PTD16 */ FTM0_CH6_IC_init(); /* 初始化 FTM0 CH6,PTE8 */ FTM1_Init(); FTM1_CH1_PWM_init(); PORT_init(); /* 配置端口 */ start_FTM0_counter(); /* 启动 FTM0 计数器 */   /*! * 无限: * ======================== */ 为了(;;)   { //FTM0_CH0_output_compare();/* 如果输出比较匹配:*/ /* 引脚切换(由硬件自动完成)*/ /* 清除标志 8 */ /* 重新加载计时器 */ //FTM0_CH6_input_capture(); /* 如果捕获到输入:清除标志,读取定时器 */   } } 7.导入代码如下(FTM0_init(),FTM0_CH1_PWM_init()): void FTM0_init(void) {/** * FTM0 时钟: * ================================================== */ PCC->PCCn[PCC_FTM0_INDEX] &= ~PCC_PCCn_CGC_MASK; /* 确保配置过程中禁用时钟 */ PCC->PCCn[PCC_FTM0_INDEX] |= PCC_PCCn_PCS(0b010) /* 时钟源=1,8 MHz SIRCDIV1_CLK */ | PCC_PCCn_CGC_MASK; /* 使能 FTM 寄存器时钟 */ /*! * FTM0 初始化: * =================================================== */ // 1. 第一步:确保FTM时钟彻底关闭(CLKS = 0),此时完全可配置状态 FTM0->SC = 0x00000000; // 2.第二步:解除写保护并开启FTM完整模式 volatile uint32_t dummy = FTM0->MODE; FTM0->模式|= FTM_MODE_WPDIS_MASK; /* 取消写保护 */ FTM0->模式|= FTM_MODE_FTMEN_MASK; /* 开启FTM完整模式 */ // 3.第三步:在时钟关闭的安全状态下,顺利把MOD和比较值写进去 FTM0->CNTIN = 0U; FTM0->MOD = 166 - 1; /* 8MHz / 166 ≈ 48.19 kHz */ // 4.第四步:通道配置1 (PTD16) 为边沿着对齐PWM模式 FTM0->CONTROLS[1].CnSC = FTM_CnSC_MSB_MASK | FTM_CnSC_ELSB_MASK; FTM0->控制[1].CnV = 83; /* 50% 占空比 (83 < 165) */ // 5.第五步:其余和组合模式清零 FTM0->COMBINE = 0x00000000; FTM0->POL = 0x00000000; // 6.最后一步:所有参数已经安稳写入后,才真正开启通道输出和时钟源! FTM0->SC = FTM_SC_PWMEN0_MASK | FTM_SC_PWMEN1_MASK | FTM_SC_PS(0) /* PS = 0 (不分频) */ | FTM_SC_CLKS(1); /* CLKS = 1 (最后启动成分) */ } void FTM0_CH1_PWM_init(void) { /** * FTM0,PWM模式下的通道1: * ================================================== */ FTM0->CONTROLS[1].CnSC = FTM_CnSC_MSB_MASK |FTM_CnSC_ELSB_MASK;  /* FTM0 通道 1:边沿对齐 PWM,低真实脉冲 */ /* CHIE(通道中断赋值)= 0(默认值)*/ /* MSB:MSA(通道模式选择)=0b10,边沿对齐 PWM */ /* ELSB:ELSA(通道边缘/电平选择)=0b10,低电平为真 */   FTM0->CONTROLS[1].CnV = 46875; /* FTM0 通道 1 比较值(~75% 占空比) */ }
View full article
CMS 解密失败,OpenSSL 提供程序提示:不支持 EVP_PKEY_CTX_set_ecdh_cofactor_mode 命令。 我遇到了一个问题,可能与 se05x-openssl-privder 的 GitHub 仓库中提出的这个问题相同: https://github.com/NXPPlugNTrust/se05x-openssl-provider/issues/4 这个问题有解决办法吗? SE050
View full article
#ftm_pwm_S32K116  Hi,Dear NXP colleague: I'm looking for help about the project of ftm_pwm_s32k116,the fact is that no matter how I try to change the code or configuration.the MCU can't output PWM signal on default channel(FTM0-channel 0,i.e. PTD15). here is my step : 1.import the new project from example; 2.compile it and all PASS,I check the pin mux and flextimer configuration and find no problem(actually it's from NXP example,I think it's totally right); 3.then I flash it  into S32K116; 4.observe the waveform on PTD15 and find nothing,I tried for almost 2days; the zip file of my project is as below,thanks. Re: #ftm_pwm_S32K116 attach my project  Re: #ftm_pwm_S32K116 Hi @Tracy_Lu  First, I noticed that you are using Processor Expert, so it seems that you are working with an older software version. If you are starting your development with S32K1 devices, we would recommend using the latest available software and tools, currently the S32K1_S32M24X Real-Time Drivers AUTOSAR R21-11 Version 3.0.0 (Real-Time Drivers for S32K1) together with S32 Design Studio for S32 Platform (S32 Design Studio | NXP Semiconductors). However, if you would like to continue using the S32K1 SDK, the latest SDK version was provided with S32 Design Studio for S32 Platform 3.4. Additionally, could you please let us know whether you are using an EVB or a custom board? If you would like to remain with your current software setup, it would also be helpful if you could share the exact S32K1 SDK version you are using. BR, VaneB Re: #ftm_pwm_S32K116 Hi,Dear NXP colleague:  thanks  for  the quick and professional reply.I change to another project S32K116_Project_FTM from example and modify the code(with the assistance from gemini AI),I want to share these points to help the engineer like me to solve the problem during compile and debug: 1.I use the FTM function to respond the ESM(error signal monitoring)of my PMIC(TPS650366); 2.at first I use ftm_pwm_S32k116 project and failed to compile and debug,for around 2 days.I can't see any output PWM at the assigned pin.And I'm sure I make the right configuration and debug,with the assistance from Gemini AI; 3.then I find another example named S32K116_Project_FTM,I tried and compile it with no error.and I get the output of the configured pin which is PTD15(FTM0CH0)/16(FTM0CH1),though the initial frequency is 1Hz/5Hz,I know I'm close to the finish line; 4.actually,I need the pwm frequency around 40KHz,so I know the next step is to modify the system frequency prescaler,MOD value,CnV(duty cycle),but I find that I can't change the MOD value(I change the value but I can't write into the root place of MCU),I tried and tried,searching all the info which can help with me; 5.finally I find that if you want to change MOD value,you should satisfy several pre-condition,e.g.you should close the clock,release the write protection...; 6.here is my code after compile and operates normally(output around 48KHz at PTD16); int main(void) { /*! * Initialization: * ======================= */ WDOG_disable(); /* Disable watchdog */ SOSC_init_40MHz(); /* Initialize system oscillator for 40 MHz xtal */ RUN_mode_48MHz(); /* Init clocks: 48 MHz sys, core and bus,                   24 MHz flash. */      FTM0_init();           /* Init FTM0 using 8 MHz SIRCDIV1_CLK */    //FTM0_CH0_OC_init();    /* Init FTM0 CH0, PTD15 */   FTM0_CH1_PWM_init();   /* Init FTM0 CH1, PTD16 */   FTM0_CH6_IC_init();    /* Init FTM0 CH6, PTE8  */   FTM1_Init();   FTM1_CH1_PWM_init();   PORT_init();           /* Configure ports */   start_FTM0_counter();  /* Start FTM0 counter */   /*! * Infinite for: * ======================== */   for(;;)   { //FTM0_CH0_output_compare();/* If output compare match: */   /* Pin toggles (automatically by hardware) */   /* Clear flag 8 */   /* Reload timer */ //FTM0_CH6_input_capture(); /* If input captured: clear flag, read timer */   } } 7.the import code is as below(FTM0_init(),FTM0_CH1_PWM_init())  : void FTM0_init(void) {/** * FTM0 Clocking: * ================================================== */ PCC->PCCn[PCC_FTM0_INDEX] &= ~PCC_PCCn_CGC_MASK; /* Ensure clk disabled for config */ PCC->PCCn[PCC_FTM0_INDEX] |= PCC_PCCn_PCS(0b010) /* Clock src=1, 8 MHz SIRCDIV1_CLK */ | PCC_PCCn_CGC_MASK; /* Enable clock for FTM regs */ /*! * FTM0 Initialization: * =================================================== */ // 1. 第一步:确保 FTM 时钟彻底关闭(CLKS = 0),此时处于完全可配置状态 FTM0->SC = 0x00000000; // 2. 第二步:解除写保护并开启 FTM 完整模式 volatile uint32_t dummy = FTM0->MODE; FTM0->MODE |= FTM_MODE_WPDIS_MASK; /* 禁用写保护 */ FTM0->MODE |= FTM_MODE_FTMEN_MASK; /* 开启 FTM 完整模式 */ // 3. 第三步:在时钟关闭的安全状态下,顺利把 MOD 和比较值写进去 FTM0->CNTIN = 0U; FTM0->MOD = 166 - 1; /* 8MHz / 166 ≈ 48.19 kHz */ // 4. 第四步:配置通道 1 (PTD16) 为边沿对齐 PWM 模式 FTM0->CONTROLS[1].CnSC = FTM_CnSC_MSB_MASK | FTM_CnSC_ELSB_MASK; FTM0->CONTROLS[1].CnV = 83; /* 50% 占空比 (83 < 165) */ // 5. 第五步:极性和组合模式清零 FTM0->COMBINE = 0x00000000; FTM0->POL = 0x00000000; // 6. 最后一步:所有参数已经安稳写入后,才真正开启通道输出和时钟源! FTM0->SC = FTM_SC_PWMEN0_MASK | FTM_SC_PWMEN1_MASK | FTM_SC_PS(0) /* PS = 0 (不分频) */ | FTM_SC_CLKS(1); /* CLKS = 1 (最后启动计数器) */ } void FTM0_CH1_PWM_init(void) { /** * FTM0, Channel 1 in PWM Mode: * ================================================== */ FTM0->CONTROLS[1].CnSC = FTM_CnSC_MSB_MASK |FTM_CnSC_ELSB_MASK;  /* FTM0 ch1: edge-aligned PWM, low true pulses */ /* CHIE (Chan Interrupt Ena) = 0 (default) */ /* MSB:MSA (chan Mode Select)=0b10, Edge Align PWM */ /* ELSB:ELSA (chan Edge/Level Select)=0b10, low true */   FTM0->CONTROLS[1].CnV =  46875; /* FTM0 ch1 compare value (~75% duty cycle) */ }
View full article
S32DS3.5用のIARプラグインマネージャー 私は IAR EWARM FS 8.50.10 を S32 Design Studio 3.5に統合しようとしています。 NXPの統合ガイドによると、推奨される流れはIAR Eclipseのアップデートサイトから IARプラグインマネージャー をインストールし、その後プラグインマネージャーを使って対応するIAR Eclipseプラグインをインストールすることです。 ただし、最新のアップデートサイトから入手可能なIARプラグインマネージャーは Java 17を必要とし、S32DS 3.5は Java 11.0.11で動作しています。その結果、S32DS 3.5ではプラグインマネージャーを解決または起動できません。エラーログには以下が表示されます。 Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=17))" 誰か確認できますか: どのIARプラグインマネージャーのバージョン/ビルドがS32DS 3.5で検証されましたか? 古いJava 11対応のIARプラグインマネージャーパッケージ/アップデートサイトはどこでダウンロードできますか? IAR EWARM FS 8.50.10の場合、S32DS 3.5 で使用する IAR Eclipse プラグインのバージョン/ビルドはどれですか? もしまだ動作する S32DS 3.5 + IAR 8.50.10 環境を持っている方がいれば、インストールされているIARプラグインマネージャーやプラグインのバージョン番号を共有していただけませんか? よろしくお願いします! Re: IAR Plugin Manager for S32DS3.5 こんにちは、 @LeoYang- さん、 プライベートメッセージを送りました。 よろしくお願いします、 ジュリアン
View full article
从样例中导入的工程报错 IDE版本: S32 Design Studio for S32 Platform 版本:3.6.1 版本 ID:250327 RTD为:SW32ZE_RTD_R21-11_2.0.1_D2505_DesignStudio_updatesite.zip Re: 从样例中导入的工程报错 嗨,zzf 感谢您与我们联系。 你用的是哪个例子?在构建此项目之前,您是否使用过更新代码按钮? BR 乔伊
View full article
例から入った工程报错 IDE バージョン: S32 Design Studio for S32 Platform バージョン: 3.6.1 ビルドID: 250327 RTD は:SW32ZE_RTD_R21-11_2.0.1_D2505_DesignStudio_updatesite.zip Re: 从样例中导入的工程报错 こんにちは、zzf お問い合わせいただきありがとうございます。 どの例を使っていますか?このプロジェクトをビルディングする前にアップデートコードボタンを使ったことはありますか? BR ジョーイ
View full article
i.MX 8M クアッドEvk I2Cインターフェース 私は、I2Cインターフェースを使って、AM/FMチューナーモジュールをNXP i.MX 8M Quad EVKとインターフェースし、チューナーの設定と制御を行う必要があります。 このハードウェアインターフェースの確立方法を教えていただけますか? さらに、i.MX 8M Quad EVKはチューナーモジュールからのデジタルオーディオ出力を受信するために使えるI2S信号を露出していますか?もしそうなら、関連するコネクタの詳細とピンのマッピングを教えていただけますか? Re: i.MX 8M Quad Evk I2C interface こんにちは、 はい、MCIMX8M-EVKにはプロセッサのI2C2にアクセスするためのJ801コネクタがあります。 I2Sインターフェースへのアクセスはアダプターが必要になるため、少し難しいでしょう。これらの信号はM.2 KEY-E J1401コネクタまたはJ1801コネクタにコネクテッドされています。 次のデザインファイルで確認してください: i.MX 8M評価キット(EVKB)のデザインファイル よろしくお願いいたします。
View full article