Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
S32 设计工作室许可证已过期 您好,NXP技术支持,希望您一切安好。我的 S32DS 许可证已过期,这阻碍了我目前的开发工作。您能否帮忙延长一下? 我的激活 ID: 406C-B408-57DB-0C62 。 产品:S32 Design Studio for ARM v2.2。 非常感谢。 SDK Re: S32 Design Studio License Expired 你好, 您的S32DS许可证已延期。
View full article
NCJ29D5 的供电电压容差 你好, 我想知道 NCJ29D5L 的供电电压及其容差,以及数据手册的链接(我在 NXP 网站上找不到)。 多谢 Re: supply voltage with tolerance for ncj29d5 你好, 希望你一切都好。很抱歉给您带来不便,但由于该产品的信息受保密协议(NDA)约束,因此不对外公开。这不是分享该设备任何信息的安全渠道,出于同样的原因,我也没有相关数据。 因此,我建议您联系我们代理商网络|NXP中的一家代理商。或者,如果您有直接联系人曾帮助您了解该产品的信息或最初帮助您获得集成电路,请直接与他/她联系。 由此给您带来的不便,我深表歉意。 顺祝商祺! 里卡多
View full article
supply voltage with tolerance for ncj29d5 hello, I would like to know the supply voltage, including its tolerances, for NCJ29D5L as well as the link to the datasheet (I could not find it on the NXP website). Thanks a lot  Re: supply voltage with tolerance for ncj29d5 Hello, Hope you are doing well. Sorry for the inconvenience this might cause you but as the information of this product it's under NDA (Non-Disclosure Agreement) the information it's not public, this is not a secure channel to share any information of this device, and I do not have the data as well for the same reason. For this reason, I recommend you contacting one of our distributors available in the Distributor Network|NXP. Or if you have a direct contact who helped you with information about this product or getting the IC in a first place, please communicate directly with him/her. I apologize for the inconveniences this might cause you. Best Regards, Ricardo
View full article
ncj29d5の許容範囲付き供給電圧 こんにちは、 NCJ29D5Lの電源電圧とその許容範囲、そしてデータシートのリンク(NXPのウェブサイトでは見つかりませんでした)を知りたいです。 どうもありがとう Re: supply voltage with tolerance for ncj29d5 こんにちは、 あなたの調子が良いといいのですが。ご不便をおかけして申し訳ありませんが、この製品の情報はNDA(秘密保持契約)に基づいており、公開されていません。この情報を共有する安全なチャネルではなく、同じ理由で私もデータを持っていません。 このため、代理店ネットワークに掲載されている当社の代理店のいずれかにご連絡いただくことをお勧めします。NXP。また、この製品やIC取得の際に直接のお問い合わせがいれば、直接連絡を取ってください。 ご迷惑をおかけして申し訳ございません。 よろしくお願いいたします。 リカルド
View full article
S32K328 HyperRAMの低温時の読み書きエラー こんにちは、NXPコミュニティの皆さん、 私たちは、QuadSPIインターフェースを通じてコネクテッドされた64Mbit HyperRAMを搭載したNXP S32K328 S27KL0642DPBHB023を使用しています。 インターフェースは以下の基本構成で動作します:   HyperRAMの電圧 = 3.3V   QuadSPIクロック = 120MHz   インターフェースモード = オクタルDDR   クロックモード = シングルエンドCK   読み取りデータストローブ = 外部RWDS   レイテンシモード = 固定レイテンシ   通常メモリアクセス = メモリマッピングされたAHB 室温ではHyperRAMインターフェースは正常に動作しているようです。 低温、具体的には-40℃までの温度では、読み書き比較エラーが発生することが確認されました。この問題は主にS32K328の温度に関連しているようです。S32K328を冷却すれば誤りを再現できますが、HyperRAMを冷却するだけでは効果ははるかに小さいです。 S32K328 QuadSPIの関連設定は以下のとおりです。 DDR_EN = 1   DQS_EN = 1   外部DQS/RWDS = 選択済み   DQS_OUT_EN = 1   VAR_LAT_EN = 0   FLSHCR.TCSS = 4   FLSHCR.TCSH = 7   FLSHCR.TDH = 1 現在のDLL構成は以下のとおりです。   SLV_DLL_BYPASS = 0   SLAVE_AUTO_UPDT = 1   SLV_EN = 1   SLV_DLY_COARSE = 0   頻度 = 1   DLL_CDL8 = 0   DLLRES = 8   DLL_REFCNTR = 2   SMPR.FSPHS = 0   SMPR.FSDLY = 0   SMPR.DLLFSMPFA = 0 以下のすべての組み合わせをテストしました。   SLV_DLY_OFFSET = 0~7   SLV_FINE_OFFSET = 0~15 低温環境では、テストしたすべてのDLL構成において不具合が発生する。このスイープテストでは、構成間の違いは明らかになるものの、完全にエラーのない動作範囲や、明確に最適なDLLパラメータセットが得られるわけではない。 したがって、この問題がDLL構成自体によるものなのか、それともS32K328 QuadSPIインターフェースの温度依存の別の部分によるものかは現時点では確信が持てません。 以下の質問にご協力いただけますか? 上記に示したS32K328 QuadSPI構成は、120MHzでのHyperRAM動作に適していますか? 選択されたDLLパラメータは、この周波数および全温度範囲に対して適切ですか? 120 MHz の場合、FREQEN、DLL_CDL8、DLLRES、DLL_REFCNTR にはどの値を使用すべきですか? DLLの動作が正しいことを確認するために、どのステータスフラグを監視すべきでしょうか? HyperRAMにアクセスする前にDLLA_LOCKとSLVA_LOCKの両方を確認するべきでしょうか? DLLA_RANGE_ERRまたはFINE_UNDERFLOWはどのように処理すべきですか? QuadSPI DLLや外部DQS経路は低温時に有効範囲外で動作可能でしょうか? DLLの設定は読み取りデータサンプリングのみに影響を与えるのでしょうか、それとも書き込みタイミングにも影響しますか? FLSHCR.TCSS = 4、FLSHCR.TCSH = 7、FLSHCR.TDH = 1 は、120 MHz HyperRAM の動作に適していますか? 120MHzオクタルDDRにおいて、CK、CS#、DQ[7:0]、RWDSに推奨されるパッド設定はどれですか? S32K328に関して、QuadSPI、外部DQS、または低温動作に関連する既知の不具合やRTDの問題はありますか? 120MHz動作に対応した、検証済みのS32K328 HyperRAM初期化例またはレジスタ構成はありますか? S32K328のレジスタやステータス情報の中で、他に確認すべき項目があれば、ご教示いただけると大変助かります。 よろしくお願いします。 Re: S32K328 HyperRAM read write errors at low temperatures 1) 動作モードはサポートされていますが、現在の構成は表66の必要な120MHz DDR外部DQS設定と完全に一致していません。FREQENは0、SMPR.DLLFSMPFAは4、FLSHCR.TCSSは2、FLSHCR.TCSHは5に設定し、両方の遅延オフセットは初期値として0に設定してください。残りの設定値は表66に一致します。低温試験をさらに進める前に、設定を修正する必要があります。 2) 動作モードはサポートされていますが、現在の構成は表66の必要な120MHz DDR外部DQS設定と完全に一致していません。FREQENは0、SMPR.DLLFSMPFAは4、FLSHCR.TCSSは2、FLSHCR.TCSHは5に設定し、両方の遅延オフセットは初期値として0に設定してください。残りの設定値は表66に一致します。低温試験をさらに進める前に、設定を修正する必要があります。 3) 表66によると: FREQEN = 0 DLL_CDL8 = 0 DLLRES = 8 DLL_REFCNTR = 2 「DLLと遅延チェーンの使用」の章で説明されているDLLプログラミングの手順にも従う必要があります。 4) これらのDLLSRフラグを監視します。 DLLA_LOCK = 1: DLL参照チェーンがロックされています。SLVA_LOCK = 1: スレーブ遅延チェーンがロックされています。DLLA_RANGE_ERR = 0: DLLマスター遅延チェーンは有効範囲内です。DLLA_FINE_UNDERFLOW = 0: 細遅延チェーンのアンダーフローは発生しませんでした。 5)はい。DLLとスレーブ遅延線が有効の場合、HyperRAMアクセスを開始する前にDLLA_LOCKとSLVA_LOCKの両方がロックを示すはずです。 6) これらのフラグは、設定された遅延が正しく生成できないことを示します。いずれかのエラーが発生している間は、HyperRAMの動作は信頼できるとはみなすべきではありません。表66の構成と必要なDLL初期化シーケンスを再確認してください。エラーが解消されない場合は、QuadSPIの周波数を下げてさらにテストしてください。 7) まずは、記載されている設定で再テストしてください。 😎 外部DQSおよびスレーブDLLの設定は、主に読み取りデータのサンプリングを制御します。書き込みタイミングは主に、CK、CS#、データ出力タイミング、パッド構成、およびFLSHCRタイミングフィールドによって決定されます。読み取り専用と書き込み/読み戻りの別々のテストを行うことで、どのパスが失敗しているかを特定するのに役立ちます。 9) これらは表66と一致しません。特性評価済みの120MHz DDR構成の場合は、以下を使用してください。 FLSHCR.TCSS = 2 FLSHCR.TCSH = 5 FLSHCR.TDH = 1 10) データシートの特性では、DSE = 1、SRE = 0 を使用しています。これらは、最大出力負荷25pF、入力遷移時間1ns、およびQuadSPIトレースの長さが2インチ以下であることを前提としています。これらの条件と実際のCK/RWDS信号品質はボード上で確認されるべきです。 11) 低温における外部DQSの故障を具体的に記述したS32K328の正誤表は確認できていません。ただし、該当する正誤表と、該当するRTDバージョンのリリースノートを確認する必要があります。 12) 現在、検証済みのHyperRAM初期化例は提供されていません。QuadSPIの設定については、S32K3xxデータシートの表66に記載されている構成を参考にしてください。 Re: S32K328 HyperRAM read write errors at low temperatures こんにちは、NXPコミュニティの皆さん、 インフィニオンS27KL0642DPBHB023にコネクテッドされたS32K328の温度依存的なHyperRAMエラーの調査を継続しています。8 MiB、3.3 Vです。 インターフェースは外部エッジアライメントされたRWDS/DQSを用いたオクタルDDRモードで120MHzで動作します。通常のメモリアクセスでは、QuadSPI AHBメモリマップウィンドウを使用します: 0x68000000~0x687FFFFF 現在の関連構成 ------------------------------     QuadSPI SCK = 120 MHz     DDR_EN = 1     DQS_EN = 1     DQS_FA_SEL = 3     DQS_OUT_EN = 1     FLSHCR.TCSS             = 2     FLSHCR.TCSH             = 5     FLSHCR.TDH = 1     SMPR.DLLFSMPFA = 4     SMPR.FSDLY              = 0     SMPR.FSPHS = 0     DLL 頻度 = 0     DLL_CDL8 = 0     DLL_REFCNTR = 2     DLLRES                  = 8     SLV_DLY_OFFSET          = 0     SLV_FINE_OFFSET         = 8     SLAVE_AUTO_UPDT = 1     SLV_EN = 1     SLV_DLL_BYPASS          = 0 微調整値8は、温度試験の結果に基づいて経験的に選択された。これは、データシート改訂版14に記載されているゼロオフセット基準構成から取得したものではありません。 現在の初期化処理には、以下のシーケンスが含まれています。 QuadSPIとLUTの設定 自動更新でDLLを設定 ダミーAHB読み取りを1回実行します QuadSPIソフトウェアリセットを実行する DLLを再度構成します IPコマンドを使用してHyperRAMレジスタを読み取る 通常のAHBアクセスを開始します ダミー読み取りは現在、まず揮発性の32ビット読み取りを行い、その後対応するCortex-M7キャッシュラインを無効化します。 データシート改訂版14との違い ---------------------------------- S32K3xxデータシートRev.14の表66には、S32K328 120MHz DDR、外部DQS、エッジアライン構成について、以下の仕様が記載されているようです。     FLSHCR.TCSS             = 3     FLSHCR.TCSH             = 3     頻度 = 0     DLL_REFCNTR = 2     DLLRES                  = 8     SLV_DLY_OFFSET          = 0     SLV_FINE_OFFSET         = 0     SLAVE_AUTO_UPDT = 0     SLV_UPD                 = 1、RMプログラミングシーケンスによる     DLLFSMPFA               = 4     FSDLY                   = 0 これは現在のTCSS/TCSH = 2/5、ファインオフセット8、自動更新モードとは異なります。 失敗の署名 ----------------- 温度テストでは、測定サンプリングウィンドウの中央付近の設定であっても、メモリテストで時折失敗することが依然として確認されている。 報告された不具合には、再現性のある特徴が見られる。 - 32バイトのブロック全体が影響を受けます。 -アドレス A を読み取ると、返されたブロックはアドレス A + 0xFFE0 の期待されるパターンと一致しているように見えます。 -複数のDLLオフセット/ファイン設定で同じ署名が報告されました。 初期化時のDLLステータスが示した内容:     DLLA_LOCK              = 1     SLVA_LOCK = 1     DLLA_RANGE_ERR         = 0     FINE_UNDERFLOW         = 0 これらのステータス値が、メモリ障害発生のまさにその瞬間に変化しないことを、我々はまだ確認できていません。 0xFFE0の変位は、0x10000 - 0x20に等しいため注目に値しますが、これが64KiBのラップまたはAHBアドレッシングの問題を証明するとは考えていません。 質問 --------- 1.外部エッジアラインDQSを備えた120MHz DDRのS32K328の場合、データシートRev.14の表66に記載されている構成全体を使用する必要がありますか? TCSS/TCSH = 3/3        SLAVE_AUTO_UPDT = 0        SLV_DLY_OFFSET        = 0        SLV_FINE_OFFSET       = 0 2. この正確な表66列のFLSHCRを確認できますか?TDH値ですか? 3. SLAVE_AUTO_UPDT = 0 が必要な場合、以下の手順を正確に実行してください。        SLV_EN        SLV_UPD DLLEN        DLLA_LOCK SLVA_LOCK SLV_UPD クリア 4.次の初期化シーケンスは有効ですか? DLL構成 ダミーAHB読み取り QuadSPIソフトウェアリセット        2番目のDLL構成 最初のIPアクセス 最初のAHBメモリマップアクセス それとも、ソフトウェアのリセットは唯一のDLL初期化の前に行うべきでしょうか? 5. SLV_UPDをクリアした後、どのDLLロック表示が有効であり、最初のHyperRAMアクセス前に確認すべきか? 6. ソフトウェアリセット、DLL再設定、IPコマンドアクセス後にクリアしなければならないQuadSPI AHBバッファ、FIFO、シーケンスポインタは? 7.ダミーAHB読み出しの場合、揮発性読み出しの前にCPUキャッシュラインを無効化し、DSBを実行する必要がありますか? 8. 0xFFE0の明らかな変位がある場合、他のアドレスに関連付けられた完全な32バイトブロックを返すことができるS32K328 QuadSPIの既知の挙動はありますか? 9. NXPは、以下の2つの違いを区別するために、どの測定値またはレジスタトレースを推奨しますか? 読み取りアドレス生成エラー 書き込みアドレスエラー        古い AHB バッファ データ CPUキャッシュのコヒーレンシ HyperBusアドレスラッピング 外部DQSサンプリング誤差 LUTの完全な内容、初期化ソース、レジスタダンプを添付ファイルとして提供できます。 よろしくお願いします。
View full article
MCAL expects source code for code generation Hello NXP Support, MCAL Version: SW32K3_S32M27x_RTD_4.4_4.0.0_P24 When I rename the following .h file to .hh, the ADC generation will fail. Why is generated source code needed during code generation? I asked because there is no local source policy in my working place, I can only put non-source code configuration like ARXML in local PC. BR/Kumamon Re: MCAL expects source code for code generation Hi @kumamon  The configuration generation is not necessarily based only on the ARXML. During the generation process, the MCAL configuration tool also require files provided as part of the installed RTD/MCAL package, including header files containing definitions or information required by the generator. Therefore, if one of the expected .h files is renamed to .hh, the generator may no longer be able to locate or process that dependency, which can cause the code generation to fail. BR, VaneB Re: MCAL expects source code for code generation Hello @VaneB , Thanks for your answer. It is clear now. BR/Kumamon
View full article
IMX8QXP OTA update: Feasibility of Partition Creation and Resizing Through OTA Update Hi Team, IMX8QXP - Scarthgap  - L 6.6.52   Is it possible to create new partitions and resize existing partitions as part of the software update (OTA) process when the current software target has a slightly different partition layout compared to the OTA package? We would like to understand whether the OTA update mechanism can handle partition layout changes dynamically, including partition creation, resizing, and updating the corresponding partition information, without requiring manual intervention. Please share your inputs on the feasibility, limitations, and recommended approach. Thanks & regards, VKS i.MX 8 Family | i.MX 8QuadMax (8QM) | 8QuadPlus Linux Yocto Project Re: IMX8QXP OTA update: Feasibility of Partition Creation and Resizing Through OTA Update Hi @WinR  Please refer this knowledge base. https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/SWUpdate-OTA-i-MX8MM-EVK-i-MX8QXP-MEK/ta-p/1307416 Best Regards, Zhiming Re: IMX8QXP OTA update: Feasibility of Partition Creation and Resizing Through OTA Update Hi @Zhiming_Liu ,  Thank you for your response. I have one specific question. The partition is already available on the target device. Is it possible to recreate or resize the existing partition through an OTA update?   Thanks & regards, VKS Re: IMX8QXP OTA update: Feasibility of Partition Creation and Resizing Through OTA Update Hi @WinR  The OTA documentation currently available is listed below. Please refer to it. https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/SWUpdate-OTA-i-MX8MM-EVK-i-MX8QXP-MEK/ta-p/1307416 Best Regards, Zhiming
View full article
BLDC Motor Direction measurement using TRIGMUX+eMIOS Description : I am using NXP recommended solution for 6 step commutation to drive my BLDC motor. As per the App note "https://community.nxp.com/t5/S32M-Knowledge-Base/S32M276-Hall-sensor-based-6-step-BLDC-motor-control/ta-p/2035021#jump_PwmAndTriggers" Hall Sensor output is going to TRIGMUX and then LCU for commutation and also for calculating the speed signal. This article does not mention how the motor direction can be measured. Is there any NXP solution to measure motor direction? My understanding is that to measure direction we need to capture all the 3 Hall sensor outputs using an input capture unit. Is it feasible to configure my eMIOS channels as follows. CH0 - Input capture mode to receive Speed signal from LCU via TRIGMUX. CH1 - Input capture mode to receive Hall1. CH2 - Input capture mode to receive Hall2. CH3 - Input capture mode to receive Hall3. Please provide some clarification. Re: BLDC Motor Direction measurement using TRIGMUX+eMIOS As per my Hardware design the Hall sensor signals are mapped to TRIGMUX channels like below. M1_Hall1_Sig_PWM 1 PTA18 Input TRGMUX_IN12 M1_Hall2_Sig_PWM 2 PTA19 Input TRGMUX_IN13 M1_Hall3_Sig_PWM 3 PTA20 Input TRGMUX_IN14 I want to feed these TRIGMUX channels to LCU for Commutation as well as speed signal calculation. Also, I want to measure the motor direction. Is it possible to read the port pin state since the Hall sensor inputs are mapped to TRIGMUX? Re: BLDC Motor Direction measurement using TRIGMUX+eMIOS Hi@RIJILKP The direction of motor rotation can be determined by the sequence of signals from the Hall sensors. However, in the solution "S32M276 - Hall sensor based 6-step BLDC motor control," the motor's rotation direction is provided as an input by the user software. The current sector can be determined based on the states of the three signals: Hall_A, Hall_B, and Hall_C. Based on the preset direction of rotation, the next commutation position can be calculated. In this reference design, you can determine the current direction of motor rotation based on the sequence in which the sector numbers change if you want. Returning to your question: if your only goal is to determine the direction of rotation, you can simply read the states of the three Hall signals via GPIO; by analyzing the changes in these signals between two consecutive readings, you can ascertain the current direction of rotation. Regarding your question: "Is it feasible to configure my eMIOS channels as follows. CH0 - Input capture mode to receive Speed signal from LCU via TRIGMUX. CH1 - Input capture mode to receive Hall1. CH2 - Input capture mode to receive Hall2. CH3 - Input capture mode to receive Hall3." I do not recommend this approach. While it is certainly feasible to use eMIOS for signal capture, your method not only consumes peripheral resources but also remains dependent on the CPU for processing(SW). Recommendation : For example, the method provided in the MCSPTE1AK116 solution: Alternatively, as I mentioned above, the direction of rotation can be determined based on changes in the SECTOR number。 Re: BLDC Motor Direction measurement using TRIGMUX+eMIOS If I configure eMIOS 0 CH0 - Input capture mode to receive Speed signal (XOR value of the 3 Hall inputs) from LCU via TRIGMUX. Is it possible to trigger an Interrupt from eMIOS for any change in the XOR signal. (Here I am assuming that there will be a transition on XOR signal for every sector change.). If this is possible i can read the GPIO pins where i receive Hall sensor input to check Hall pattern or sector, Also I can use the time stamp between each sector change to measure speed. So speed and direction can be measured in same ISR. Let me know if it is feasible / recommended. Re: BLDC Motor Direction measurement using TRIGMUX+eMIOS 1.  Does this function "Lcu_Ip_GetSyncLogicInput" capable of reading Pin status of all the 3 Hall pins coming to LCU at a time. When I checked the UM documentation, I don't see the function returning any pointer, so how do I get the pin state? M1_Hall1_Sig_PWM 1 PTA18 M1_Hall2_Sig_PWM 2 PTA19 M1_Hall3_Sig_PWM 3 PTA20 2. The App note example says, "function eMIOS1IcuNotify is called after 7 captured edges". Is there a way to get the notification/ISR on every edge captured instead of every 7th edge so that I can read the Hall pin state inside that ISR. In that way I just need one ISR to calculate speed and motor direction. Re: BLDC Motor Direction measurement using TRIGMUX+eMIOS Hi@RIJILKP 1.Is it possible to read the port pin state since the Hall sensor inputs are mapped to TRIGMUX? It is possible, but entirely unnecessary; the LCU module itself can already retrieve the current state of the inputs. /* @brief [LC_INPUTS] This function Indicates states of LC inputs /* @details This service is a reentrant function that shall Indicates states of LC inputs Lcu_Ip_ReturnType Lcu_Ip_GetSyncLogicInput(Lcu_Ip_SyncInputValueType List[], const uint8 Dimension); 2.Is it possible to trigger an Interrupt from eMIOS for any change in the XOR signal. (Here I am assuming that there will be a transition on XOR signal for every sector change.).  Yes, here is a screenshot of the configuration from the example code. Re: BLDC Motor Direction measurement using TRIGMUX+eMIOS If I change ICU Measurement mode configuration to EDGE DETECT, Will I be able to get time stamp using following API's? "Emios_Icu_Ip_StartTimestamp" "Emios_Icu_Ip_GetTimestampIndex" The precondition says that the "Channel must be configured for timestamp measurement" Also, is it possible to get the code you are showing in the screenshot, I was able to access the documentation only. If I can get the sample implementation it will greatly help. Re: BLDC Motor Direction measurement using TRIGMUX+eMIOS Hi@RIJILKP In this solution demo code: 1.Lcu Lcu_Ip_GetSyncLogicInput(InputSector, 3); SensorHall.InA = InputSector[0].Value; SensorHall.InB = InputSector[1].Value; SensorHall.InC = InputSector[2].Value; SensorHall.Sector = (SensorHall.InC << 2) + (SensorHall.InB << 1) + SensorHall.InA - 1; 2. “function eMIOS1IcuNotify is called after 7 captured edges" ,this can be modified. You can change it to 1, or alternatively, I suggest modifying the eMIOS measurement mode as follows: Re: BLDC Motor Direction measurement using TRIGMUX+eMIOS Hi@RIJILKP I’m surprised you didn’t get this demo; it’s actually included in the link you provided. Also, for S32K344 :  https://www.nxp.com/design/design-center/development-boards-and-designs/MCSPTE1AK344 back to your question,  If you configure the ICU channel as EDGE DETECT, you normally cannot use Emios_Icu_Ip_StartTimestamp() and Emios_Icu_Ip_GetTimestampIndex() for that channel. but like i said before ,“function eMIOS1IcuNotify is called after 7 captured edges" ,this can be modified.
View full article
IMX8QXP OTAアップデート:OTAアップデートによるパーティションの作成とサイズ変更の実現可能性 チームの皆さん、こんにちは。 IMX8QXP - スカースギャップ - L 6.6.52   現在のソフトウェアターゲットのパーティションレイアウトがOTAパッケージと少し異なる場合、ソフトウェアアップデート(OTA)プロセスの一環として新しいパーティションを作成し、既存のパーティションのサイズを変更することは可能でしょうか? OTAの更新メカニズムが、パーティションのレイアウト変更を手動で処理し、パーティション作成、サイズ変更、対応するパーティション情報の更新を手動で行うことが可能かどうかを理解したいです。 実現可能性、制約、推奨されるアプローチについて、ご意見をお聞かせください。 ありがとうございます。 VKS i.MX 8ファミリ | i.MX 8QuadMax (8QM) | 8QuadPlus Linux Yocto Project Re: IMX8QXP OTA update: Feasibility of Partition Creation and Resizing Through OTA Update こんにちは、 @WinR こちらのナレッジベースをご参照ください。 https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/SWUpdate-OTA-i-MX8MM-EVK-i-MX8QXP-MEK/ta-p/1307416 よろしくお願いします、 志明 Re: IMX8QXP OTA update: Feasibility of Partition Creation and Resizing Through OTA Update こんにちは@Zhiming_Liuさん ご返信ありがとうございます。 一つ具体的な質問があります。パーティションは既にターゲットデバイス上に存在しています。 OTAアップデートを通じて、既存のパーティションを再作成したり、サイズを変更したりすることは可能ですか?   ありがとうございます。 VKS Re: IMX8QXP OTA update: Feasibility of Partition Creation and Resizing Through OTA Update こんにちは@WinR  現在利用可能なOTAのドキュメントは以下に記載されています。そちらをご参照ください。 https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/SWUpdate-OTA-i-MX8MM-EVK-i-MX8QXP-MEK/ta-p/1307416 よろしくお願いします、 志明
View full article
S32M27x FCCU Utility This document describes how to use Lauterbach FCCU (fault collection and control unit) periphery extension for S32M27x devices. It is expected that user has deep knowledge on FCCU mechanisms in order to effectively use this extension. This scripting tool consist of 136 scripts for Lauterbach debugger. It helps user to quickly debug micro without need of reference manual. Here is and example of windows that user can use (detailed description can be found in user guide):
View full article
Kernel Panic When Enabling LPUART3 and CAN1 on Custom i.MX95 SOM Hi, We are working on a custom NXP i.MX95 SOM and are trying to configure LPUART3 for RS485 communication. However, when we enable LPUART3 in the Device Tree with the appropriate pinmux configuration, we encounter a kernel panic. We are observing a similar issue when configuring the CAN1 pins. During our investigation, we identified that these peripherals and pins are currently assigned to the M7 core through the imx-sm-manager configuration. We modified the mx95evk.cfg file to remove the M7 ownership and grant access permissions to the A55 cores. However, the kernel panic persists even after these changes. Could you please help us understand whether any additional resource ownership, access permissions, or configuration changes are required to enable LPUART3 and CAN1 on the A55 side? I will share the log files and cfg file for your reference. We would appreciate your guidance in identifying and resolving this issue. Re: Kernel Panic When Enabling LPUART3 and CAN1 on Custom i.MX95 SOM Hi @Govind1807  Your modifications to the mx95evk.cfg file are correct. Please ensure that your DTS file is configured correctly. B.R
View full article
RT1186 TSN DEMOビルドの問題 i.MX RT1186のFRDMボードを2枚持っていて、プロジェクトをfrdmimxrt1186_tsn_app_cm33インポートしますが、いくつかのビルド設定があり、どれを選べばいいのか全く分かりません。 私の目標は、fgptpを有効にした状態で基本的なTSN通信をテストすることです。イーサネットケーブルで2台のボードを接続した後、2台のデバイスがマスターとスレーブの役割を交渉したことを示すシリアルポートのログが見られるはずです。 ユーザーガイドの説明は複雑です。どなたか、これを達成するための一般的な手順を教えていただけませんか? Re: RT1186 TSN DEMO build problem @ChandlerY様、 fgptpのテストを行うには、「リリース」を選択してください。 詳細な設定手順については、以下を参照してください。 https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs-Knowledge/Step-by-Step-Guide-to-Running-the-GenAVB-TSN-Stack-FreeRTOS/ta-p/2390969 を参照してください。第2章4節: よろしくお願いいたします。 シェリー
View full article
S32G399Aの8進数DTR読み取りがMacronix MX66UM2G45G QSPIフラッシュで失敗する こんにちは、コミュニティの皆さん。 私たちはS32G399A-RDB3リファレンスデザインを基にしたカスタムボードを持っています。主な ブートフラッシュの変更点は、MX25UW51245G (64 MB) を Macronix MX66UM2G45G (256 MB、1.8 V 8進数、JEDEC ID C2 80 3C)。すべて 1-1-1 SPIで動作します。8D-8D-8D(八進DTR)読み取りを正しく返すことはできません そしてNXPに助けを求めています。また、この部分はどの中にも見つかりませんでした S32 BSPはbsp48.0までリリースされています。AMDのU-Bootは、 2024.1. ソフトウェア TF-A bsp43.0-2.10.7、U-Boot bsp43.0-2022.04、Linux bsp43.0(6.6.52) BootROM QSPIパラメータ:mx66_sim133sdr.bin(512バイト、「OPI SDR 133 MHz」)、 S32 Design Studio 3.6.1から変更せずに採用されました。プラットフォーム SDK S32XX 4.0.0, プロセッサー/S32G399A/.../quadspi/default_boot_images/。私たちは生成しませんでした U-Bootのs32cc_qspiparamsツールを使用してください。 U-Bootの変更点:0xC2803CのフラッシュIDエントリ、および8進数SDRソフト リセット。BootROMはフラッシュをOPI SDRのままにし、リセットRDIDなしで 00 00 00 を返します。 効果的な点: - QSPIから1-1-1、133 MHz(~16 MB/s)、BootROM、TF-A、u-Bootで起動 Linux。 - LinuxはIPコマンドパスを強制した後に読み書きを行います。フラッシュと共に 1ビットモードでは、spi-fsl-qspi.cのAHBダイレクトマップ読み取りパス原因となる 同期的な外部アボートまたはハング。 U-Bootで8進数DTRを有効にするために行ったこと 1. spi-tx-bus-width / spi-rx-bus-width を 8 に設定します。するとフラッシュがネゴシエートし、 8D-8D-8D を有効にする: オペコード 0xEE、octal_dtr_enable() は 0 を返し、プローブ 256 MiB と報告されています。 2. ダミーサイクルの不一致が見つかりました。SFDPは14回のダミーサイクルを実行したが、フラッシュ デフォルト値は20(CR2、アドレスは0x300)です。ここで、CR2[0x300] = 0 (20サイクル) とプログラムします。 そして、read_dummy = 20 に設定します。この修正前は、読み取りによってランダムなデータが返されていました。 同じアドレスを読み取るたびに変更されます。 *** Warning - bad CRC, using default environment Too large ELF file, size: 3568570404 <- PFE firmware header, read 1 Too large ELF file, size: 1226703397 <- same header, read 2 Bad Linux ARM64 Image magic! 3. DTRモードでIDを読み戻します: 3c 3c 3c 3c c2 c2。両方の正しい値が揃っています 戻ってきて、私たちはフラッシュが本当に八進DTRにあると考えています。 問題 カーネルオフセットでの最初のバイトの期待値: 1f 20 03 d5 19 80 31 14。その コントローラレジスタ(個別に読み取る)は以下の通りです: MCR 030f00cc SMPR 33000000 DLLCRA c280000d DLCR 40ff40ff DLLSR 8000c078 (both DLLs locked) FR 09000001 (no DLPFF flag) - MCR DQS source = 外部(DDRのドライバーデフォルト):DTRクロックは2つだけです データの後、ゼロ:1f 20 1f d5 00 00 00 00 00。結果はデターミニスティックである。 そして管制官が転送成功を報告します。 - MCR DQS ソース = 内部 (MCR[25:24] = 1): すべてのデータが到着しますが、1 つ DDRエッジは、もう一方のエッジに対してちょうど1クロック遅れている。 expected: 1f 20 | 03 d5 | 19 80 | 31 14 read: 1f 20 | 1f d5 | 03 80 | 19 14 | 31 .. 各ペアの2バイト目は正しい。各ペアの最初のバイトは 正しいシーケンスが、1クロック分遅れて表示される。 DQSソーススイープ(MCR[25:24]、BSWAPオン/オフ)、最初の12バイトを読み取ります。 bswap src MCR data result on 2 020f00cc 19 80 19 19 14 14 31 14 00 00 00 00 bad on 3 030f00cc 1f 20 1f d5 00 00 00 00 00 00 00 00 bad off 0 000f00cc 31 0c 00 1d 55 02 19 18 31 20 00 00 bad off 1 010f00cc 1f 20 1f d5 03 80 19 14 31 00 00 00 bad off 2 020f00cc 80 19 19 19 14 14 14 31 00 00 00 00 bad off 3 030f00cc 20 1f d5 1f 00 00 00 00 00 00 00 00 bad 完全な無効化→設定→有効化→DLLロックサイクルで掃討した 毎回(どれも解決しなかった): - SMPR DLLFSMPFA/FB_NTH 0-7、DLPオン/オフ - MCR END_CFG 0-3、SFACR BSWAP のオン/オフ: これは同じものを並べ替えるだけです 間違ったバイト - MCR DQSソース0-3 - SMPR DDRSMP 0-7、FSPHSのオン/オフ:データに全く影響なし コードの変更(テストビルドのみ、bsp43.0 をベースに)情報源) TF-A fdts/s32cc-nxp-flash-macronix.dtsi(U-Bootが使用するDTB): mx66um2g45g@0 { compatible = "jedec,spi-nor"; spi-tx-bus-width = <8>; /* was 1 */ spi-rx-bus-width = <8>; /* was 1 */ }; U-Boot ドライバ/mtd/spi/spi-nor-core.c, spi_nor_macronix_octal_dtr_enable(), CR2[0x0]がDTR OPIにスイッチ前に: u8 dc = 0x00; /* CR2[0x300] = 0 -> 20 dummy */ write_enable(nor); op = (struct spi_mem_op) SPI_MEM_OP(SPI_MEM_OP_CMD(SPINOR_OP_WRCR2, 1), SPI_MEM_OP_ADDR(4, 0x300, 1), SPI_MEM_OP_NO_DUMMY, SPI_MEM_OP_DATA_OUT(1, &dc, 1)); spi_mem_exec_op(nor->spi, &op); spi_nor_wait_till_ready(nor); nor->read_dummy = 20; /* SFDP gave 14 */ U-Bootドライバ/spi/fsl_qspi.c、enable_octal_ddr()、DQSソーステスト (octal_ddr_confのデフォルトDQS_EXTERNALではなく内部DQS): mcr |= octal_ddr_conf.mcr; mcr &= ~QUADSPI_MCR_DQS_EXTERNAL; /* clear MCR[25:24] */ mcr |= QUADSPI_MCR_DQS_INT_PAD; /* MCR[25:24] = 1 */ qspi_writel(q, mcr, base + QUADSPI_MCR); レジスタスイープでは、完全なU-Bootコマンドを繰り返すテストU-Bootコマンドが使用されました。 enable_octal_ddr() シーケンス (MDIS=1、プログラム MCR/SMPR/DLCR/SFACR、MDIS=0、 各設定に対してDLLロックを待機し、その後512バイトを3回読み取ります。 基板側: DQSはピン多重化されています(パッド85~93、IMCR 540~548)。 質問 1.S32G3 QuadSPIで133MHzの8D-8D-8D動作を実現するには、外部DQSが必要ですか?は 「時計が2つ表示されてからゼロが表示される」というのは、DQSの返却が欠落しているか、不良であることを示す既知の症状ですか? 2. DDRモードでは内部DQS(ループバック)はサポートされていますか?もしそうなら、どのレジスターか 設定でエッジ間の1クロックのクロックスキューを修正できますか?DLLCRAスレーブ遅延設定、 多分? 3. QuadSPI 設定 (MCR/SMPR/DLLCRA/FLSHCR) の検証済み、または BootROMパラメータセット(MX66UM2G45Gまたはその他の1.8V Macronix 8進数用) S32G3の部品ですか?同じS32DSフォルダには、mx66_sim133ddr.binも含まれています。それはある 8進数DTRブートイメージはS32G3で検証済みで、どのボードで確認されていますか? 4. Linuxのspi-fsl-qspiドライバにおけるAHB読み取りパスは、 八進DTR?フラッシュが1-1-1で動作すると故障するのが普通でしょうか? 5. NXPはS32 BSPにMX66UM2G45G(JEDEC ID C2 80 3C)を追加する計画ですか? U-Boot、Linux、TF-Aのbsp48.0までのリリースを調べましたが、見つかりませんでした その入り口。AMDのU-Bootフォーク(u-boot-xlnx)はこの部分をサポートしています。 2024.1リリース以降のoctal-DTR読み取りおよびプログラム、そしてメインラインのU-Boot 1 Gbitの兄弟機であるMX66UM1G45G(C2 80 3B)をサポートしています。もしサポートが 計画中ですが、どのBSPリリースをターゲットにしていますか?検証済みのものも含まれますか 8進数DTR用のQuadSPIおよびBootROMパラメータは? ログ全体とレジスタスイープテーブルを共有できます。ありがとう。 Re: S32G399A octal DTR reads fail with Macronix MX66UM2G45G QSPI flash こんにちは、アルドさん。 ご回答ありがとうございます。 念のため申し上げますが、弊社ではmx66_sim133sdr.binを使用しています。これはBootROMでのみ使用されるため、オクタルDTRの問題には影響しません。 オクタルDTRは、後にU-Boot段階でSPI-NORフレームワークがフラッシュをDTRにスイッチし、 enable_octal_ddr() がQuadSPIコントローラを設定することで有効になります。フラッシュもコントローラも読み込みが失敗する前に8D-8D-8Dになっています。引き続きmx66_sim133ddr.binを試してみて、結果を共有します。 また、ご提案いただいたように、他の特性を一定に保ちながら、より低いクロック周波数で読み取りを繰り返し、データやエラーパターンに変化があった場合は報告します。 また、読み取りID処理中および読み取り失敗時のSCLK、DQS、SIO[0:7]のオシロスコープ画像も取得し、近日中にお送りいたします。 よろしくお願いいたします。 ディラージ Re: S32G399A octal DTR reads fail with Macronix MX66UM2G45G QSPI flash こんにちは、アルドさん。 ご提案ありがとうございます。私たちが発見したことは以下のとおりです。 1. バイナリファイル 私たちはmx66_sim133sdr.binを使用します。これは、BootROMがBL2を133MHzの8進数SDRでロードするためにのみ使用され、正常に動作します。U-Bootでは後で8進DTRが有効になり、読み込み失敗時はフラッシュとコントローラの両方が8D-8D-8Dになっています。mx66_sim133ddr.binはまだ試していません。コントローラ設定(MCR 0x030F00CC、DLLCR 0x8280000C、SMPR 0x44000000、外部DQS)は、下のU-Bootでテストしたものと同じなので、同じ故障が起こると予想しています。 2. コントローラ設定 S32G3のデータシート表54「DDR-133MHz」欄を使用しました:MCR 0x030F00CC、SMPR 0x44000000、DLLCRA 0x8280000D、FLSHCR 0x00010303、SFACR BSWAP。DLLがロックされています(DLLSR 0x8000C014)。 3. 外部DQSにおける障害パターン コマンド、アドレス、ダミーサイクルは正しく、最初の16ビットワードも正しく読み取られています。その後は、一部のDQSエッジでのみデータが取得されます。単語が繰り返されたり、省略されたりする。 例(16バイト): 予想される値: 54 71 00 90 94 a2 2e 91 f5 5b 02 a9 13 41 38 d5 読み上げ: 54 71 54 54 00 90 00 00 94 a2 38 d5 38 38 95 06 4. 外部DQSによる設定スイープ どの設定も動作しません:NTH 0-7、DLL車載/マニュアル/バイパス、スレーブディレイオフセット0-7、粗い0-15、TDH 0-2、DDRSMP 0-7。QSPIパッド構成は正しいです(DQS PF_13を含むすべてのQSPIパッドのMSCRは0x00282001です)。 5. 周波数スイープ 133、100、80、66.7 MHz(104/84/66 MHzに最も近い周波数)をテストしました。外部DQSは、あらゆる周波数において同じパターンで故障する。 6. 内部DQS 内部DQS(MCR 0x010F00CC)とDLLがマニュアルモードの場合、8進数DTRの読み取りは正しい(16MBのCRCチェックで検証済み)。クロック周波数が低下するにつれて、動作スレーブの遅延オフセットは広がります。133 MHz: 7、100 MHz: 4-7、80 MHz: 2-7、66.7 MHz: 1-7。 133MHz帯の8S-8S-8SオクタールSDRも安定して動作します。 外部DQS経路がすべての周波数と設定で失敗するため、基板上のDQS信号に問題があると疑っています。DQSは、同じバス上の別のフラッシュデバイスと共有されていますが、そのフラッシュデバイスは有効になっていません。オシロスコープを使用してSCLK、DQS、SIOの波形をキャプチャし、その画像を共有します。 コントローラ側で外部DQSを確認するべき他に何かありますか? -ディラージ Re: S32G399A octal DTR reads fail with Macronix MX66UM2G45G QSPI flash こんにちは、ディーラージさん。 詳細な情報を提供していただきありがとうございます。 この問題はカスタムボードとMX66UM2G45Gに関わっており、S32G3 RDB3で使われているフラッシュとは異なり、同等のセットアップで同じ動作を再現または検証することはできません。とはいえ、必要に応じて、さらなる調査を支援し、調整するために最善を尽くします。 8D-8D-8DのオクタルDTRは使えないとおっしゃっていましたが、ソフトウェアのセクションにはmx66_sim133sdr.binが記載mx66_sim133sdr.binされています。これはSDRイメージを示しているため、mx66_sim133sdr.binかmx66_sim133ddr.binが使われているのか、また読み込み前にフラッシュとQuadSPIコントローラの両方がオクタルDTRに設定されているかを明確にしてください。 read-IDの結果3c 3c 3c 3c c2 c2は通信が行われていることを示していますが、8D-8D-8Dの動作が正しいことを完全に確認するものではありません。可能であれば、read-ID実行時および読み取り失敗時のSCLK、DQS、SIO[0:7]のオシロスコープ波形を提供してください。 診断として、同じ読み出しを約104MHz、84MHz、66MHzなど 低いクロック周波数で繰り返し、オク進DTRとDQSの設定は一定に保ってください。コントローラクロック、フラッシュダミーサイクル設定、LUTシーケンス、その他のタイミングパラメータは選択した周波数と一貫していなければなりません。 データやエラーパターンの変化は、タイミングや信号の整合性の問題を示す可能性があります。 参考までに、以下をご確認ください。 S32 Flash Tool ユーザーガイド、UG10237、セクション4。 S32プラットフォーム向けS32フラッシュツール AN13563、S32G QuadSPIの詳細解説、セクション4および5。 HOWTO:FlashSDKを使ってQuadSPIフラッシュメモリデバイスのサポートを追加してください 提起された疑問点については、さらなる調査が必要であり、NXPの他のチームが関与する可能性もあります。新たな情報が入り次第、お知らせいたします。 よろしくお願いします、 アルド Re: S32G399A octal DTR reads fail with Macronix MX66UM2G45G QSPI flash こんにちは、ディーラージさん。 追加の検査結果をありがとうございます。 お客様からいただいた最初のご質問に対する回答は以下のとおりです。 現在入手可能な情報に基づき、以下の点をご検討ください。 1.ご存知の通り、133 MHz DDR用の検証済みS32G3コントローラ構成は、S32G3データシートの表54の「DDR-133MHz」欄に記載されています。この構成では外部DQSを使用します。「2つのクロックが経てゼロになる」挙動はDQS経路の問題と両立しますが、波形を確認しなければ決定的な症状として確認できません。外部DQSが133MHzから66.7MHzまで同じパターンで失敗する一方、内部DQSは手動遅延設定で動作するため、基板レベルのDQS信号またはタイミングの問題である可能性が十分に考えられます。 2.量子化遅延を生成するためにDLLCRAが使用されます。しかし、現時点ではカスタムボードの1クロックのクロックスキューを修正するための有効なDLLCRA値を持っていません。内部DQSは診断ツールとして役立つ場合があるが、DDR-133の動作には外部DQSが推奨される構成である。 3. コントローラの参考として、S32G3データシートに記載されている推奨されるDDR-133設定をご利用ください。mx66_sim133ddr.bin画像はソフトウェアチームによって検証された見込みですが、検証ボードや詳細なテスト条件は現時点では入手できません。S32DSのQuadSPI構成ツールでイメージを開き、構成を確認できます。 4. BSPの実装を確認する必要があります。さらに、AHBの読み取りシーケンスは、フラッシュメモリで現在使用されているプロトコルと一致している必要があります。フラッシュが1-1-1モードで、AHB経路がオクタルDTRシーケンスに設定されている場合、故障やハングが発生することがあります。1-1-1動作の場合、AHB LUTとフラッシュの状態は一貫して設定する必要があります。 5.現在のBSPデバイスツリー構成は、RDB3で使用されるMX25UW51245Gを対象としています。異なるフラッシュデバイスを選択すると、ユーザーは必要に応じてデバイスツリーやフラッシュの設定を更新することが期待されます。現時点では、 MX66UM2G45Gを追加したり、基板固有の検証済みOctal DTRパラメータを提供する予定のBSPリリースを確認できていません。 私は既に、読み取りID処理中および読み取り失敗時のSCLK、DQS、およびSIO[0:7]のオシロスコープ波形を要求しました。入手可能な場合は、それらの画像を共有してください。これらは、外部DQS信号が正しく到達し、正しくサンプリングされているかどうかを判断する上で重要となる。計測結果から追加の測定が必要と判断された場合は、ご連絡いたします。 関連する資料としては、S32G3データシートとS32DSに含まれるQuadSPI構成ツールが挙げられます。AN13563は再構成イメージの構造と生成フローを説明するのに役立つかもしれませんが、その例はS32G399AとMX66UM2G45Gの組み合わせに対する直接的な検証として扱うべきではありません。 よろしくお願いします、 アルド。
View full article
A53 reset and lockstep boot with S32G3 Dear NXP Support Team, When booting from Cortex-M7 on the S32G399A-EVB3, does Cortex-A53 automatically remain in reset? After M7 configures Cortex-A53 Lockstep mode, what is the correct procedure to release the A53 reset and allow it to start execution? Could you please clarify the expected reset behavior and provide the recommended reset-release sequence? Best regards, Toan Re: A53 reset and lockstep boot with S32G3 Hi, Toan Thank you for contacting us. I will help you check it and reply to you at the following case. Clarification on Reset Sequence and A53 Lockstep Boot Flow with S32G3 BSP 48.0.0 - NXP Community BR Joey
View full article
S32K312 SIUL interrupt When an effective interrupt is generated,can not into void SIUL_2_Handler(void),but can into void Default_Handler(void),why? Re: S32K312 SIUL interrupt Hello @joshua9264 , The map file and memory view confirm that the vector table is correct. SIUL_2_Handler is located at 0x00400765 and the corresponding vector entry at 0x0040021C contains the same address. Therefore, the weak handler and vector-table linkage are not the cause. The reported CFSR.INVSTATE HardFault indicates an invalid processor execution state. Since the vector entry includes the required Thumb bit, the fault may occur inside the interrupt handler or during the exception return. The displayed Default_Handler may actually be the weak handler used for the HardFault exception. Please set an instruction breakpoint at 0x00400764, which is the actual first instruction of SIUL_2_Handler and step through the handler in the Disassembly view. This will confirm whether the processor enters the handler and identify the instruction after which the fault occurs. If the fault occurs during the return from the handler, please also provide the following values immediately after the HardFault: SCB->CFSR SCB->HFSR SCB->SHCSR SCB->ICSR MSP value The stacked PC and xPSR values The stacked xPSR must have the Thumb state bit, bit 24, set. A stacked PC of 0x00000000 or a cleared Thumb bit would explain the INVSTATE fault. Best regards, Pavel Re: S32K312 SIUL interrupt thank you PavelL I checked these addresses and data are correct,But it still cannot enter SIUL_2_Handler。 I will generate a project using S32DS to test The processor has escalated a configurable-priority exception to HardFault. I don't know what caused it   Re: S32K312 SIUL interrupt Hello @joshua9264 , Thank you for providing the project files. I checked the startup file, vector table, main.c, linker configuration and IAR project settings. The handler name appears to be correct: The vector table uses SIUL_2_Handler. main.c provides a strong implementation of SIUL_2_Handler. The startup file defines the default implementation as a weak alias to Default_Handler. SystemInit() sets SCB->VTOR to the __VECTOR_TABLE symbol. Therefore, the implementation in main.c should override the weak default handler. At this point, please check the final linker output to confirm which address was actually assigned to the vector table entry. The IAR project has map file generation enabled. Please check the Debug\List directory for a .map file. In the map file, search for: SIUL_2_Handler Default_Handler __VECTOR_TABLE Please verify that SIUL_2_Handler has its own address and is not resolved to the same address as Default_Handler. The map file should also indicate that the implementation comes from main.o, while the weak definition comes from the startup object. For the flash configuration, the vector table should start at 0x00400100. Since SIUL_2_IRQn is IRQ 55, its vector table entry should be located at: 0x00400100 + 4 × (16 + 55) = 0x0040021C Please also check the following values in the debugger after SystemInit() has executed: The value of SCB->VTOR. It should be 0x00400100 for the flash configuration. The 32-bit value stored at address 0x0040021C. The address of SIUL_2_Handler. The address of Default_Handler. The value stored at 0x0040021C should correspond to the address of the application implementation of SIUL_2_Handler, with bit 0 set because the Cortex-M7 executes Thumb instructions. If the vector entry points to Default_Handler, please perform a Clean and Rebuild in IAR and make sure that the newly generated .out file is downloaded to the MCU.  Best regrads, Pavel Re: S32K312 SIUL interrupt and this is  my project file Re: S32K312 SIUL interrupt Hi:PavelL This is startup file and vector table,I haven't found SIUL_2_IRQHandler, I am using an IAR project generated by S32DS。 Re: S32K312 SIUL interrupt Hello @joshua9264 , Since the CPU enters Default_Handler(), the SIUL2 interrupt is most likely generated correctly, but the interrupt vector is still linked to the default weak handler. Please check the startup file or vector table and use the exact ISR name assigned to SIUL_2_IRQn. The expected name may be SIUL_2_IRQHandler() rather than SIUL_2_Handler(). The linker map file can be used to verify which function is actually assigned to the interrupt vector. Best regards, Pavel
View full article
S32G399A octal DTR reads fail with Macronix MX66UM2G45G QSPI flash Hi Community, We have a custom board based on the S32G399A-RDB3 reference design. The main change to the boot flash is that we replaced the MX25UW51245G (64 MB) with a Macronix MX66UM2G45G (256 MB, 1.8 V octal, JEDEC ID C2 80 3C). Everything works in 1-1-1 SPI. We cannot get 8D-8D-8D (octal DTR) reads to return correct data, and we would like help from NXP. We also could not find this part in any S32 BSP release up to bsp48.0, although AMD's U-Boot has supported it since 2024.1. Software TF-A bsp43.0-2.10.7, U-Boot bsp43.0-2022.04, Linux bsp43.0 (6.6.52) BootROM QSPI parameters: mx66_sim133sdr.bin (512 bytes, "OPI SDR 133 MHz"), taken unchanged from S32 Design Studio 3.6.1, Platform SDK S32XX 4.0.0, processors/S32G399A/.../quadspi/default_boot_images/. We did not generate it with U-Boot's s32cc_qspiparams tool. U-Boot changes: the flash ID entry for 0xC2803C, plus the octal-SDR soft reset. The BootROM leaves the flash in OPI SDR, and without the reset RDID returns 00 00 00. What works: - Boot from QSPI at 1-1-1, 133 MHz (~16 MB/s), in BootROM, TF-A, U-Boot and Linux. - Linux reads and writes, after we forced the IP-command path. With the flash in 1-bit mode, the AHB direct-map read path in spi-fsl-qspi.c causes a synchronous external abort or a hang. What we did to enable octal DTR in U-Boot 1. Set spi-tx-bus-width / spi-rx-bus-width to 8. The flash then negotiates and enables 8D-8D-8D: opcode 0xEE, octal_dtr_enable() returns 0, and probe reports 256 MiB. 2. Found a dummy-cycle mismatch. SFDP gave 14 dummy cycles, but the flash defaults to 20 (CR2 at 0x300). We now program CR2[0x300] = 0 (20 cycles) and set read_dummy = 20. Before this fix, reads returned random data that changed on every read of the same address: *** Warning - bad CRC, using default environment Too large ELF file, size: 3568570404 <- PFE firmware header, read 1 Too large ELF file, size: 1226703397 <- same header, read 2 Bad Linux ARM64 Image magic! 3. Read the ID back in DTR mode: 3c 3c 3c 3c c2 c2. Both correct values come back, so we believe the flash really is in octal DTR. The problem Expected first bytes at the kernel offset: 1f 20 03 d5 19 80 31 14. The controller registers (read individually) are: MCR 030f00cc SMPR 33000000 DLLCRA c280000d DLCR 40ff40ff DLLSR 8000c078 (both DLLs locked) FR 09000001 (no DLPFF flag) - MCR DQS source = external (driver default for DDR): we get only 2 DTR clocks of data, then zeros: 1f 20 1f d5 00 00 00 00. The result is deterministic, and the controller reports a successful transfer. - MCR DQS source = internal (MCR[25:24] = 1): all the data arrives, but one DDR edge lags the other by exactly one clock: expected: 1f 20 | 03 d5 | 19 80 | 31 14 read: 1f 20 | 1f d5 | 03 80 | 19 14 | 31 .. The second byte of every pair is correct. The first byte of every pair is the correct sequence, delayed by one clock. DQS source sweep (MCR[25:24], BSWAP on/off), first 12 bytes read: bswap src MCR data result on 2 020f00cc 19 80 19 19 14 14 31 14 00 00 00 00 bad on 3 030f00cc 1f 20 1f d5 00 00 00 00 00 00 00 00 bad off 0 000f00cc 31 0c 00 1d 55 02 19 18 31 20 00 00 bad off 1 010f00cc 1f 20 1f d5 03 80 19 14 31 00 00 00 bad off 2 020f00cc 80 19 19 19 14 14 14 31 00 00 00 00 bad off 3 030f00cc 20 1f d5 1f 00 00 00 00 00 00 00 00 bad What we swept, with a full disable -> configure -> enable -> DLL-lock cycle each time (none fixed it): - SMPR DLLFSMPFA/FB_NTH 0-7, with DLP on and off - MCR END_CFG 0-3, with SFACR BSWAP on and off: this only reorders the same wrong bytes - MCR DQS source 0-3 - SMPR DDRSMP 0-7, with FSPHS on and off: no effect at all on the data Code changes (test builds only, on top of the bsp43.0 sources) TF-A fdts/s32cc-nxp-flash-macronix.dtsi (the DTB that U-Boot uses): mx66um2g45g@0 { compatible = "jedec,spi-nor"; spi-tx-bus-width = <8>; /* was 1 */ spi-rx-bus-width = <8>; /* was 1 */ }; U-Boot drivers/mtd/spi/spi-nor-core.c, spi_nor_macronix_octal_dtr_enable(), before CR2[0x0] is switched to DTR OPI: u8 dc = 0x00; /* CR2[0x300] = 0 -> 20 dummy */ write_enable(nor); op = (struct spi_mem_op) SPI_MEM_OP(SPI_MEM_OP_CMD(SPINOR_OP_WRCR2, 1), SPI_MEM_OP_ADDR(4, 0x300, 1), SPI_MEM_OP_NO_DUMMY, SPI_MEM_OP_DATA_OUT(1, &dc, 1)); spi_mem_exec_op(nor->spi, &op); spi_nor_wait_till_ready(nor); nor->read_dummy = 20; /* SFDP gave 14 */ U-Boot drivers/spi/fsl_qspi.c, enable_octal_ddr(), DQS source test (internal DQS instead of the octal_ddr_conf default DQS_EXTERNAL): mcr |= octal_ddr_conf.mcr; mcr &= ~QUADSPI_MCR_DQS_EXTERNAL; /* clear MCR[25:24] */ mcr |= QUADSPI_MCR_DQS_INT_PAD; /* MCR[25:24] = 1 */ qspi_writel(q, mcr, base + QUADSPI_MCR); The register sweeps used a test U-Boot command that repeats the full enable_octal_ddr() sequence (MDIS=1, program MCR/SMPR/DLCR/SFACR, MDIS=0, wait for DLL lock) for each setting, then reads 512 bytes 3 times. Board side: DQS is pinmuxed (pads 85-93, IMCR 540-548). Questions 1. Is external DQS required for 8D-8D-8D at 133 MHz on the S32G3 QuadSPI? Is "2 clocks then zeros" a known symptom of a missing or bad DQS return? 2. Is internal DQS (loopback) supported in DDR mode? If so, which register settings fix the one-clock skew between edges? DLLCRA slave-delay settings, perhaps? 3. Do you have validated QuadSPI settings (MCR/SMPR/DLLCRA/FLSHCR), or a BootROM parameter set, for the MX66UM2G45G or another 1.8 V Macronix octal part on S32G3? The same S32DS folder also has mx66_sim133ddr.bin. Has that octal DTR boot image been validated on S32G3, and on which board? 4. Is the AHB read path in the Linux spi-fsl-qspi driver validated only for octal DTR? Is it expected to fault when the flash runs in 1-1-1? 5. Is NXP planning to add the MX66UM2G45G (JEDEC ID C2 80 3C) to the S32 BSP? We checked the U-Boot, Linux and TF-A releases up to bsp48.0 and found no entry for it. AMD's U-Boot fork (u-boot-xlnx) has supported this part with octal-DTR read and program since its 2024.1 release, and mainline U-Boot supports its 1 Gbit sibling, the MX66UM1G45G (C2 80 3B). If support is planned, which BSP release is it targeted for? Would it include validated QuadSPI and BootROM parameters for octal DTR? We can share full logs and the register sweep tables. Thank you. Re: S32G399A octal DTR reads fail with Macronix MX66UM2G45G QSPI flash Hi Dheeraj, Thank you for the detailed information. Since this issue involves a custom board and the MX66UM2G45G, which is different from the flash used on the S32G3 RDB3, we cannot reproduce or validate the behavior on an equivalent setup. Nevertheless, I will do my best to assist and coordinate further investigation as needed. You mentioned that 8D-8D-8D Octal DTR cannot be used, but the Software section lists mx66_sim133sdr.bin. Since this indicates an SDR image, please clarify whether mx66_sim133sdr.bin or mx66_sim133ddr.bin is being used, and whether both the flash and QuadSPI controller are configured for Octal DTR before the read. The read-ID result 3c 3c 3c 3c c2 c2 shows that communication is occurring, but it does not fully confirm correct 8D-8D-8D operation. If possible, please provide oscilloscope captures of SCLK, DQS, and SIO[0:7] during the read-ID and failing read operations. As a diagnostic, please repeat the same read at a lower Clock frequency, such as approximately 104 MHz, 84 MHz, and 66 MHz, while keeping the Octal DTR and DQS configuration consistent.The controller clock, flash dummy-cycle setting, LUT sequence, and other timing parameters must remain consistent with the selected frequency. Any change in the data or error pattern could indicate a timing or signal-integrity issue. For reference, please review: S32 Flash Tool User Guide, UG10237, Section 4. S32 Flash Tool for S32 Platform AN13563, S32G QuadSPI Deep Dive, Section 4 and 5. HOWTO: Use FlashSDK to add support for QuadSPI flash memory devices The questions raised require additional investigation and may involve other NXP teams. I will provide further information as it becomes available. Best regards, Aldo Re: S32G399A octal DTR reads fail with Macronix MX66UM2G45G QSPI flash Hi Aldo, Thank you for the suggestions. Here is what we found. 1. Bin file We use mx66_sim133sdr.bin. It is only used by the BootROM to load BL2 in octal SDR at 133 MHz, which works. Octal DTR is enabled later in U-Boot, and both the flash and the controller are in 8D-8D-8D for the failing reads. We have not tried mx66_sim133ddr.bin yet. Its controller settings (MCR 0x030F00CC, DLLCR 0x8280000C, SMPR 0x44000000, external DQS) are the same ones we tested in U-Boot below, so we expect the same failure. 2. Controller settings We used the S32G3 data sheet Table 54 "DDR-133MHz" column: MCR 0x030F00CC, SMPR 0x44000000, DLLCRA 0x8280000D, FLSHCR 0x00010303, SFACR BSWAP. The DLL locks (DLLSR 0x8000C014). 3. Failure pattern with external DQS Command, address and dummy cycles are correct and the first 16-bit word is read correctly. After that, data is captured only on some DQS edges. Words are repeated and others are skipped. Example (16 bytes): Expected:   54 71 00 90 94 a2 2e 91 f5 5b 02 a9 13 41 38 d5 Read:          54 71 54 54 00 90 00 00 94 a2 38 d5 38 38 95 06 4. Settings sweep with external DQS No setting works: NTH 0-7, DLL auto/manual/bypass, slave delay offset 0-7 and coarse 0-15, TDH 0-2, DDRSMP 0-7. The QSPI pad configuration is correct (MSCR = 0x00282001 for all QSPI pads including DQS PF_13). 5. Frequency sweep We tested 133, 100, 80 and 66.7 MHz (the closest rates to 104/84/66 MHz we can generate). External DQS fails at every frequency with the same pattern. 6. Internal DQS With internal DQS (MCR 0x010F00CC) and the DLL in manual mode, octal DTR reads are correct (verified with 16 MB CRC checks). The working slave delay offsets widen as the clock drops: 133 MHz: 7, 100 MHz: 4-7, 80 MHz: 2-7, 66.7 MHz: 1-7. Octal SDR (8S-8S-8S) at 133 MHz also works reliably. Since the external DQS path fails at every frequency and setting, we suspect a problem on the DQS signal on our board. Note that DQS is shared with a second flash device on the same bus which is not enabled. We will capture SCLK, DQS and SIO with the oscilloscope and share the images. Is there anything else on the controller side we should check for external DQS? -Dheeraj Re: S32G399A octal DTR reads fail with Macronix MX66UM2G45G QSPI flash Hi Aldo, Thank you for the response. To clarify, we are using mx66_sim133sdr.bin. It is used only by the BootROM, so it does not affect the octal DTR problem. Octal DTR is enabled later, at U-Boot stage, when the SPI-NOR framework switches the flash to DTR and enable_octal_ddr() configures the QuadSPI controller. Both the flash and the controller are in 8D-8D-8D before the failing reads. We will still try mx66_sim133ddr.bin and share the result. Also, as suggested, we will also repeat the reads at lower clock frequencies, keeping the other properties consistent, and report any change in the data or error pattern. We will also capture oscilloscope images of SCLK, DQS and SIO[0:7] during the read-ID and failing read operations, and get back to you with them soon. Regards, Dheeraj Re: S32G399A octal DTR reads fail with Macronix MX66UM2G45G QSPI flash Hi Dheeraj, Thank you for the additional test results.  Our initial responses to your first questions are provided below. Based on the information currently available, please consider the following: 1. As you know, the validated S32G3 controller configuration for 133 MHz DDR is documented in Table 54 of the S32G3 Data Sheet, under the “DDR-133MHz” column. This configuration uses external DQS. The “two clocks then zeros” behavior is compatible with a problem in the DQS path, but we cannot confirm it as a definitive symptom without reviewing the waveforms. Since external DQS fails with the same pattern from 133 MHz down to 66.7 MHz, while internal DQS works with manual delay settings, a board-level DQS signal or timing issue remains a reasonable possibility. 2. DLLCRA is used to generate the quantized delay. However, we do not currently have a validated DLLCRA value that can be recommended to correct the one-clock skew on your custom board. Internal DQS may be useful as a diagnostic, but external DQS remains the recommended configuration for DDR-133 operation. 3. Please use the recommended DDR-133 settings in the S32G3 Data Sheet as the controller reference. The mx66_sim133ddr.bin image is expected to have been verified by the software team, but the validation board and detailed test conditions are not currently available. You may open the image with the QuadSPI Configuration Tool in S32DS to inspect the configuration.  4. The BSP implementation needs to be checked. In addition, the AHB read sequence must match the protocol currently used by the flash. If the flash is in 1-1-1 mode while the AHB path is configured for an octal DTR sequence, a fault or hang can occur. For 1-1-1 operation, the AHB LUT and flash state must be configured consistently.  5. The current BSP device-tree configuration is intended for the MX25UW51245G used on the RDB3. When a different flash device is selected, the user is expected to update the device-tree and flash configuration as needed. At this time, I cannot confirm a planned BSP release that will add the MX66UM2G45G or provide board-specific validated Octal DTR parameters. I have already requested oscilloscope captures of SCLK, DQS, and SIO[0:7] during the read-ID and failing read operations. Please share those captures when available. They will be important for determining whether the external DQS signal is reaching and being sampled correctly. If the captures show that additional measurements are needed, I will let you know. The relevant references are the S32G3 Data Sheet and the QuadSPI Configuration Tool in S32DS. AN13563 may help explain the reconfiguration-image structure and generation flow, but its examples should not be treated as a direct validation for this S32G399A and MX66UM2G45G combination. Best regards,  Aldo.
View full article
S32K312 SIUL割り込み 効果的な割り込みが生成された場合、Void SIUL_2_Handler(void)には入れないが、void Default_Handler(void)には入れるのか?なぜ? Re: S32K312 SIUL interrupt こんにちは、 @joshua9264 さん、 マップファイルとメモリビューにより、ベクターテーブルが正しいことが確認されました。SIUL_2_Handlerは0x00400765に位置し、対応するベクターエントリ0x0040021Cには同じアドレスが含まれています。したがって、弱いハンドラとベクターテーブルのリンクが原因ではありません。 報告されたCFSR.INVSTATEハードフォールトは、プロセッサの実行状態が無効であることを示します。ベクタエントリには必須のサムビットが含まれているため、割り込みハンドラ内または例外戻り時に障害が発生する可能性があります。表示されている Default_Handler は、実際には HardFault 例外に使用される弱いハンドラーである可能性があります。 SIUL_2_Handler の最初の命令である 0x00400764 に命令ブレークポイントを設定し、逆アセンブリビューでハンドラをステップ実行してください。これにより、プロセッサがハンドラーに入ったかどうか、そして故障が発生する命令を識別します。 ハンドラからの戻り時にエラーが発生した場合は、ハードフォルトの直後に以下の値も指定してください。 SCB->CFSR SCB->HFSR SCB->SHCSR SCB->ICSR MSP値 積み重ねられたPC値とxPSR値 スタックされたxPSRは、サム状態ビット(ビット24)がセットされている必要があります。スタックされたPCが0x00000000であるか、サムビットがクリアされている場合、INVSTATEエラーが説明できます。 よろしくお願いいたします。 パベル Re: S32K312 SIUL interrupt パベルさん、ありがとう これらのアドレスとデータは正しいものを確認しましたが、それでも入力できませんSIUL_2_Handler。 S32DSを使用してプロジェクトを生成してテストします プロセッサはHardFaultに対して設定可能な優先度の例外をエスカレーションしました。 何が原因かはわかりません   Re: S32K312 SIUL interrupt こんにちは、 @joshua9264 さん、 プロジェクトファイルをご提供いただきありがとうございます。 起動ファイル、ベクターテーブル、main.c を確認しました。リンカーの設定とIARプロジェクトの設定。ハンドラー名は正しいようです。 ベクトルテーブルはSIUL_2_Handlerを使用します。 main.c は、SIUL_2_Handler の強力な実装を提供します。 起動ファイルでは、デフォルトの実装を Default_Handler の弱いエイリアスとして定義しています。 SystemInit() は SCB->VTOR を __VECTOR_TABLE シンボルに設定します。 したがって、main.c の実装弱いデフォルトハンドラをオーバーライドする必要があります。この時点で、最終的なリンカーの出力を確認し、ベクターテーブルのエントリに実際に割り当てられたアドレスを確認してください。 IARプロジェクトでは、地図ファイルの生成機能が有効になっています。Debug\List ディレクトリに .map ファイルがあるかどうか確認してください。ファイル。地図ファイル内で以下を検索してください: SIUL_2_ハンドラー デフォルトハンドラー __VECTOR_TABLE SIUL_2_Handlerが独自のアドレスを持ち、Default_Handlerと同じアドレスに解決されていないことを確認してください。マップファイルには、実装がmain.oから来ており、弱い定義がスタートアップオブジェクトから来ていることも明記する必要があります。 フラッシュ構成の場合、ベクターテーブルは0x00400100から開始する必要があります。SIUL_2_IRQnはIRQ 55であるため、そのベクタテーブルエントリは次の場所に配置されます。 0x00400100 + 4 × (16 + 55) = 0x0040021C SystemInit() の実行後、デバッガーで以下の値も確認してください。 SCB->VTOR の値。フラッシュ構成の場合は0x00400100である必要があります。 アドレス0x0040021Cに格納されている32ビット値。 SIUL_2_Handler のアドレス。 Default_Handler のアドレス。 0x0040021Cに保存される値は、SIUL_2_Handlerのアプリケーション実装のアドレスに対応し、ビット0はCortex-M7がサム命令を実行するために設定されます。 ベクターエントリが Default_Handler を指している場合は、IAR でクリーンと再構築を実行し、新しく生成された .out ファイルが正しく生成されていることを確認してください。ファイルはMCUにダウンロードされます。 よろしくお願いいたします。 パベル Re: S32K312 SIUL interrupt そしてこれが私のプロジェクトファイルです Re: S32K312 SIUL interrupt こんにちは:パベル これは起動ファイルとベクターテーブルです。SIUL_2_IRQHandler は見つかりませんでした。 私はS32DSで生成されたIARプロジェクトを使用しています。 Re: S32K312 SIUL interrupt こんにちは、 @joshua9264 さん、 CPUがDefault_Handler()に入るため、SIUL2割り込みは正しく生成される可能性が高いですが、割り込みベクタは依然としてデフォルトの弱いハンドラにリンクされています。 スタートアップファイルまたはベクターテーブルを確認し、SIUL_2_IRQnに割り当てられた正確なISR名を使用してください。期待される名前は SIUL_2_Handler ()ではなく SIUL_2_IRQHandler()かもしれません。リンカーマップファイルを使って割り込みベクターに実際に割り当てられた関数を検証できます。 よろしくお願いいたします。 パベル
View full article
S32K312 SIUL 中断 当产生有效中断时,不能进入void SIUL_2_Handler(void),但可以进入void Default_Handler(void),为什么? Re: S32K312 SIUL interrupt 你好@joshua9264 , 映射文件和内存视图证实矢量表是正确的。SIUL_2_Handler 位于 0x00400765,对应的向量条目位于 0x0040021C,包含相同的地址。因此,弱处理程序和向量表链接不是原因。 报告的 CFSR.INVSTATE HardFault 表示处理器执行状态无效。由于向量条目包含所需的 Thumb 位,因此故障可能发生在中断处理程序内部或异常返回期间。显示的 Default_Handler 实际上可能是用于 HardFault 异常的弱处理程序。 请在 0x00400764 处设置指令断点,这是 SIUL_2_Handler 的实际第一条指令,并在反汇编视图中逐步执行该处理程序。这将确认处理器是否进入处理程序,并确定发生故障的指令。 如果故障发生在处理程序返回期间,请在 HardFault 之后立即提供以下值: SCB->CFSR SCB->HFSR SCB->SHCSR SCB>ICSR MSP值 堆叠 PC 和 xPSR 值 堆叠的 xPSR 必须设置 Thumb 状态位(第 24 位)。PC 堆叠值为 0x00000000 或 Thumb 位被清除,可以解释 INVSTATE 故障。 顺祝商祺! 帕维尔 Re: S32K312 SIUL interrupt 谢谢你,帕维尔 我检查过这些地址和数据,确认无误,但仍然无法进入SIUL_2_Handler。 我将使用 S32DS 生成一个项目来进行测试。 处理器已将可配置优先级异常升级为 HardFault。 我不知道是什么原因造成的。   Re: S32K312 SIUL interrupt 你好@joshua9264 , 感谢您提供项目文件。 我检查了启动文件、向量表和 main.c 文件。链接器配置和 IAR 项目设置。处理程序名称似乎正确: 向量表使用 SIUL_2_Handler。 main.c 提供了 SIUL_2_Handler 的强大实现。 启动文件将默认实现定义为 Default_Handler 的弱别名。 SystemInit() 将 SCB->VTOR 设置为 __VECTOR_TABLE 符号。 因此,main.c 中的实现。应该覆盖默认的弱处理程序。此时,请检查最终的链接器输出,以确认哪个地址实际分配给了向量表条目。 IAR项目已启用地图文件生成功能。请检查 Debug\List 目录中是否存在 .map 文件。文件。在地图文件中,搜索: SIUL_2_Handler 默认处理程序 __VECTOR_TABLE 请确认 SIUL_2_Handler 有自己的地址,并且没有解析到与 Default_Handler 相同的地址。映射文件还应表明实现来自 main.o,而弱定义来自启动对象。 对于闪存配置,向量表应从 0x00400100 开始。由于 SIUL_2_IRQn 的 IRQ 为 55,因此其向量表条目应位于: 0x00400100 + 4 × (16 + 55) = 0x0040021C 请在执行完 SystemInit() 函数后,在调试器中检查以下值: SCB->VTOR 的价值。闪存配置应为 0x00400100。 存储在地址 0x0040021C 处的 32 位值。 SIUL_2_Handler 的地址。 Default_Handler 的地址。 存储在 0x0040021C 处的值应该对应于 SIUL_2_Handler 应用程序实现的地址,位 0 已设置,因为 Cortex-M7 执行 Thumb 指令。 如果向量入口指向 Default_Handler,请在 IAR 中执行清理和重建操作,并确保新生成的 .out 文件正确无误。文件已下载到MCU。 此致敬礼, 帕维尔 Re: S32K312 SIUL interrupt 这是我的项目文件 Re: S32K312 SIUL interrupt 你好: PavelL 这是启动文件和向量表,我没有找到 SIUL_2_IRQHandler, 我正在使用S32DS生成的IAR项目。 Re: S32K312 SIUL interrupt 你好@joshua9264 , 由于 CPU 进入Default_Handler() ,SIUL2 中断很可能已正确生成,但中断向量仍然链接到默认的弱处理程序。 请检查启动文件或向量表,并使用分配给SIUL_2_IRQn的确切 ISR 名称。预期名称可能是SIUL_2_IRQHandler()而不是SIUL_2_Handler() 。可以使用链接器映射文件来验证哪个函数实际分配给了中断向量。 顺祝商祺! 帕维尔
View full article
S32DS_ARM_Win32_v2018.R1_b180326.exe 激活失效 激活码失效:8FE5-AD8E-E76D-42C8 Re: S32DS_ARM_Win32_v2018.R1_b180326.exe 激活失效 你好, 您的S32DS许可证已延期。
View full article
使用 Macronix MX66UM2G45G QSPI 闪存时,S32G399A 八进制 DTR 读取失败 大家好, 我们有一款基于 S32G399A-RDB3 参考设计的定制板。主要 启动闪存的更改在于,我们将 MX25UW51245G (64 MB) 替换为…… Macronix MX66UM2G45G(256 MB,1.8 V 八脚,JEDEC ID C2 80 3C)。一切 适用于 1-1-1 SPI 模式。我们无法获取正确的 8D-8D-8D(八进制 DTR)读取结果。 我们需要数据,并希望得到 NXP 的帮助。我们也找不到这部分内容。 S32 电路板支持包。版本最高可达 bsp48.0,尽管 AMD 的 U-Boot 自那时起就支持它了。 2024.1. 软件 TF-A bsp43.0-2.10.7,U-Boot bsp43.0-2022.04,Linux bsp43.0(6.6.52) BootROM QSPI 参数:mx66_sim133sdr.bin(512 字节,“OPI SDR 133 MHz”), 直接取自 S32 Design Studio 3.6.1,未做任何修改。平台 SDK S32XX 4.0.0 processors/S32G399A/.../quadspi/default_boot_images/。我们没有生成 使用 U-Boot 的 s32cc_qspiparams 工具。 U-Boot 更改:闪存 ID 条目为 0xC2803C,以及八进制 SDR 软启动 重置。BootROM 将闪存设置为 OPI SDR 模式,并且不包含 RESET RDID。 返回 00 00 00。 有效的方法: - 从 QSPI 以 1-1-1 模式、133 MHz(~16 MB/s)启动,在 启动ROM、TF-A、U-启动 中均可实现。 Linux。 - 在我们强制执行 IP 命令路径后,Linux 可以进行读写操作。闪光灯 在 1 位模式下,spi-fsl-qspi.c 中的 AHB 直接映射读取路径导致 同步外部中止或挂起。 我们在 U-Boot 中启用八进制 DTR 的方法 1. 将 spi-tx-总线-width / spi-rx-总线-width 设置为 8。然后闪存会进行协商并 启用 8D-8D-8D:操作码 0xEE,octal_dtr_enable() 返回 0,并进行探测 报告显示 256 MiB。 2. 发现虚拟周期不匹配。SFDP 提供了 14 个虚拟循环,但闪光灯 默认值为 20(CR2 位于 0x300)。我们现在将 CR2[0x300] 编程为 0(20 个周期) 并设置 read_dummy = 20。在此修复之前,读取操作返回的是随机数据。 每次读取同一地址时都会发生变化: *** Warning - bad CRC, using default environment Too large ELF file, size: 3568570404 <- PFE firmware header, read 1 Too large ELF file, size: 1226703397 <- same header, read 2 Bad Linux ARM64 Image magic! 3. 在 DTR 模式下读取 ID:3c 3c 3c 3c c2 c2。两个正确值都来自 由此可见,我们认为闪光灯确实是八进制 DTR。 问题 内核偏移处的预期首字节:1f 20 03 d5 19 80 31 14。这 控制器寄存器(单独读取)包括: MCR 030f00cc SMPR 33000000 DLLCRA c280000d DLCR 40ff40ff DLLSR 8000c078 (both DLLs locked) FR 09000001 (no DLPFF flag) - MCR DQS 源 = 外部(DDR 驱动程序默认值):我们只能获得 2 个 DTR 时钟 数据,然后是零:1f 20 1f d5 00 00 00 00。结果是确定性的。 控制器报告转账成功。 - MCR DQS 源 = 内部 (MCR[25:24] = 1): 所有数据都已到达,但有一个 DDR 时钟周期比其他时钟周期慢一个时钟周期: expected: 1f 20 | 03 d5 | 19 80 | 31 14 read: 1f 20 | 1f d5 | 03 80 | 19 14 | 31 .. 每对数据中的第二个字节都是正确的。每对数据的第一个字节是 正确的序列,延迟一个时钟周期。 DQS 源扫描(MCR[25:24],BSWAP 开/关),读取前 12 个字节: bswap src MCR data result on 2 020f00cc 19 80 19 19 14 14 31 14 00 00 00 00 bad on 3 030f00cc 1f 20 1f d5 00 00 00 00 00 00 00 00 bad off 0 000f00cc 31 0c 00 1d 55 02 19 18 31 20 00 00 bad off 1 010f00cc 1f 20 1f d5 03 80 19 14 31 00 00 00 bad off 2 020f00cc 80 19 19 19 14 14 14 31 00 00 00 00 bad off 3 030f00cc 20 1f d5 1f 00 00 00 00 00 00 00 00 bad 我们通过完整的禁用 -> 配置 -> 启用 -> DLL 锁定循环彻底清除了所有问题。 每次都这样(但都没能解决问题): - SMPR DLLFSMPFA/FB_NTH 0-7,DLP 开启和关闭 - MCR END_CFG 0-3,SFACR BSWAP 开启和关闭:这只会重新排序相同的 错误字节 - MCR DQS 源 0-3 - SMPR DDRSMP 0-7,无论 FSPHS 开启还是关闭:对数据完全没有影响 代码更改(仅限测试版本,基于 bsp43.0)(来源) TF-A fdts/s32cc-nxp-flash-macronix.dtsi(U-Boot 使用的 DTB): mx66um2g45g@0 { compatible = "jedec,spi-nor"; spi-tx-bus-width = <8>; /* was 1 */ spi-rx-bus-width = <8>; /* was 1 */ }; U-Boot drivers/mtd/spi/spi-nor-core.c,spi_nor_macronix_octal_dtr_enable(), 在 CR2[0x0] 切换到 DTR OPI 之前: u8 dc = 0x00; /* CR2[0x300] = 0 -> 20 dummy */ write_enable(nor); op = (struct spi_mem_op) SPI_MEM_OP(SPI_MEM_OP_CMD(SPINOR_OP_WRCR2, 1), SPI_MEM_OP_ADDR(4, 0x300, 1), SPI_MEM_OP_NO_DUMMY, SPI_MEM_OP_DATA_OUT(1, &dc, 1)); spi_mem_exec_op(nor->spi, &op); spi_nor_wait_till_ready(nor); nor->read_dummy = 20; /* SFDP gave 14 */ U-Boot drivers/spi/fsl_qspi.c,enable_octal_ddr(),DQS 源测试 (内部 DQS 而不是 octal_ddr_conf 默认的 DQS_EXTERNAL): mcr |= octal_ddr_conf.mcr; mcr &= ~QUADSPI_MCR_DQS_EXTERNAL; /* clear MCR[25:24] */ mcr |= QUADSPI_MCR_DQS_INT_PAD; /* MCR[25:24] = 1 */ qspi_writel(q, mcr, base + QUADSPI_MCR); 寄存器扫描使用了一条测试用的 U-Boot 命令,该命令重复执行完整的操作。 enable_octal_ddr() 序列(MDIS=1,程序 MCR/SMPR/DLCR/SFACR,MDIS=0, 等待 DLL 锁定)对于每个设置,然后读取 512 字节 3 次。 板面: DQS 采用引脚复用(焊盘 85-93,IMCR 540-548)。 问题 1.在 S32G3 QuadSPI 上,133 MHz 频率下,8D-8D-8D 是否需要外部 DQS?是 “2 个时钟然后是 0”是 DQS 返回缺失或错误的一个已知症状吗? 2. DDR 模式下是否支持内部 DQS(环回)?如果是这样,是哪个注册表 设置可以修复边缘之间的一个时钟刻度偏差吗?DLLCRA 从属延迟设置, 也许? 3. 您是否已验证 QuadSPI 设置(MCR/SMPR/DLLCRA/FLSHCR)? 适用于 MX66UM2G45G 或其他 1.8V Macronix 八进制微控制器的 BootROM 参数集 S32G3 的部件是什么?S32DS 文件夹中还包含 mx66_sim133ddr.bin。有那个吗? 八进制 DTR 启动映像已在 S32G3 上验证过,是在哪款板上验证过的? 4. Linux spi-fsl-qspi 驱动程序中的 AHB 读取路径是否仅针对以下情况进行验证 八进制DTR?当闪存以 1-1-1 模式运行时,是否预期会出现故障? 5. NXP 是否计划将 MX66UM2G45G(JEDEC ID C2 80 3C)添加到 S32 电路板支持包。中? 我们检查了 U-Boot、Linux 和 TF-A 的版本,最高到 bsp48.0,没有发现任何问题。 它的条目。AMD 的 U-Boot 分支(u-boot-xlnx)已支持此部分。 自 2024.1 版本发布以来,八进制 DTR 的读取和编程以及主线 U-Boot 均已支持。 支持其 1 Gbit 同系列产品 MX66UM1G45G (C2 80 3B)。如果支持是 计划中,目标 电路板支持包。版本是什么?它会包含已验证的内容吗? QuadSPI 和 BootROM 的八进制 DTR 参数是什么? 我们可以共享完整的日志和寄存器扫描表。谢谢。 Re: S32G399A octal DTR reads fail with Macronix MX66UM2G45G QSPI flash 嗨,阿尔多, 谢谢你的建议。以下是我们发现的情况。 1. 二进制文件 我们使用 mx66_sim133sdr.bin。它仅供 BootROM 使用,以 133 MHz 的八进制 SDR 格式加载 BL2,并且有效。八进制 DTR 在 U-Boot 中稍后启用,闪存和控制器在读取失败时都处于 8D-8D-8D 模式。我们还没有尝试过 mx66_sim133ddr.bin。其控制器设置(MCR 0x030F00CC、DLLCR 0x8280000C、SMPR 0x44000000、外部 DQS)与我们在下面的 U-Boot 中测试的设置相同,因此我们预计会出现相同的故障。 2. 控制器设置 我们使用了 S32G3 数据表第 54 表“DDR-133MHz”列:MCR 0x030F00CC、SMPR 0x44000000、DLLCRA 0x8280000D、FLSHCR 0x00010303、SFACR BSWAP。DLL 锁(DLLSR 0x8000C014)。 3. 外部DQS的故障模式 命令、地址和虚拟周期均正确,并且第一个 16 位字已正确读取。之后,仅在某些 DQS 边上捕获数据。有些词语重复出现,有些词语则被跳过。 示例(16 字节): 预期:54 71 00 90 94 a2 2e 91 f5 5b 02 a9 13 41 38 d5 读取:54 71 54 54 00 90 00 00 94 a2 38 d5 38 38 95 06 4. 使用外部 DQS 进行设置扫描 任何设置均无效:NTH 0-7,DLL 自动/手动/旁路,从属延迟偏移 0-7 和粗略 0-15,TDH 0-2,DDRSMP 0-7。QSPI 焊盘配置正确(所有 QSPI 焊盘,包括 DQS PF_13,MSCR = 0x00282001)。 5. 频率扫描 我们测试了 133、100、80 和 66.7 MHz(这是我们能生成的最接近 104/84/66 MHz 的速率)。外部DQS在每个频率上都以相同的模式失效。 6. 内部 DQS 使用内部 DQS(MCR 0x010F00CC)和手动模式下的 DLL,八进制 DTR 读取是正确的(已通过 16 MB CRC 检查验证)。随着时钟频率下降,工作从机延迟偏移量增大:133 MHz:7,100 MHz:4-7,80 MHz:2-7,66.7 MHz:1-7。 八路 SDR (8S-8S-8S) 在 133 MHz 频率下也能可靠工作。 由于外部 DQS 路径在每个频率和设置下都失效,我们怀疑是板上的 DQS 信号出了问题。请注意,DQS 与同一总线上的第二个闪存设备共享,但该设备未启用。我们将使用示波器捕获 SCLK、DQS 和 SIO 信号,并分享图像。 对于外部DQS,控制器方面还有其他需要检查的地方吗? -迪拉杰 Re: S32G399A octal DTR reads fail with Macronix MX66UM2G45G QSPI flash 嗨,阿尔多, 谢谢你的回复。 澄清一下,我们使用的是mx66_sim133sdr.bin 。它仅供 BootROM 使用,因此不会影响八进制 DTR 问题。 八进制 DTR 稍后在 U-启动 阶段启用,此时 SPI-或非 框架将闪存切换到 DTR,并且enable_octal_ddr()配置 QuadSPI 控制器。在读取失败之前,闪存和控制器都处于 8D-8D-8D 状态。我们仍将尝试使用mx66_sim133ddr.bin ,并分享结果。 此外,正如建议的那样,我们还将以较低的时钟频率重复读取,保持其他属性一致,并报告数据或错误模式的任何变化。 我们还将在读取 ID 和读取失败操作期间捕获 SCLK、DQS 和 SIO[0:7] 的示波器图像,并尽快将它们反馈给您。 问候, 迪拉杰 Re: S32G399A octal DTR reads fail with Macronix MX66UM2G45G QSPI flash 嗨,迪拉杰, 感谢您提供如此详细的信息。 由于此问题涉及定制板和 MX66UM2G45G,而 MX66UM2G45G 与 S32G3 RDB3 上使用的闪存不同,因此我们无法在等效设置上重现或验证此行为。不过,我将尽我所能协助并协调后续调查工作。 您提到无法使用 8D-8D-8D 八进制 DTR,但软件部分列出了mx66_sim133sdr.bin 。由于这表明这是一个 SDR 镜像,请说明使用的是mx66_sim133sdr.bin还是mx66_sim133ddr.bin ,以及在读取之前是否已将闪存和 QuadSPI 控制器配置为八进制 DTR。 读取 ID 结果3c 3c 3c 3c c2 c2表明通信正在进行,但并不能完全确认 8D-8D-8D 操作正确。如果可以,请提供读取 ID 和读取失败操作期间示波器捕获的SCLK、DQS 和 SIO[0:7]。 作为诊断步骤,请在较低的时钟频率下(例如约 104 MHz、84 MHz 和 66 MHz)重复相同的读取操作,同时保持八进制 DTR 和 DQS 配置一致。控制器时钟、闪存虚拟周期设置、LUT 序列和其他时序参数必须与所选频率保持一致。 数据或错误模式的任何变化都可能表明存在时序或信号完整性问题。 请参考以下内容: S32 刷机工具用户指南,UG10237 ,第 4 节。 面向S32平台的S32 Flash Tool AN13563,S32G QuadSPI 深度解析,第 4 节和第 5 节。 操作指南:使用 FlashSDK 添加对 QuadSPI 闪存设备的支持 提出的问题需要进一步调查,可能还会牵涉到恩智浦的其他团队。如有更多信息,我将及时提供。 此致, 阿尔多 Re: S32G399A octal DTR reads fail with Macronix MX66UM2G45G QSPI flash 你好,迪拉杰, 感谢您提供的补充检测结果。 以下是我们对您第一个问题的初步答复。 根据目前掌握的信息,请考虑以下几点: 1.如您所知,经验证的 133 MHz DDR 的 S32G3 控制器配置记录在 S32G3 数据手册的表 54 中,“DDR-133MHz”列下。此配置使用外部 DQS。“两个时钟信号然后变为零”的行为与 DQS 路径中的问题相符,但如果不查看波形,我们无法确认这是否是确切的症状。由于外部 DQS 从 133 MHz 到 66.7 MHz 都出现相同的故障模式,而内部 DQS 在手动延迟设置下可以正常工作,因此板级 DQS 信号或时序问题仍然是一个合理的可能性。 2. DLLCRA 用于生成量化延迟。但是,我们目前还没有经过验证的 DLLCRA 值可以推荐用于纠正您定制板上的一个时钟周期偏差。内部 DQS 可能有助于诊断,但外部 DQS 仍然是 DDR-133 操作的推荐配置。 3.请使用 S32G3 数据手册中推荐的 DDR-133 设置作为控制器参考。mx66_sim133ddr.bin 镜像应该已经过软件团队的验证,但验证板和详细的测试条件目前尚不可用。您可以使用S32DS中的QuadSPI配置工具打开镜像文件来检查配置信息。 4.需要检查 电路板支持包。 实现情况。此外,AHB 读取序列必须与闪存当前使用的协议相匹配。如果闪存处于 1-1-1 模式,而 AHB 路径配置为八进制 DTR 序列,则可能会发生故障或挂起。对于 1-1-1 操作,AHB LUT 和闪存状态必须配置一致。 5.当前的电路板支持包。设备树配置适用于 RDB3 上使用的 MX25UW51245G。当选择不同的闪存设备时,用户需要根据需要更新设备树和闪存配置。目前,我无法确认计划中的电路板支持包。版本是否会添加 MX66UM2G45G,也无法提供针对特定电路板的已验证八路 DTR 参数。 我已经要求在读取 ID 和读取失败操作期间捕获 SCLK、DQS 和 SIO[0:7] 的示波器波形。请在获得捕获后分享出来。它们对于确定外部 DQS 信号是否到达并被正确采样至关重要。如果捕获的数据表明需要进行其他测量,我会通知您。 相关参考资料为 S32G3 数据手册和 S32DS 中的 QuadSPI 配置工具。AN13563 可能有助于解释重配置映像结构和生成流程,但其示例不应被视为对 S32G399A 和 MX66UM2G45G 组合的直接验证。 此致, 阿尔多。
View full article