Multi Source Translation Content

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Multi Source Translation Content

ディスカッション

ソート順:
I²C接続状態に応じたPCA9539リセットの問題 こんにちは、 PCA9539 I/O エクスパンダーを使用していますが、I2C 接続状態に依存すると思われる予期しないリセット問題が発生しました。 問題は次のとおりです。 I²C 通信を介して PCA9539 のすべての出力ポートを HIGH に設定します。 出力ピンは予想どおり HIGH のままです。 ただし、SDA/SCL プローブ (I2C バスの監視に使用) を取り外すと、PCA9539 はリセットされ、出力ピンがデフォルト状態に戻ります。 このプロセス中、VCC は安定したまま継続的に供給され、RESET ピンはプルアップ抵抗を介して HIGH に保持されます。 MCUからの意図的なリセット信号や電源サイクルはありません 追加メモ: 同一のテスト条件下では、この問題は PCA9538 では発生しません。 I2C プルアップ抵抗が存在します。 電源は安定しており、コンデンサで分離されています。 イベント中、RESET ピンは異常なアクティビティを示しません。 プローブを切断する際のグリッチまたは不完全な START/STOP 条件により、PCA9539 の内部 I2C ステート マシンが障害状態になり、リセットのような動作が発生する可能性があると思われます。ただし、明示的なリセットや電源サイクルなしで PCA9539 が出力レジスタをクリアできるかどうかを確認するドキュメントは見つかりませんでした。 私の知る限り、I2C I/O エクスパンダーのCASE、電源が供給されている限り、I2C プローブがコネクテッドされているかどうかに関係なく、構成が保持されるはずです。この理解が正しいかどうか確認していただけますか? 質問: PCA9539 が RESET ピンのアサーションや電源サイクルを行わずに出力レジスタまたは I2C ロジックをリセットできる条件はありますか? プローブの取り外し中に SDA/SCL にグリッチが発生すると、デバイスが障害状態になり、構成された出力が失われる可能性がありますか? 機能が似ているにもかかわらず、なぜこの動作は PCA9539 では発生し、PCA9538 では発生しないのでしょうか? I²C バス接続に関係なく、電源が供給されている限り、I2C I/O エクスパンダーはその構成を維持するというのは正しいですか? この動作に関する洞察や公式ドキュメントがあれば、大変助かります。 よろしくお願いします。
記事全体を表示
如何确保不修改 Cesc 密钥 你好 Csec 机制本身能否确保存储的秘钥不被修改?是否有必要在每次接通电源时检测密匙是否被修改? Re: How to make sure the Cesc key is not modified EEE 是 Emulated EEPROM 的缩写。我们提供此应用笔记: AN11983:使用 S32K1xx EEPROM 功能 https://www.nxp.com/docs/en/application-note/AN11983.pdf 要启用 CSEc,必须运行程序分区命令。该命令将同时启用仿真 EEPROM 和 CSEc。 AN5401:CSec 网络安全模块入门 https://www.nxp.com/webapp/Download?colCode=AN5401&location=null https://www.nxp.com/webapp/Download?colCode=AN5401SW&location=null 接下来的两周,我将离开办公室。如果您还有其他问题,请创建新的主题,我的同事会为您解答。 此致, Lukas Re: How to make sure the Cesc key is not modified 你好,卢卡斯 您提到了 EEE 机制,什么是 EEE 机制? Re: How to make sure the Cesc key is not modified 你好@top 存储在 NVM 中的 CSEc 密钥不应更改。密钥存储在仿真 EEPROM 中。由于 EEE 机制的性质,可确保密钥内容不会更改或丢失。它只受限于闪光灯的寿命和耐用性。 此致, Lukas
記事全体を表示
integrating FEE in Simulink Hello NXP MBDT team, I want to use FEE in Simulink with MBDT 1.5, but there are no FEE-related library blocks available in MBDT 1.5. Therefore, I plan to call the FEE APIs from a MATLAB Function block. After configuring FEE, Mem_43_INFLS, and MemAcc, I tried to build a model with just one Digital Input read block. However, I encountered the following error: "MemIf_Types.h" is missing If I manually create a new folder in my project, place MemIf_Types.h inside it, and then add the folder path in Model Settings → Custom Code → Include Directories, the error for MemIf_Types.h is resolved. But then, new errors appear for other header files which already exist in the RTD or generated folders. Can anyone please help? Thanks. Re: integrating FEE in Simulink Hello NXP MBDT Team, Now i am able to build the model after integrating the FEE, but now the code execution is get stuck in do .... while loop because of the status return from Fee_GetStatus is MEMIF_UNINIT. do { Fee_MainFunction(); MemAcc_MainFunction(); status = Fee_GetStatus(); } while (status != MEMIF_IDLE); here is my config .mex file with model. can you please help me? Re: integrating FEE in Simulink Hello @dragostoma, Thank you for your replay. But i am not able to build the model attached with MBDT flash / nvm write freezes program S32K3xx. Also this model is only using Mem_43_INFLS API's(it is dealing with flash), Actual Fee algorithm is not used. Re: integrating FEE in Simulink Hi, @KaleRushikesh, Thank you for your interest into Model-Based Design Toolbox for S32K3. Support for the FEE, Mem_43_INFLS, and MemAcc components has been introduced in the S32K3 1.6.0 release. We strongly recommend using this version of the toolbox, as it provides ready-to-use Simulink blocks and simplifies the setup process compared to implementing custom code. However, if migrating to the latest version is not feasible at the moment, we suggest reviewing the following thread (MBDT flash / nvm write freezes program S32K3xx) for guidance on properly configuring the FEE component. Please keep us informed about your progress. Best regards, Dragos
記事全体を表示
SDK does not support ToolChain required by the project. Cannot attach Dear NXP experts, The problem I encountered is that S32K142W_SDK (version 4.0.3) is not supported in the S32DS V3.4 development environment. Please refer to the following diagram for specific questions. Looking forward to your reply, thank you. Re: SDK does not support Tool Chain required by the project. Cannot attach Hi @VaneB  I understand, thank you very much for your guidance. best regard. LF Re: SDK does not support Tool Chain required by the project. Cannot attach Hi @FAR1234  There is no straightforward way to switch SDK versions within an existing project due to some dependencies and configurations generated during project creation. The recommended approach is to create a new project using the correct toolchain and desired SDK version, then copy your source code and any customizations into the new project. Re: SDK does not support Tool Chain required by the project. Cannot attach Hi,@VaneB I am glad to receive your reply. Following your suggestion, I changed the compiler to NXP GCC 6.3 for Arm 32-bit Bare-Metal tool chain. However, after restarting the software, the problem still persists. It seems that this change did not have a substantial effect. Press Reload key: after several minutes: the result: We look forward to your reply. LF Re: SDK does not support ToolChain required by the project. Cannot attach Hi @FAR1234  The S32SDK for S32K1xx RTM 4.0.3 was developed for S32 Design Studio v3.4 and is only available through the S32DS Extensions and Updates, as it comes bundled with the IDE. Based on the screenshots you shared, the icon displayed indicates a toolchain incompatibility between the project and the SDK. To resolve this, please make sure to select the NXP GCC 6.3 for Arm 32-bit Bare-Metal toolchain when creating your project.  BR, VaneB
記事全体を表示
将 MBDT 生成的代码从 Matlab 导出到 S32DS 我已使用 MBDT 和 Matlab v2021b 生成了代码。但是,在使用嵌入式编码器生成代码并尝试将 projectinfo.xml 文件导入 s32DS 后,发现该文件中的项目信息并不完整。但却出现以下错误 我使用的是 S32DS V3.5。 我应该尝试更换 S32DS 版本吗? 谁来帮帮我? 此致 罗希特 Re: Export MBDT generated code from Matlab to S32DS 你好,@rohit1749、 在 Simulink 模型的版本过程和随后的代码生成之后,下一步是将 modelName_Config 文件夹导入 S32 设计工作室 (S32DS)。 您应该选择文件 -> Import 常规 -> 工作区中的现有项目 -> 浏览 -> 选择 modelName_Config 文件夹 然后,你应该能够在 S32DS 中版本和调试应用程序。 与我们联系您的进度。 顺祝商祺! 德拉古
記事全体を表示
MBDTで生成されたコードをMatlabからS32DSにエクスポートする Matlab v2021b で MBDT を使用してコードを生成しました。ただし、組み込みコーダを使用してコードを生成した後、projectinfo.xml ファイルを s32DS にインポートしようとしました。しかし、エラーを下回っています。 S32DS V3.5を使用しています。S32DSのバージョンを変更してみる必要がありますか? 誰か、これを手伝ってください。 よろしくお願いします。 ロヒット Re: Export MBDT generated code from Matlab to S32DS こんにちは、 @rohit1749さん Simulink モデルのビルド プロセスとそれに続くコード生成に続いて、次の手順では modelName_Config フォルダーを S32 Design Studio (S32DS) にインポートします。 ファイル -> インポートを押してください 一般 -> 既存のプロジェクトをワークスペースへ -> 参照 -> modelName_Config フォルダを選択 その後、S32DS でアプリケーションをビルドおよびデバッグできるようになります。 進捗状況をお知らせください。 よろしくお願いいたします。 ドラゴス
記事全体を表示
i.MX RT1170 のセキュリティ リファレンス マニュアル こんにちは。i.MX RT1170 のセキュリティ リファレンス マニュアルへのアクセスをリクエストします。現在ダウンロードできません。 Re: Security Reference Manual for the i.MX RT1170 こんにちは@thanhkakaさん、 このドキュメントは、NXP セキュア ファイル チャネル経由でリクエストできます。詳細については、 https://www.nxp.com.cn/docs/en/user-guide/nxp-secure-access-rights-registration.pdfを参照してください。詳細については、 https://www.nxp.com/support/support/secure-access-rights: SEC-ACCESS を参照してください。 リクエストに関して問題があるCASEは、 [email protected]までメールでお問い合わせください。 お役に立てれば幸いです。 すてきな一日を、 カン --------------------------------------------------------------------------------- 注記: - この投稿があなたの質問への回答である場合は、「正解としてマーク」ボタンをクリックしてください。ありがとう! - Threadは最後の投稿から7週間フォローされます。それ以降の返信は無視されます。 後ほど関連する質問がある場合は、新しいThreadを開いて、閉じたThreadを参照してください。 ---------------------------------------------------------------------------------
記事全体を表示
external oscillator in NTM88 Hi Team, Do we compulsory need to connect external oscillator for NTM88 or internal oscillator is enough to use for sensor measurements.  Board Design Development Board Re: external oscillator in NTM88 𝖧𝗎𝖻𝗎𝗇𝗀𝗂 𝖫𝖺𝗒𝖺𝗇𝖺𝗇 𝖢𝖺𝗅𝗅 𝖢𝖾𝗇𝗍𝖾𝗋 𝖠𝗀𝗈𝖽𝖺 𝖽𝗂 𝗇𝗈𝗆𝗈𝗋: 0811477566. 𝖯𝗎𝗌𝖺𝗍 𝖡𝖺𝗇𝗍𝗎𝖺𝗇 𝖯𝖾𝗅𝖺𝗇𝗀𝗀𝖺𝗇 𝖠𝗀𝗈𝖽𝖺 𝖱𝖾𝗌𝗆𝗂 𝖧𝗎𝖻𝗎𝗇𝗀𝗂 𝖶𝗁𝖺𝗍𝗌𝖠𝗉𝗉: +62 811477566. Re: external oscillator in NTM88 External crystal oscillators are not mandatory, but they are recommended for use in scenarios where high-precision RF communication or a more stable clock source is required. You can decide whether to connect an external crystal oscillator based on the specific application requirements.
記事全体を表示
WDOG32 Interrupt Not Triggering Before Reset on i.MX8ULP Hello, I am working on the i.MX8ULP  and trying to use the WDOG32 in interrupt mode before it triggers a reset. Even though I have configured the watchdog with interrupt enabled, it is still behaving as a normal watchdog — it resets the system directly without generating an interrupt. void WDOG0_IRQHandler(void) { PRINTF("Watchdog IRQ triggered! Count = %u\r\n", wdog_irq_count); /* Clear interrupt flag */ WDOG32_ClearStatusFlags(WDOG0, kWDOG32_InterruptFlag); wdog_irq_count++; SDK_ISR_EXIT_BARRIER; } /* Get default configuration */ WDOG32_GetDefaultConfig(&config); /* Enable interrupt mode */ config.enableInterrupt = true; config.timeoutValue = WDOG_TIMEOUT_VALUE; NVIC_EnableIRQ(WDOG0_IRQn); for (temp = 0; temp < DELAY_TIME; temp++) { __NOP(); } /* Initialize WDOG32 with config */ WDOG32_Init(WDOG0, &config); while(1) { } I have attached full wdog32.c file also in that watchdog IRQ i have put watchdog refresh but still it is resetting after timeout occurs. Are there any additional initialization needed for WDOG32 interrupt mode and in this i only required interrupt not reset is it possible? i.MX8ULP Re: WDOG32 on ARBB mode of cortex-M33 after reset bootup issue on i.MX8ULP Hi, @Bio_TICFSL  Have you checked with the EVK to bootup on 0.9V when watchdog is resetting?  Re: WDOG32 on ARBB mode of cortex-M33 after reset bootup issue on i.MX8ULP Hi, @Bio_TICFSL  I have tested with the EVK using the watchdog example code at the default high frequency, and it boots fine. However, when I lower the voltage to 0.9V  (as in my earlier code snippet), after a watchdog timeout occurs the core gets stuck during bootup. If you have tested this on the EVK at 0.9V. Could you please share the exact code/configuration that you used on the EVK for this test? Regards, Re: WDOG32 on ARBB mode of cortex-M33 after reset bootup issue on i.MX8ULP Hi, The code is fine I just looking something that decrease the voltage, because  ~9.0 volts boot ok with the EVK. Regards Re: WDOG32 on ARBB mode of cortex-M33 after reset bootup issue on i.MX8ULP Hii, @Bio_TICFSL  status = UPOWER_ChngRTDDomBias(DRIVE_MODE_UD); assert(status == 0); status = UPOWER_ChngPmicVoltage(PMIC_BUCK2, PMIC_VOLTAGE_0_9V); if (status == 0) { status = UPOWER_GetPmicVoltage(PMIC_BUCK2, &voltage); if (status == 0 && voltage == PMIC_VOLTAGE_0_9V) { // success } else { assert(false); } } else { assert(false); } During debugging I found that: When the PMIC is set to 0.9V in ARBB mode, after a watchdog reset the core gets stuck during boot. If I increase the PMIC voltage to 1.0V or 1.1V, the reset and boot work fine, even at lower frequencies. I need to keep the PMIC voltage at 0.9V to save power, but with this setting the system cannot reliably boot after a watchdog reset. 👉 What might be causing this issue at 0.9V, and are there any recommended changes or workarounds to ensure the core can boot properly after a reset at this voltage? Any help or guidance would be appreciated. Re: WDOG32 on ARBB mode of cortex-M33 after reset bootup issue on i.MX8ULP On the Cortex-M33 of the i.MX8ULP, I have configured the M33 core to run in ARBB mode. When the watchdog timeout occurs, it tries to reset the core. However, during the reboot process the core seems to get stuck, because before the reset the code had switched the M33 into ARBB mode, which runs at a lower frequency. What modifications are required so that if the core is running in ARBB mode and a watchdog reset occurs, it can successfully boot up again? Re: WDOG32 Interrupt Not Triggering Before Reset on i.MX8ULP Hii, @Bio_TICFSL  I am able to use the watchdog in non-interrupt mode, and it is resetting the system as expected. However, I require the watchdog interrupt mode, and I am not sure about the correct configuration steps for enabling and handling the interrupt. Can you please guide me on how to enable WDOG32 in interrupt mode so that my code actually enters the WDOG32 IRQ handler before reset? Re: WDOG32 Interrupt Not Triggering Before Reset on i.MX8ULP Hello, Yes, it should be possible according to Reference Manual, look at chapter 9.1.7 Power mode details (real-time domain): As you can see all the necessary components to WDOG0 are available during ARBB mode, but maybe there is the possibility that uPower is gating clock of this WDOG or maybe of entire PBRIDGE0. Please take a look to the uPower Firmware User's Guide. Regards
記事全体を表示
WDOG32 Interrupt Not Triggering Before Reset on i.MX8ULP Hello, I am working on the i.MX8ULP  and trying to use the WDOG32 in interrupt mode before it triggers a reset. Even though I have configured the watchdog with interrupt enabled, it is still behaving as a normal watchdog — it resets the system directly without generating an interrupt. void WDOG0_IRQHandler(void) { PRINTF("Watchdog IRQ triggered! Count = %u\r\n", wdog_irq_count); /* Clear interrupt flag */ WDOG32_ClearStatusFlags(WDOG0, kWDOG32_InterruptFlag); wdog_irq_count++; SDK_ISR_EXIT_BARRIER; } /* Get default configuration */ WDOG32_GetDefaultConfig(&config); /* Enable interrupt mode */ config.enableInterrupt = true; config.timeoutValue = WDOG_TIMEOUT_VALUE; NVIC_EnableIRQ(WDOG0_IRQn); for (temp = 0; temp < DELAY_TIME; temp++) { __NOP(); } /* Initialize WDOG32 with config */ WDOG32_Init(WDOG0, &config); while(1) { } I have attached full wdog32.c file also in that watchdog IRQ i have put watchdog refresh but still it is resetting after timeout occurs. Are there any additional initialization needed for WDOG32 interrupt mode and in this i only required interrupt not reset is it possible? i.MX8ULP Re: WDOG32 on ARBB mode of cortex-M33 after reset bootup issue on i.MX8ULP Hi, @Bio_TICFSL  Have you checked with the EVK to bootup on 0.9V when watchdog is resetting?  Re: WDOG32 on ARBB mode of cortex-M33 after reset bootup issue on i.MX8ULP Hi, @Bio_TICFSL  I have tested with the EVK using the watchdog example code at the default high frequency, and it boots fine. However, when I lower the voltage to 0.9V  (as in my earlier code snippet), after a watchdog timeout occurs the core gets stuck during bootup. If you have tested this on the EVK at 0.9V. Could you please share the exact code/configuration that you used on the EVK for this test? Regards, Re: WDOG32 on ARBB mode of cortex-M33 after reset bootup issue on i.MX8ULP Hi, The code is fine I just looking something that decrease the voltage, because  ~9.0 volts boot ok with the EVK. Regards Re: WDOG32 on ARBB mode of cortex-M33 after reset bootup issue on i.MX8ULP Hii, @Bio_TICFSL  status = UPOWER_ChngRTDDomBias(DRIVE_MODE_UD); assert(status == 0); status = UPOWER_ChngPmicVoltage(PMIC_BUCK2, PMIC_VOLTAGE_0_9V); if (status == 0) { status = UPOWER_GetPmicVoltage(PMIC_BUCK2, &voltage); if (status == 0 && voltage == PMIC_VOLTAGE_0_9V) { // success } else { assert(false); } } else { assert(false); } During debugging I found that: When the PMIC is set to 0.9V in ARBB mode, after a watchdog reset the core gets stuck during boot. If I increase the PMIC voltage to 1.0V or 1.1V, the reset and boot work fine, even at lower frequencies. I need to keep the PMIC voltage at 0.9V to save power, but with this setting the system cannot reliably boot after a watchdog reset. 👉 What might be causing this issue at 0.9V, and are there any recommended changes or workarounds to ensure the core can boot properly after a reset at this voltage? Any help or guidance would be appreciated. Re: WDOG32 on ARBB mode of cortex-M33 after reset bootup issue on i.MX8ULP On the Cortex-M33 of the i.MX8ULP, I have configured the M33 core to run in ARBB mode. When the watchdog timeout occurs, it tries to reset the core. However, during the reboot process the core seems to get stuck, because before the reset the code had switched the M33 into ARBB mode, which runs at a lower frequency. What modifications are required so that if the core is running in ARBB mode and a watchdog reset occurs, it can successfully boot up again? Re: WDOG32 Interrupt Not Triggering Before Reset on i.MX8ULP Hii, @Bio_TICFSL  I am able to use the watchdog in non-interrupt mode, and it is resetting the system as expected. However, I require the watchdog interrupt mode, and I am not sure about the correct configuration steps for enabling and handling the interrupt. Can you please guide me on how to enable WDOG32 in interrupt mode so that my code actually enters the WDOG32 IRQ handler before reset? Re: WDOG32 Interrupt Not Triggering Before Reset on i.MX8ULP Hello, Yes, it should be possible according to Reference Manual, look at chapter 9.1.7 Power mode details (real-time domain): As you can see all the necessary components to WDOG0 are available during ARBB mode, but maybe there is the possibility that uPower is gating clock of this WDOG or maybe of entire PBRIDGE0. Please take a look to the uPower Firmware User's Guide. Regards
記事全体を表示
Android14におけるbtnxpuartとlibbtの比較 こんにちは、 2 つの Bluetooth 実装があります。1 つは btnxpuart を使用し、もう 1 つは libbt (ハードウェア/nxp/libbt) を使用しています。 Android14/15では、NXPはlibbt方法を使用してファームウェアなどをロードします。libbt の代わりに btnxpuart ドライバを使用すると、何か副作用はありますか? ありがとう Re: btnxpuart vs libbt in android14 こんにちは、 NXP Semiconductors製品にご興味をお持ちいただきありがとうございます。 ワイヤレスの専門家によると、デフォルトの実装は libbt です。こちらとこちらを参照してください。 btnxpuart の使用は独自で行う必要があり、副作用の記録はありません。 よろしくお願いします。
記事全体を表示
PCA9451A-EVK 降压 1/3 输出电压 我最近收到了 PCA9451A,并开始使用 PCA9451A-EVK 对其进行评估。我注意到图形用户界面应用程序显示(默认情况下)Buck1/3 DVS 预设值为 0.85V。然而,根据我的 87V 测量,PMIC 输出的电压始终为 0.80V。然后,我使用图形用户界面将 Buck1/3 更改为其他预设值(0.80V、0.90V 和 0.95V)。事实上,在任何预设情况下,输出电压都比编程设定的目标电压低 0.5V。我认为这可能是预设的问题,于是尝试使用 DVS0 为 Buck1/3 设置输出电压,但 0.5V 的偏移仍然存在。 我还试着单独运行降压 1/3,在尝试任何 DVS 预设/设置时,降压 1 仍有 0.5V 的偏移。Buck3 本身似乎无法正常工作(电压读数似乎从未稳定过),但我真的不知道是什么原因造成的。 这是 PCA9451A 的已知勘误吗? 用于 i.MX 的 PMIC Re: PCA9451A-EVK Buck1/3 Output Voltage 好的,没问题! Re: PCA9451A-EVK Buck1/3 Output Voltage 我应该澄清一下——偏移量不是 0.5V,而是 0.05V。也就是说,当设置为 0.85V 时,输出电压为 0.8V;当设置为 0.95V 时,输出电压为 0.9V。非常抱歉。 Re: PCA9451A-EVK Buck1/3 Output Voltage 我最初的测试都是在负载情况下进行的。在 VSYS 5 V 和 3.7 V 电压下,50 mA ~ 3 A 电流范围内,Buck1/3 的电压测量值始终为 0.8 V +/- 2 mV。 Re: PCA9451A-EVK Buck1/3 Output Voltage 你好pmwpcs 请添加一些负载来测试这个调节器,并告诉我结果!
記事全体を表示
S32G pfe master project question Hi,nxp I'm testing the pfe_master project, using the MasterProject_RDB2 project from PFE-DRV_S32G_M7_MCAL_1.3.0, and I found that the initialization initialized the clock McuClockSettingConfig_0 first, and then re-initialized the clock after doing some module initialization McuClockSettingConfig_1, may I know the reason for this? Why do I need to initialize the clock twice? Re: S32G pfe master project question Hello, @youke  Thanks for your reply. From my understanding, it is difficult to do it once, since several steps needed for initializing the related clock. Regarding to the method of initializing it, theoretically, it could be done either from the bootloader or the M core application itself, it depends only on your design. If putting all clock init phase to the bootloader, then you may need to implement similar steps from teh PFE example to the bootloader to initialize the pfe, and then remove the corresponding phase from the M core application itself(pfe master exmaple.) to avoid any conflict. BR Chenyin Re: S32G pfe master project question Hi, chenyin Thank you for your reply How do I need to do to initialize the clock only once? Or can you help me to explain how I need to do the whole initialization logic if I use bootloader to boot the M core and use the pfe_master function? Re: S32G pfe master project question Hello, @youke  Thanks for your post. The first init could initialize clock for serdes module, while the second one is used for initializing serdes for the MUX. I hope it will help. BR Chenyin
記事全体を表示
mcuboot/启动/nxp_mcux_sdk/flashapi/flashapi/flash_api.c 中可能存在错误 您好, 我使用 RT1021,正在测试 mcuboot。 我希望图像的最大容量为 512kB,因此在 sblconfig.h 中我的定义是 #define CONFIG_MCUBOOT_MAX_IMG_SECTORS 128 /*4kB sector * 128 = 512kB */ 和 flash_partitioning.h 中我已经下了定义: #define BOOT_FLASH_ACT_APP 0x60100000 #define BOOT_FLASH_CAND_APP 0x60180000 但是,我收到了一个错误: Failed reading sectors; BOOT_MAX_IMG_SECTORS=128 - too small? 我进行了调试,找到了我认为存在错误的地方。 https://github.com/nxp-mcuxpresso/mcuboot/blob/mcux_main/boot/nxp_mcux_sdk/flashapi/flash_api.c#L378 int flash_area_get_sectors(int fa_id, uint32_t *count, struct flash_sector *sectors) { const struct flash_area *fa; uint32_t max_cnt = *count; uint32_t rem_len; int rc = -1; if (flash_area_open(fa_id, &fa)) goto out; if (*count < 1) goto fa_close_out; rem_len = fa->fa_size; *count = 0; while ((rem_len > 0) && (*count < max_cnt)) { if (rem_len < MFLASH_SECTOR_SIZE) { goto fa_close_out; } sectors[*count].fs_off = MFLASH_SECTOR_SIZE * (*count); sectors[*count].fs_size = MFLASH_SECTOR_SIZE; *count = *count + 1; rem_len -= MFLASH_SECTOR_SIZE; } if (*count >= max_cnt) { goto fa_close_out; } rc = 0; fa_close_out: flash_area_close(fa); out: return rc; } 如果插槽大小等于图像大小,while 循环会一直重复,直到两个条件都为假,但如果循环结束时 rem_len 为 0,则不会出错,这意味着我已经使用了扇区数组中的一个条目,但不需要其他条目。 我认为应该修改 if 条件: if (rem_len > 0) { goto fa_close_out; } 您对此有何看法? 顺祝商祺! 最大值 Re: possible bug in mcuboot/boot/nxp_mcux_sdk/flashapi/flash_api.c 嗨,@mastupristi、 感谢您报告这个问题。 我将把这个问题转给 SDK 团队,以便他们进一步调查,并在认为有必要时提供修改。 BR, Edwin.
記事全体を表示
verdin imx95 の LPUART3 サポート こんにちは、皆さん。 私は verdin i.MX95 19x19 EVK に取り組んでおり、デバイス ツリーで LPUART3 を有効にしようとしています。変更後、起動中にカーネルパニックが発生します。 デバイスツリーの変更 diff --git a/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts b/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts index 4aa2d000df8b..55d660ce38aa 100644 --- a/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts @@ -570,6 +570,12 @@ &lpuart1 { status = "okay"; }; +&lpuart3 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_uart3>; + status = "okay"; +}; + &lpuart5 { /* BT */ pinctrl-names = "default"; @@ -980,6 +986,13 @@ IMX95_PAD_UART1_TXD__AONMIX_TOP_LPUART1_TX 0x31e >; }; + pinctrl_uart3: uart3grp { + fsl,pins = < + IMX95_PAD_ENET1_RD0__LPUART3_RX 0x31e + IMX95_PAD_ENET1_TD0__LPUART3_TX 0x31e + >; + }; + pinctrl_uart5: uart5grp { fsl,pins = < IMX95_PAD_DAP_TDO_TRACESWO__LPUART5_TX 0x31e ブートログ [ 2.234704] /soc/bus@42000000/i2c@426d0000/tcpc@52/connector: Fixed dependency cycle(s) with /soc/phy@4c1f0040 [ 2.244734] i2c i2c-6: LPI2C adapter registered [ 2.250234] adp5585 1-0034: error -EIO: Failed to read device ID [ 2.256064] adp5585 1-0034: probe with driver adp5585 failed with error -5 [ 2.262925] i2c i2c-1: LPI2C adapter registered [ 2.268342] imx8mq-usb-phy 4c1f0040.phy: supply vbus not found, using dummy regulator [ 2.281775] /soc/bridge@4b0d0000/channel@0: Fixed dependency cycle(s) with /soc/syscon@4b010000/bridge@8 [ 2.291122] /soc/syscon@4b0c0000/ldb@4/channel@0: Fixed dependency cycle(s) with /soc/syscon@4b010000/bridge@8 [ 2.301094] /soc/syscon@4b010000/bridge@8: Fixed dependency cycle(s) with /soc/syscon@4b0c0000/ldb@4/channel@0 [ 2.310967] /soc/syscon@4b010000/bridge@8: Fixed dependency cycle(s) with /soc/bridge@4b0d0000/channel@0 [ 2.321873] /soc/syscon@4b0c0000/ldb@4/channel@0: Fixed dependency cycle(s) with /lvds0_panel [ 2.330249] /soc/syscon@4b0c0000/ldb@4/channel@0: Fixed dependency cycle(s) with /soc/syscon@4b010000/bridge@8 [ 2.342922] scmi-pinctrl-imx scmi_dev.8: Error set config -13 [ 2.348464] scmi-pinctrl-imx scmi_dev.8: pin_config_set op failed for pin 56 [ 2.355438] fsl-lpuart 42570000.serial: Error applying setting, reverse things back [ 2.363245] Internal error: synchronous external abort: 0000000096000010 [#1] PREEMPT SMP [ 2.371199] Modules linked in: [ 2.374234] CPU: 0 UID: 0 PID: 60 Comm: kworker/u24:3 Not tainted 6.12.20-lts-next-gdfaf2136deb2-dirty #1 [ 2.383764] Hardware name: NXP i.MX95 19X19 board (DT) [ 2.388879] Workqueue: events_unbound deferred_probe_work_func [ 2.394685] pstate: 60400009 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 2.401611] pc : lpuart_probe+0x55c/0x630 [ 2.405598] lr : lpuart_probe+0x33c/0x630 [ 2.409591] sp : ffff800083083b20 [ 2.412884] x29: ffff800083083b30 x28: 0000000000000000 x27: 0000000000000000 [ 2.419991] x26: ffff000080b4c240 x25: 0000000000000000 x24: ffff800080876bf0 [ 2.427091] x23: ffff8000822d9bc8 x22: ffff000080208410 x21: ffff000080208400 [ 2.434198] x20: 0000000000000000 x19: ffff00008177a880 x18: ffffffffffffffff [ 2.441304] x17: ffff0000815ee000 x16: ffff0000815ede00 x15: 0000000000000002 [ 2.448411] x14: ffffffffffffffff x13: ffff0000807bc580 x12: 0000000000000001 [ 2.455518] x11: 000000008bb15db4 x10: 0000000000000a90 x9 : ffff800083083830 [ 2.462624] x8 : ffff0003fdf58c80 x7 : 1000000000000104 x6 : 0000000000000002 [ 2.469731] x5 : 1000000000000004 x4 : ffff0000807bc500 x3 : 0000000000000000 [ 2.476838] x2 : ffff800082400278 x1 : 0000000000000003 x0 : ffff8000825c3018 [ 2.483951] Call trace: [ 2.486378] lpuart_probe+0x55c/0x630 [ 2.490018] platform_probe+0x68/0xc8 [ 2.493651] really_probe+0xbc/0x29c [ 2.497205] __driver_probe_device+0x78/0x12c [ 2.501538] driver_probe_device+0x3c/0x15c [ 2.505698] __device_attach_driver+0xb8/0x134 [ 2.510118] bus_for_each_drv+0x88/0xe8 [ 2.513931] __device_attach+0xa0/0x190 [ 2.517744] device_initial_probe+0x14/0x20 [ 2.521904] bus_probe_device+0xac/0xb0 [ 2.525718] deferred_probe_work_func+0x80/0xb8 [ 2.530224] process_one_work+0x148/0x28c [ 2.534211] worker_thread+0x2c8/0x3d0 [ 2.537938] kthread+0x110/0x114 [ 2.541144] ret_from_fork+0x10/0x20 [ 2.544707] Code: f9411260 97fbe006 17ffff17 91002000 (b940001a) [ 2.550772] ---[ end trace 0000000000000000 ]--- 質問 ENET1_RD0 と ENET1_TD0 は、このボード上の LPUART3 RX/TX の正しいパッドですか? Linux でこれらのピンを使用するには、SCMI/ファームウェアの所有権を調整する必要がありますか? i.MX95 EVK の LPUART3 用の正常な DTS スニペットを持っている人はいますか? よろしくお願いします! Yocto Project Re: LPUART3 support in verdin imx95 @Zhiming_Liu さん、ありがとうございます。あなたが提供した解決策は機能しました。デバイス ツリーの変更に合わせて、lpuart3 に関連する imx-system-manager コードに次の変更を加え、新しい Yocto イメージを構築しました。ttyLP2 は /dev/ にあり、私のアプリケーションでも使用しており、正常に動作していました。 imx-system-manager マネージャ コードの変更: --- a/configs/mx95evk.cfg +++ b/configs/mx95evk.cfg @@ -370,7 +370,6 @@ LPIT1 OWNER LPTMR1 OWNER LPTMR2 OWNER LPTPM1 OWNER -LPUART3 OWNER, test MSGINTR1 OWNER MSGINTR2 OWNER MU5_A OWNER @@ -477,6 +476,7 @@ PERLPI_GPIO3 ALL PERLPI_GPIO4 ALL PERLPI_GPIO5 ALL PERLPI_LPUART1 ALL +PERLPI_LPUART3 ALL PERLPI_LPUART4 ALL PERLPI_LPUART5 ALL PERLPI_LPUART6 ALL @@ -760,6 +760,7 @@ LPTPM4 OWNER LPTPM5 OWNER LPTPM6 OWNER LPUART1 OWNER +LPUART3 OWNER LPUART4 OWNER LPUART5 OWNER LPUART6 OWNER 私の/devディレクトリ root@imx95:~# ls -al /dev/ttyLP2 crw-rw---- 1 root dialout 241, 2 Sep 7 14:30 /dev/ttyLP2 root@imx95:~# dmesg | grep ttyLP2 [ 2.426195] 42570000.serial: ttyLP2 at MMIO 0x42570010 (irq = 141, base_baud = 1500000) is a FSL_LPUART Re: LPUART3 support in verdin imx95 こんにちは、 LPUART3 は SCMI の M7 に割り当てられます。https://github.com/nxp-imx/imx-sm/blob/master/configs/mx95evk.cfg#L373を変更し、M7 リソースからこの行を削除する必要があります。 LPUART3 OWNER, test そして、A55 リソースに以下の行を追加してみてください。 PERLPI_LPUART3 ALL よろしくお願いします、 志明
記事全体を表示
verdin imx95 の LPUART3 サポート こんにちは、皆さん。 私は verdin i.MX95 19x19 EVK に取り組んでおり、デバイス ツリーで LPUART3 を有効にしようとしています。変更後、起動中にカーネルパニックが発生します。 デバイスツリーの変更 diff --git a/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts b/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts index 4aa2d000df8b..55d660ce38aa 100644 --- a/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts @@ -570,6 +570,12 @@ &lpuart1 { status = "okay"; }; +&lpuart3 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_uart3>; + status = "okay"; +}; + &lpuart5 { /* BT */ pinctrl-names = "default"; @@ -980,6 +986,13 @@ IMX95_PAD_UART1_TXD__AONMIX_TOP_LPUART1_TX 0x31e >; }; + pinctrl_uart3: uart3grp { + fsl,pins = < + IMX95_PAD_ENET1_RD0__LPUART3_RX 0x31e + IMX95_PAD_ENET1_TD0__LPUART3_TX 0x31e + >; + }; + pinctrl_uart5: uart5grp { fsl,pins = < IMX95_PAD_DAP_TDO_TRACESWO__LPUART5_TX 0x31e ブートログ [ 2.234704] /soc/bus@42000000/i2c@426d0000/tcpc@52/connector: Fixed dependency cycle(s) with /soc/phy@4c1f0040 [ 2.244734] i2c i2c-6: LPI2C adapter registered [ 2.250234] adp5585 1-0034: error -EIO: Failed to read device ID [ 2.256064] adp5585 1-0034: probe with driver adp5585 failed with error -5 [ 2.262925] i2c i2c-1: LPI2C adapter registered [ 2.268342] imx8mq-usb-phy 4c1f0040.phy: supply vbus not found, using dummy regulator [ 2.281775] /soc/bridge@4b0d0000/channel@0: Fixed dependency cycle(s) with /soc/syscon@4b010000/bridge@8 [ 2.291122] /soc/syscon@4b0c0000/ldb@4/channel@0: Fixed dependency cycle(s) with /soc/syscon@4b010000/bridge@8 [ 2.301094] /soc/syscon@4b010000/bridge@8: Fixed dependency cycle(s) with /soc/syscon@4b0c0000/ldb@4/channel@0 [ 2.310967] /soc/syscon@4b010000/bridge@8: Fixed dependency cycle(s) with /soc/bridge@4b0d0000/channel@0 [ 2.321873] /soc/syscon@4b0c0000/ldb@4/channel@0: Fixed dependency cycle(s) with /lvds0_panel [ 2.330249] /soc/syscon@4b0c0000/ldb@4/channel@0: Fixed dependency cycle(s) with /soc/syscon@4b010000/bridge@8 [ 2.342922] scmi-pinctrl-imx scmi_dev.8: Error set config -13 [ 2.348464] scmi-pinctrl-imx scmi_dev.8: pin_config_set op failed for pin 56 [ 2.355438] fsl-lpuart 42570000.serial: Error applying setting, reverse things back [ 2.363245] Internal error: synchronous external abort: 0000000096000010 [#1] PREEMPT SMP [ 2.371199] Modules linked in: [ 2.374234] CPU: 0 UID: 0 PID: 60 Comm: kworker/u24:3 Not tainted 6.12.20-lts-next-gdfaf2136deb2-dirty #1 [ 2.383764] Hardware name: NXP i.MX95 19X19 board (DT) [ 2.388879] Workqueue: events_unbound deferred_probe_work_func [ 2.394685] pstate: 60400009 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 2.401611] pc : lpuart_probe+0x55c/0x630 [ 2.405598] lr : lpuart_probe+0x33c/0x630 [ 2.409591] sp : ffff800083083b20 [ 2.412884] x29: ffff800083083b30 x28: 0000000000000000 x27: 0000000000000000 [ 2.419991] x26: ffff000080b4c240 x25: 0000000000000000 x24: ffff800080876bf0 [ 2.427091] x23: ffff8000822d9bc8 x22: ffff000080208410 x21: ffff000080208400 [ 2.434198] x20: 0000000000000000 x19: ffff00008177a880 x18: ffffffffffffffff [ 2.441304] x17: ffff0000815ee000 x16: ffff0000815ede00 x15: 0000000000000002 [ 2.448411] x14: ffffffffffffffff x13: ffff0000807bc580 x12: 0000000000000001 [ 2.455518] x11: 000000008bb15db4 x10: 0000000000000a90 x9 : ffff800083083830 [ 2.462624] x8 : ffff0003fdf58c80 x7 : 1000000000000104 x6 : 0000000000000002 [ 2.469731] x5 : 1000000000000004 x4 : ffff0000807bc500 x3 : 0000000000000000 [ 2.476838] x2 : ffff800082400278 x1 : 0000000000000003 x0 : ffff8000825c3018 [ 2.483951] Call trace: [ 2.486378] lpuart_probe+0x55c/0x630 [ 2.490018] platform_probe+0x68/0xc8 [ 2.493651] really_probe+0xbc/0x29c [ 2.497205] __driver_probe_device+0x78/0x12c [ 2.501538] driver_probe_device+0x3c/0x15c [ 2.505698] __device_attach_driver+0xb8/0x134 [ 2.510118] bus_for_each_drv+0x88/0xe8 [ 2.513931] __device_attach+0xa0/0x190 [ 2.517744] device_initial_probe+0x14/0x20 [ 2.521904] bus_probe_device+0xac/0xb0 [ 2.525718] deferred_probe_work_func+0x80/0xb8 [ 2.530224] process_one_work+0x148/0x28c [ 2.534211] worker_thread+0x2c8/0x3d0 [ 2.537938] kthread+0x110/0x114 [ 2.541144] ret_from_fork+0x10/0x20 [ 2.544707] Code: f9411260 97fbe006 17ffff17 91002000 (b940001a) [ 2.550772] ---[ end trace 0000000000000000 ]--- 質問 ENET1_RD0 と ENET1_TD0 は、このボード上の LPUART3 RX/TX の正しいパッドですか? Linux でこれらのピンを使用するには、SCMI/ファームウェアの所有権を調整する必要がありますか? i.MX95 EVK の LPUART3 用の正常な DTS スニペットを持っている人はいますか? よろしくお願いします! Yocto Project Re: LPUART3 support in verdin imx95 @Zhiming_Liu さん、ありがとうございます。あなたが提供した解決策は機能しました。デバイス ツリーの変更に合わせて、lpuart3 に関連する imx-system-manager コードに次の変更を加え、新しい Yocto イメージを構築しました。ttyLP2 は /dev/ にあり、私のアプリケーションでも使用しており、正常に動作していました。 imx-system-manager マネージャ コードの変更: --- a/configs/mx95evk.cfg +++ b/configs/mx95evk.cfg @@ -370,7 +370,6 @@ LPIT1 OWNER LPTMR1 OWNER LPTMR2 OWNER LPTPM1 OWNER -LPUART3 OWNER, test MSGINTR1 OWNER MSGINTR2 OWNER MU5_A OWNER @@ -477,6 +476,7 @@ PERLPI_GPIO3 ALL PERLPI_GPIO4 ALL PERLPI_GPIO5 ALL PERLPI_LPUART1 ALL +PERLPI_LPUART3 ALL PERLPI_LPUART4 ALL PERLPI_LPUART5 ALL PERLPI_LPUART6 ALL @@ -760,6 +760,7 @@ LPTPM4 OWNER LPTPM5 OWNER LPTPM6 OWNER LPUART1 OWNER +LPUART3 OWNER LPUART4 OWNER LPUART5 OWNER LPUART6 OWNER 私の/devディレクトリ root@imx95:~# ls -al /dev/ttyLP2 crw-rw---- 1 root dialout 241, 2 Sep 7 14:30 /dev/ttyLP2 root@imx95:~# dmesg | grep ttyLP2 [ 2.426195] 42570000.serial: ttyLP2 at MMIO 0x42570010 (irq = 141, base_baud = 1500000) is a FSL_LPUART Re: LPUART3 support in verdin imx95 こんにちは、 LPUART3 は SCMI の M7 に割り当てられます。https://github.com/nxp-imx/imx-sm/blob/master/configs/mx95evk.cfg#L373を変更し、M7 リソースからこの行を削除する必要があります。 LPUART3 OWNER, test そして、A55 リソースに以下の行を追加してみてください。 PERLPI_LPUART3 ALL よろしくお願いします、 志明
記事全体を表示
S32K116EVB2Q048 回路図 こんにちは、NXPチーム S32K116EVB2-Q048の回路図が見つかりません ラベリング: SCH-47848 REV A2 S32K116EVB-SCH-30003-R0の回路図しかCAN見つかりません 誰かこれについて助けてくれませんか? ありがとう ジョナス Re: S32K116EVB2Q048 schematics こんにちは@nojas_eft プライベートメッセージを送信しました。
記事全体を表示
NXP iMX8MQ EVKボードへのFOTA実装 親愛なるチームの皆様、 NXP iMX8MQ EVK ボードで FOTA 実装を行う予定です。 NXPが提供するアプリケーションノート「AN13872」を確認したところ、以下の詳細が見つかりました。 また、NXPコミュニティページおよびアプリケーションノート13872のセクション10.1を参照してください。 「 SWUpdate は現在、i.MX 6ULL、 i.MX 8M Mini、i.MX 8QuadXPlus 、および i.MX 93 プラットフォームでサポートされています。 他のプラットフォームの場合、ユーザーは自分でサポートを追加できます。 SWUpdate 内の構成変更に加えて、新しい i.MX プラットフォームの SWUpdate をサポートするには、 meta-swupdate-imxに2 つの変更を加える必要があります。 新しいプラットフォームをサポートするために、ほとんどの変更はmeta-swupdate-imx の recipes-bsp/u-boot/u-boot-imx_.bbappendで行うことができます。 ” NXP iMX8MQ EVK ボードの FOTA アップデートを完了するための実用的な例/ユーザー ガイドまたは Github リンクはありますか? すでに Yocto kirkstone_5.15.32_2.0.0 に SWupdate パッケージを追加し、イメージを生成してテストしたSO、SWupdate サービスが稼働していることが確認されました。FOTA を HawBit サーバーまたは他のサーバーで動作させるには、さらに手順が必要ですか? ありがとう、 スミット Re: FOTA Implementation on NXP iMX8MQ EVK Board こんにちは@sumiteca09さん! NXP サポートにお問い合わせいただきありがとうございます。 残念ながら、i.MX8MQ プロセッサ用の特定の構成は提供されておらず、アプリケーション ノートに記載されているデバイスのみが対象となります。 ただし、i.MX8MQ と同様のアーキテクチャを共有しているため、i.MX8MM をリファレンスとして使用することをお勧めします。これは開発のCAN出発点として役立ちます。 よろしくお願いします、 チャビラ
記事全体を表示
HVP-MC3PHに推奨されるACIMモーターキット こんにちは。HVP-MC3PH キットと一緒に使用するのに推奨される ACIM モーター キットはどれですか?このキットと互換性のあるモーターキットはどれですか? Re: Recommended ACIM Motor Kits for HVP-MC3PH こんにちは、 一般的に、ACIM モーターは推奨されません。 HVP-MC3PH 高電圧開発プラットフォームは、NXP の最新のモーター制御リファレンス デザインではありません。モータ制御に関する最新の NXP アプリケーション デモについては、こちらで確認することをお勧めします。 また、S32K3 MCU のモーター制御ソリューションについては、こちらを参照してください。 役に立つことを祈ります。 マイク
記事全体を表示
SGTL5000 can you advise how many bits the ADC and DAC are on this device. SGTL5000 Re: SGTL5000 Thank you so much! Re: SGTL5000 Hello PaulJoseph Good day! ADC and DAC resolution for the SGTL5000 Codec is 24-bits. I hope this information has helped you, please let me know if you need help with anything else. Have a great day and best of luck.
記事全体を表示