Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
S32DS 3.5 license activation failed after moving to a new PC   Hello NXP Support, I recently moved to a new computer and am trying to activate S32 Design Studio for S32 Platform v3.5 on Windows. I retrieved the activation code from my NXP account, but activation fails with the following error: "The quantity specified exceeds maximum quantity allowed (0). (FNP error 0)." The IDE currently shows "License missing." Could you please check my license entitlement and help me reactivate S32DS 3.5 on the new computer? If necessary, please reset the previous activation or restore an available activation. Please let me know if any additional information is required. I can provide my license details privately. Thank you. Activation | Installation | Licensing | Installer Download Re: S32DS 3.5 license activation failed after moving to a new PC Hi,  the number of available licenses has been increased. 
View full article
MIMXRT1064 the LPSPI4 master / slave MCUXpresso config tool MIMXRT1064's LPSPI4 can be master or slave. In my PCB I have 2 assembly options - One         with LPSPI4 as master Second  with LPSPI4 as slave. In the MCUXpresso config tool, after I select pin D12 to be LPSPI4:SDI in the pins panel, on the Routing Details panel I can to set its direction !? If I am on a "Functional Group" configuration, in which the LPSPI4 is master, this D12 pin should be set as input or output? Do I need to swap SDI and SDO with external 0 ohm resistors? Thank you. David. Board Design Package and IO|GPIO Re: MIMXRT1064 the LPSPI4 master / slave MCUXpresso config tool Hi @davidfi , Thank you so much for your interest in our products and for using our community. With the normal LPSPI4 configuration ( CFGR1[PINCFG] = 0b00 ), SDI/SIN is the RT1064’s input and SDO/SOUT is its output : 1:RT1064 as master: It receives data sent by the slave on SDI and sends data to the slave on SDO. 2:RT1064 as slave: It receives data sent by the master on SDI and sends data to the master on SDO. Changing the RT1064 between master and slave does not, by itself, reverse the directions of SDI and SDO.   If an assembly has the SDI and SDO connections reversed, you can set CFGR1[PINCFG] = 0b11 ( kLPSPI_SdoInSdiOut ) to swap their functions in software. SDI then sends data, while SDO receives it. Make sure this setting matches the wiring of the selected assembly. BR May Re: MIMXRT1064 the LPSPI4 master / slave MCUXpresso config tool Please see the Fig below: Re: MIMXRT1064 the LPSPI4 master / slave MCUXpresso config tool is there a way to swap SDI/SDO In the MCUXpresso config tool?
View full article
RE: Fls driver in FRDM-A-S32K344 Hello team, I am working on FRDM-A-S32K344. I want to work on Fls driver. (I installed S32DS 3.5 Version and RTD 3.0.0) I am having below driver for Fls. Image 1  I have another PC with same configuration of S32DS and RTD. Find below snip contains fls driver. Which RTD or pkg do I need to install to see this Fls driver.  Image 2  Image 1 or Image 2 which is older and which is newer version of RTD/Fls driver? or is there any difference between them pls let me help..
View full article
S32 Design Studio for ARM v2018.R1 license expired Hi,  My S32 Design Studio for ARM v2018.R1  license has expired.  Could you please extend the license for me? Activation code: 9D31-3A20-FFB1-F104 Re: S32 Design Studio for ARM v2018.R1 license expired Hi,  Your S32DS license has been extended. Please activate S32DS again with your old code. 
View full article
学生向けエッジAIプロジェクト用プロトタイプリクエストFRDM-MCXN947およびFRDM-RW612 NXPコミュニティおよびFAEチームの皆さん、こんにちは。 私はMCXエコシステムを使った組み込みエッジAIとワイヤレスゲートウェイアーキテクチャに取り組んでいる学生開発者です。最近、macOSのMCUXpresso for VS CodeでFRDM-MCXA156とFRDM-MCXN236ボードのプロトタイピングを始めました。 この構成をマルチノードシステムに拡張するために、 FRDM-MCXN947およびFRDM-RW612ボードの評価を検討しています。 FRDM-MCXN947: デュアルコアCortex-M33アーキテクチャ、ハードウェアeIQ Neutron NPU、高速インターフェースを活用したエッジAI計算ノードを構築すること。 FRDM-RW612: Wi-Fi 6、Matter/Thread、BLEメッシュテレメトリを処理するトライラジオブリッジとして機能します。 私の個人アカウントではサポートCASEポータルで正式なチケットを作成できないため、NXPのチームメンバーや大学アウトリーチ担当者に、これら2つのターゲットのサンプル承認やプロモーションクーポンコードのご協力をお願いしたいと思います。 プロトタイプビルドが検証されたら、ファームウェアのソースコードとビルドドキュメントの全文をGitHubにオープンソースで公開し、プロジェクトの詳細なレビューも共有します。 お時間をいただき、また学生開発者へのご支援に感謝いたします! よろしくお願いいたします。 ヴァイバブ・L・K ボード設計 開発ボード FRDMトレーニング ハンズオン・トレーニング MCX N Re: Prototype Request FRDM-MCXN947 & FRDM-RW612 for Student Edge AI Project こんにちは、 @L_K_Vaibhav さん、 NXP製品にご関心いただきありがとうございます。 ご要望については、下記リンクの「お問い合わせ Me」欄の連絡先に連絡して、さらなる支援が得られるか確認してください。 NXP CZ 学生向け NXPカップに興味があるかもしれません。NXPカップ |NXP Semiconductors BR セレステ
View full article
IW612:ファームウェアに関する説明 IW612のBLE部分にいくつか問題が発生しています。次のようなエラーが発生します。 9月30日 14:27:11 device kern.err kernel: [103370.366384]Bluetooth: hci0: コントローラがコマンドを受け入れなくなりました: ncmd = 0 9月30日 14:27:11 device kern.err kernel: [103370.372705]Bluetooth: hci0: HCIハードウェアエラーイベントの注入 9月30日 14:27:32 device kern.err kernel: [103391.064915]Bluetooth: hci0: フレームの再構成に失敗しました (-84) 9月30日 14:27:34 device kern.err kernel: [103393.005935]Bluetooth: hci0: オペコード 0x0c03 が失敗しました: -110 私のプラットフォームはカーネル6.6.xでSTM32MP1、Murata 2ELモジュールを使用しています。NXPのHCIドライバーを使用しています。 以下のことが本当かどうか、誰か明確に教えてもらえますか? - github.com/nxp-imx/mwifiex のバージョンgithub.com/nxp-imx/imx-firmware と一致させる必要があります - キャリブレーションのバージョン (github.com/murata-wireless/nxp-linux-calibration)あまり重要ではありません - タグをカーネルバージョンとマッチさせる必要はないので、lf-6.6.52_2.2.0ブランチを使う必要がなく、新しいlf-6.18.37_2.1.0はカーネルと後方互換性があるはずです 新しいバージョンをテストして問題が解決するかどうかを確認する前に、この問題を解決しておきたいです。 Re: IW612: Firmware clarification こんにちは、 @allard_p - github.com/nxp-imx/mwifiex のバージョンgithub.com/nxp-imx/imx-firmware と一致させる必要があります ==>[NXP]: はい、マッチドドライバー(github.com/nxp-imx/mwifiex)の使用を強く推奨します。および FW (github.com/nxp-imx/imx-firmware)。 - キャリブレーションのバージョン (github.com/murata-wireless/nxp-linux-calibration)あまり重要ではありません ==>[NXP]: はい、現在のHCI誤差にはキャリブレーションはあまり影響しません。通常、RF性能、送信出力、規制動作に影響を与えます。 - タグをカーネルバージョンとマッチさせる必要はないので、lf-6.6.52_2.2.0ブランチを使う必要がなく、新しいlf-6.18.37_2.1.0はカーネルと後方互換性があるはずです ==>[NXP]:はい、私たちのドライバはあなたのもののような古いカーネル(6.6.x)と互換性があります。ただし、ドライバのソースコードとカーネルのクロスコンパイルツールチェーンをクロスコンパイルする必要があります。 ちなみに、NXPのHCIドライバーを使っているとおっしゃっていましたね。 弊社のbtnxpuartをご利用いただいていますか?それともLinuxのオープンソースUARTを使っていますか? Bluetooth: hci0: フレーム再構成失敗 (-84) エラーについては、Bluetooth に関連するデバイスツリーとボーレートを確認することをお勧めします。 よろしくお願いいたします。 Christine。 Re: IW612: Firmware clarification 私はbtnxpuart.cを使用しています。カーネル6.6.129に含まれるバージョン Re: IW612: Firmware clarification 更新:lf-6.18.37_2.1.0 にアップデートしました。まだ元の問題は見ていませんが、別の問題があります。Bluetoothコントローラーが時々LE広告レポートの送信を停止し、ホストが拡張パッシブスキャンを有効にしている状態です。停止は突然で、エラーは一切発生しない。 HCIログは持っていますが、公開フォーラムに添付したくないので、サポートCASEを作ってみます。 Re: IW612: Firmware clarification こんにちは、 @allard_p フィードバックありがとうございます。lf -6.18.37_2.1.0へのアップデートにより、当初の問題は既に解決済みとのことです。 新しいBLE広告の問題については、サポートチケットを通じて新しいCASEを作成してください。 https://support.nxp.com/s/?language=en_US そして、このThreadについては、これ以上問題がなければ、ひとまず閉じます。 でも、他に何か気になることがあれば、いつでも返信して構いません。 よろしくお願いいたします。 Christine。
View full article
回复:FRDM-A-S32K344 中的 Fls 驱动程序 大家好, 我正在研究 FRDM-A-S32K344。 我想开发Fls驱动程序。(我安装了S32DS 3.5版本和RTD 3.0.0) 我有以下适用于 Fls 的驱动程序。 图1 我还有另一台电脑,配置与S32DS和RTD相同。 下面这段代码片段包含 fls 驱动程序。我需要安装哪个RTD或软件包才能看到这个FLS驱动程序? 图2 图片 1 和图片 2 哪个是较旧的 RTD/Fls 驱动程序版本,哪个是较新的版本?它们之间有什么区别吗?请让我帮忙解答一下。
View full article
i.MX8MP USBホストロックアップ(-110)低速デバイスでの物理的な取り外し ターゲット設定: SoC:NXP i.MX8MP ポート構成:USBポート合計4個(USB 2.0×2、USB 3.0×2) OS : yocto scarthgap 6.6.52 トポロジー: 私たちの設計では、i.MX8MP SoCは内部のUSB2(本設計ではUSB1回線はotgに接続)コントローラーをUSB 3.0モードで使い、アップストリーム接続を直接オンボードのFresco Logic FL5500-2F0ハブに接続しています。ハブはこの接続を下流の4つの物理ポートに分配します。2つのポートはUSB 3.0のフル機能に対応するように配線されており、残りの2つのポートはUSB 2.0のみに対応するように配線されています。 i.MX8MP(SoCコントローラー「USB2」ライン、USB 3.0モードで動作) - > USB 3.0ハブ(Fresco Logic FL5500-2F0、USB 3.0ポート2つとUSB 2.0ポートを露出)   問題の説明: i.MX8MPで致命的なxHCIコマンドリングのロックアップが発生しており、ハードウェアが再接続時にxchiドライバから発行されたデータコマンドに応答しなくなります。クラッシュ条件は非常に限定的で、単一のハードウェア3.0 USBポートでのみ発生し、他の3.0および2.0ポートではこの問題は発生しません。 ロックアップは、低速(LS)デバイスが下流の高速ハブから物理的に切断されている間に、他の3つのポートのいずれかに少なくとも1台の低速デバイスがバックグラウンドでアクティブに接続されている場合にのみ発生します(問題のあるポートに再接続する前にその低速デバイスを抜いておけば問題は発生しません)。 主な行動的孤立: ポートアイソレーション:同じマルチデバイスのアンプラグテストをもう一方のUSB 3.0ポートやUSB 2.0ポートで行うと、きれいに切断されます。クラッシュはUSB 3.0ポート1つに限定されています。スピードアイソレーション:バックグラウンドデバイスは低速でなければなりません。バックグラウンドで高速デバイス(USBストレージドライブなど)がどれだけあっても関係ありません。他にLSデバイスがなければ、切断は問題なく処理されます。 注: この問題を解決するために、物理的に抜き差しする前に、以下のコマンドを使用して不良の USB ポートの認証を解除しました。 echo 0 > /sys/bus/usb/devices/1-1.1/authorized USBドライバーのバインドを解除してバインドすると動作します。 使用港 ハブ上のバックグラウンドデバイス デバイスのプラグが抜かれています 切断方法 ホストコントローラの結果 USB 3.0(良好なポート) 低速 低速 物理的に引っ張る クリーンな分解 USB 2.0ポート 低速 低速 物理的に引っ張る クリーンな分解 USB 3.0(ポートの不具合) 高速回線のみ 低速 物理的に引っ張る クリーンな分解 USB 3.0(ポートの不具合) なし 低速 物理的に引っ張る クリーンな分解 USB 3.0(ポートの不具合) 低速 低速 ソフトウェア(認可=0) クリーンな分解 USB 3.0(ポートの不具合) 低速 低速 物理的に引っ張る コマンドリングタイムアウト (-110)、ホストがクラッシュしました ログ、 root@lec-imx8mp:~# lsusb バス 001 デバイス 001: ID 1d6b:0002 Linux Foundation 2.0 ルートハブ バス001 デバイス002: ID 1d5c:5510 Fresco Logic Frescologic USB2.0 HUB バス001 デバイス004: ID 413c:301a Dell Computer Corp. Dell MS116 光学式マウス バス001 デバイス005: ID 413c:2113 Dell Computer Corp. KB216 有線キーボード バス 002 デバイス 001: ID 1d6b:0003 Linux Foundation 3.0 ルートハブ バス002 デバイス002: ID 1d5c:5500 Fresco Logic Frescologic USB3.1Gen2 HUB root@lec-imx8mp:~# [ 39.686850] usb 1-1.2:USB接続切断、デバイス番号5 [ 41.191295] usb 1-1.1: xhci-hcd を使用する新しい低速 USB デバイス番号 6 root@lec-imx8mp:~# lsusb バス 001 デバイス 001: ID 1d6b:0002 Linux Foundation 2.0 ルートハブ [ 51.427313] XHCI-HCD、XHCI-HCD.1.オート:xHCIホストがエンドポイント停止コマンドに応答しません [ 51.443403] XHCi-HCD、XHCI-HCD.1.auto:xHCIホストコントローラーが応答しない、死んだとみなす [ 51.451350] XHCI-HCD XHCI-HCD.1.auto:HCが亡くなった。片付け中 [ 51.457035] usb 1-1-port1: usb_device を割り当てできませんでした [ 51.462339] usb 1-1: USB切断、デバイス番号2 バス 001 デバイス 002: ID 1d5c:5510 [ 51.467338] usb 1-1.4:USB接続切断、デバイス番号4 Fresco Logic Frescologic USB2.0 H[ 51.475602] usb 2-1: USB切断、デバイス番号2 バス001 デバイス004: ID 413c:301a Dell Computer Corp. Dell MS116 光学式マウス バス 002 デバイス 001: ID 1d6b:0003 Linux Foundation 3.0 ルートハブ バス002 デバイス002: ID 1d5c:5500 Fresco Logic Frescologic USB3.1Gen2 HUB root@lec-imx8mp:~# lsusb バス 001 デバイス 001: ID 1d6b:0002 Linux Foundation 2.0 ルートハブ バス 002 デバイス 001: ID 1d6b:0003 Linux Foundation 3.0 ルートハブ   i.MX 8M | i.MX 8M Mini | i.MX 8M Nano Linux Yocto Project Re: i.MX8MP USB Host Lockup (-110) on Low Speed device Physical Unplug この問題に関するご意見や解決策があれば、大変助かります。 ありがとう Re: i.MX8MP USB Host Lockup (-110) on Low Speed device Physical Unplug こんにちは、 この2つのクワークでデバイスツリーを試してみてはどうでしょうか? /* USB 2.0パイプラインのパークモード機能を無効化 */ SNP、パークモード無効化、HS個性; /* 攻撃的なリンクスリープを防ぐためにこれも強く推奨されます */ SNP、dis_u2_susphy_quirk; これにより、コントローラのGUCTL1レジスタ内のビット16(PARKMODE_DISABLE_HS)が変更されます。高速バス回線専用のプリフェッチスケジューラー機構を停止し、ハブの背後にあるデバイスからの操作を処理する際にコントローラが反応しない罠に陥るのを防ぎます。 お役に立てば幸いです。 よろしくお願いいたします。 アルド。
View full article
ARM v2018用のS32 Design Studio。R1ライセンスが切れました こんにちは、 私の S32 Design Studio for ARM v2018について。R1 ライセンスは期限切れです。 免許を延長してもらえますか? アクティベーションコード:9D31-3A20-FFB1-F104 Re: S32 Design Studio for ARM v2018.R1 license expired こんにちは、 お客様のS32DSライセンスが延長されました。以前のコードを使用して、S32DSを再度有効化してください。
View full article
Prototype Request FRDM-MCXN947 & FRDM-RW612 for Student Edge AI Project Hi NXP Community & FAE Team, I am a student developer working on an embedded Edge AI and wireless gateway architecture using the MCX ecosystem. I recently started prototyping with the FRDM-MCXA156 and FRDM-MCXN236 boards in MCUXpresso for VS Code on macOS. To expand this setup into a multi-node system, I am looking to evaluate the FRDM-MCXN947 and FRDM-RW612boards: FRDM-MCXN947: To build an Edge AI compute node leveraging its dual-core Cortex-M33 architecture, hardware eIQ Neutron NPU, and high-speed interfaces. FRDM-RW612: To serve as a tri-radio wireless bridge handling Wi-Fi 6, Matter/Thread, and BLE mesh telemetry. Since my personal account cannot open a formal ticket on the Support Case Portal, I wanted to ask if an NXP team member or University Outreach representative could assist me with sample approval or promotional coupon codes for these two targets. Once the prototype build is validated, I will be publishing the full firmware source code and build documentation open-source on GitHub and will also share a full review of the project. Thank you for your time and for supporting student developers! Best regards, Vaibhav L K Board Design Development Board FRDM-Training Hands-On Training MCXN Re: Prototype Request FRDM-MCXN947 & FRDM-RW612 for Student Edge AI Project Hello @L_K_Vaibhav , Thank you for your interest in NXP products. Regarding your request, you may try reaching out to the contact under “Contact Me” at the link below to see if they can provide further assistance. NXP CZ for Students Perhaps you might be interested in NXP CUP. NXP Cup | NXP Semiconductors BR Celeste
View full article
S32G2 启用多核应用程序 各位恩智浦的同事们,大家好: 我们准备在 S32G274A 芯片中使用多核来运行程序,使用 A53 运行 Linux,使用 M7 运行 LLCE_CAN。 根据 5.2,我们参考了“使用 S32G2 平台软件集成在 S32G2 上启用多核应用程序”。配置引导加载程序,安装推荐的软件包,并按照步骤进行配置。 zhipeng_7-1786181958976.pngzhipeng_7-1786181958976.pngzhipeng_7-1786181958976.pngzhipeng_7-1786181958976.png 5.3 中有错误。在编译过程中构建引导加载程序。 launch.bat 文件已被编辑。 zhipeng_0-1786182860528.pngzhipeng_0-1786182860528.pngzhipeng_0-1786182860528.pngzhipeng_0-1786182860528.png 运行 launch.bat 后发生错误。 zhipeng_0-1786180508617.pngzhipeng_0-1786180508617.pngzhipeng_0-1786180508617.pngzhipeng_0-1786180508617.png 在注释掉相关代码之后。 zhipeng_5-1786181360466.pngzhipeng_5-1786181360466.pngzhipeng_5-1786181360466.pngzhipeng_5-1786181360466.png zhipeng_2-1786180921774.pngzhipeng_2-1786180921774.pngzhipeng_2-1786180921774.pngzhipeng_2-1786180921774.png 我找到了 CryptoDal.h安装目录中的文件。 zhipeng_4-1786181305215.pngzhipeng_4-1786181305215.pngzhipeng_4-1786181305215.pngzhipeng_4-1786181305215.png zhipeng_6-1786181450684.pngzhipeng_6-1786181450684.pngzhipeng_6-1786181450684.pngzhipeng_6-1786181450684.png 哪里可能会出错? 谢谢。 Re: S32G2 Enabling Multicore Application 嗨,志鹏 对于您的问题,如果添加以下内容,是否会出现错误?注释掉这段代码不会导致错误吗? Joey_z_0-1786328574726.pngJoey_z_0-1786328574726.pngJoey_z_0-1786328574726.pngJoey_z_0-1786328574726.png BR 乔伊 Re: S32G2 Enabling Multicore Application 嗨, @Joey_z 是的,添加后,第三张图片上会显示“未声明”。 注释掉该行后,第五张图片将显示“没有该文件或目录”。 zhipeng_1-1786347067301.pngzhipeng_1-1786347067301.pngzhipeng_1-1786347067301.pngzhipeng_1-1786347067301.png “CryptoDal.h”位于 D:\NXP\Integration_Reference_Examples_S32G2_2022_06\code\framework\realtime\bsw\dal\cryptodal\generic\include “Hse_Ip.h”位于 D:\NXP\SW32G_RTD_4.4_3.0.2_HF01\eclipse\plugins\Crypto_TS_T40D11M30I2R0\include 目录下。 我在各自的文件夹中找到了这两个文件,并且 launch.bat 中也写入了文件路径。 目前的问题似乎是编译过程中没有包含插件路径。 BR Re: S32G2 Enabling Multicore Application 嗨,志鹏 配置中是否启用了安全启动?尝试启用安全启动,看看问题是否会消失。 Joey_z_2-1786353784256.pngJoey_z_2-1786353784256.pngJoey_z_2-1786353784256.pngJoey_z_2-1786353784256.png BR 乔伊 回复: S32G2 Enabling Multicore Application 嗨,志鹏 谢谢你提供的信息。 您能提供更多信息吗? 1.您是否只在A核上启动ATF和uboot?A核的UART有任何输出吗? 2.M核心功能是什么?是关于UART/CAN功能吗? BR 乔伊 回复: S32G2 Enabling Multicore Application 嗨, @Joey_z 之前的引导加载程序编译成功。现在,我已经将镜像写入 或非 闪存,启动后,UART 上没有任何输出。 我指的是 AN13750。以下是我的操作步骤: 我按照“S32G2_LinuxBSP_42.0_User_Manual.pdf”中的说明操作,并在 Ubuntu 20 中安装了 u-boot bsp42.0-2022.04 和 ATF bsp42.0-2.10。 我修改了 s32_mmc.c以及根据 0001-fip-align-and-mmc-init.patch 的 s32_common.mk。 zhipeng_0-1787646642108.pngzhipeng_0-1787646642108.png志鹏_0-1787646642108.png zhipeng_1-1787646670172.pngzhipeng_1-1787646670172.png志鹏_1-1787646670172.png zhipeng_2-1787646683855.pngzhipeng_2-1787646683855.png志鹏_2-1787646683855.png 我编译了 u-boot 和 ATF。 make CROSS_COMPILE=/opt/S32G/arm-gnu-toolchain-11.3.rel1-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu- ARCH=aarch64 PLAT=s32g274ardb2 BL33=../u-boot/u-boot-nodtb.bin Image Layout DCD: Offset: 0x200 Size: 0x1c IVT: Offset: 0x1000 Size: 0x100 AppBootCode Header: Offset: 0x1200 Size: 0x40 Application: Offset: 0x1240 Size: 0x33e00 Boot Core: A53_0 IVT Location: SD/eMMC Load address: 0x342f8f00 Entry point: 0x34302000 我将 fip.s32 写入了 SD 卡。更换 fip 后,SD 卡仍然能够启动,并且 u-boot 的日期发生了变化。 U-Boot 2022.04-00213-g5a6f62071f (Aug 24 2026 - 10:35:21 +0800) 配置引导加载程序。 zhipeng_3-1787647428751.pngzhipeng_3-1787647428751.png志鹏_3-1787647428751.png zhipeng_4-1787647490093.pngzhipeng_4-1787647490093.png志鹏_4-1787647490093.png zhipeng_5-1787647533346.pngzhipeng_5-1787647533346.png志鹏_5-1787647533346.png zhipeng_6-1787647547310.pngzhipeng_6-1787647547310.png志鹏_6-1787647547310.png 生成 S32G 启动映像 zhipeng_7-1787647657415.pngzhipeng_7-1787647657415.png志鹏_7-1787647657415.png 选择 bt_m7_blob.bin 并将其写入地址 0x0。 选择 fip.bin 并将其写入地址 0x100000。 选择 S32G274A_M7.bin 并将其写入地址 0x200000。 zhipeng_8-1787647865193.pngzhipeng_8-1787647865193.png志鹏_8-1787647865193.png 现在UART和CAN都没有响应了。请帮我分析一下情况。 谢谢。 回复: S32G2 Enabling Multicore Application 嗨, @Joey_z 感谢您的回复。 1. 是的,A 核心上只启动了 ATF 和 u-boot。UART接口没有任何输出。 2. M 内核运行 LLCE_CAN 和 Lpspi 程序,集成了“Can_Llce_DS_Loopback_S32G274A_M7”和“Lpspi_Ip_Transfer_S32G274A_M7”例程。它首先使用 SPI 通信,然后运行 LLCE_CAN。 我想补充一些信息: 1.整个过程按照 AN13750 进行,只有一些不同之处:我使用了 BSP42 和 S32DS3.5 版本;我用 LLCE_CAN 替换了 IPCF 例程,并且只配置了 M7_0。 2. 我使用 Yocto 编译了 BSP42,并生成了 .sdcard。导入SD卡后,即可启动Linux系统。 3. 我按照“AN13750” 4. 为 Cortex-A53 内核准备镜像 部分编译了 BSP42 的 u-boot 和 ATF。将 .sdcard 和 fip.s32 重新导入 SD 卡后,Linux 仍然可以在 SD 模式下启动。但是,当将引导加载程序和 fip.bin 导入到 norflash 时,没有获得任何输出。 4. 我在 norflash 中单独烧录了 M7 内核的 UART 例程,Linux 可以启动并输出。这证明燃烧工具和诺弗拉什(Norflash)都是正常的。 5. 我将 LLCE_CAN 程序单独烧录到 norflash 中。程序没有运行,也没有CAN输出。 6.我尝试配置 EB 引导加载程序以单独启动 A53,但重新烧录 norflash 后仍然没有任何输出。 谢谢。 回复: S32G2 Enabling Multicore Application 嗨,志鹏 1.我了解到您的 LLCE_CAN 运行在 M 内核上。请独立测试该程序 M 核心的引导加载程序启动情况。启动过程中,不要加载 A 核心映像。 2. 在您的测试中,引导加载程序可以启动 M7 的 UART 程序,但无法启动 LLCE_CAN 程序吗? 3. 你有没有试过只使用引导加载程序启动 A53? 我已在系统中用中文为此问题创建了一个新案例,案例编号为:01000969。这将有助于沟通。 BR 乔伊 回复: S32G2 Enabling Multicore Application 嗨,志鹏 感谢您与我们联系。 我会在内部案件中支持你。 BR 乔伊 回复: S32G2 Enabling Multicore Application 你好, @Joey_z 延误时间相当长,而且之前的案件已经结案了。 我们最近购买了劳特巴赫调试器。 我使用 Trace32 运行了 Bootloader.elf。如图所示,在 Hse_Ip_GetHseStatus 函数中,Mu_Ip_GetFlagStatusRegister 函数的返回值 u32Status 为 0,而该函数的返回值也为 0。程序卡在了 while 循环中。 我尝试添加 Hse_Ip_Init 函数,但没有成功。 我捕获了 Hse_Ip_apMuBase 数据。 看来是英国健康与安全执行局(HSE)的问题。你能帮我分析一下吗? 还有其他地方需要检测吗? 顺祝商祺!
View full article
迁移到新电脑后,S32DS 3.5 许可证激活失败。   您好,NXP技术支持, 我最近换了一台新电脑,现在想在 Windows 系统上激活 S32 平台 v3.5 的 S32 设计工作室。 我从我的NXP账户中获取了激活码,但激活失败,并出现以下错误: “指定的数量超过了允许的最大数量(0)。(FNP 错误 0)。 IDE 目前显示“缺少许可证”。 请您帮忙查一下我的驾照。 请问如何才能在新电脑上重新激活 S32DS 3.5?如有必要,请RESET之前的激活状态或恢复可用的激活状态。 如有需要,请告知是否需要提供其他信息。我可以私下提供我的驾照详情。 谢谢! 激活 | 安装 | 许可 | 安装程序下载 Re: S32DS 3.5 license activation failed after moving to a new PC 你好, 可用许可证数量已增加。
View full article
S32G2 Enabling Multicore Application Hi, nxp fellows: We are preparing to use multi-core to run programs in the S32G274A chip, using A53 to run Linux and M7 to run LLCE_CAN. We referred to "Enabling Multicore Application on S32G2 using S32G2 Platform Software Integration", according to 5.2. Configure the bootloader, installed the recommended software packages, and configured them following the steps. zhipeng_7-1786181958976.pngzhipeng_7-1786181958976.pngzhipeng_7-1786181958976.pngzhipeng_7-1786181958976.png There is an error in 5.3. Build The Bootloader during compilation. The launch.bat file was edited. zhipeng_0-1786182860528.pngzhipeng_0-1786182860528.pngzhipeng_0-1786182860528.pngzhipeng_0-1786182860528.png An error occurred after running launch.bat.  zhipeng_0-1786180508617.pngzhipeng_0-1786180508617.pngzhipeng_0-1786180508617.pngzhipeng_0-1786180508617.png After commenting out the relevant code. zhipeng_5-1786181360466.pngzhipeng_5-1786181360466.pngzhipeng_5-1786181360466.pngzhipeng_5-1786181360466.png zhipeng_2-1786180921774.pngzhipeng_2-1786180921774.pngzhipeng_2-1786180921774.pngzhipeng_2-1786180921774.png I found the CryptoDal.h file in the installation directory. zhipeng_4-1786181305215.pngzhipeng_4-1786181305215.pngzhipeng_4-1786181305215.pngzhipeng_4-1786181305215.png zhipeng_6-1786181450684.pngzhipeng_6-1786181450684.pngzhipeng_6-1786181450684.pngzhipeng_6-1786181450684.png Where could there be any mistakes? Thanks. Re: S32G2 Enabling Multicore Application Hi,zhipeng Is Secure Boot enabled in the configuration? Try to enable the Secure boot, check if the issue will disappear. Joey_z_2-1786353784256.pngJoey_z_2-1786353784256.pngJoey_z_2-1786353784256.pngJoey_z_2-1786353784256.png BR Joey Re: S32G2 Enabling Multicore Application Hi, @Joey_z  Yes, after adding, it will show "undeclared" on the third image. Commenting out will show "No such file or directory", on the fifth image. zhipeng_1-1786347067301.pngzhipeng_1-1786347067301.pngzhipeng_1-1786347067301.pngzhipeng_1-1786347067301.png "CryptoDal.h" is located in D:\NXP\Integration_Reference_Examples_S32G2_2022_06\code\framework\realtime\bsw\dal\cryptodal\generic\include "Hse_Ip.h" is located in D:\NXP\SW32G_RTD_4.4_3.0.2_HF01\eclipse\plugins\Crypto_TS_T40D11M30I2R0\include I have found both files in their respective folders, and the file paths are also written in launch.bat. The current problem feels like the plugin path was not included during the compilation process. BR Re: S32G2 Enabling Multicore Application Hi,zhipeng For your issue, will there be an error if the following contents are added? Is it commenting out won't cause an error? Joey_z_0-1786328574726.pngJoey_z_0-1786328574726.pngJoey_z_0-1786328574726.pngJoey_z_0-1786328574726.png BR Joey 回复: S32G2 Enabling Multicore Application Hi,ZhiPeng Thank you for your information. Could you share more information with me? 1.Do you only boot ATF and uboot on A core? Have any output on the UART of A core? 2.What is the M core function? is it about the UART/CAN function? BR Joey 回复: S32G2 Enabling Multicore Application Hi, @Joey_z  The previous bootloader compilation was successful. Now, I have written the image into the NOR flash and after booting, there is no output on the UART. I referred to AN13750. Here are my operation steps: I followed the "S32G2_LinuxBSP_42.0_User_Manual.pdf", and installed u-boot bsp42.0-2022.04 and ATF bsp42.0-2.10 in Ubuntu 20. I modified s32_mmc.c and s32_common.mk according to 0001-fip-align-and-mmc-init.patch. zhipeng_0-1787646642108.pngzhipeng_0-1787646642108.pngzhipeng_0-1787646642108.png zhipeng_1-1787646670172.pngzhipeng_1-1787646670172.pngzhipeng_1-1787646670172.png zhipeng_2-1787646683855.pngzhipeng_2-1787646683855.pngzhipeng_2-1787646683855.png I compiled u-boot and ATF. make CROSS_COMPILE=/opt/S32G/arm-gnu-toolchain-11.3.rel1-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu- ARCH=aarch64 PLAT=s32g274ardb2 BL33=../u-boot/u-boot-nodtb.bin Image Layout DCD: Offset: 0x200 Size: 0x1c IVT: Offset: 0x1000 Size: 0x100 AppBootCode Header: Offset: 0x1200 Size: 0x40 Application: Offset: 0x1240 Size: 0x33e00 Boot Core: A53_0 IVT Location: SD/eMMC Load address: 0x342f8f00 Entry point: 0x34302000 I wrote the fip.s32 onto the SD card. After replacing the fip, the SD card was still able to boot, and the date of the u-boot changed. U-Boot 2022.04-00213-g5a6f62071f (Aug 24 2026 - 10:35:21 +0800) Configure the bootloader. zhipeng_3-1787647428751.pngzhipeng_3-1787647428751.pngzhipeng_3-1787647428751.png zhipeng_4-1787647490093.pngzhipeng_4-1787647490093.pngzhipeng_4-1787647490093.png zhipeng_5-1787647533346.pngzhipeng_5-1787647533346.pngzhipeng_5-1787647533346.png zhipeng_6-1787647547310.pngzhipeng_6-1787647547310.pngzhipeng_6-1787647547310.png Generate S32G Boot Image zhipeng_7-1787647657415.pngzhipeng_7-1787647657415.pngzhipeng_7-1787647657415.png select the bt_m7_blob.bin to write it to the address 0x0. select the fip.bin to write it to the address 0x100000. select theS32G274A_M7.bin to write it to the address 0x200000. zhipeng_8-1787647865193.pngzhipeng_8-1787647865193.pngzhipeng_8-1787647865193.png Now neither the UART nor the CAN is responding. Please help me analyze the situation. Thanks. 回复: S32G2 Enabling Multicore Application Hi, @Joey_z  Thanks for your reply. 1. Yes, only ATF and u-boot were booted on the A core. The UART did not have any output. 2. The M core ran the LLCE_CAN and Lpspi programs, integrating the "Can_Llce_DS_Loopback_S32G274A_M7" and "Lpspi_Ip_Transfer_S32G274A_M7" routines. It first used SPI communication and then ran LLCE_CAN. I would like to add some more information: 1. The entire process was carried out according to AN13750, with only a few differences: I used BSP42 and S32DS3.5 versions; I replaced the IPCF routines with LLCE_CAN and only configured M7_0. 2. I compiled BSP42 using Yocto and generated the.sdcard. After importing the SD card, Linux could be started. 3. I compiled the u-boot and ATF of BSP42 according to the "AN13750, 4. Prepare images for Cortex-A53 cores" section. After re-importing the.sdcard and fip.s32 into the SD card, Linux could still be started in SD mode. However, when importing the bootloader and fip.bin into the norflash, no output was obtained. 4. I burned a UART routine for the M7 core separately in the norflash, and Linux could be started and outputted. This proved that the burning tool and norflash were normal. 5. I burned the LLCE_CAN program separately in the norflash. The program did not run, and there was no CAN output. 6. I attempted to configure the EB bootloader to start A53 separately, but re-burning the norflash still did not result in any output. Thanks. 回复: S32G2 Enabling Multicore Application Hi,zhipeng 1. I understand that your LLCE_CAN is running on the M core. Please test the bootloader's startup of this program M core independently. During the startup process, do not load the A core Image. 2. In your testing, the bootloader can start the UART program of M7, but can it cannot start the LLCE_CAN? 3. Have you tried using the bootloader to only boot the A53?  I have created a new case for this issue in the system in Chinese, the case number is the: 01000969. This will facilitate communication. BR Joey 回复: S32G2 Enabling Multicore Application Hi,zhipeng Thank you for contacting us. I will support you in the internal case. BR Joey 回复: S32G2 Enabling Multicore Application Hello, @Joey_z  The delay was quite long and the previous case was closed. We recently purchased the Lauterbach debugger. I ran Bootloader.elf using Trace32. As shown in the picture, in the Hse_Ip_GetHseStatus function, the return value u32Status of the Mu_Ip_GetFlagStatusRegister function is 0, and the return value of the function is 0. The program gets stuck in the while loop. I tried adding the Hse_Ip_Init function, but it didn't work. I captured the Hse_Ip_apMuBase data. It seems to be a problem with the HSE. Can you help me analyze it? Are there any other places that need to be tested? Best regards.
View full article
S32DS 3.5のライセンス認証が、新しいPCに移行した後に失敗しました。   こんにちは、NXPサポートの皆さん、 最近新しいパソコンに移り、WindowsでS32 Design Studio for S32 プラットフォーム v3.5を起動しようとしています。 NXPアカウントからアクティベーションコードを取得しましたが、アクティベーションが以下のエラーで失敗します。 指定された数量は、許可されている最大数量(0)を超えています。(FNPエラー0) 現在、IDEには「ライセンス不足」と表示されています。 免許証を確認してもらえますか? 権利を取得し、新しいコンピューターでS32DS 3.5を再アクティベートするのを手伝ってください。必要に応じて、以前の認証をリセットするか、利用可能な認証を復元してください。 追加情報が必要な場合はお知らせください。ライセンスの詳細はプライベートで提供できます。 よろしくお願いします。 アクティベーション | インストール | ライセンス | インストーラーのダウンロード Re: S32DS 3.5 license activation failed after moving to a new PC こんにちは、 利用可能なライセンス数が増加しました。
View full article
デザイナースタジオのダウンロード Designer Studioへのリンクはすべて、デバッガーのインストールファイルのみをダウンロードします。 Re: designer studio download こんにちは、 ご報告ありがとうございます。S32 Design Studio IDEのダウンロードは、 S32 Design Studio for S32 プラットフォームのページから入手可能です。ダウンロードの中から、S32 Design Studio – Windows/Linuxを選択してください。デバッガーインストーラーのみを提供する別のS32 Design Studio Debuggerダウンロードは選択しないでください。ダウンロードにアクセスするにはサインインが必要な場合があります。 よろしくお願いいたします。 ピーター
View full article
frdm-mcxn947 baremetal ctimer0 configuration error resulting in debug failure Having gotten my hands on this board I decided to try to work through a small project from scratch using the manuals (and ultimately ai when I've become stuck, albeit with no luck in finding a solution as yet.)  So, the problem is this. I seem to be as far as I can tell, doing all the correct steps with the correct addresses and the correct field values to initialise and start ctimer0 as desired, but I'm crashing and getting errors when I attempt to run. I've made a number of changes and several of those changes resulted in the same outcome on different lines of the code but it's pretty much isolated to the configuration of ctimer0. I'm just not sure what I'm missing. I'm getting this error when it fails. 15: Target error from Register access 15: Target error from Register access Wire ACK Fault in DAP access Debugging context: pushInterrupt LinkServer Debug I'll attach both the stripped down version and the full version (with notes) of the code below.  Clock|Timers Development Board MCXN Re: frdm-mcxn947 baremetal ctimer0 configuration error resulting in debug failure Hello If you are developing from scratch specially the CTIMER functions this post will help you with the sequences to activate it Developing Code for MCXN Family from Scratch, and help you with Initialize the NVIC since I see that NVIC enable functions are commented in your code. Also, the SDK for the FRDM-MCXN947 have multiple examples for using the CTIMER, including the interrupt example that you can take as a base and modify. Available in Dashboard | MCUXpresso SDK Builder Best Regards Re: frdm-mcxn947 baremetal ctimer0 configuration error resulting in debug failure Apologies for the delay in my response I was a little ill. Thank you, I'm going to check it out again this weekend and hopefully I'll get it going. 
View full article
i.MX8ULP LPADC比較機能 こんにちは、 私はM33コアのi.MX8ULP ADCをコンパレータモードで使おうとしています。具体的には、変換値が閾値を下回った場合にイベントを処理する割り込みを出すようにADCを設定したいです。 参考マニュアルによると、これは可能なはずです: - ADCをFIFOウォーターマーク1に設定し、データがあれば割り込みをトリガーする(この部分は機能します。下の例では割り込みコードを削除してコードをシンプルにしています) - 比較関数を「真になるまで比較を繰り返す」で設定し、CVH/CVLを適切に設定すると、トリガーはADCを継続的にサンプリングし、適切な値になったらデータを上昇させます。 残念ながら、比較値を全く機能させることができませんでした。マニュアルには、CVL/CVHに応じてさまざまな操作が可能であると記載されていますが、ADC1 / コマンド 1 / トリガー 1 を使用しても、どれも機能しませんでした。 実験的に、私は以下のことを確認しました。 - CVL < CVH (マニュアルでは範囲外の場合に真と記載されています。例:val < CVL || val > CVH): 値が常に返されます(範囲内であっても)。 - CVH max、CVL 設定(CVL 未満であるべき):最大値は指定されていないため確信が持てませんでした。CVH を0xfffに設定するか、0x1000 値は CVL に関係なく必ず返されます。CVH を 0xffff に設定すると値が返りません - CVL が最小値、CVH が設定されています (CVH より大きい必要があります): 値は常に返されます - CVL > CVH (範囲内である必要があります。例:CVH < val < CVL): 値は返されません 私が使用したコードは以下のとおりです。 lpadc_config_t adcConfig; LPADC_GetDefaultConfig(&adcConfig); adcConfig.FIFOWatermark = 0; adcConfig.enableAnalogPreliminary = true; LPADC_Init(ADC1, &adcConfig); lpadc_conv_trigger_config_t triggerConfig; LPADC_GetDefaultConvTriggerConfig(&triggerConfig); triggerConfig.targetCommandId = 1; triggerConfig.enableHardwareTrigger = true; LPADC_SetConvTriggerConfig(ADC1, 0, &triggerConfig); lpadc_conv_command_config_t commandConfig; LPADC_GetDefaultConvCommandConfig(&commandConfig); commandConfig.channelNumber = 5; commandConfig.sampleChannelMode = kLPADC_SampleChannelSingleEndSideB; commandConfig.sampleScaleMode = kLPADC_SampleFullScale; commandConfig.hardwareAverageMode = kLPADC_HardwareAverageCount2; commandConfig.hardwareCompareMode = kLPADC_HardwareCompareRepeatUntilTrue; commandConfig.hardwareCompareValueHigh = v_high; commandConfig.hardwareCompareValueLow = v_low; LPADC_SetConvCommandConfig(ADC1, 1, &commandConfig); SDK_DelayAtLeastUs(1000, SDK_DEVICE_MAXIMUM_CPU_CLOCK_FREQUENCY); LPADC_DoSoftwareTrigger(ADC1, 1 << 0); // this is LPADC_GetConvResultBlocking() with a timeout uint32_t tmp, cnt = 0; tmp = ((ADC_Type *)ADC1)->RESFIFO; while (ADC_RESFIFO_VALID_MASK != (tmp & ADC_RESFIFO_VALID_MASK) && cnt < 100000) { tmp = ((ADC_Type *)ADC1)->RESFIFO; cnt++; } if (ADC_RESFIFO_VALID_MASK != (tmp & ADC_RESFIFO_VALID_MASK)) { PRINTF("ADC timeout\r\n"); } else { tmp &= ADC_RESFIFO_D_MASK; tmp >>= 3; PRINTF("got %d (%#x) in %d\r\n", tmp, tmp, cnt); } レジスタもダンプしましたが、「trueまで繰り返し比較する」部分は、STATレジスタがトリガー/コマンドをまだ実行中とみなしているので機能すると確信しています。「Store on true」設定でも同じ結果が得られました(コマンドを実行しながらCVをいじって値と比較すると変な結果が出ますが、条件がtrueになるのを待っていたトリガーは正しく返されます。実行中にCVを変更するべきではないはずなので、この部分は無視しましょう) 変換待ち中のレジスタはこちらで、CVL = 0xffe、CVH = 0x1(したがって、その間の値が返されるはずです): ADC1 0x280a2000 VERID: 0x200101a PARAM: 0xf041004 CTRL: 0x1 ^ ADCEN STAT: 0x1000800 ^ CMDACT 1, ADC_ACTIVE IE: 0 DE: 0 CFG: 0x10800000 ^ PWREN, PUDLY = 0x80 PAUSE: 0 TSTAT: 0 TCTRL[0]: 0x1000001 ^ TCMD = CMD1, HTEN (no difference when disabled) FCTRL: 0 CMD[0].CMDL: 0x2025 ^ CSCALE full-scale, ABSEL = B, CH5 CMD[0].CMDH: 0x1003 ^ AVGS = 2 conversions, CMPEN = repeat until true CV[0]: 0x10ffe ^ compare value, CVH=1 and CVL=0xffe 持ち方が間違っているのでしょうか? ありがとうございます ドミニク Re: i.MX8ULP LPADC compare function hardwardCompareValueHigh/Lowは生のCVレジスタ値を保存しますが、それらをRESFIFOのDフィールド形式にアライメントする必要があります。内部データベースを確認しましたが、既存のフィールドシフトマクロが変更されるか、ドライバが自動的にこの変換を適用するというSDKsのロードマップ項目は見つかりませんでした。 Re: i.MX8ULP LPADC compare function ありがとう、 @joanxie 比較値のシフトがうまくいっていることを確認できます!(ADCのサンプリングが速すぎるので、convPauseDelay = 1023でも遅くする必要がありますが、それは自分で解決できると思います) シフトは、ユーザーが認識しておくべきものですか、それとも、たとえば ADC_CV_CVL_SHIFT / ADC_CV_CVH_SHIFT マクロによって処理されますか。ハードウェアのCompareValueHigh/Low設定がうまくいくようにアップデートMIMX8UD5_cm33? https://github.com/nxp-mcuxpresso/mcuxsdk-examplesにはサンプルが全くありません。ですので、今後この点を明確にするために何か(もし何か)更新される予定があるのか(fsl_lpadc.hのコメントのいずれか)を確認したいですハードウェアCompareValueHighやデバイスマクロを説明して動作させる方法)――もしマクロが更新されるなら、SDKを更新する際には注意が必要なので、事前に計画を立てておくと便利です よろしくお願い申し上げます。 Re: i.MX8ULP LPADC compare function 表725を参照してください。リファレンスマニュアルのデータ結果レジスタフォーマット説明、 データは D[14:3] です。比較値については、3 ビットシフトする必要があると思います。 commandConfig.hardwareCompareValueHigh = v_high << 3; //CVH=0x8 commandConfig.hardwareCompareValueLow = v_low << 3;//CVL=0x7ff0 Re: i.MX8ULP LPADC compare function わかりました。コードで対応します。ご確認いただきありがとうございます。
View full article
frdm-mcxn947 ベアメタル ctimer0 設定エラーによりデバッグが失敗しました このボードを手に入れてから、マニュアルを使って(そして最終的にはAIも使って)小さなプロジェクトを一から始めてみることにしました。まだ解決策は見つかっていませんが。 So、問題はこうです。私の知る限り、正しいステップ、正しいアドレス、正しいフィールド値でctimer0を初期化・起動できるようにしているのですが、実行しようとするとクラッシュしエラーが出ます。いくつかの変更を加えましたが、そのうちのいくつかはコードの異なる行で同じ結果をもたらしました。しかし、問題はほぼctimer0の設定に限定されています。 何が足りないのか、よくわからないんです。失敗すると、このエラーが表示されます。 15: レジスタアクセスからのターゲットエラー 15: レジスタアクセスからのターゲットエラー DAPアクセスにおけるワイヤーACK故障 デバッグコンテキスト:pushInterrupt LinkServer Debug 以下に、簡略版と完全版(注釈付き)の両方のコードを添付します。 クロック|タイマー 開発ボード MCX N Re: frdm-mcxn947 baremetal ctimer0 configuration error resulting in debug failure Hello もしCTIMER関数を一から開発しているなら、この投稿は起動シーケンスの説明や MCXNファミリ向けのコード開発、NVICの初期化についても役立ちます。NVIC有効機能がコードにコメントされているのを見たので。 また、FRDM-MCXN947のSDKにはCTIMERの使用例が複数あり、割り込み例もベースとして取り入れて修正できます。ダッシュボードで利用可能 |MCUXpresso SDK Builder よろしくお願いいたします。 Re: frdm-mcxn947 baremetal ctimer0 configuration error resulting in debug failure 返信が遅れて申し訳ありません。少し体調を崩していました。ありがとうございます。今週末にもう一度確認してみます。うまくいけば動くようになると思います。
View full article
frdm-mcxn947 裸机 ctimer0 配置错误导致调试失败 拿到这块开发板后,我决定尝试从零开始,利用说明书完成一个小项目(遇到难题时最终还是求助于人工智能,尽管目前为止还没有找到解决方案)。 所以,问题是这样的。据我所知,我似乎已经按照预期,使用正确的地址和字段值执行了所有正确的步骤来初始化和启动 ctimer0,但是当我尝试运行时,程序崩溃并出现错误。我做了一些更改,其中一些更改在代码的不同行中导致了相同的结果,但问题基本局限于 ctimer0 的配置。 我不太确定自己错过了什么。失败时出现此错误。 15:寄存器访问目标错误 15:寄存器访问目标错误 DAP接入中的线路ACK故障 调试上下文:pushInterrupt LinkServer 调试 我会在下面附上代码的精简版和完整版(带注释)。 时钟|计时器 开发板 MCX N Re: frdm-mcxn947 baremetal ctimer0 configuration error resulting in debug failure Hello 如果您正在从头开始开发,特别是 CTIMER 函数,这篇文章将帮助您了解激活它的序列(从头开始为 MCXN 系列开发代码) ,并帮助您初始化 NVIC,因为我看到您的代码中 NVIC 使能函数被注释掉了。 此外,FRDM-MCXN947 的 SDK 提供了多个使用 CTIMER 的示例,包括一个中断示例,您可以以此为基础进行修改。可在“控制面板 | MCUXpresso SDK 构建器”中找到。 顺祝商祺! Re: frdm-mcxn947 baremetal ctimer0 configuration error resulting in debug failure 很抱歉回复晚了,我有点不舒服。谢谢,我周末会再检查一下,希望到时候能成功。
View full article
i.MX8ULP LPADC 比较功能 你好, 我正在尝试使用 M33 内核中的 i.MX8ULP ADC 的比较器模式,具体来说,我设置 ADC,以便如果转换值低于阈值,则发出中断来处理该事件。 根据参考手册,我的理解是这应该是可行的: - 将 ADC 的 FIFO 水位设置为 1,这样任何数据都会触发信号中断(这部分是有效的,在下面的示例中,我删除了中断代码以简化代码)。 - 设置比较函数为“重复比较直到为真”,并适当调整 CVH/CVL 和触发器,然后持续对 ADC 进行采样,并在达到要求时触发数据。 很遗憾,我一直无法让比较值正常工作。手册上说,根据 CVL/CVH 的不同,可以进行各种操作,但我使用 ADC1 / 命令 1 / 触发信号 1 时,这些操作似乎都不起作用: 通过实验,我发现: - CVL < CVH(手册上说如果在范围之外则为真,例如val < CVL || val > CVH): 始终返回值(即使它在范围内) - CVH 最大值,CVL 设置(应小于 CVL):由于未指定最大值,我不确定。将 CVH 设置为 0xfff 或 0x1000 时,无论 CVL 的值如何,都会返回该值;将 CVH 设置为 0xffff 时,则永远不会返回该值。 - CVL 最小值,CVH 设置值(应大于 CVH):始终返回该值 - CVL > CVH(应在范围内,例如CVH < val < CVL): 值永远不会返回 以下是我使用的代码: lpadc_config_t adcConfig; LPADC_GetDefaultConfig(&adcConfig); adcConfig.FIFOWatermark = 0; adcConfig.enableAnalogPreliminary = true; LPADC_Init(ADC1, &adcConfig); lpadc_conv_trigger_config_t triggerConfig; LPADC_GetDefaultConvTriggerConfig(&triggerConfig); triggerConfig.targetCommandId = 1; triggerConfig.enableHardwareTrigger = true; LPADC_SetConvTriggerConfig(ADC1, 0, &triggerConfig); lpadc_conv_command_config_t commandConfig; LPADC_GetDefaultConvCommandConfig(&commandConfig); commandConfig.channelNumber = 5; commandConfig.sampleChannelMode = kLPADC_SampleChannelSingleEndSideB; commandConfig.sampleScaleMode = kLPADC_SampleFullScale; commandConfig.hardwareAverageMode = kLPADC_HardwareAverageCount2; commandConfig.hardwareCompareMode = kLPADC_HardwareCompareRepeatUntilTrue; commandConfig.hardwareCompareValueHigh = v_high; commandConfig.hardwareCompareValueLow = v_low; LPADC_SetConvCommandConfig(ADC1, 1, &commandConfig); SDK_DelayAtLeastUs(1000, SDK_DEVICE_MAXIMUM_CPU_CLOCK_FREQUENCY); LPADC_DoSoftwareTrigger(ADC1, 1 << 0); // this is LPADC_GetConvResultBlocking() with a timeout uint32_t tmp, cnt = 0; tmp = ((ADC_Type *)ADC1)->RESFIFO; while (ADC_RESFIFO_VALID_MASK != (tmp & ADC_RESFIFO_VALID_MASK) && cnt < 100000) { tmp = ((ADC_Type *)ADC1)->RESFIFO; cnt++; } if (ADC_RESFIFO_VALID_MASK != (tmp & ADC_RESFIFO_VALID_MASK)) { PRINTF("ADC timeout\r\n"); } else { tmp &= ADC_RESFIFO_D_MASK; tmp >>= 3; PRINTF("got %d (%#x) in %d\r\n", tmp, tmp, cnt); } 我还导出了寄存器数据,我确信“比较重复直到为真”部分是有效的,因为 STAT 寄存器认为触发信号/命令仍在运行,而且我设置了“为真时存储”也得到了相同的结果(在命令运行时调整 CV(比较值)会产生奇怪的结果,但会正确返回等待条件为真的触发信号——我确定我们不应该在运行时更改 CV,所以我们忽略这部分)。 以下是等待转换期间的寄存器值,其中 CVL = 0xffe,CVH = 0x1(因此应该返回介于两者之间的任何值): ADC1 0x280a2000 VERID: 0x200101a PARAM: 0xf041004 CTRL: 0x1 ^ ADCEN STAT: 0x1000800 ^ CMDACT 1, ADC_ACTIVE IE: 0 DE: 0 CFG: 0x10800000 ^ PWREN, PUDLY = 0x80 PAUSE: 0 TSTAT: 0 TCTRL[0]: 0x1000001 ^ TCMD = CMD1, HTEN (no difference when disabled) FCTRL: 0 CMD[0].CMDL: 0x2025 ^ CSCALE full-scale, ABSEL = B, CH5 CMD[0].CMDH: 0x1003 ^ AVGS = 2 conversions, CMPEN = repeat until true CV[0]: 0x10ffe ^ compare value, CVH=1 and CVL=0xffe 我这样拿错了吗? 谢谢! 多米尼克 Re: i.MX8ULP LPADC compare function 谢谢@joanxie 我可以确认调整比较值似乎有效!(我需要降低ADC时钟频率,因为即使设置了convPauseDelay = 1023,ADC采样速度仍然过快,但这应该可以解决。) 是否需要注意这种偏移,或者例如在 ADC_CV_CVL_SHIFT / ADC_CV_CVH_SHIFT 宏中是否会显示偏移?是否需要更新 MIMX8UD5_cm33.h 文件,以便设置 hardwareCompareValueHigh/Low 功能能够正常工作? https://github.com/nxp-mcuxpresso/mcuxsdk-examples中完全没有任何示例。因此,我想确认一下,将来会更新哪些内容(如果有的话)来澄清这一点(例如 fsl_lpadc.h 中的注释)。(描述 hardwareCompareValueHigh 或使其正常工作的设备宏)——如果宏更新了,我在更新 SDK 时需要格外小心,所以最好提前知道以便做好准备。 谢谢 Re: i.MX8ULP LPADC compare function hardwardCompareValueHigh/Low 存储原始 CV 寄存器值,您需要将它们与 RESFIFO D 字段格式对齐。我检查了内部数据库,没有找到任何已确认的 SDK 路线图项目表明现有的字段移位宏将被更改,或者驱动程序将自动应用此转换。 Re: i.MX8ULP LPADC compare function 请参阅表 725。数据结果寄存器格式说明(参考手册) 数据是 D[14:3],对于比较值,我认为你应该进行 3 位移位,就像这样。 commandConfig.hardwareCompareValueHigh = v_high << 3; //CVH=0x8 commandConfig.hardwareCompareValueLow = v_low << 3;//CVL=0x7ff0 Re: i.MX8ULP LPADC compare function 好的,我会在代码中处理这个问题,谢谢你的确认。
View full article