Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
BCC MC33771C measurement timing Hello Team,   We are working with the MC33771C Battery Cell Controller (BCC) and have observed a difference in voltage/temperature measurement readout timing when using different read intervals.   Test observations:   Configuration: Same BCC configuration with 4 slaves. Read interval: 10 ms: Reading temperature data from all 4 slaves takes approximately 40 ms. Read interval: 100 ms: Reading the same temperature data from all 4 slaves takes approximately 7.7 ms. We observe that the total measurement readout time is significantly higher when the read interval is set to 10 ms, even though the configuration remains unchanged.   Could you please help us understand the following?   Why does the measurement readout time differ significantly between the 10 ms and 100 ms read intervals? Is there any dependency between the read interval and the ADC conversion, measurement update, or BCC communication timing? Is there any recommended configuration or procedure to achieve consistent and optimized voltage/temperature readout timing when using 4 BCC slaves? Are there any specific timing constraints or synchronization requirements that we should consider when reading measurement data from multiple MC33771C devices? Please let us know if any additional configuration details or measurement logs are required for further analysis. Re: BCC MC33771C measurement timing Hello Nirmal, Thank you for confirming the ADC configuration. This is a critical clarification: with ADC_CFG[AVG] = 0 and 16-bit resolution, the hardware tEOC is only ~520 µs. The 40 ms readout time you observe at 10 ms intervals cannot be caused by the ADC conversion itself, it is almost certainly caused by the firmware measurement sequence. With tEOC ≈ 520 µs, data is ready well before either interval expires. The difference in observed readout time therefore comes from how and when the firmware triggers SOC and reads results relative to the interval. The most common causes of this specific symptom are: 1. SYS_CFG1[CYCLIC_TIMER] is active at 10 ms If the cyclic timer is set to 10 ms, the device autonomously triggers a cyclic conversion every 10 ms. However, cyclic conversions do not update the MEAS_xxxx measurement registers — they only update OV/UV/OT/UT fault flags. If the MCU firmware waits for a cyclic trigger before issuing an on-demand SOC, the effective measurement cycle gets coupled to the cyclic period, adding up to 10 ms of latency before each read. At 100 ms cyclic period, this latency disappears because the MCU issues on-demand SOC independently. Please verify the value of SYS_CFG1[CYCLIC_TIMER] and, if active, consider disabling it or decoupling your MCU read sequence from it entirely. 2. Fixed interval delay inserted before reading (not waiting for EOC) If the firmware issues SOC, then waits the full read interval (10 ms or 100 ms) before reading — rather than polling the EOC flag — the behavior would be: 100 ms: SOC → wait 100 ms → read (7.7 ms comm) → measured ≈ 7.7 ms ✓ 10 ms: SOC → wait 10 ms → read (7.7 ms comm) → but then if the cycle repeats and timings compound, the effective measured duration grows. 3. SOC issued per slave rather than as a broadcast If the firmware triggers SOC individually to each slave and enforces the read interval between each, the total for 4 slaves compounds to a multiple of the interval. The correct sequence for 4 slaves is: - Issue a single broadcast SOC to all 4 slaves simultaneously. - Poll the EOC flag (or wait a minimum of 520 µs at 16-bit, AVG=0) — do not use a fixed delay equal to the read interval. - Read all 4 slaves sequentially after EOC is confirmed. BRs, Tomas Repeat at your desired interval. Re: BCC MC33771C measurement timing Hello @TomasVaverka  Thank you for the detailed explanation. In our configuration, we are using the following settings: ADC_CFG[AVG] = 0 ADC Resolution = 16-bit Number of BCC slaves = 4 We are using the same configuration for both test cases (10 ms and 100 ms read intervals). However, we observe the following timing difference: 10 ms read interval: Approximately 40 ms to read temperature data from all 4 slaves. 100 ms read interval: Approximately 7.7 ms to read temperature data from all 4 slaves. Since the ADC averaging and resolution settings are identical in both cases, could you please clarify why the conversion and measurement readout timing differs significantly? Is there any dependency on the SOC trigger interval, ADC conversion status, or EOC flag handling that could explain this behavior? Could you also suggest how we can achieve consistent measurement readout timing with a 10 ms measurement interval? Re: BCC MC33771C measurement timing Hello Nirmal, The timing difference is most likely caused by your ADC_CFG[AVG] averaging setting. When averaging is enabled, tEOC (time from SOC to data ready) scales proportionally with the sample count. For example, at 16-bit resolution with AVG=64, tEOC ≈ 32.5 ms — far exceeding your 10 ms read interval. This explains the observed behavior: At 100 ms interval: Conversion is already complete when the MCU reads → only communication time is measured (~7.7 ms). At 10 ms interval: The MCU must wait for conversion to finish → measured time = remaining tEOC wait + communication ≈ 40 ms. A few additional points relevant to your questions: 1. Cyclic mode (SYS_CFG1[CYCLIC_TIMER]) does NOT update MEAS_xxxx registers — it only updates fault flags (OV/UV/OT/UT). For actual voltage/temperature readings, on-demand SOC is required. Averaging is also not available in cyclic mode. 2. Always wait for the EOC flag before reading results. Do not use a fixed delay equal to the read interval unless it is guaranteed to exceed tEOC. 3. For 4 slaves: broadcast a single SOC to all slaves simultaneously (all convert in parallel, completing at tEOC), then read sequentially. At 16-bit, AVG=0, the minimum total time is approximately 0.52 ms (tEOC) + 4 × 0.7 ms (TPL comm) ≈ 3.3 ms. 4. For a full timing optimization framework, refer to AN12637: MC33771C and MC33772C Based System Timing Optimization (available on nxp.com, login required). BRs, Tomas Re: BCC MC33771C measurement timing Hello @TomasVaverka , I am using broadcast message for SOC, still i am facing timing difference.
View full article
32.768kHz Crystal for RW612 Hello, I'm currently working on a PCB design project that includes an IRIS-W10 module from u-blox with an RW612 inside. This is my first design with an NXP MCU. I'm unsure, how I should design the circuit for the RTC external crystal. From other MCUs like STM32 I know they need an external load capacitor on both of the crystal pins. But for NXP MCUs it seems that some have internal configurable load caps. In the RW612 register list I stumbled upon the RTC CTRL register and in particular the field RTC_OSC_LOADCAP. To me this indicates that this MCU has in fact internal load caps, but I couldn't find any documentation on this field. So my question is: What is the bit-format to set a specific capacitor value in this register? Product: WiFi RW6XX Re: 32.768kHz Crystal for RW612 Here is the related register for 32k XTAL. The register for RTC_OSC_LOADCAP looks as a mystery since may not applicable to this product Re: 32.768kHz Crystal for RW612 Thank you for your reply. It seems that the configuration of the RTC crystal is split up into two section. The one you showed me is from the PMU. What causes me a headache is the RTC section. In the screen shot below you can see there are no external capacitors, but I don't see any internal caps eighter And in this screen shot you can see the particular register I was talking about in my question. You might be right that this MCU has no internal capacitors at all, but if so the RTC_OSC_LOADCAP field should not be visible in the register documentation. On the other hand this crystal circuit from the FRDM-RW612 has no load caps from factory. Re: 32.768kHz Crystal for RW612 Hi @Niwo, hope you are doing well. Could you please confirm if you have already selected a 32kHz crystal? This is important as each crystal requires a certain load capacitance defined in their datasheet. Also, it is strongly recommended to work along the crystal manufacturer to determine the proper characteristics around the crystal circuitry. Re: 32.768kHz Crystal for RW612 Hello @RomanVR, Thank you for your response. I haven't ordered any parts yet, but I intend to use this one: https://eu.mouser.com/de/ProductDetail/ECS/ECS-.327-6-16-TR3?qs=A6eO%2BMLsxmSq6P7XbVvfvw%3D%3D Best regards Re: 32.768kHz Crystal for RW612 Hi @Niwo, I apologize for the delay. As per the shared crystal datasheet, the required load capacitance is 12pF, hence this should be taken as guide to configure any external circuitry and further analyzed with the crystal manufacturer for optimal performance suggestions. Regarding the mentioned register, it should not be used to configure the external crystal load capacitance, this observation has been raised with the appropriate teams to take further action. For XTAL32K functionality and crystal-related requirements, Chapter 10 of UM11865 is the proper reference. Hope this helps! Re: 32.768kHz Crystal for RW612 Hello @RomanVR, I would like to suggest a few changes for the documentation that I think will make it easier for others to approach the design for the 32.768kHz crystal: Removal of the RTC_OSC_LOADCAP field in the RTC CTRL register from RM00278 and also from the MCUXpressoSDK drivers Add external load capacitors to figure 71 of UM11865 or even better add a schematic to chapter 10 that shows the crystal and load caps beeing connected to GPIO[22] and GPIO[23] In chapter 10 section 2 of UM11865 I don't understand what "External capacitor: 18 pF" should tell the reader. Please go into more detail about this I hope my feedback is helpful to you. Best regards
View full article
s32设计工作室许可证已过期 您好。 我的S32设计工作室许可证即将到期。 能否续签许可证? 许可证代码为 085B-C474-AA78-FC99。 谢谢! Re: s32 design studio license expired 你好, 您的S32DS许可证已延期。 Re: s32 design studio license expired 你好, 我刚刚查看了您的账户,许可证有效期至 2030 年。您可以等到许可证真正过期后再操作,或者退回现有许可证并使用旧代码重新激活。 Re: s32 design studio license expired 您好。 ssong_0-1789444671642.png 看起来还没有扩展。您能再检查一遍吗?谢谢。 Re: s32 design studio license expired 您好,NXP技术支持,希望您一切安好。我的 S32DS 许可证已过期,这阻碍了我目前的开发工作。您能否帮忙延长一下? 我的激活 ID: 406C-B408-57DB-0C62 。 产品:S32 Design Studio for ARM v2.2。 非常感谢。
View full article
S32DS 2018 许可证 过期 你好:适用于 ARM v2018 的 S32 Design Studio R1 许可证已过期,麻烦帮忙处理一下,谢谢! Re: S32DS 2018 license 过期 你好、 您的 S32DS 许可证已延期。 回复: S32DS 2018 license 过期 你好: S32 Design Studio for ARM v2018 R1许可证已过期,麻烦帮忙处理一下,谢谢! @jiri_kral
View full article
FRDM-MCXN236にはクーポンは適用されません NXPのウェブサイトでは、この無料ボードを入門用として宣伝している。しかし、チェックアウト時にクーポンコードを適用すると、無効と表示されます。 NXPは現在の広告を尊重するか、あるいは広告をオフラインにするべきだと思う。 開発ボード FRDMトレーニング Re: Coupon not valid for FRDM-MCXN236 それは嬉しいですね! 趣味としてリクエストを提出できます。A ボタンがグレー表示されていますか?もしそうなら、Chromeのシークレットウィンドウ、Firefoxのプライベートウィンドウ、または別のブラウザでログインしてみていただけますか? 時にはブラウザクッキーがログインプロセスの正常な動作を妨げることがあります。ブラウザのキャッシュとCookieを削除してから、再度ログインをお試しください。 問題が解決しない場合はお知らせください。喜んでさらにサポートさせていただきます。 よろしくお願いします、 アロンドラ Re: Coupon not valid for FRDM-MCXN236 迅速な対応ありがとうございました! クーポンは現在有効です。ただし、チェックアウト段階では会社名やURLなど複数のフォームエントリーがあります。私は個人であり、この掲示板を自己学習のために利用する予定なので、これらの項目には「該当なし」と記入しました。 残念ながら、フォームの最後にある「次へ」ボタンが反応しません。 Re: Coupon not valid for FRDM-MCXN236 お問い合わせいただきありがとうございます。 もう一度お試しいただけますか?クーポンを更新しましたので、問題なくご利用いただけるはずです。 問題が解決しない場合はお知らせください。喜んでさらにサポートさせていただきます。 よろしくお願いします、 アロンドラ・オルベラ Re: Coupon not valid for FRDM-MCXN236 私も同じように使えないのですが、まだ利用できるのでしょうか?それとも、同じクーポンコードが他にありますか? よろしくお願いいたします。 アヌクル・アナンド Re: Coupon not valid for FRDM-MCXN236 こんにちは、 地域コードを適用しようとした際、チェックアウト時に同様のプロモーションエラーが発生しました。通常、ADCWFBXTのようなプロモーションバウチャーは地理的地域や代理店の在庫割りに制限されます。もし特定の地域、例えばfiffanを通じてコネクテッド開発者からご注文する場合、アジア(fiwfan)でもあります。アプリ)やその他のローカルのテクノロジーハブなどでは、NXP の直接カートは、地域の配送規則により、バウチャーを無効と判断することがよくあります。 最善の方法は、NXPカスタマーケアに直接サポートチケットを発行するか、地域の代理店に連絡することです。彼らは手動で地域プロモコードを発行するか、あなたのアカウントの注文割り当てを解放してくれます。 Re: Coupon not valid for FRDM-MCXN236 今度はクーポンが無効です。 Re: Coupon not valid for FRDM-MCXN236 ご挨拶申し上げます。 上記の手順をすべて試しました。Cookieを削除し、Chromeのシークレットウィンドウからログインしましたが、それでもクーポンが無効と表示されます。 これからのプロジェクトで使えたら嬉しいので、このクーポンの件で助けが必要です ありがとうございます Re: Coupon not valid for FRDM-MCXN236 残念ながら、このクーポンは既に利用限度に達しています。クーポンは数日中に削除いたします。このマターについてご理解いただき感謝いたします よろしくお願いします、 アロンドラ Re: Coupon not valid for FRDM-MCXN236 コード「 ATWQBE0T」で依然として同じ問題が発生しています Re: Coupon not valid for FRDM-MCXN236 こんにちは、NXPサポート/コミュニティチームの皆さん、 私は現在、NXPのeコマースストアを通じてFRDM-MCXN236開発ボード(20ドル)を購入しようとしています。00USDです。 しかし、レジで問題が発生しています。   プロモーションコード 「ADCWFBXT」 を適用しようとすると 、 カートに 「クーポンが無効です」 というエラーが表示されます 。 このクーポンコードが現在有効かどうか、またはこの開発ボードに適用されるための特定の条件があるか確認いただけますか? この問題を解決するためのご協力をいただけると大変ありがたいです。 ご回答をお待ちしています。
View full article
此优惠券不适用于 FRDM-MCXN236 NXP 网站宣传这款免费板可供入门。但是结账时应用该优惠券代码时,显示无效。 我认为恩智浦应该尊重目前的广告,或者将其撤下。 开发板 FRDM 培训 Re: Coupon not valid for FRDM-MCXN236 很高兴听到这个消息! 您可以以业余爱好者的身份提交申请。一个 按钮是否显示为灰色?如果可以,请尝试使用 Chrome 的隐身窗口、Firefox 的隐私窗口或其他浏览器登录? 有时浏览器 cookie 会阻止登录过程正常进行。请尝试清除浏览器缓存和cookie,然后再次尝试登录。 如果问题仍然存在,请告诉我,我很乐意提供进一步的帮助。 此致, 阿隆德拉 Re: Coupon not valid for FRDM-MCXN236 谢谢你们迅速解决问题! 优惠券现在可以使用了。但是,结账阶段有多个表单条目,例如公司名称、网址等。由于我是个人用户,打算使用板进行自学,因此我在这些字段中标记为“不适用”。 很遗憾,表单末尾的“下一步”按钮没有反应。 Re: Coupon not valid for FRDM-MCXN236 感谢您与我们联系。 请您再试一次好吗?我们已更新优惠券,您现在应该可以成功使用了。 如果问题仍然存在,请告知我,我将很乐意提供进一步的帮助。 此致, 阿隆德拉·奥尔维拉 Re: Coupon not valid for FRDM-MCXN236 我这边也用不了,请问这个优惠码还能用吗?或者还有其他优惠码可以兑换吗? 问候, 阿努库尔·阿南德 Re: Coupon not valid for FRDM-MCXN236 您好, 我在结账时使用地区代码时也遇到了类似的促销错误。通常情况下,像 ADCWFBXT 这样的促销券会受到地理区域或代理商存货分配的限制。如果您从某些地区订购——例如通过 fiwfans 连接的开发者——亚洲(fiwfan。应用程序)或其他本地技术中心——由于区域运输规则,NXP 直接购物车经常将优惠券标记为无效。 最佳解决方案是直接向 NXP 客户服务中心提交支持请求,或联系您当地的区域代理商。他们可以手动发放区域促销代码,或者释放您账户的订单配额。 Re: Coupon not valid for FRDM-MCXN236 现在又显示优惠券无效了。 Re: Coupon not valid for FRDM-MCXN236 问候, 我尝试了您上面提到的所有步骤,清除了 cookie,并通过 Chrome 的隐身窗口登录,但仍然显示优惠券无效。 我打算在即将开展的项目中使用这个优惠券,所以需要一些帮助。 谢谢 Re: Coupon not valid for FRDM-MCXN236 代码“ ATWQBE0T”仍然存在同样的问题。 Re: Coupon not valid for FRDM-MCXN236 很遗憾,这张优惠券已经达到使用次数上限。我们将在未来几天内移除该优惠券。感谢您对此事的理解。 此致, 阿隆德拉 Re: Coupon not valid for FRDM-MCXN236 您好,NXP支持/社区团队, 我目前正在尝试 通过 NXP 电子商务商店 购买 FRDM-MCXN236 开发板(20.00 美元), 但在结账时遇到了问题。   尝试使用促销代码ADCWFBXT时,购物车显示错误信息: “优惠券无效”。 请问这个优惠码目前是否有效?或者使用这个优惠码是否需要满足某些特定条件?非常感谢您的帮助。 谢谢!
View full article
Secure DFU on RT600 Board: RT685 EVK Zephyr toolchain: zephyr-sdk-1.0.1, zsdk nxp-v4.4.1.1 Hi Team! I am working on a Zephyr-based RT600 application, which should include three images in total ( MCUBoot, ARM core image, and DSP core image). Since the RT600 is a flash-less MCU, those images have to live in the external flash, and I am looking for a proper way to protect them against read-back and other potential risks that could leak the image. On top of that, I would like to have the DFU feature to update both the ARM core and the DSP core images via SMP protocol (RT600 running as SMP server, or through MCUBoot serial recovery, or both) in an encrypted manner. I failed to find an example shipped with nxp-zsdk, could you please help me find a practical path to follow? Best regards, Yue Re: Secure DFU on RT600 Hi @YueZ , For the RT685 EVK, I recommend treating this as two related design tasks : securing what is stored in external flash, and securely updating the Arm and DSP firmware. An encrypted update alone does not establish that the active image is protected against external-flash read-back. A practical starting point is to package the DSP firmware with the Arm application and update them as one signed image . That lets you bring up a single MCUboot primary/secondary-slot update path before taking on independent DSP image management. Zephyr’s SMP image-management flow uploads an update to a secondary slot for MCUboot to process at boot.(zephyr/doc/services/device_mgmt/smp_groups/smp_group_1.rst at main · zephyrproject-rtos/zephyr · GitHub) On RT600, the boot images reside outside internal flash, either for loading into SRAM or for execution from external memory, so the flash layout and boot chain need to be designed together. - https://www.nxp.com/docs/en/application-note/AN12985.pdf  I would proceed in this order: Establish a trusted boot chain : authenticate the bootloader at startup, then have it verify signed application updates. Include production key provisioning and debug-access policy in the design. Demonstrate a signed Arm-plus-DSP update through an application-side SMP server, with a defined primary and secondary flash slot. Confirm that the newly built DSP firmware is actually included in the image being uploaded. Address confidentiality of the installed image separately . NXP’s RT600 secure-provisioning workflow describes writing an encrypted application and OTFAD key blobs,(mcuxpresso.nxp.com/secure/latest/_sources/06_processor_specific_workflow.md) and its RT600 FOTA note describes a signed-and-encrypted OTA approach. Those are useful RT600 references, but their procedures are not a ready-made Zephyr SMP integration. - https://www.nxp.com/docs/en/application-note/AN13478.pdf  If independent Arm and DSP updates are required, design separate image storage and verification, plus a way to prevent incompatible Arm/DSP versions from being activated together. I would treat that as a second integration milestone, not as a capability already demonstrated by the combined-image example. Application-side SMP and bootloader-side serial recovery can both be considered, but they are distinct update paths; you do not need to implement both to validate the first DFU milestone.  Could you confirm whether the DSP must be updated independently, or whether updating Arm and DSP together is acceptable? That decision determines whether the simpler combined-image path meets your requirements or whether a multi-image boot and rollback design is necessary.   Have a great day, Kan ------------------------------------------------------------------------------- Note: - If this post answers your question, please click the "Mark Correct" button. Thank you! - We are following threads for 7 weeks after the last post, later replies are ignored Please open a new thread and refer to the closed one, if you have a related question at a later point in time. ------------------------------------------------------------------------------- Re: Secure DFU on RT600 Hi Kan, Thank you very much for the information, it is really clear and helpful! To answer your question, I am fine with packing the two images into one; they don't need to be separate. Additionally, I am eager to know your suggestions on a few more questions, and please correct me if I am wrong since I am new to the NXP secure-provisioning workflow: The two milestones are, if I understood it correctly: 1) verify FOTA image signing and boot chain; 2) verify OTFAD on the off-chip flash. It looks like the west build process only signs the image without encryption; the output hex(bin) image file remains in plaintext, which is supposed to be encrypted in the second step for OTFAD. On an OTA update, a signed image is received and then written into flash as OTFAD-encrypted. Does that mean the image in transit is exposed to attack? XIP or loading in RAM, which would you recommend for less workload in Zephyr if combined with signing and encryption?  Is there an example available in Zephyr demonstrating the OTFAD feature on RT600 (and whether OTFAD is supported by MCUBoot serial recovery)? I found modules/hal/nxp/mcux/mcux-sdk-ng/drivers/otfad/fsl_otfad.h, but nothing has referred to it yet. A starting point would be very much appreciated! Best regards, Yue Re: Secure DFU on RT600 Hi @YueZ , Thank you for confirming that the Arm and DSP firmware can be packaged together. That is the path I would start with: one signed application update containing both firmwares , rather than two independently managed application images. Your proposed milestones are sensible, but I would separate them slightly differently: Prove the boot and update chain: boot the combined image through MCUboot, upload a signed replacement through application-side SMP, and verify the upgrade and recovery behavior. Prove encrypted boot on the RT685 EVK: use Secure Provisioning Tool (SPT) to build and boot an OTFAD-encrypted image from external flash, initially using the documented shadow-register development workflow. - Processor-specific workflows — Secure Provisioning Tool 26.09  Integrate the two: determine how a field update will be staged and installed in the encrypted flash layout without breaking image verification or recovery. This last step is not provided automatically by enabling OTFAD. - Generic workflows — Secure Provisioning Tool 26.09  On the plaintext build output and transmission: your understanding is substantially correct. The documented Zephyr/MCUboot workflow produces a signed application file, zephyr.signed.bin ; signing does not conceal its contents. If that file is distributed and uploaded as-is, someone able to obtain the file or observe an unprotected transfer can read the firmware. You can protect the transfer with an appropriately authenticated, encrypted transport, or distribute an encrypted update artifact. These are separate from protecting the installed image in external flash. - Generic workflows — Secure Provisioning Tool 26.09 Encrypted XIP and MCUboot — MCUXpresso SDK Documentation I would make one correction to the proposed OTA diagram: do not assume that receiving a signed plaintext image and writing it with Zephyr’s flash driver automatically produces OTFAD-encrypted flash contents. SPT’s RT5xx/6xx workflow explicitly writes an encrypted application and OTFAD key blobs . A field updater must reproduce a compatible result—or use another validated installation scheme—while accounting for the protected address ranges and keys. The RT600 OTFAD reference describes decryption of encrypted flash during reads; the SPT provisioning procedure should not be taken as an implementation of Zephyr’s runtime update writer. -https://www.nxp.com/docs/en/training-reference-material/RT600_Security_Architecture_sb.pdf  XIP versus load-to-RAM: since your goal is specifically to protect an application stored in external flash with OTFAD, I would use encrypted XIP as the first security proof of concept . SPT documents that boot workflow for RT5xx/6xx. This is a recommendation for the boot experiment , not a claim that encrypted XIP makes the Zephyr DFU integration easy. Load-to-RAM is also a documented RT5xx/6xx image arrangement, but it does not remove the need to protect the stored image and design a secure update path. I cannot substantiate that either option is a turnkey, lower-workload Zephyr solution for your SDK version. Regarding examples and serial recovery: I have not found a validated RT685 Zephyr example combining OTFAD, MCUboot and SMP/serial-recovery encrypted updates for nxp-v4.4.1.1 . The fsl_otfad.h header establishes that a driver interface exists; it does not establish that the RT685 MCUboot recovery or flash-installation path integrates it. NXP’s Encrypted XIP and MCUboot documentation describes an encrypted-XIP extension, but its listed OTFAD example boards are RT1152/RT1160/RT1170, not RT685 . I would not assume that its serial-recovery or installation behavior carries over to this board. That is something I still need to check with the team. For a concrete starting reference, use SPT 26.09, “RT5xx/6xx device workflow → Booting OTFAD encrypted image using shadow registers” to establish the encrypted-boot baseline. In parallel, use AN13478, Implementing FOTA on i.MX RT600 to study NXP’s RT600 signed-and-encrypted update approach. That application note is not a Zephyr SMP example, so the remaining work is to reconcile its encrypted-image installation approach with your Zephyr/M​​CUboot slot layout and chosen update path.    For this board, I would validate signed combined-image DFU and SPT-generated OTFAD XIP separately, then treat encrypted field installation—including any serial-recovery support—as an integration task requiring its own test.   Have a great day, Kan ------------------------------------------------------------------------------- Note: - If this post answers your question, please click the "Mark Correct" button. Thank you! - We are following threads for 7 weeks after the last post, later replies are ignored Please open a new thread and refer to the closed one, if you have a related question at a later point in time. ------------------------------------------------------------------------------- Re: Secure DFU on RT600 Hi Kan, This is enough information for me to digest at this point, I will mark it as a solution. Please notify me if the team has any updates on the capability of RT685 MCUboot recovery with OTFAD. Thank you very much for the details! You have a great day too! Yue
View full article
RW612 出力クロックをピンへ こんにちは、 オシロスコープで測定できるように、ピンにクロック信号を出力する方法のソフトウェア例を探しています。 CLKOUT信号(下の画像参照)で実現できると思いますが、正しく設定できませんでした。 ユーザーマニュアルのこのセクションには、CLKOUTはIOMUX経由でピンにルーティングしなければならないと書かれていますが、MCI_IO_MUX->FSELレジスタでその関数のフィールドを見つけることができませんでした。 製品: WiFi RW6XX Re: RW612 output clock to pin MCUXpressoはクロック生成に役立つかもしれません Re: RW612 output clock to pin こんにちは、 @Niwo さん。 CLKOUTの設定を追加するには、 MCuxpresso Config Toolsを使用することをお勧めします。このツールはMCUのクロックツリーとピンを設定し、対応するAPIを自動的にclock_config.cで生成することを可能にします。pinmux.c、および pinmux.hファイル。 このツールに慣れていない場合は、まずMCUXpresso設定ツールのクイックスタートガイドを確認することをお勧めします。また、ピンやクロックの設定には、MCUXpresso設定ツール26.09のドキュメントの 「Starting with pin/internal signal select 」ガイドや 「Clocks Tool 」セクションも役立つかもしれません。 他に質問がありましたら、お気軽にお知らせください。 BR ハビブ
View full article
RT600 上的安全 DFU 电路板:RT685 EVK Zephyr 工具链:zephyr-sdk-1.0.1,zsdk nxp-v4.4.1.1 大家好! 我正在开发一个基于 Zephyr 的 RT600 应用程序,该应用程序总共应该包含三个镜像(MCUBoot、ARM 内核镜像和 DSP 内核镜像)。 由于 RT600 是一个无闪存的 MCU,这些图像必须存储在外部闪存中,我正在寻找一种合适的方法来保护它们免受回读和其他可能泄露图像的潜在风险。除此之外,我还希望 DFU 功能能够以加密的方式通过 SMP 协议(RT600 作为 SMP 服务器运行,或通过 MCUBoot 串行恢复,或两者兼而有之)更新 ARM 内核和 DSP 内核映像。 我没有找到 nxp-zsdk 自带的示例,您能帮我找到一个可行的学习路径吗? 顺祝商祺! 岳 Re: Secure DFU on RT600 你好@YueZ , 对于 RT685 EVK,我建议将其视为两个相关的设计任务:保护存储在外部闪存中的内容,以及安全地更新 Arm 和 DSP 固件。单凭加密更新并不能证明活动映像受到保护,免受外部闪存读取。 一个切实可行的起点是将DSP 固件与 Arm 应用程序打包在一起,并将它们作为一个签名映像进行更新。这样,您就可以在进行独立的 DSP 映像管理之前,启动单个 MCUboot 主/辅助插槽更新路径。Zephyr 的 SMP 镜像管理流程会将更新上传到辅助插槽,供 MCUboot 在启动时处理。( zephyr/doc/services/device_mgmt/smp_groups/smp_group_1.rst at main · zephyrproject-rtos/zephyr · GitHub )在 RT600 上,启动映像位于内部闪存之外,可以加载到 SRAM 中,也可以从外部存储器执行,因此闪存布局和启动链需要一起设计。- https://www.nxp.com/docs/en/application-note/AN12985.pdf 我会按以下顺序进行: 建立可信的启动链:在启动时验证引导加载程序,然后让它验证已签名的应用程序更新。在设计中纳入生产密钥配置和调试访问策略。 通过应用端 SMP 服务器演示已签名的 Arm+DSP 更新,并定义主闪存槽和辅助闪存槽。确认新构建的 DSP 固件确实包含在上传的镜像中。 单独处理已安装镜像的保密性问题。NXP 的 RT600 安全配置工作流程描述了如何编写加密的应用程序和 OTFAD 密钥块( mcuxpresso.nxp.com/secure/latest/_sources/06_processor_specific_workflow.md ),其 RT600 FOTA 说明描述了一种签名和加密的 OTA 方法。这些是有用的 RT600 参考资料,但它们的程序并不是现成的 Zephyr SMP 集成。- https://www.nxp.com/docs/en/application-note/AN13478.pdf 如果需要独立的 Arm 和 DSP 更新,则设计单独的映像存储和验证,以及防止不兼容的 Arm/DSP 版本同时激活的方法。我会将其视为第二个集成里程碑,而不是组合图像示例已经证明的功能。 应用层SMP和引导加载程序层串行恢复都可以考虑,但它们是不同的更新路径;您无需同时实现两者即可验证第一个DFU里程碑。 请问DSP是否必须单独更新,还是Arm和DSP可以同时更新?该决定将决定更简单的组合映像路径是否满足您的要求,或者是否需要多映像启动和回滚设计。   祝你有美好的一天, 坎 ------------------------------------------------------------------------------- 笔记: - 如果此回复解答了您的问题,请点击“标记为正确答案”按钮。谢谢你! - 我们会持续关注帖子,从最后一条回复发出后持续7周,之后的回复将被忽略。 如果您之后有相关问题,请另开新帖并引用已关闭的帖子。 ------------------------------------------------------------------------------- Re: Secure DFU on RT600 嗨,Kan, 非常感谢您提供的信息,它非常清晰且很有帮助!回答你的问题,我觉得把两张图片合并成一张没问题;它们不需要分开。 此外,我还想听听您对以下几个问题的建议,如果我说错了,请您指正,因为我对NXP安全配置工作流程还不熟悉: 如果我理解正确的话,这两个里程碑是:1)验证 FOTA 镜像签名和启动链;2)验证片外闪存上的 OTFAD。看起来西部的版本过程只是对图像进行签名而没有加密;输出的 hex(bin)图像文件仍然是明文,应该在第二步中对 OTFAD 进行加密。在 OTA 更新过程中,会收到一个签名镜像,然后将其以 OTFAD 加密的形式写入闪存。这是否意味着传输中的图像容易受到攻击? 如果将签名和加密功能结合使用,您会推荐使用 XIP 还是 RAM 加载来降低 Zephyr 的工作负载? Zephyr 中是否有示例演示 RT600 上的 OTFAD 功能(以及 MCUBoot 串行恢复是否支持 OTFAD)?我找到了 modules/hal/nxp/mcux/mcux-sdk-ng/drivers/otfad/fsl_otfad.h,但目前还没有任何东西引用它。非常感谢您能提供一个起点! 顺祝商祺! 岳 Re: Secure DFU on RT600 你好@YueZ , 感谢您确认 Arm 和 DSP 固件可以打包在一起。我会从以下方案入手:使用一个包含两个固件的签名应用程序更新,而不是两个独立管理的应用程序映像。 你提出的里程碑计划很合理,但我会稍微调整一下它们的划分方式: 验证启动和更新链:通过 MCUboot 启动组合镜像,通过应用端 SMP 上传签名替换,并验证升级和恢复行为。 在 RT685 EVK 上验证加密启动:使用安全配置工具 (SPT) 从外部闪存构建和启动 OTFAD 加密映像,最初使用已记录的影子寄存器开发工作流程。-处理器特定工作流程 — 安全配置工具 26.09 将两者结合起来:确定如何在加密闪存布局中分阶段和安装现场更新,而不会破坏映像验证或恢复。启用 OTFAD 并不会自动执行最后一步。-通用工作流程 — 安全配置工具 26.09 关于纯文本版本输出和传输:你的理解基本正确。文档中记录的 Zephyr/MCUboot 工作流程会生成一个已签名的应用程序文件 zephyr.signed.bin ;签名并不会隐藏其内容。如果该文件按原样分发和上传,那么任何能够获取该文件或观察到未受保护传输的人都可以读取固件。您可以使用经过适当身份验证的加密传输来保护传输,或者分发加密的更新工件。这些与保护安装在外部闪存中的映像是分开的。-通用工作流程 — 安全配置工具 26.09加密 XIP 和 MCUboot — MCUXpresso SDK 文档 我对提议的 OTA 图有一点更正:不要假设接收到签名的明文图像并使用 Zephyr 的闪存驱动程序写入它会自动生成 OTFAD 加密的闪存内容。SPT 的 RT5xx/6xx 工作流程明确地写入加密的应用程序和OTFAD 密钥块。现场更新程序必须重现兼容的结果,或者使用其他经过验证的安装方案,同时还要考虑受保护的地址范围和密钥。RT600 OTFAD 参考文档描述了读取期间加密闪存的解密;SPT 配置过程不应被视为 Zephyr 运行时更新写入器的实现。- https://www.nxp.com/docs/en/training-reference-material/RT600_Security_Architecture_sb.pdf XIP 与加载到 RAM:由于您的目标具体是使用 OTFAD 保护存储在外部闪存中的应用程序,我将使用加密的 XIP 作为第一个网络安全概念验证。SPT 文档用于启动 RT5xx/6xx 的工作流程。这是对启动实验的建议,而不是声称加密的 XIP 使 Zephyr DFU 集成变得容易。Load-to-RAM 也是 RT5xx/6xx 镜像的一种有据可查的配置方式,但这并不能消除保护存储镜像和设计安全更新路径的必要性。我无法证实这两种方案都是适用于您的 SDK 版本的交钥匙、工作负载较低的 Zephyr 解决方案。 关于示例和串行恢复:我还没有找到经过验证的RT685 Zephyr 示例,该示例结合了 OTFAD、MCUboot 和 SMP/串行恢复加密更新,适用于 nxp-v4.4.1.1 。 fsl_otfad.h 标头表明存在驱动程序接口;但它并未表明 RT685 MCUboot 恢复或闪存安装路径集成了该接口。NXP 的加密 XIP 和 MCUboot文档描述了加密 XIP 扩展,但其列出的OTFAD 示例板是 RT1152/RT1160/RT1170,而不是 RT685 。我不认为它的串行恢复或安装行为会延续到这个板上。这方面我还需要和团队确认一下。 如需具体的参考资料,请使用SPT 26.09,“RT5xx/6xx 设备工作流程 → 使用影子寄存器启动 OTFAD 加密映像”来建立加密启动基线。同时,利用AN13478,在 i.MX RT600 上实现 FOTA ,研究 NXP 的 RT600 签名加密更新方法。该应用笔记并非Zephyr SMP 示例,因此剩余的工作是将其加密映像安装方法与您的 Zephyr/M​​CUboot 插槽布局和选择的更新路径相协调。   对于此板,我会分别验证签名组合映像 DFU 和 SPT 生成的 OTFAD XIP,然后将加密现场安装(包括任何串行恢复支持)视为一项集成任务,需要进行单独的测试。   祝你有美好的一天, 坎 ------------------------------------------------------------------------------- 笔记: - 如果此回复解答了您的问题,请点击“标记为正确答案”按钮。谢谢你! - 我们会持续关注帖子,从最后一条回复发出后持续7周,之后的回复将被忽略。 如果您之后有相关问题,请另开新帖并引用已关闭的帖子。 ------------------------------------------------------------------------------- Re: Secure DFU on RT600 嗨,Kan, 目前这些信息足够我消化了,我会把它标记为解决方案。如果团队对 R T685 MCUboot 恢复与 OTFAD的功能有任何更新,请通知我。 非常感谢您提供的详细信息!祝你今天也过得愉快! 岳
View full article
RT600でのセキュアDFU 基板: RT685 EVK Zephyr toolchain: zephyr-sdk-1.0.1, zsdk nxp-v4.4.1.1 チームの皆さん、こんにちは! 私はZephyrベースのRT600アプリケーションを開発しており、合計3つの画像(MCUBoot、ARMコアイメージ、DSPコアイメージ)を含める予定です。 RT600はフラッシュレスMCUなので、それらの映像は外部フラッシュに収まらなければならず、読み書きや画像のリークリスクから適切に保護する方法を探しています。さらに、DFU機能を使って、ARMコアとDSPコアのイメージをSMPプロトコル(RT600をSMPサーバーとして動作させるか、MCUBoot シリアルリカバリー、またはその両方で動作する)で暗号化して更新したいと考えています。 nxp-zsdkに付属している例を見つけられませんでした。実践的な方法を教えていただけませんか? よろしくお願いいたします。 ユエ Re: Secure DFU on RT600 こんにちは、 @YueZ さん。 RT685 EVKについては、これを 2つの関連する設計タスク として扱うことをおすすめします。外部フラッシュに保存されるものの安全と、ArmおよびDSPファームウェアの安全な更新です。暗号化されたアップデートだけでは、アクティブイメージが外部フラッシュからの読み出し攻撃から保護されていることを保証するものではありません。 実用的な出発点としては 、DSPファームウェアをArmアプリケーションにパッケージ化し、それらを1つの署名済みイメージとして更新 することです。これにより、独立したDSPイメージマネジメントを行う前に、単一のMCUbootプライマリ/セカンダリスロット更新パスを起動できます。ZephyrのSMPイメージマネジメントフローは、MCUbootが起動時に処理するための二次スロットに更新をアップロードします。(zephyr/doc/services/device_mgmt/smp_groups/smp_group_1.rst at main · zephyrproject-rtos/zephyr ·GitHub)RT600では、起動イメージは内部フラッシュの外部に存在し、SRAMへの読み込みや外部メモリからの実行に使うため、フラッシュのレイアウトとブートチェーンは一緒に設計する必要があります。- https://www.nxp.com/docs/en/application-note/AN12985.pdf 私は以下の順序で進めます。 信頼できるブートチェーンを確立します:起動時にブートローダーを認証し、その後、署名済みのアプリケーション更新を検証させます。設計に本番キーのプロビジョニングとデバッグアクセスポリシーを含めてください。 プライマリおよびセカンダリフラッシュスロットを定義したアプリケーション側のSMPサーバーを通じて 、署名済みのArm plus-DSPアップデート を実証します。新たに構築されたDSPファームウェアが実際にアップロードされるイメージに含まれているか確認してください。 インストールされたイメージの機密性については、別途対処してください。NXPのRT600セキュアプロビジョニングワークフローは暗号化アプリケーションとOTFADキーブロブ(mcuxpresso.nxp.com/secure/latest/_sources/06_processor_specific_workflow.md)の作成を説明し、RT600 FOTAノートは署名付き暗号化されたOTAアプローチを説明しています。それらはRT600の有用な参考資料ですが、手順は既製のZephyr SMP統合ではありません。- https://www.nxp.com/docs/en/application-note/AN13478.pdf 独立したArmおよびDSPの更新が必要な場合は、別々の画像保存と検証を設計し、互換性のないArm/DSPバージョンが同時に起動されるのを防ぐ方法も用意してください。私はそれを、結合イメージの例ですでに実証された機能ではなく、2番目の統合マイルストーンとして捉えるべきでしょう。 アプリケーション側のSMPとブートローダー側のシリアルリカバリーはどちらも考慮できますが、それぞれ異なる更新経路です。最初のDFUマイルストーンを検証するために両方を実装する必要はありません。 DSPは独立して更新する必要があるのか、それともArmとDSPを同時に更新しても問題ないのか確認していただけますか?その判断が、よりシンプルな結合イメージパスが要件を満たすか、それとも複数イメージのブート&ロールバックデザインが必要かを決定します。   すてきな一日を、 カン ------------------------------------------------------------------------------- 注記: この投稿があなたの質問への回答になっている場合は、「正解としてマーク」ボタンをクリックしてください。ありがとうございます! - 前回の投稿から7週間Threadをフォローしており、その後の返信は無視しています もし後で関連する質問があれば、新しいThreadを開き、閉じたThreadを参照してください。 ------------------------------------------------------------------------------- Re: Secure DFU on RT600 こんにちは、カンさん。 情報提供ありがとうございました。とても分かりやすく、大変参考になりました!ご質問にお答えすると、2つの画像を1つにまとめることに問題はありません。別々にする必要はありません。 さらに、いくつか質問があるので、ご意見をお聞かせいただければ幸いです。また、NXPのセキュアプロビジョニングワークフローは初めてなので、もし私の理解が間違っていたらご指摘ください。 私が正しく理解していれば、2つのマイルストーンは次のとおりである。1) FOTAイメージの署名とブートチェーンの検証、2) オフチップフラッシュ上のOTFADの検証。どうやら、西側のビルドプロセスではイメージに署名するだけで暗号化は行われていないようです。出力されるhex(bin)イメージファイルは平文のままですが、これはOTFADの2番目のステップで暗号化されるはずです。OTAアップデート時には、署名付きイメージが受信され、OTFAD暗号化された状態でフラッシュメモリに書き込まれる。それは、転送中の画像が攻撃にさらされる可能性があるという意味ですか? XIPとRAMでの読み込み、署名や暗号化と組み合わせた場合、Zephyrで作業負荷を減らすためにどちらがおすすめでしょうか? ZephyrでRT600のOTFAD機能(およびOTFADがMCUBootシリアルリカバリーでサポートされているかどうか)を示す例はありますか?modules/hal/nxp/mcux/mcux-sdk-ng/ドライバ/otfad/fsl_otfad.hは見つけましたが、まだ何も言及されていません。出発点となる情報があれば大変ありがたいです! よろしくお願いいたします。 ユエ Re: Secure DFU on RT600 こんにちは、 @YueZ さん。 ArmとDSPのファームウェアが一緒にパッケージ化できることを確認してくれてありがとうございます。私ならまず最初に考えるのは、2つの独立管理アプリケーションイメージではなく、 両方のファームウェアを含む署名付きアプリケーションアップデートを 1つにすることです。 あなたが提案したマイルストーンは理にかなっていますが、私なら少し違った形で分類します。 起動と更新の連鎖を証明する: 結合イメージをMCUboot経由で起動し、アプリケーション側のSMPで署名入り代替画像をアップロードし、アップグレードと回復の動作を確認します。 RT685 EVK 上で暗号化ブートを検証する: Secure Provisioning Tool (SPT) を使用して、外部フラッシュから OTFAD で暗号化されたイメージを構築してブートします。最初は、ドキュメントに記載されているシャドウレジスタ開発ワークフローを使用します。- プロセッサ固有のワークフロー — Secure Provisioning Tool 26.09  この2つを統合する:イメージの検証や復旧を損なうことなく、暗号化されたフラッシュレイアウト内でフィールドアップデートをどのように段階的に実行し、インストールするかを決定する。この最後のステップは、OTFADを有効にしても自動的には提供されません。-汎用ワークフロー — セキュアプロビジョニングツール 26.09 平文の構築出力と送信に関して:あなたの理解は概ね正しいです。文書化されたZephyr/MCUbootのワークフローは署名済みアプリケーションファイル zephyr.signed.bin 生成します;署名はその内容を隠しません。そのファイルがそのまま配布・アップロードされた場合、ファイルを入手したり保護されていない転送を観察できる人がファームウェアを読み取ることができます。適切に認証された暗号化されたトランスポートで転送を保護するか、暗号化された更新アーティファクトを配布することもできます。これらは、外部フラッシュメモリにインストールされたイメージを保護することとは別個のものです。- 汎用ワークフロー — Secure Provisioning Tool 26.09 暗号化XIPおよびMCUboot — MCUXpresso SDKドキュメント 提案されたOTA図に一つ訂正したいのは、 署名済みのプレーンテキスト画像を受け取り、Zephyrのフラッシュドライバーで書き込みをすると自動的にOTFAD暗号化されたフラッシュ内容を生成すると仮定しないことです。SPTのRT5xx/6xxワークフローは、 暗号化されたアプリケーション と OTFADキーの塊 を明示的に書き込みます。フィールドアップデーターは、保護されたアドレス範囲とキーを考慮しながら、互換性のある結果を再現するか、または別の検証済みのインストール方式を使用する必要があります。RT600 OTFADのリファレンスは、読み込み中の暗号化フラッシュの復号化を記述しています。SPTのプロビジョニング手順は、Zephyrのランタイム更新ライターの実装として受け取るべきではありません。- https://www.nxp.com/docs/en/training-reference-material/RT600_Security_Architecture_sb.pdf XIPとRAMへのロード: あなたの目的はOTFADで外部フラッシュに保存されたアプリケーションを保護することなので、 最初のセキュリティ証明として暗号化されたXIP を使うのが良いでしょう。SPTドキュメントには、RT5xx/6xxのブートワークフローが記載されています。これは ブート実験 のための推奨であり、暗号化されたXIPがZephyr DFU統合を簡単にするという主張ではありません。RAMへのロードも文書化されたRT5xx/6xxイメージ配置ですが、保存されたイメージを保護し安全な更新経路を設計する必要性を取り除くわけではありません。どちらの選択肢もあなたのSDKバージョンに対して、Zephyrのターンキーで作業負荷の少ないソリューションだとは証明できません。 例とシリアルリカバリーについて:OTFAD、MCUboot、SMP/シリアルリカバリーの暗号化アップデートを組み合わせたRT685 Zephyrの検証済み例は nxp-v4.4.1.1 見つかっていません。 fsl_otfad.h ヘッダーはドライバーインターフェースの存在を示します。RT685のMCUbootリカバリーやフラッシュインストールパスがそれを統合しているとは証明しません。NXPの Encrypted XIPおよびMCUboot のドキュメント では暗号化されたXIP拡張が説明されていますが、掲載されている OTFADの例基板はRT1152/RT1160/RT1170であり、RT685ではありません 。そのシリアルリカバリやインストール時の動作が、このボードにもそのまま引き継がれるとは考えない方が良いでしょう。それはまだチームに確認する必要がある事項です。 具体的な出発点として、 SPT 26.09「RT5xx/6xx デバイスワークフロー → シャドウレジスタを使用した OTFAD 暗号化イメージのブート」を使用して、暗号化ブートのベースラインを確立してください。並行して、 AN13478 「i.MX RT600でのFOTAの実装」を参照して、NXPのRT600における署名付き暗号化アップデート方式について調べてください。このアプリケーションノートはZephyr SMPの例 ではないため 、残る作業は暗号化イメージインストール方式とZephyr/MCUbootのスロットレイアウトおよび選択した更新経路を照合することです。   このボードでは、署名済みの結合イメージDFUとSPT生成のOTFAD XIPを別々に検証し、暗号化フィールドインストール(シリアルリカバリーサポートを含む)を統合タスクとして独自のテストが必要と扱います。   すてきな一日を、 カン ------------------------------------------------------------------------------- 注記: この投稿があなたの質問への回答になっている場合は、「正解としてマーク」ボタンをクリックしてください。ありがとうございます! - 前回の投稿から7週間Threadをフォローしており、その後の返信は無視しています もし後で関連する質問があれば、新しいThreadを開き、閉じたThreadを参照してください。 ------------------------------------------------------------------------------- Re: Secure DFU on RT600 こんにちは、カンさん。 現時点では、これだけの情報で十分理解できましたので、解決済みとしてマークします。チームからOTFADを使用したR T685 MCUbootリカバリ機能に関する最新情報があれば、私に知らせてください。 詳しい情報をありがとうございました!あなたも素敵な一日をお過ごしください! ユエ
View full article
RW612 output clock to pin Hello, I'm looking for a software example on how to output a clock signal on a pin so it can be meassured with an oscilloscope. I think this could be achieved with the CLKOUT signal (refer to image below), but I wasn't able to set this up correctly.  In this section of the user manual it says that CLKOUT must be routed to a pin via IOMUX, but I wasn't able to find a field for that function in the MCI_IO_MUX->FSEL register. Product: WiFi RW6XX Re: RW612 output clock to pin MCUXpresso could be helpful to generate clock Re: RW612 output clock to pin Hello @Niwo, To add the CLKOUT configuration, I suggest using MCuxpresso Config Tools. This tool allows you to configure the MCU’s clock tree and pins and automatically generates the corresponding APIs in the clock_config.c, pinmux.c, and pinmux.h files. If you are not familiar with this tool, I recommend reviewing the Quick Start Guide for MCUXpresso Config Tools to get started. You may also find the Beginning with pin/internal signal selection guide and the Clocks Tool section of the MCUXpresso Configuration Tools 26.09 documentation helpful for configuring the pins and clocks. Please let me know if you have any further questions. BR Habib
View full article
RW612 输出时钟到引脚 你好, 我正在寻找一个软件示例,说明如何通过引脚输出时钟信号,以便可以用示波器进行测量。 我认为可以用CLKOUT信号实现这一点(参见下图),但我没能正确设置。 用户手册的这一部分提到,CLKOUT 必须通过 IOMUX 路由到引脚,但我无法在MCI_IO_MUX->FSEL 寄存器中找到该功能的字段。 产品:WiFi RW6XX Re: RW612 output clock to pin MCUXpresso 可能有助于生成时钟信号 Re: RW612 output clock to pin 你好@Niwo , 要添加 CLKOUT 配置,我建议使用MCuxpresso 配置工具。该工具允许您配置MCU的时钟树和引脚,并自动在clock_config.c中生成相应的API。pinmux.c,和 pinmux.h文件。 如果您不熟悉此工具,我建议您查看MCUXpresso 配置工具快速入门指南以开始使用。您可能还会发现 MCUXpresso 配置工具 26.09 文档中的“引脚/内部信号选择入门指南”和“时钟工具”部分对配置引脚和时钟很有帮助。 如果您还有其他问题,请告诉我。 BR 哈比卜
View full article
寻找适用于 PQ2 Pro (MPC830x) 的 DDR2 寄存器参数架构 (RPA) 计算器 NXP 网站上的 MPC830x 页面有很多设计文档,但我听说里面还有某种计算器(电子表格?)。这有助于计算 DDR2 寄存器设置,可能命名为: MPC830x_DDR2_RPA.xls 或者类似的表达。即使是其他 PowerQuicc 2(例如虽然不是使用 DDR2 的 MPC830x,但它可能有用。 有没有可能它被保存在档案馆里或者评估委员会的资料中? 谢谢! Re: Looking for DDR2 Register Parameter Architecture (RPA) Calculator for PQ2 Pro (MPC830x) 嗨@mrand , 由于 MPC830x 系列产品已经停产三年多了,因此请求的文件或下载链接不再可用。 有关 DDR 寄存器编程指南,请参阅 AN3369。 谢谢。   顺祝商祺! 六月
View full article
PQ2 Pro(MPC830x)用のDDR2レジスタパラメータアーキテクチャ(RPA)カリキュレータを探しています NXPのMPC830xページには多くの設計ドキュメントがありますが、何らかのカリキュレータ(スプレッドシート?)があると聞いています。これはDDR2レジスタ設定の計算に役立ち、おそらく次のような名前が付けられます。 MPC830x_DDR2_RPA.xls あるいは、そのバリエーション。たとえそれが他の PowerQuicc 2 (つまり、DDR2 を使用した MPC830x と全く同じではありませんが、役に立つかもしれません。 アーカイブや評価ボードの資料と一緒に保管されている可能性はありますか? ご回答をお待ちしています。 Re: Looking for DDR2 Register Parameter Architecture (RPA) Calculator for PQ2 Pro (MPC830x) こんにちは、 @mrand さん。 MPC830xファミリーは3年以上前に終了しているため、リクエストされたファイルやダウンロードリンクはもはや利用できません。 DDRレジスタのプログラミングに関するガイダンスについては、AN3369を参照してください。 ありがとう。   よろしくお願いいたします。 6月
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
Looking for DDR2 Register Parameter Architecture (RPA) Calculator for PQ2 Pro (MPC830x) The MPC830x pages here at NXP have a number of design documents, but I've been led to believe there is some sort of calculator (spreadsheet?) which helps with computing DDR2 register settings, possibly named: MPC830x_DDR2_RPA.xls or some variation of that.  Even if it's for some other PowerQuicc 2 (i.e. not exactly MPC830x) that used DDR2, it might be useful. Any chance it's stored away in an archive or with an eval board collateral? Thank you! Re: Looking for DDR2 Register Parameter Architecture (RPA) Calculator for PQ2 Pro (MPC830x) Hi @mrand , As the MPC830x family has been EOL for over three years, the requested file or download link is no longer available. Please refer to AN3369 for DDR register-programming guidance. Thank you.   Best Regards, June
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
[S32K396] eFlexPWM configuration issues MCU: S32K396 Driver: S32K3 RTD 7.0.1 Config tool: EB tresos Studio 30.0.0 Use case: 3-phase motor control (FOC), SM0..SM2 as complementary A/B pairs,20 kHz center-aligned PWM, fault handling on FAULT0  Question1: Pwm (FlexPWM): Fault settings are only available for the A output of a complementary channel pair — no way to configure the fault mapping of PWMB When a FlexPWM submodule is configured with Channel Pair = COMPLEMENTARY in the EB tresos Pwm plugin, only one channel entry (PWMA) is created and PWMB is automatically generated as the inverted output. However, in the fault settings (FlexPwmFaultChannelSettings: fault channel selection, fault level, fault output state, etc.) only the PWMA channel can be configured - there is no configuration entry for PWMB. The fault setup writes only the DIS0A field of SMx_DISMAP0. DIS0B and DIS0X keep their reset value 0xF and cannot be changed. Is there a supported way in EB tresos to configure the DIS0B/DIS0X mapping, or should this be considered a limitation/defect of the Pwm plugin? Question2: Pwm (FlexPWM): Center-aligned mode - no GUI option to generate an ADC trigger from a VAL0/VAL1 match (mid-point / reload trigger) (SM[x].TCTRL) We use center-aligned complementary PWM (SM0..SM2, 20 kHz) for 3-phase current sampling. In this configuration the center of the low-side conduction window coincides with the counter reload point, i.e. the VAL1 match. Sampling exactly at that instant gives the average phase current and maximum margin to the switching edges, which is the standard trigger point for low-side shunt FOC. In the EB tresos Pwm plugin, the per-channel Output Trigger configuration only offers "rising edge" / "falling edge" selections, which correspond to the VAL2/VAL3 match events. There is no option to enable the trigger sources tied to VAL0/VAL1 matches (TCTRL[OUT_TRIG_EN] bits for OUT_TRIG0/OUT_TRIG1 based on VAL0/VAL1), and no option tied to the reload event. Is there a supported way in this RTD release to generate an ADC trigger from the VAL0/VAL1 match (or from the reload event) in center-aligned mode? Questions3:Pwm (FlexPWM): Fault notification function configured in EB is generated as NULL_PTR in the PostBuild configuration In the EB tresos Pwm plugin, under FlexPwmFaultChannelSettings, a fault notification function name can be entered. The expectation is that the generated PostBuild configuration fills the callback member so that FlexPwm_Ip_Init() registers it into FlexPwm_Ip_aFaultIrqCallback[], and the fault ISR (FlexPwm_Ip_ProcessFaultIrq) calls it when FFLAG is set. But FlexPwm_Ip_VS_0_PBcfg.c generates the fault channel configuration with NULL_PTR. Is this a known limitation of the Pwm plugin, or a defect? Re: [S32K396] eFlexPWM configuration issues Hi, Q1 – Fault mapping for complementary PWMA/PWMB For a complementary channel pair, only PWMA is configured and PWMB is generated according to the configured A/B relationship.  The Pwm configuration provides individual fault enable settings through FlexPwmChannelFaultSettings. However, when complementary mode is selected, PWMB is no longer available as a separate configurable channel, so there is no corresponding GUI option to customize its DIS0B fault mapping. With the default DISMAP reset configuration, the fault inputs remain enabled for the output. Therefore, from the application point of view, the required fault protection is preserved with the default configuration. I will nevertheless check with the RTD team whether the inability to separately configure DIS0B/DIS0X in complementary mode is intentional and whether there is a supported method for applications requiring a different fault mapping. Q2 – ADC trigger in center-aligned PWM mode The Pwm configuration allows the trigger source to be selected from PWMX, PWMA or PWMB, together with rising edge, falling edge or both edge selection. For center-aligned PWM, VAL1 determines the PWM period and therefore cannot be freely adjusted to move the ADC sampling point. There are several possibilities depending on the required sampling point: If sampling exactly at the PWM reload point is required, the FlexPWM reload pulse is directly available as a TRGMUX trigger source and can be routed through TRGMUX to BCTU/ADC. If local synchronization using PWMX and its VAL0/VAL1 resources is not required for the submodule, PWMX can be configured and used for ADC triggering through the standard Pwm trigger configuration. If the sampling point needs to be independently adjusted relative to the PWM center, a free VALx comparator can be configured through the FlexPWM IP APIs and used as an output trigger. Therefore, the preferred solution depends on whether the ADC sampling point needs to be fixed at the PWM reload point or independently adjustable relative to it. Q3 – Fault notification generated as NULL_PTR According to the Pwm User Manual, FlexPwmFaultNotification specifies the user callback function for fault detection, and a configured value different from NULL or NULL_PTR should be used as the callback function name.   I also tested this with RTD 7.0.1 using the S32 Design Studio configuration tool. In this case, the configured fault notification is correctly propagated into FlexPwm_Ip_VS_0_PBcfg.c, including the callback prototype and the corresponding entry in the FaultNotification[] array.   However, I have not yet verified the same configuration using EB tresos Studio 30.0.0. Therefore, I will check with the RTD team whether there is any known difference or limitation in the EB tresos generation path that could result in NULL_PTR being generated instead. BR, Petr 回复: [S32K396] eFlexPWM configuration issues I have also further questions as bellow: Q1.I would like to follow up on this statement: "With the default DISMAP reset configuration, the fault inputs remain enabled for the output. Therefore, from the application point of view, the required fault protection is preserved with the default configuration." This holds only if all four fault inputs are actually routed on the board. In our ECU only FAULT0 is connected (it carries the FS_FLAG of the gate driver, ST L9908). FAULT1..FAULT3 are not routed at all, so those pads are left floating / not configured as Port pins, and the IMCR does not route them - the fault inputs read a constant level. Since DISMAP0 resets to 0xFFFF (every fault input mapped to every output), the consequence is: --With FLVL = LOW for the unrouted channels, the constant low level is interpreted as a permanent fault and the outputs stay disabled forever. - With FLVL = HIGH for the unrouted channels, those fault channels are permanently inactive, but they are still mapped onto the A/B/X outputs. Therefore, we have to manually update the DISMAP0 register after 'Pwm_Init()', so that only FAULT0 is mapped to DIS0A / DIS0B / DIS0X. Whether the DIS0A/DIS0B/DIS0X fields can be exposed in the GUI for complementary mode (so that A and B can be mapped independently)?  Q2.  option1(FlexPWM reload pulse as a TRGMUX trigger source): We confirmed that TRGMUX_IP_INPUT_PWM0_MST_RELOAD is available. option2(PWMX for ADC triggering): This is actually the path we tried first, before opening this thread: we wanted a PWMX falling edge aligned to VAL1. But when Channel Pair = COMPLEMENTARY is selected, the EB tresos Pwm plugin does not allow creating a PWMX channel container for that submodule at all, so the trigger source PWMX cannot be selected. Could you confirm whether this restriction in the plugin is intentional, and whether PWMX-based triggering is supposed to be usable in complementary mode? If it is a plugin limitation, it would be worth reporting to the EB plugin team as well. Thanks again for the detailed answer. Re: [S32K396] eFlexPWM configuration issues Thank you for your response, and wait for your confirmation from RTD team. 回复: [S32K396] eFlexPWM configuration issues Hi, Thank you for the clarification and additional testing. Q1 – DISMAP configuration You are correct. My previous statement about the default DISMAP configuration being sufficient was too general. For your application, where only FAULT0 from the L9908 is used, configuring the DIS0A/DIS0B/DIS0X mappings so that only FAULT0 affects the corresponding outputs is the appropriate configuration. I will clarify with the RTD team whether the lack of independent DIS0B/DIS0X configuration in complementary mode is an intentional limitation of the Pwm plugin and whether these settings are planned to be exposed by the configuration tool. Your manual update of DISMAP0 after Pwm_Init() provides a practical workaround in the meantime, provided the register configuration is consistent with the intended fault handling. Q2 – ADC trigger in center-aligned PWM mode Regarding PWMX, the restriction within the same submodule appears reasonable because PWMX uses VAL0/VAL1, which are also involved in the local synchronization/reload configuration. For your use case, I see two practical options: - If sampling exactly at the PWM reload point is required, use the reload trigger directly through TRGMUX. -If an adjustable sampling point is required, use an unused VAL comparator, for example VAL4/VAL5, and configure the trigger through the FlexPWM IP API. Another synchronized FlexPWM submodule could also be used to generate the trigger through its PWMX/VAL0/VAL1 resources, but using an available VAL4/VAL5 comparator appears simpler if no additional submodule functionality is required. I will confirm these options with the RTD team. BR, Petr
View full article