Multi Source Translation Content

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Multi Source Translation Content

讨论

排序依据:
IMRT1046 USB Host connection I couldn't find the USB_OTG1_ID pin in MIMXRT1046XFQ5B processor, does that means by default the USB controller behaves as HOST? We are using this processor to build a custom USB host to get data from other USB devices. i.MXRT Re: IMRT1046 USB Host connection Thanks! Re: IMRT1046 USB Host connection Hi @JACOBTHOMAS_007 , Thanks for your reply. Yes, You can choose not to use USB type-C CC logic IC. When the RT1046 is required to operate only as a USB Host, a direct implementation with a Type-A receptacle is sufficient.  In software, Please explicitly configure the USB role as Host mode. Please ensure the RT1046 board provides stable VBUS power to the USB port. Best Regards MayLiu Re: IMRT1046 USB Host connection Thanks for the reply, and the design files The EVK design uses a USB type-C CC logic IC. But My question is what if I don't want to use this CC logic IC, does by default the MIMXRT1046XFQ5B behaves as HOST? In case I only bring out the 4 USB OTG pins out to a USB A connector and connect a USB device/client to this connector?  Re: IMRT1046 USB Host connection Hi @JACOBTHOMAS_007 , Thank you so much for your interest in our products and for using our community. Yes, There is no USB_OTG1_ID pin in MIMXRT1046XFQ5B processor USB peripheral , However, you can use other Chip IO to realize the function. The USB in MIMXRT1046XFQ5B processor still support Host or Device mode. I suggest you can refer to MIMXRT1046-EVK design. https://www.nxp.com/search?keyword=rt1046&start=0 Best Regards MayLiu
查看全文
[LX2160ARDB-Rev C] U-bootの25Gポート こんにちは、 U-boot の LX2160ARDB (rev C) で SFP+ (10G) を使用しようとしています。 ちなみに、私の QSFP リンク (40G) はすでに U-Boot から正常に動作しています。 これは、「LX2160ARDB SFP を 25G から 10G に変更する」で解決された「[LX2160ARDB-Rev C] 25G ポートの互換性」の重複のように聞こえるかもしれません。 しかし、それでも私の問題はまだ解決されません。 私は現在、PDF ファイルに記載されている lsdk2108 ではなく、LLDP から開発しています。さまざまな変更を移植しただけです。 これらの SFP+ インターフェースは Linux からではなく、U-boot から使用したいと思います。 提供された PBI 命令を変更する必要がありました。 QSFP インターフェースを動作させ続けるには: 「0x01EA10B0, 0x99999999 を書き込む」 --> 「0x01EA10B0, 0x88889999 を書き込む」 ルーターのSFP+リンクを有効にするには: 「0x01EA0D30, 0x10808307 を書き込む」 --> 「0x01EA0D30, 0x10808000 を書き込む」 これは、何らかの形で、QSFP (4x10G) の Serdes 構成を 1x10G SFP+ に複製します。 この方法では、ルータは「SFP+ - SFP+ 10G」ケーブルと「SFP28 - SFP28 (25G)」ケーブル (1G/10G/25G をサポート) の両方を使用してアップリンクを検出します。 SO、リンクは確立されましたが、パケットは(まだ)確認されていないと思います。 LLDP (つまり Yocto) でのこれらの「25G から 10G」への変更に関する情報や経験はありますか? また、u-boot からこれらの SFP+ (10G) を使用する方法をご存知ですか? ありがとう 🙂 Re: [LX2160ARDB-Rev C] 25G port in U-boot ハイ 🙂 前回のメッセージ以来、私は主に(しばらくの間)あなたが親切に提供してくれたLSDK21.08リンク(さらにはLSDK24.12)を使用して、Linuxから25Gポートを使用しようとしました。今のところ成功していません。したがって、これは SFP28 アダプタ、LX2160ARDB ボード構成、ネットワーク スイッチ、または何らかのソフトウェア構成から発生している可能性があると思います。 25G リンクが機能しているというあなたの言うことを信じます。通常、発生したエラーを示すログを送信するようにユーザーに依頼します。逆に、あなたの側では動作しているので、動作していることを示す(既存の)ログ(電源投入、u-boot、Linux、ネットワーク構成、ping から)を私に送っていただけますか?そうすれば、自分のシステムがどれだけ違うのか簡単に分かります。 そのようなログを提供できますか? ちなみに、次に試すステップは「2 台の LX2160ARDB 間の 25G リンクを介したネットワーク通信」です。この方法では、ネットワーク スイッチが問題の原因であるかどうかを確認できるはずです。 よろしくお願いします。 🙂 Re: [LX2160ARDB-Rev C] 25G port in U-boot LSDK2108 と LSDK2412 を LX2160ARDB-REV2 のデフォルト設定に従って試してみませんか? Linux では両方とも 25G と 10G をテストできました。 そのようなコマンド: LSDK21.08、65ページ Linux ホスト マシンまたはリファレンスボード上のターゲット ストレージ ドライブに LSDK イメージを自動的にダウンロードして展開します。 Re: [LX2160ARDB-Rev C] 25G port in U-boot 25G リンクがいつアップまたはダウンするかについての詳細情報を追加します。 25Gリンクは、「in112525_s03_phy_init()」から「in112525_s03_lane_recovery(4)」(「4」は「ALL_LANES」を意味する)を呼び出した後(または呼び出し中に)UPになります。 その後、「ping」コマンド中に、通話後に25Gリンクがダウンします - 'in112525_s03_lane_recovery(3)' へ ( DPMAC5@25g-auiの場合) - 'in112525_s03_lane_recovery(2)' へ ( DPMAC6@25g-auiの場合) SO、「レーン リカバリ ALL_LANES」リンクはアップしますが、「シングルレーン リカバリ」リンクの後はダウンします... その他の情報: 'in112525.c'でデバッグトレースが有効になっている場合いつもファイルを受け取る 「in112525_s03_lane_recovery(ALL_LANES)」の呼び出し中に「TX PLL がすべてのレーン上でロックされていません」というメッセージが表示されますが、その後の ping と「シングル レーン リカバリ」中に「TX PLL がレーン %d\n 上でロックされていません」というエラー メッセージは表示されない。SO、理論的には「TX PLL は、使用しようとしているレーン上で適切にロックされています」... ただし、25G がダウンします。 Re: [LX2160ARDB-Rev C] 25G port in U-boot こんにちは、 u-boot および Linux テストのログ ファイルを 2 つのバイナリ バージョンとともに添付しました。 「MC 10.35」ログは現在のビルドの起動が完了し、SDカードから起動し、 xspi フラッシュ内のネイティブ LX2160ARDB バイナリから起動する場合、「MC 10.24」。 Linux に関しては、現時点では両方のバージョン (SD/xspi ブート) でネットワーク インターフェースが表示されず、「ls-listni」、「ls-listmac」、「ls-addni」... は「エラー: デバイス ファイルが見つかりませんでした」を返します。 SO 何か設定する必要があるようですが、調査を始めたところです。 ありがとう 🙂 Re: [LX2160ARDB-Rev C] 25G port in U-boot u-boot の完全なログを共有してください。Linux の結果はどうですか? よろしくお願いします。 Re: [LX2160ARDB-Rev C] 25G port in U-boot ハイ 🙂 ご回答ありがとうございます。「 LX2160ARDBにSFP-25G-SRを挿入し(25Gに設定)、他のデバイスが同じSFP28( SFP-25G-SR 、25G設定)であれば、25Gとして使用でき、他の設定なしで使用できます。 」 現在、同一のSFP-25G-SRが 2 つと OM4 光ファイバーが 1 本あります。 LX2160ARDB rev C3 にインストールされたオリジナルの ATF + u-boot から起動するように構成されたボード: 「BL2: v2.3():v2.3-LSDK-20.12」+「U-Boot 2020.04-00006-g0f2cfcb048(2021年4月19日 - 22:20:08 +0530)」。 ethprime=DPMAC5@25g-aui。 ボードを再起動し、U-Boot を起動すると、25G リンクが起動します。 ただし、(u-boot から)「ping」を実行するとすぐにリンクがダウンし、(当然ですが) ping は失敗します。 もちろん、Linux でも試してみます (ハードウェアとネットワーク構成を検証するためだけです。Linux は使いたくないのです)。その後、ご提案いただいたように MC 10.38 でも試してみます... ただし、ATF と U-boot のバージョンでは、そのまますぐに動作するのではないですか?何が恋しいのでしょうか? ありがとう 🙂 Re: [LX2160ARDB-Rev C] 25G port in U-boot SFP-25G-SRを LX2160ARDB に挿入し(25G に設定)、他のデバイスが同じ SFP28( SFP-25G-SR 、25G 設定)である場合は、25G として使用でき、他の設定なしで使用できます。 よろしくお願いします。 Re: [LX2160ARDB-Rev C] 25G port in U-boot ハイ 🙂 ご回答ありがとうございます。現在、 MC バージョン 10.35 を使用しているので、 10.38 を試してみようと思います。 その間、すべてが「ネイティブ」25G モードで動作していることを確認したいと思います。 LX2RDBKIT2-25G コンテンツの説明に示されているように、Mellanox MMA2P00-AS (または互換性のある FS SFP-25GSR-85) SFP28 アダプターを使用する予定です。 CAN あなたは、このような SFP28 (2 つの LX2160ARDB ボード間、または LX2160ARDB + SFP28 搭載ルーター間) を使用した通信がネイティブ 25G モードですぐに動作することを確認できますか? よろしくお願いします。 🙂 Re: [LX2160ARDB-Rev C] 25G port in U-boot MC バージョン 10.38 では、LX2160A の 10G <-> 25G 再構成のサポートが変更される可能性があります。 次のドキュメントの章を参照してください - https://docs.nxp.com/bundle/UG10143/page/topics/Ethernet_Serdes.html よろしくお願いします。
查看全文
[LX2160ARDB-Rev C] 25G port in U-boot Hi, I am trying to use SFP+ (10G) with the LX2160ARDB (rev C) from U-boot. FYI my QSFP link (40G) is already properly working from U-Boot. It may sound like a duplicate of "[LX2160ARDB-Rev C] 25G port compatibility", solved with "Modify LX2160ARDB SFPs from 25G to 10G". However it doesn't solve my problem yet.  I currently develop from LLDP, not from lsdk2108 as described in the pdf file. I just ported the different modifications.  I want to use these SFP+ interfaces from U-boot, not from Linux.  I had to modify the provided PBI instructions:  to keep my QSFP interface working:  "write 0x01EA10B0, 0x99999999" --> "write 0x01EA10B0, 0x88889999" to get my router SFP+ links up: "write 0x01EA0D30, 0x10808307" --> "write 0x01EA0D30, 0x10808000" It somehow replicates the Serdes configuration of the QSFP, 4x10G, for my 1x10G SFP+. This way my router detects an uplink, with both my "SFP+ - SFP+ 10G" cable and my "SFP28 - SFP28 (25G)" cable (which supports 1G/10G/25G). So now links are up, but I you can guess I don't see packets (yet). Would you have some info or experience regarding these "25G to 10G" modifications in LLDP (hence for Yocto) and would you know how to use these SFP+ (10G) from u-boot? Thanks 🙂 Re: [LX2160ARDB-Rev C] 25G port in U-boot Hi 🙂 Since our last messages I mainly tried (for some time) to use the 25G ports from Linux, using the LSDK21.08 link you kindly provided (and even the LSDK24.12), without success so far. Hence I guess it could come from my SFP28 adapters, from my LX2160ARDB board configuration, from my network switch... or from some software configuration. I trust you when you tell me 25G link is working. Usually you ask people to send logs to show errors they get. Could we make it the other way round : as it is working on your side could you just send me (existing) logs showing it working (from power up, u-boot, linux, network config, ping)? That way I could easily see how different my system is. Can you provide me such logs? FYI next step I am also going to try is "network communication over the 25G link between 2 LX2160ARDB", this way I should see whether the network switch is responsible for my problem. Thanks 🙂 Re: [LX2160ARDB-Rev C] 25G port in U-boot Would you try the LSDK2108 and LSDK2412 follow the default setting on the LX2160ARDB-REV2? Both in the Linux could be tested for the 25G and 10G. Such command: LSDK21.08, page 65 To automatically download and deploy LSDK images to the target storage drive on a Linux host machine or a reference board. Re: [LX2160ARDB-Rev C] 25G port in U-boot Just to add more info about when the 25G link goes up or down: 25G link goes UP after (or during) a call to "in112525_s03_lane_recovery(4)" ('4' meaning 'ALL_LANES') from 'in112525_s03_phy_init()'. Then during my 'ping' command my 25G link goes DOWN after a call - to 'in112525_s03_lane_recovery(3)' (for DPMAC5@25g-aui) - to 'in112525_s03_lane_recovery(2)' (for DPMAC6@25g-aui) So during a 'lane recovery ALL_LANES' link goes UP, but after a 'single lane recovery' link goes down... Other info: When debug trace are enabled in the 'in112525.c' files I always get a 'TX PLL not locked on ALL lanes' message during the call to "in112525_s03_lane_recovery(ALL_LANES)" but NO error message "TX PLL not locked on lane %d\n" appears later during the ping and the 'single lane recovery' so in theory my 'TX PLL is properly locked on the lane we try to use'... however my 25G goes down. Re: [LX2160ARDB-Rev C] 25G port in U-boot Hi, I attached log files of u-boot & linux tests, with 2 binaries version. "MC 10.35" logs are done booting my current build, boot from SD card, "MC 10.24" when booting from the native LX2160ARDB binaries in xspi flash. Regarding Linux, for now with both versions (SD/xspi boot) I don't see any network interface and the "ls-listni", "ls-listmac", "ls-addni"...  return "error: Did not find a device file". So I guess I need to configure something, just started investigating. Thanks 🙂 Re: [LX2160ARDB-Rev C] 25G port in U-boot Please share your full-logs in the u-boot, how about the Linux result? Thanks Re: [LX2160ARDB-Rev C] 25G port in U-boot Hi 🙂 Thanks for your answer "If you insert the SFP-25G-SR into the LX2160ARDB(setting to 25G), and other device is the same SFP28(SFP-25G-SR, with 25G setting) you could use it as 25G, it could be used without other setting.". Now with two identical SFP-25G-SR and an OM4 optical fiber. Board configured to boot from the original ATF + u-boot installed on my LX2160ARDB rev C3: "BL2: v2.3():v2.3-LSDK-20.12" + "U-Boot 2020.04-00006-g0f2cfcb048 (Apr 19 2021 - 22:20:08 +0530)". ethprime=DPMAC5@25g-aui. After board reboot and u-boot start my 25G link goes up. However, as soon as I launch a 'ping' (from u-boot) the link goes down and (of course) ping fails. Sure I am also going to try with Linux (just to validate my HW & network config, I don't want to use Linux), then also with MC 10.38 as you suggested... but isn't it supposed to work 'out of the box' with my ATF & U-boot versions? What do I miss? Thanks 🙂 Re: [LX2160ARDB-Rev C] 25G port in U-boot If you insert the SFP-25G-SR into the LX2160ARDB(setting to 25G), and other device is the same SFP28(SFP-25G-SR, with 25G setting) you could use it as 25G, it could be used without other setting. Thanks Re: [LX2160ARDB-Rev C] 25G port in U-boot Hi 🙂 Thanks for your answer. I currently use MC version 10.35, so I am going to try 10.38 . In the meantime I want to confirm everything is working in the 'native' 25G mode. I plan to use Mellanox MMA2P00-AS as shown in LX2RDBKIT2-25G content description (or compatible FS SFP-25GSR-85) SFP28 adapters. Can you confirm that communication with such SFP28 (between 2 LX2160ARDB boards or a LX2160ARDB + router with SPF28) will work 'out of the box' in native 25G mode? Thanks 🙂 Re: [LX2160ARDB-Rev C] 25G port in U-boot MC version 10.38 could change the support for 10G <-> 25G reconfiguration in the LX2160A. Please see the following documentation chapter - https://docs.nxp.com/bundle/UG10143/page/topics/Ethernet_Serdes.html Thanks
查看全文
S32G399A NORフラッシュからの起動に失敗 こんにちは 私たちのボードでは、Micron NOR Flash MT35XU512ABA1G12-0AUT を使用しています。 NOR フラッシュからのブートに問題があります。(簡単なアプリケーションは、PE_01を切り替えてLEDを点滅させることです) 以下に関連するファイルを添付しました: 1. QuadSPIパラメータファイル: test_Qspi.bin 2. ブートローダ+アプリケーションの組み合わせbin: led_test_0606_blob2.bin 3. S32 フラッシュツールアルゴリズム: fsdk_qSpi_mt35xu512.bin 何か手順が抜けているかどうか確認していただけますか? ありがとうございます。 よろしくお願いいたします。 ジャルシー Re: S32G399A Fail to Boot from NOR Flash こんにちは。今日は別の問題が発生しました。書き込み時に消去することしかCANず、続行できません。調べるのを手伝ってください。 フラッシュIDの読み取りも正しい Re: S32G399A Fail to Boot from NOR Flash この問題は解決しました。ありがとうございます。 Re: S32G399A Fail to Boot from NOR Flash こんにちは@LONGGANGSU 、 はい、カスタム qspi パラメータを使用して NOR フラッシュからのブートを管理しました。 しかし、使用しているフラッシュが NOR の場合は、S32FT のこのアルゴリズムを使用してフラッシュから起動できるはずです。 Re: S32G399A Fail to Boot from NOR Flash こんにちは。問題は解決されましたか?現在使用している S32G399A チップには、フラッシュ モデル MX25UW51245 があります。現状では、FLASH TOOLS ツールを使用して正常に書き込み、検証CANます。しかし、BOOTMOD を RCON に設定すると、FLASH から起動できません。オシロスコープを使用して SCK 信号と CS 信号を測定CANます。SCK クロックは 28MHz ですが、持続時間は約 1.3ms しかありませんでした。 Re: S32G399A Fail to Boot from NOR Flash こんにちは、 JalseyXie 返信が遅くなり申し訳ありません。 以下の住所が正しく入力されているか確認してください。 ご自身の燃焼方法に問題がないことを確認した場合。 M または A コアを使用して、NOR FLASH に書き込むコンテンツが正しいかどうかを確認し、書き込みアルゴリズムに問題がないか確認できます。 お役に立てれば幸いです。 BR ジョーイ Re: S32G399A Fail to Boot from NOR Flash こんにちは@Joey_z 、 この投稿に関して何か更新情報はありますか? コミュニティで同様の問題を見つけました。Re: QSPIブートがNORフラッシュ後のイメージアプリケーションのロードに失敗する - NXPコミュニティ よろしくお願いいたします。 ジャルシー Re: S32G399A Fail to Boot from NOR Flash こんにちは@Joey_z 、 S32 フラッシュ ツールで fsdk_qSpi_mt35xu512.bin を使用してフラッシュするとエラーは発生しませんが、Micron フラッシュがこのアルゴリズムと互換性があるかどうかはわかりません。 はい、デバッガーで PE_01 を切り替えることは問題ありません。 よろしくお願いいたします。 ジャルシー Re: S32G399A Fail to Boot from NOR Flash こんにちは、 JalseyXie お問い合わせいただきありがとうございます。 fsdk_qSpi_mt35xu512.biを使用CANましたか?NOR フラッシュをプログラムするための S32 フラッシュ ツールの通常のアルゴリズムですか?また、単純なアプリケーションのデバッガーを使用して PE_01 を切り替えることはできますか? BR ジョーイ
查看全文
S32K344 Bootloader. Deinit Mcu I am implementing a bootloader in S32K344 and encountering some issues after the jump to the application firmware. 1 - I have verified that the jump is occurring correctly, but there are problems during the MCU initialization, its goes to HardFault. However, this does not always happen; often, the jump to the production firmware occurs without any issues. The times when this problem occurs are during the following sections of the MCU initialization: The peripherals that the bootloader initialize uses are: MCU, OsIf, Siul2_Port_Ip_Init, IntCtrl_Ip, Gpt, Spi, Sbc_fs26, Wdg_43_fs26, Lpuart_Uart, flash_c40. The deinit function in bootloader: How do I perform deinitialization in MCU functions? Is there any additional step I need to take? Perhaps in the .mex? 2) I use the PTE13 port as an input. I have already used the solution of disabling the LMBCTLEN register, and it worked in the production firmware. However, when the production firmware is initialized by the bootloader, this register remains selected. In other words, the MCU initialization in the bootloader is not redone when I call Mcu_Init / Mcu_InitClock / Mcu_SetMode at production firmware. What do I suposto do? 3) As with question 2, the same issue is occurring with the PTA24 and PTA25 pins. In the production firmware, they have been configured correctly and work normally. However, when initialized by the bootloader, the SOSC source configuration is lost. What do I suposto do? Re: S32K344 Bootloader. Deinit Mcu Sorry for delay. The solution was put the same config from .mex of bootloader fw on application fw. Don't initialize MUC in application fw, only initialize in the bootloader fw. A tip: Don't put optimization on Startup_Code Re: S32K344 Bootloader. Deinit Mcu Hello, @danielmartynek  I'm glad your reply.  1. We going to identify the fault exception. When we identify, I will reply here. 2 & 3. RTD 5.0 Re: S32K344 Bootloader. Deinit Mcu Hi @myst, 1. It is important to identify the fault exception. There can be many possible root caused. Follow these documents: https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-HARDFAULT-Handling-Interrupt-DS3-5-RTD300/ta-p/1806259 https://community.nxp.com/t5/S32K-Knowledge-Base/How-To-Debug-A-Fault-Exception-On-ARM-Cortex-M-V7M-MCU-S32K3XX/ta-p/1595570 https://community.nxp.com/t5/S32K-Knowledge-Base/Fault-handling-on-S32K14x/ta-p/1114447 2 & 3. Which RTD revision is this? Thanks, BR, Daniel
查看全文
S32G399A 无法从 或非 闪存启动 你好 我们在板上使用 Micron 或非 Flash MT35XU512ABA1G12-0AUT。 而且我们从或非闪存启动时遇到了问题。(简单的应用是拨动 PE_01 使 LED 闪烁)。 我在下面附上了相关文件: 1.QuadSPI 参数文件:test_Qspi.bin 2.引导加载程序+应用程序组合 bin:led_test_0606_blob2.bin 3.S32 闪存工具算法:fsdk_qSpi_mt35xu512.bin 您能帮忙检查一下是否缺少任何步骤吗? 谢谢。 此致, 贾尔西 Re: S32G399A Fail to Boot from NOR Flash 您好,我今天又遇到了一个问题,在刻录时只能擦除,不能继续,请帮我看看。 读取闪存 ID 也是正确的 Re: S32G399A Fail to Boot from NOR Flash 我已经解决了这个问题,谢谢。 Re: S32G399A Fail to Boot from NOR Flash 你好,@LONGGANGSU、 是的,我们使用自定义 qspi 参数管理从或非闪存启动。 但是对于你正在使用的或非闪存,你应该能够使用 S32FT 中的这个算法从闪存中启动。 Re: S32G399A Fail to Boot from NOR Flash 您好,请问您的问题是否已经解决?我目前使用的 S32G399A 芯片的闪存型号为 MX25UW51245。我目前的情况是,可以使用 FLASH TOOLS 工具成功刻录和验证。但是,当我将 BOOTMOD 配置为 RCON 时,它无法从闪存启动。我可以使用示波器测量 SCK 和 CS 信号。SCK 时钟频率为 28MHz,但只持续了约 1.3 毫秒。 Re: S32G399A Fail to Boot from NOR Flash hi,JalseyXie 抱歉,回复晚了。 请检查以下地址是否填写正确。 如果您确认燃烧方法没有问题。 你可以尝试使用 M 或 A 内核来检查刻录到或非 FLASH 的内容是否正确,看看你的烧录算法是否有任何问题。 希望能帮到你。 BR 乔伊 Re: S32G399A Fail to Boot from NOR Flash 你好@Joey_z、 关于这个职位,您有任何更新吗? 我在社区中发现了类似的问题:或非刷新到 SRAM 后 QSPI 启动无法加载映像应用程序-恩智浦社区 此致, 贾尔西 Re: S32G399A Fail to Boot from NOR Flash 你好@Joey_z、 在 S32 闪存工具中使用fsdk_qSpi_mt35xu512.bin 闪存没有出错,但我不确定美光闪存是否兼容这种算法。 是的,使用调试器切换 PE_01 就可以了。 此致, 贾尔西 Re: S32G399A Fail to Boot from NOR Flash 嗨,JalseyXie 感谢您与我们联系。 您可以使用 fsdk_qSpi_mt35xu512.bi 吗? 通常在 S32 Flash 工具中使用算法对或非 Flash 进行编程?另外,您能否使用简单应用程序的调试器来切换 PE_01? BR 乔伊
查看全文
S32K344 ブートローダー。デイニットMcu S32K344 にブートローダーを実装していますが、アプリケーション ファームウェアに移行した後にいくつかの問題が発生しています。 1 - ジャンプが正しく行われていることを確認しましたが、MCU の初期化中に問題が発生し、HardFault が発生します。ただし、これは常に発生するわけではなく、多くの場合、製品版ファームウェアへの移行は問題なく行われます。この問題が発生するのは、MCU 初期化の次のセクションです。 ブートローダの初期化で使用されるペリフェラルは次のとおりです。 MCU、OsIf、Siul2_Port_Ip_Init、IntCtrl_Ip、Gpt、Spi、Sbc_fs26、Wdg_43_fs26、Lpuart_Uart、flash_c40。 ブートローダーの deinit 関数: MCU 関数で初期化解除を実行するにはどうすればよいですか? 追加で必要な手順はありますか?おそらく.mexでしょうか? 2) PTE13 ポートを入力として使用します。私はすでに LMBCTLEN レジスタを無効にする解決策を使用しており、製品版ファームウェアでは機能しました。ただし、製品版ファームウェアがブートローダによって初期化されると、このレジスタは選択されたままになります。つまり、製品版ファームウェアで Mcu_Init / Mcu_InitClock / Mcu_SetMode を呼び出しても、ブートローダ内の MCU 初期化は再実行されません。何をすればいいのでしょうか? 3) 質問 2 と同様に、PTA24 ピンと PTA25 ピンでも同じ問題が発生しています。生産ファームウェアでは、これらは正しく構成されており、正常に動作します。ただし、ブートローダによって初期化されると、SOSC ソース構成は失われます。何をすればいいのでしょうか? Re: S32K344 Bootloader. Deinit Mcu 遅くなって申し訳ありません。 解決策は、ブートローダ fw の .mex から同じ構成をアプリケーション fw に配置することでした。アプリケーション FW で MUC を初期化せず、ブートローダ FW でのみ初期化します。 ヒント: Startup_Code に最適化を適用しないでください Re: S32K344 Bootloader. Deinit Mcu こんにちは、 @danielmartynek ご返信ありがとうございます。 1.障害例外を特定中です。特定できましたら、こちらに返信いたします。 2 & 3. RTD 5.0 Re: S32K344 Bootloader. Deinit Mcu こんにちは@myst 、 1. 障害例外を識別することが重要です。根本的な原因は多数CAN。 次のドキュメントに従ってください。 https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-HARDFAULT-Handling-Interrupt-DS3-5-RTD300/ta-p/1806259 https://community.nxp.com/t5/S32K-Knowledge-Base/How-To-Debug-A-Fault-Exception-On-ARM-Cortex-M-V7M-MCU-S32K3XX/ta-p/1595570 https://community.nxp.com/t5/S32K-Knowledge-Base/S32K14x の障害処理/ta-p/1114447 2と3。 これはどの RTD リビジョンですか? ありがとうございます BR、ダニエル
查看全文
S32G399A Fail to Boot from NOR Flash Hi  We're using Micron NOR Flash MT35XU512ABA1G12-0AUT on our board. And we have problem boot from NOR flash. (The simple application is to toggle PE_01 to flash LED) I have attached related file below:  1. QuadSPI parameter file: test_Qspi.bin 2. Bootloader+application combined bin: led_test_0606_blob2.bin 3. S32 Flash Tool Algorithm: fsdk_qSpi_mt35xu512.bin Could you help check if there is any step missing? Thanks. Regards, Jalsey Re: S32G399A Fail to Boot from NOR Flash Hello, I encountered another problem today, when burning, I can only erase it, I can't continue, help me take a look. Reading flash id is also correct Re: S32G399A Fail to Boot from NOR Flash I have resolved this issue, thank you. Re: S32G399A Fail to Boot from NOR Flash Hi @LONGGANGSU , Yes, we managed boot from NOR flash by using custom qspi paramters. But for the nor flash you're using, you should be able boot from flash using this the algorithm in S32FT.  Re: S32G399A Fail to Boot from NOR Flash Hello, may I ask if your issue has been resolved? The S32G399A chip I am currently using has a Flash model of MX25UW51245. My current situation is that it can be burned and verified successfully using the FLASH TOOLS tool. However, when I configure BOOTMOD to RCON, it cannot start from FLASH. I can measure the SCK and CS signals using an oscilloscope. The SCK clock is 28MHz, but it only lasted for about 1.3ms. Re: S32G399A Fail to Boot from NOR Flash hi,JalseyXie Sorry for the reply late. Please check whether the following address is filled in correctly. If you confirm that there is no problem with your burning method. You can try using M or A core to check whether the content you burn to NOR FLASH is correct and see if there are any problems with your burning algorithm. Hope it can help you. BR Joey Re: S32G399A Fail to Boot from NOR Flash Hi @Joey_z , Do you have any updates regarding this post? I found the similar issue in the community Re: QSPI Boot fail to load image application after NOR flashing to SRAM - NXP Community Regards, Jalsey Re: S32G399A Fail to Boot from NOR Flash Hi @Joey_z , Flashing with fsdk_qSpi_mt35xu512.bin in S32 Flash Tool has no error, but I'm not sure if the Micron flash compatible with this algorithm. Yes, with debugger toggling of PE_01 is ok. Regards, Jalsey Re: S32G399A Fail to Boot from NOR Flash hi,JalseyXie Thank you for contacting us. Did you can used the  fsdk_qSpi_mt35xu512.bi Algorithm normally in  S32 Flash Tool to program the NOR Flash?  Also, could you used the debugger for the simple application to toggle PE_01? BR Joey
查看全文
EB付きフリートスに関する質問(K3用) こんにちはチーム EB 構成の freertos についてお聞きしてもよろしいでしょうか? EB 構成で freerots のセットアップを行おうとしています。 このとき、ひとつ疑問が浮かびました… S32DS freertos の例では、SYST は「vTaskStartScheduler」によって起動されます。 問題ありません。 ただし、EB(MCAL ベース)では、初期は次のようになります。 問題は MCAL 初期コードから発生しています。これらは OSIF カウンターを使用しています。 しかし、OSIF_initだけではSYSTは作成されませんでした。 たとえば、現在の値 (SYST_CVR) は 0 です。 「vTaskStartScheduler」(またはMCAL構成)の前にSYST構成をどのように行うかがわかりません。 問題は、 OSIFカウンターを蹴るにはどうすればいいですか?(EB付きフリートスの下) MCAL の初期化前に「vTaskStartScheduler」を実装しますか? ありがとう。 EB TRESOS ライセンス RTD S32DS Re: Question aobut freertos with EB(for K3) こんにちは、 これを RTD に提供したのですが、どういうわけかこの RTD リリースには到達しなかったため、解決策は正しいと思います。 よろしくお願いいたします。 George Re: Question aobut freertos with EB(for K3) こんにちは、クアン・レ ご支援ありがとうございます。 しかし、私の質問に対する答えはありませんでした。 フィードバックが失われた場合はお知らせください。 (または、このチケットではなく、Jira からのフィードバックを待つ必要がありますか?) ありがとう。 Re: Question aobut freertos with EB(for K3) こんにちは@Luke_Chun 。私の回答が役に立った場合は、「解決策として承認」をクリックしてThreadを閉じてください。 Re: Question aobut freertos with EB(for K3) こんにちは。あなたのパッチは OsIf モジュール専用なので、この Thread を RTD チームに送信しました。 彼らがあなたのソリューションをどのように使用するかを見てみましょう。 https://jira.sw.nxp.com/browse/ARTD-184603 Re: Question aobut freertos with EB(for K3) こんにちは@lequana2 K3 のケースにより、フリートスを使用した RTD の問題点がわかりました。 RTD は EB と S32CT の両方で同じ問題を示しています。 Syst の最初の問題 (私の最初の質問) は、構成シーケンスを修正できるかどうかです。 ただし、K3 を使用した RTD は、RTD 割り込みを使用した Freertos には適していません。 SO、パッチを作って貼り付けました。 このアプローチは正しい方法でしょうか? あるいはそれに関する何かガイドラインはありますか? よろしくお願いします。 Re: Question aobut freertos with EB(for K3) こんにちは@lequana2 ご返信ありがとうございます。 詳細はこちらです。 1.お客様のターゲット プロジェクトは EB に基づいていますが、お客様は AUTOSAR / OS を使用していませんでした。 お客様はfreertosの使用を希望しています。SO私は、フリートスと統合されたEBについて調べています。 わかりました。S32CT を搭載した S32DS は、マウスを数回クリックするだけで無料で使用できます。 2. S32K324、RTD 4.0.0P14 HF1、freertos バージョンは修正されていません。 私は freertos 5.0.0 を使用していましたが、freertos のバージョンが変更されるのでお知らせください... ありがとう。 Re: Question aobut freertos with EB(for K3) こんにちは、 @Luke_Chun です。私は FreeRTOS チームのメンバーです。Tresos で FreeRTOS が必要な理由を教えてください。ご覧のとおり、DS にコミットしており、うまく機能しています。そのようなCASEがあれば、今後はよりよいSUPPORTを提供でき、Tresos のサンプルも提供できる可能性があります。 OsIf に関しては、Base Bundle チームの@RaduPrunaがサポートしてくれるかもしれません。ただし、より良いサポートを提供するには、現在の環境 (どの NPI、どの RTD バージョン、どの FreeRTOS バージョン...) が必要です。 最後に、この問題に関して FreeRTOS チームが他にサポートできることはありますか?
查看全文
GstV4l2Src:v4l2src0: 必要なメモリの割り当てに失敗しました 私たちは、ADV7280A-M MIPI CSI-2経由のアナログ ビデオと Yocto Linux Scarthgap および Qt 6.8.2 を備えた i.MX 8X を使用しています。 以下の作品: gst-launch-1.0v4l2src デバイス = /dev/video2 !ビデオ/x-raw、幅=720、高さ=567、フレームレート=25/1 !オートビデオシンク しかし、同等のものは Qt からは機能しません ( gst_parse_element_make: no element "video" )。 したがって、私は次のことを試みています: gst-launch-1.0-vvv v4l2src デバイス=/dev/video2 !rawvideoparse 幅=720 高さ=576 フォーマット=yuy2 !オートビデオシンク しかし、それは失敗します エラー: 要素 /GstPipeline:pipeline0/GstV4l2Src:v4l2src0 から: 必要なメモリを割り当てることができませんでした。 完全な出力は次のとおりです。 パイプラインを一時停止に設定しています... エラー: XDG_RUNTIME_DIR が無効であるか、環境で設定されていません。 エラー: XDG_RUNTIME_DIR が無効であるか、環境で設定されていません。 EGL: 警告: Wayland ではデフォルトのディスプレイがサポートされていません EGL: 警告: Wayland ではデフォルトのディスプレイがサポートされていません パイプラインはライブなので PREROLL は必要ありません... /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstKMSSink:autovideosink0-actual-sink-kms: 表示幅 = 1280 /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstKMSSink:autovideosink0-実際のシンクのkms: ディスプレイの高さ = 768 パイプラインは事前ロールされています... パイプラインを再生中に設定しています... 新しい時計: GstSystemClock /GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw、フォーマット=(文字列)YUY2、幅=(整数)3840、高さ=(整数)2160、フレームレート=(分数)120/1、インターレースモード=(文字列)プログレッシブ、カラーメトリ=(文字列)1:4:5:1 /GstPipeline:pipeline0/GstRawVideoParse:rawvideoparse0.GstPad:sink: caps = video/x-raw、フォーマット=(文字列)YUY2、幅=(整数)3840、高さ=(整数)2160、フレームレート=(分数)120/1、インターレースモード=(文字列)プログレッシブ、カラーメトリ=(文字列)1:4:5:1 エラー: 要素 /GstPipeline:pipeline0/GstV4l2Src:v4l2src0 から: 必要なメモリを割り当てることができませんでした。 追加のデバッグ情報: /usr/src/debug/gstreamer1.0-plugins-good/1.24.0.imx/sys/v4l2/gstv4l2src.c(955): gst_v4l2src_decide_allocation(): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: バッファプールのアクティブ化に失敗しました 実行は0:00:00.043197264後に終了しました パイプラインを NULL に設定しています... エラー: 要素 /GstPipeline:pipeline0/GstV4l2Src:v4l2src0 から: 内部データ ストリーム エラー。 追加のデバッグ情報: /usr/src/debug/gstreamer1.0/1.24.0.imx/libs/gst/base/gstbasesrc.c(3175):gst_base_src_loop(): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: ストリーミングが停止しました。理由は交渉されていません (-4) パイプラインを解放します... ありがとう -- ピーター i.MX 8ファミリ | i.MX 8QuadMax (8QM) | 8QuadPlus Linux マルチメディア Re: GstV4l2Src:v4l2src0: Failed to allocate required memory こんにちは@joanxie 、 GST_DEBUG=3 gst-launch-1.0-v v4l2src バッファ数=5 デバイス=/dev/video0 !ビデオ/x-raw、フォーマット=GRAY8、深さ=8、幅=1280、高さ=800 !ビデオ変換!jpegenc !マルチファイルシンクの場所=ar0144_mono_image.jpg 問題は GStreamer パイプラインを開始しています... パイプラインを一時停止に設定しています... パイプラインはライブなので PREROLL は必要ありません... パイプラインは事前ロールされています... パイプラインを再生中に設定しています... 0:00:00.244283375 784 0xffffb4000b70 警告 v4l2 gstv4l2object.c:5023:gst_v4l2_object_get_crop_rect: VIDIOC_G_SELECTIONでデフォルトの切り取り矩形を取得できませんでした: 無効な引数です 0:00:00.244416875 784 0xffffb4000b70 警告 v4l2 gstv4l2object.c:5230:gst_v4l2_object_probe_caps: VIDIOC_CROPCAP でピクセル アスペクト比を調査できませんでした: 無効な引数です 新しい時計: GstSystemClock 0:00:00.246845250 784 0xffffb4000b70 警告 v4l2 gstv4l2object.c:5023:gst_v4l2_object_get_crop_rect: VIDIOC_G_SELECTIONでデフォルトの切り取り矩形を取得できませんでした: 無効な引数です /GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw、format=(string)GRAY8、depth=(int)8、width=(int)1280、height=(int)800、framerate=(fraction)120/1、interlace-mode=(string)progressive /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw、format=(string)GRAY8、depth=(int)8、width=(int)1280、height=(int)800、framerate=(fraction)120/1、interlace-mode=(string)progressie /GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:src: caps = video/x-raw、format=(string)GRAY8、depth=(int)8、width=(int)1280、height=(int)800、framerate=(fraction)120/1、interlace-mode=(string)progre /GstPipeline:pipeline0/GstJpegEnc:jpegenc0.GstPad:sink: caps = video/x-raw、format=(string)GRAY8、depth=(int)8、width=(int)1280、height=(int)800、framerate=(fraction)120/1、interlace-mode=(string)progressive /GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:sink: caps = video/x-raw、format=(string)GRAY8、depth=(int)8、width=(int)1280、height=(int)800、framerate=(fraction)120/1、interlace-mode=(string)proge /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw、format=(string)GRAY8、depth=(int)8、width=(int)1280、height=(int)800、framerate=(fraction)120/1、interlace-mode=(string)progresse 0:00:00.253795500 784 0xffffb4000b70 警告 v4l2 gstv4l2object.c:5023:gst_v4l2_object_get_crop_rect: VIDIOC_G_SELECTIONでデフォルトの切り取り矩形を取得できませんでした: 無効な引数です 0:00:00.253877250 784 0xffffb4000b70 警告 v4l2 gstv4l2object.c:5023:gst_v4l2_object_get_crop_rect: VIDIOC_G_SELECTIONでデフォルトの切り取り矩形を取得できませんでした: 無効な引数です 0:00:00.259326750 784 0xffffb4000b70 エラー v4l2bufferpool gstv4l2bufferpool.c:721:gst_v4l2_buffer_pool_streamon: STREAMON 32 のエラー (パイプ破損) 0:00:00.259393750 784 0xffffb4000b70 エラー バッファプール gstbufferpool.c:572:gst_buffer_pool_set_active: 開始に失敗しました 0:00:00.259435250 784 0xffffb4000b70 警告 v4l2src gstv4l2src.c:955:gst_v4l2src_decide_allocation: エラー: 必要なメモリの割り当てに失敗しました。 0:00:00.259461750 784 0xffffb4000b70 警告 v4l2src gstv4l2src.c:955:gst_v4l2src_decide_allocation: エラー: バッファプールのアクティブ化に失敗しました エラー: 要素 /GstPipeline:pipeline0/GstV4l2Src:v4l2src0 から: 必要なメモリを割り当てることができませんでした。 追加のデバッグ情報: /usr/src/debug/gstreamer1.0-plugins-good/1.24.0.imx/sys/v4l2/gstv4l2src.c(955): gst_v4l2src_decide_allocation(): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: バッファプールのアクティブ化に失敗しました 0:00:00.259690375 784 0xffffb4000b70 警告 basesrc gstbasesrc.c:3395:gst_base_src_prepare_allocation: サブクラスは割り当てを決定できませんでした 実行は0:00:00.015445250後に終了しました パイプラインを NULL に設定しています... 0:00:00.259771000 784 0xffffb4000b70 警告 basesrc gstbasesrc.c:3175:gst_base_src_loop: エラー: 内部データ ストリーム エラー。 0:00:00.259796500 784 0xffffb4000b70 警告 basesrc gstbasesrc.c:3175:gst_base_src_loop: エラー: ストリーミングが停止しました。理由はネゴシエートされていません (-4) エラー: 要素 /GstPipeline:pipeline0/GstV4l2Src:v4l2src0 から: 内部データ ストリーム エラー。 追加のデバッグ情報: /usr/src/debug/gstreamer1.0/1.24.0.imx/libs/gst/base/gstbasesrc.c(3175):gst_base_src_loop(): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: ストリーミングが停止しました。理由は交渉されていません (-4) パイプラインを解放します... GStreamer コマンドが終了しました。 Re: GstV4l2Src:v4l2src0: Failed to allocate required memory 完全を期すために、このThreadの元の問題は rawvideoparse ではなく capsfilter を使用して解決されました。 player.source = "gstreamer-pipeline: v4l2src デバイス=/dev/video2 !capsfilter caps=video/x-raw、幅=720、高さ=480、フレームレート=25/1" Qt で使用すると、gst_v4l2_object_fill_format_list で断続的に SIGSEGV が発生しますが、これは別の問題だと思います。 Re: GstV4l2Src:v4l2src0: Failed to allocate required memory こんにちは@Ahmed230 さん、あなたのメッセージのフォント サイズが非常に大きいため、読みにくいです。 このThreadは、ADV7280A-M (NTSC/PAL) が以下の条件で正常に動作することに関するものです: "!video/x-raw..." では正しく動作しますが、次の場合は動作しません: "!rawvideoparse..." あなたのメッセージは、AR0144 イメージ センサが動作しないという内容です: "!「video/x-raw」。 別のトピック。新しい投稿を開始し、Ctrl + Shift + V を押して、大きなフォントなしでテキストのみを貼り付けるのが最適です。 また、$NUMBER_OF_PIC、$VID_DEVICE、$FRAME_SIZE を実際の値に置き換えます。 Re: GstV4l2Src:v4l2src0: Failed to allocate required memory 私の問題は、iMX8MMボード上のカメラar0144で画像やビデオをキャプチャするためのnxp 6.6.36カーネルにあります GST_DEBUG=3 gst-launch-1.0-v v4l2src バッファ数=$NUMBER_OF_PIC デバイス=$VID_DEVICE !ビデオ/x-raw、フォーマット=GRAY8、深度=8、$FRAME_SIZE !ビデオ変換! jpegenc !マルチファイルシンクの場所=ar0144_mono_image.jpg GStreamer パイプラインを開始しています... パイプラインを一時停止に設定しています... パイプラインはライブなので PREROLL は必要ありません... パイプラインは事前ロールされています... パイプラインを再生中に設定しています... 0:00:00.244283375 784 0xffffb4000b70 警告 v4l2 gstv4l2object.c:5023:gst_v4l2_object_get_crop_rect: VIDIOC_G_SELECTIONでデフォルトの切り取り矩形を取得できませんでした: 無効な引数です 0:00:00.244416875 784 0xffffb4000b70 警告 v4l2 gstv4l2object.c:5230:gst_v4l2_object_probe_caps: VIDIOC_CROPCAP でピクセル アスペクト比を調査できませんでした: 無効な引数です 新しい時計: GstSystemClock 0:00:00.246845250 784 0xffffb4000b70 警告 v4l2 gstv4l2object.c:5023:gst_v4l2_object_get_crop_rect: VIDIOC_G_SELECTIONでデフォルトの切り取り矩形を取得できませんでした: 無効な引数です /GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw、format=(string)GRAY8、depth=(int)8、width=(int)1280、height=(int)800、framerate=(fraction)120/1、interlace-mode=(string)progressive /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw、format=(string)GRAY8、depth=(int)8、width=(int)1280、height=(int)800、framerate=(fraction)120/1、interlace-mode=(string)progressie /GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:src: caps = video/x-raw、format=(string)GRAY8、depth=(int)8、width=(int)1280、height=(int)800、framerate=(fraction)120/1、interlace-mode=(string)progre /GstPipeline:pipeline0/GstJpegEnc:jpegenc0.GstPad:sink: caps = video/x-raw、format=(string)GRAY8、depth=(int)8、width=(int)1280、height=(int)800、framerate=(fraction)120/1、interlace-mode=(string)progressive /GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:sink: caps = video/x-raw、format=(string)GRAY8、depth=(int)8、width=(int)1280、height=(int)800、framerate=(fraction)120/1、interlace-mode=(string)proge /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw、format=(string)GRAY8、depth=(int)8、width=(int)1280、height=(int)800、framerate=(fraction)120/1、interlace-mode=(string)progresse 0:00:00.253795500 784 0xffffb4000b70 警告 v4l2 gstv4l2object.c:5023:gst_v4l2_object_get_crop_rect: VIDIOC_G_SELECTIONでデフォルトの切り取り矩形を取得できませんでした: 無効な引数です 0:00:00.253877250 784 0xffffb4000b70 警告 v4l2 gstv4l2object.c:5023:gst_v4l2_object_get_crop_rect: VIDIOC_G_SELECTIONでデフォルトの切り取り矩形を取得できませんでした: 無効な引数です 0:00:00.259326750 784 0xffffb4000b70 エラー v4l2bufferpool gstv4l2bufferpool.c:721:gst_v4l2_buffer_pool_streamon: STREAMON 32 のエラー (パイプ破損) 0:00:00.259393750 784 0xffffb4000b70 エラー バッファプール gstbufferpool.c:572:gst_buffer_pool_set_active: 開始に失敗しました 0:00:00.259435250 784 0xffffb4000b70 警告 v4l2src gstv4l2src.c:955:gst_v4l2src_decide_allocation: エラー: 必要なメモリの割り当てに失敗しました。 0:00:00.259461750 784 0xffffb4000b70 警告 v4l2src gstv4l2src.c:955:gst_v4l2src_decide_allocation: エラー: バッファプールのアクティブ化に失敗しました エラー: 要素 /GstPipeline:pipeline0/GstV4l2Src:v4l2src0 から: 必要なメモリを割り当てることができませんでした。 追加のデバッグ情報: /usr/src/debug/gstreamer1.0-plugins-good/1.24.0.imx/sys/v4l2/gstv4l2src.c(955): gst_v4l2src_decide_allocation(): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: バッファプールのアクティブ化に失敗しました 0:00:00.259690375 784 0xffffb4000b70 警告 basesrc gstbasesrc.c:3395:gst_base_src_prepare_allocation: サブクラスは割り当てを決定できませんでした 実行は0:00:00.015445250後に終了しました パイプラインを NULL に設定しています... 0:00:00.259771000 784 0xffffb4000b70 警告 basesrc gstbasesrc.c:3175:gst_base_src_loop: エラー: 内部データ ストリーム エラー。 0:00:00.259796500 784 0xffffb4000b70 警告 basesrc gstbasesrc.c:3175:gst_base_src_loop: エラー: ストリーミングが停止しました。理由はネゴシエートされていません (-4) エラー: 要素 /GstPipeline:pipeline0/GstV4l2Src:v4l2src0 から: 内部データ ストリーム エラー。 追加のデバッグ情報: /usr/src/debug/gstreamer1.0/1.24.0.imx/libs/gst/base/gstbasesrc.c(3175):gst_base_src_loop(): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: ストリーミングが停止しました。理由は交渉されていません (-4) パイプラインを解放します... GStreamer コマンドが終了しました。 Re: GstV4l2Src:v4l2src0: Failed to allocate required memory 今回は、どのような印刷エラー情報が得られますか?bsp 6.6 と bsp 5.10 を比較すると、bsp 6.6 ではこのパッチに基づいて 5.10 からコードが削除されていますが、5.10 bsp を試しましたか? https://github.com/nxptest/linux-imx/commit/4f87610383a0f365ee0c68d9354ddcf099240144 Re: GstV4l2Src:v4l2src0: Failed to allocate required memory 追伸@joanxie 返信: 0:00:00.518350875 427 0xffff80000b70 警告 v4l2 gstv4l2object.c:5023:gst_v4l2_object_get_crop_rect:v4l2src0:srcVIDIOC_G_SELECTIONでデフォルトの切り取り矩形を取得できませんでした: 引数が無効です これは、mxc_isi_cap_g_selection() が次のように呼び出されているためです。 タイプ1 V4L2_BUF_TYPE_VIDEO_CAPTUREと ターゲット 1 V4L2_SEL_TGT_CROP_DEFAULT (およびターゲット 2 V4L2_SEL_TGT_CROP_BOUNDS) ただし、V4L2_BUF_TYPE_VIDEO_OUTPUT または V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE 型のみを期待しています https://github.com/nxp-imx/linux-imx/blob/lf-6.6.y/drivers/staging/media/imx/imx8-isi-cap.c#L1164 これらに対する処理を追加すると、警告は消えます。 (ただし、その後mxc_isi_cap_s_fmt_mplaneが呼び出されます そして何らかの理由で、fmt は RGB565 720x480 から YUYV-16 3840x2160 に変更されます。 Re: GstV4l2Src:v4l2src0: Failed to allocate required memory こんにちは@joanxie Yocto Scarthgapとlinux-imxを使用しています unameは6.6.52を表示します このコミットの後に linux-imx からフォークしました: https://github.com/nxp-imx/linux-imx/commit/e0f9e2afd4cff3f02d71891244b4aa5899dfc786 drivers/staging/プレスリリース、製品ニュース/imx/imx8-mipi-csi2.c mxc_csi2_get_sensor_fmt()にデバッグを追加すると、次のように表示されます。 720×480。 だから混乱している v4l2-ctl --get-fmt-video -d /dev/video2 3840/2160を表示 一貫性を高めるために、VIDIOC_G_SELECTION または VIDIOC_CROPCAP をどこかに実装するかどうかを検討しています。 ありがとう -- ピーター Re: GstV4l2Src:v4l2src0: Failed to allocate required memory どのBSPバージョンをお使いですか?スケールの問題のようです。そのため、特定の解像度でテストするようにお願いしました。そうしないと、3840にアップスケールする必要があり、エラーが発生します。 Re: GstV4l2Src:v4l2src0: Failed to allocate required memory こんにちは@joanxie 、返信ありがとうございます。 v4l2-ctl -d /dev/v4l-subdev1 --set-standard PAL 「 video/x-raw、幅=720、高さ=480」を使用すると、gst-launch-1.0 で動作します。 しかし、問題は、Qt 6.8.2 (QML MediaPlayer) の gstreamer-pipeline: で video/x-raw を使用すると失敗することです。 エラー GST_PIPELINE grammar.y:630:gst_parse_element_make:要素「video」がありません Qt (playbin を使用) では、video/x-raw はキャップ フィルターであるため、要素として認識されません。 そのため、ビデオ/x-raw キャップ フィルターを必要とせずにパイプラインを動作させようとしていました... さて、capsfilter 要素があることがわかった。SO、代わりにそれを明示的に使用します。 player.source = "gstreamer-pipeline: v4l2src デバイス=/dev/video2 !capsfilter caps=video/x-raw、幅=720、高さ=480、フレームレート=25/1" Qt からほぼ動作します。しばらくビデオが表示されますが、その後、次のエラーでセグメントフォールトが発生します。 1 フォーマット_cmp_func gstv4l2object.c1276 0xffffd80668dc 2 g_slist_insert_sorted_real gslist.c913 0xfffff604fab4 3 g_slist_insert_sorted gslist.c964 0xfffff60504e0 4 gst_v4l2_object_fill_format_list gstv4l2object.c1324 0xffffd8065a60 5 gst_v4l2_object_get_format_list gstv4l2object.c1373 0xffffd8065f2c 6 gst_v4l2_object_probe_caps gstv4l2object.c5212 0xffffd806ed34 7 gst_v4l2_object_get_caps gstv4l2object.c5310 0xffffd806ef38 8 gst_base_src_default_query gstbasesrc.c1373 0xffffd9219490 9 gst_pad_query gstpad.c4228 0xffffd90ec24c 10 gst_pad_query_caps gstutils.c3117 0xffffd913140c 11 gst_v4l2src_negotiate gstv4l2src.c786 0xffffd8079a04 12 gst_base_src_negotiate_unlocked gstbasesrc.c3490 0xffffd9213e9c 13 gst_base_src_loop gstbasesrc.c2915 0xffffd9215e7c 14 gst_task_func gsttask.c399 0xffffd9122090 15 g_thread_pool_thread_proxy gthreadpool.c350 0xfffff605d780 16 g_thread_proxy gthread.c831 0xfffff605cad8 17 start_thread pthread_create.c447 0xfffff6730fc4 18 スレッドスタート クローン3.S 76 0xfffff67931cc 何がCANるか見てみましょう。 いずれにせよ、疑問に思うのは: v4l2-ctl --device /dev/video2 --all mxc-isi-cap_v1 の幅/高さ: 3840/2160 を返します... ADV は 720 幅までしか対応していないのに、MIPI CSI-2 は 3840 幅に対応しているからでしょう。 これは変更されますが、一時的なものだけです。 v4l2-ctl -d /dev/video2 -vwidth=720,height=480 gstreamer を capsfilter なしで実行すると、3840 に戻ります。 当社の i.MX 8X ベースのボードでは、MIPI CSI-2 は ADV にハードワイヤードされており、720 幅としてのみ使用されるのですが、3840 幅ではなく 720 幅のままに構成する方法はありますか?そうすれば、それが「そのまま動作する」ようになり、Qt などの gstreamer パイプラインが簡素化されるのでしょうか? ありがとう -- ピーター Re: GstV4l2Src:v4l2src0: Failed to allocate required memory ADV7280 にどのようなフォーマットを設定しますか? パイプラインで特定の解像度を設定するのはどうでしょうか?例えば、video/x-raw、幅=720、高さ=480の場合、切り抜きに関連する問題のようです。解像度を設定して再度テストしてみてください。 Re: GstV4l2Src:v4l2src0: Failed to allocate required memory https://github.com/GStreamer/gst-plugins-good/blob/master/sys/v4l2/gstv4l2bufferpool.c#L668 if (obj->ioctl (pool->video_fd, VIDIOC_STREAMON, &obj->type) < 0) streamon_failed に移動します。
查看全文
PN7160 design works but PN7161 doesn't work I designed PN7160 and PN7161 boards, with I2C port. I tested them with this library: GitHub - NXPNFCLinux/linux_libnfc-nci: Linux NFC stack for NCI based NXP NFC Controllers I got the following result: 1. All PN7160 boards are working well. 2. All PN7161 boards are not working, failing at initiate. PN7160 and PN7161 boards share the same design. I have no authorization from Apple for the ECP. My questions: 1. W/o Apple authorization for the ECP, Will PN7161 work as PN7160, or never work at all? 2. Except the ECP, any other difference between PN7161 and PN7160? Thanks Re: PN7160 design works but PN7161 doesn't work Can you help me please,  I design nfc board with Pn7161 ic and have the problem in initiating.  Re: PN7160 design works but PN7161 doesn't work Hello ELECHOUSE, Can you share what was the root cause of your issue,please ? Thanks ! BR Tomas Re: PN7160 design works but PN7161 doesn't work Not sure if I could paste the link here: https://www.elechouse.com/product/pn7160-nfc-rfid-module/ We already solved all problems of PN7160 and PN7161 modules Re: PN7160 design works but PN7161 doesn't work Just an update on the above for future references: Our problem is gone by applying the same solution mentioned in the following thread: PN7160 TXLDO stays at 0V if VBAT is connected to 3V3  In our case, the RF drive was controlled by 3V3, which apparently does not pass the TXLDO-Check in all cases. Disabling the TXLDO-Check generated the RF signal. It is not clear why some PCBs pass the test and others do not. Re: PN7160 design works but PN7161 doesn't work Hi, In an application we use the SPI version of the PN7161. We do not use the apple ECP feature. 3 out of 5 PCBs produced in the same batch do not generate an RF signal, while there is communication via SPI. Electronically there seem to be no connection problems. Did you ever find out what the problem was? Thank you in advance. Re: PN7160 design works but PN7161 doesn't work Hi Elechouse, I love your products! When do you think the PN7160 will be ready? Re: PN7160 design works but PN7161 doesn't work We made another 2pcs new PN7160 boards and 5pcs new PN7161 boards. Along with those 5pcs PN7160 boards we made last time, we have: PN7160 boards: 7pcs PN7161 boards: 5pcs They have the same PCBA design. The testing result is: 7pcs PN7160 boards: all were working 5pcs PN7161 boards: none ever worked. All failed at initiating.... Testing tool: Rapberry Pi Software: git clone https://github.com/NXPNFCLinux/linux_libnfc-nci.git -b NCI2.0_PN7160 Any suggestion would be appreciated! Thanks Re: PN7160 design works but PN7161 doesn't work Hi The PN7161 responds identically, as the PN7160, unless special ECP enablement is activated, then it just has more functionality.  Regards Daniel Re: PN7160 design works but PN7161 doesn't work Thanks very much for your reply. Do you mean without Apple's authoritarian, we could not use any function of PN7161? Even reading a normal tag (such as Mifare)? Re: PN7160 design works but PN7161 doesn't work Hi The PN7161 has the same features as PN7160 with Apple Enhanced Contactless Polling (ECP ) feature supported. All of the standard design principals used in the generic PN7160, also apply to the PN7161 includes additional contents but is form, fit and functionality identical to the PN7160. PN7161 needs authorization from Apple Regards Daniel
查看全文
panel-lvds driver does not work anymore after upgrade to kernel 6.6 Hi, I upgrade my Linux kernel from 5.15.52 to 6.6. After upgrading my panel only shows a small stripe. I made no changes at the device tree. When I use the panel-simple driver instead of panel-lvds I got a working display. Does someone know about changes in the driver. I use a iMX8MP and my panel is connected to LVDS1 interface. dmesg shows a message but I can't identify the failure dmesg | grep lvds [ 0.077630] platform panel-lvds1: Fixed dependency cycle(s) with /ldb-display-controller/lvds-channel@1 [ 2.511277] imx8mp-ldb ldb-display-controller: Failed to create device link (0x180) with phy-lvds [ 2.552129] imx8mp-ldb ldb-display-controller: Failed to create device link (0x180) with panel-lvds1 Thanks i.MX 8M | i.MX 8M Mini | i.MX 8M Nano Linux Yocto Project Re: panel-lvds driver does not work anymore after upgrade to kernel 6.6 I have also been struggling with the same issue for over a week now, and adding this property ('de-active = <1>;') to the panel-timing definition in my device tree finally resolved the issue. My display works now, thanks for this! If I could give you more than 1 Kudo I would 🙂 Re: panel-lvds driver does not work anymore after upgrade to kernel 6.6 @MicMoba  This is an old thread, but I faced the same problem. In my case, I had to pass the de-active = <1>; property to fix it. Re: panel-lvds driver does not work anymore after upgrade to kernel 6.6 Failure occurs early during boot. This might indicate clocks problem. Check e. g. clock-names in node ldb read by drivers. What are you using? drm display-subsystem or frame buffers (mxc) ? Re: panel-lvds driver does not work anymore after upgrade to kernel 6.6 Here are my settings. Maybe you find a mistake / { backlight1: backlight1 { compatible = "pwm-backlight"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_lvds1>; default-brightness-level = <6>; pwms = <&pwm3 0 50000 0>; power-supply = <&reg_lvds1_reg_en>; enable-gpios = <&gpio2 20 GPIO_ACTIVE_LOW>; brightness-levels= <0 4 8 16 32 64 128 255>; status = "okay"; }; panel_lvds: panel-lvds1 { compatible = "panel-lvds"; backlight = <&backlight1>; width-mm = <218>; height-mm = <137>; data-mapping = "vesa-24"; status = "okay"; panel-timing { clock-frequency = <71000000>; hactive = <1280>; hfront-porch = <30>; hsync-len = <48>; hback-porch = <80>; vactive = <800>; vfront-porch = <3>; vsync-len = <6>; vback-porch = <14>; }; port { panel1_in: endpoint { remote-endpoint = <&lvds1_out>; }; }; }; }; &lcdif2 { status = "okay"; }; /* LVDS1 */ &ldb { status = "okay"; lvds-channel@1 { #address-cells = <1>; #size-cells = <0>; status = "okay"; primary; port@1 { reg = <1>; lvds1_out: endpoint { remote-endpoint = <&panel1_in>; }; }; }; }; &ldb_phy { status = "okay"; }; Re: panel-lvds driver does not work anymore after upgrade to kernel 6.6 yes I checkd the dtb. I convert the dtb back to dts. The new one as the old one. I can't see any differences. I use a DataModul 10,1“ TFT – WXGA – LVDS panel (TX26D207VM0AAA) Re: panel-lvds driver does not work anymore after upgrade to kernel 6.6 Hello, Have you checked the dtb? are they changed? which lvds device are you working on? Regards Re: panel-lvds driver does not work anymore after upgrade to kernel 6.6 Hi @SanthoshRajavel, Since my product is proprietary, I cannot share the contents of our DTS. However, this snippet from the above DTS shows where I added the 'de-active = <1>' property which was the fix I needed: / { backlight1: backlight1 { compatible = "pwm-backlight"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_lvds1>; default-brightness-level = <6>; pwms = <&pwm3 0 50000 0>; power-supply = <&reg_lvds1_reg_en>; enable-gpios = <&gpio2 20 GPIO_ACTIVE_LOW>; brightness-levels= <0 4 8 16 32 64 128 255>; status = "okay"; }; panel_lvds: panel-lvds1 { compatible = "panel-lvds"; backlight = <&backlight1>; width-mm = <218>; height-mm = <137>; data-mapping = "vesa-24"; status = "okay"; panel-timing { clock-frequency = <71000000>; hactive = <1280>; hfront-porch = <30>; hsync-len = <48>; hback-porch = <80>; vactive = <800>; vfront-porch = <3>; vsync-len = <6>; vback-porch = <14>; de-active = <1>; }; port { panel1_in: endpoint { remote-endpoint = <&lvds1_out>; }; }; }; }; &lcdif2 { status = "okay"; }; /* LVDS1 */ &ldb { status = "okay"; lvds-channel@1 { #address-cells = <1>; #size-cells = <0>; status = "okay"; primary; port@1 { reg = <1>; lvds1_out: endpoint { remote-endpoint = <&panel1_in>; }; }; }; }; &ldb_phy { status = "okay"; }; Re: panel-lvds driver does not work anymore after upgrade to kernel 6.6 @SanthoshRajavel I would check if the 'fsl,data-mapping' and 'fsl,data-width' properties in 'lvds-channel@1' node is correct.  I have these defined in my own DTS to specific values expected by my panel, which differ from the defaults defined in the driver. I would also verify the 'pinctrl-0' and 'pinctrl-names' property definitions - I see it in the backlight node definition which I think is not needed.  This property is defined in my 'panel' node instead. These are only pointers - I am by no means an expert in device tree configs but these things popped out as areas of interest. Re: panel-lvds driver does not work anymore after upgrade to kernel 6.6 Hi @brood  I am experiencing the same issue as well. Could you please share the DTS file in the chat? It would be very helpful. Re: panel-lvds driver does not work anymore after upgrade to kernel 6.6 @brood  @brood  Thank you for sharing this. I already tried the same approach, but it did not work for me. I am also very new to this. Please find my code below—could you help me fix it?  My Board : 8MPLUSLPD4-EVK   #include "imx8mp-evk.dts"   / {     backlight1: backlight1 {         compatible = "pwm-backlight";         pinctrl-names = "default";         pinctrl-0 = <&pinctrl_lvds1>;         default-brightness-level = <6>;         pwms = <&pwm3 0 50000 0>;         power-supply = <&reg_lvds1_reg_en>;         enable-gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;         brightness-levels= <0 4 8 16 32 64 128 255>;         status = "okay";     };       panel_lvds: panel-lvds1 {         compatible  = "panel-lvds";         backlight   = <&backlight1>;                  width-mm = <218>;         height-mm = <137>;           data-mapping = "vesa-24";         status = "okay";                  panel-timing {             clock-frequency = <71000000>;             hactive = <1280>;             hfront-porch = <30>;             hsync-len = <48>;             hback-porch = <80>;             vactive = <800>;             vfront-porch = <3>;             vsync-len = <6>;             vback-porch = <14>;             de-active = <1>;         };                  port {             panel1_in: endpoint {                 remote-endpoint = <&lvds1_out>;             };         };     }; }; &lcdif2 {   status = "okay"; }; /* LVDS1 */ &ldb {     status = "okay";       lvds-channel@1 {         #address-cells = <1>; #size-cells = <0>;                 status = "okay";         primary;         port@1 {             reg = <1>;             lvds1_out: endpoint {                 remote-endpoint = <&panel1_in>;             };         };     }; };   &ldb_phy {     status = "okay"; }; Re: panel-lvds driver does not work anymore after upgrade to kernel 6.6 @brood  Even after disabling HDMI and retrying the setup, the issue persists. @MicMoba  I have a separate backlight module and I am controlling the backlight through that. In my case, an integrated backlight is not required. Re: panel-lvds driver does not work anymore after upgrade to kernel 6.6 Are you using a HDMI panel?  I see you have the HDMI node activated - that may be causing a conflict depending on your pinmux. Re: panel-lvds driver does not work anymore after upgrade to kernel 6.6 Maybe it helps. At your stage I remember this patch brought me further: diff --git a/drivers/video/backlight/pwm_bl.c b/drivers/video/backlight/pwm_bl.c --- a/drivers/video/backlight/pwm_bl.c +++ b/drivers/video/backlight/pwm_bl.c @@ -462,7 +462,7 @@ static int pwm_backlight_initial_power_state(const struct pwm_bl_data *pb) * assume that another driver will enable the backlight at the * appropriate time. Therefore, if it is disabled, keep it so. */ - return active ? FB_BLANK_UNBLANK: FB_BLANK_POWERDOWN; + return FB_BLANK_UNBLANK; } static int pwm_backlight_probe(struct platform_device *pdev) Re: panel-lvds driver does not work anymore after upgrade to kernel 6.6 @brood  I have updated the backlight configuration, and the code builds successfully. The LVDS interface is now visible in DRM, but there is no output on the display. I am currently stuck at this stage. I have attached my code and the display details below for your review and suggestions. // SPDX-License-Identifier: GPL-2.0+ /*  * Copyright 2020 NXP  */   #include "imx8mp-evk.dts"   /  {       panel_lvds: panel-lvds1 {         compatible  = "panel-lvds";         backlight = <&lvds_backlight>;                  width-mm = <165>;         height-mm = <104>;           data-mapping = "vesa-24";         status = "okay";                  panel-timing {               clock-frequency = <29760000>;   /* 29.76 MHz */                 /* Horizontal */               hactive = <800>;               hfront-porch = <24>;               hsync-len = <72>;               hback-porch = <96>;                      /* Vertical */               vactive = <480>;               vfront-porch = <3>;               vsync-len = <7>;               vback-porch = <10>;                      /* Polarities */               hsync-active = <0>;               vsync-active = <0>;               de-active = <1>;               pixelclk-active = <0>;         };                  port {             panel1_in: endpoint {                 remote-endpoint = <&lvds1_out>;             };         };     }; };   &hdmi {     status = "okay"; };   &lcdif2 {   status = "okay"; };   /* LVDS1 */ &ldb {     status = "okay";       lvds-channel@1 {         #address-cells = <1>; #size-cells = <0>;                 status = "okay";         primary;         port@1 {             reg = <1>;             lvds1_out: endpoint {                 remote-endpoint = <&panel1_in>;             };         };     }; };   &ldb_phy {     status = "okay"; }; Display : Innolux G070Y2-L01
查看全文
eiq でトレーニングしたオブジェクト検出モデルを imx8mp ボードまたは PC で使用するにはどうすればよいでしょうか? こんにちは、 私は以下のルーチンに従って「eIQ_Toolkit_UG.pdf」に従ってモデルをトレーニングしました。 データセットをインポート -> モデルを選択 -> 検出 -> バランス -> NPU -> トレーナー -> 検証 -> デプロイ -> モデルをエクスポート -> Tensorflow Lite モデルを保存しました。 以下は検証結果です。 以下は輸出モデルの概要です。 モデルプロパティは以下のようになります。 上部のプロパティに表示されているように、このモデルの出力名はStatefulPartitionedCall、型はfloat32[1,2034,7]です。しかし、output_dataの定義はどこで入手できますか?このモデルを推論プログラムでどのように使用すればよいでしょうか? 私の推論プログラムでは、推論結果を取得するために以下のコードを使用しましたが、正しくないようです。   output_data =インタープリタ.get_tensor( output_details [ 0 ][ 'index' ])   印刷(出力データ)   i が範囲内( output_data .shape[ 1 ] )の場合:         スコア=出力データ[ 0 ][ i ][ 0 ]         クラスID =出力データ[ 0 ][ i ][ 1 ]         x_min =出力データ[ 0 ][ i ][ 2 ]         y_min =出力データ[ 0 ][ i ][ 3 ]         x_max =出力データ[ 0 ][ i ][ 4 ]         y_max =出力データ[ 0 ][ i ][ 5 ]         その他=出力データ[ 0 ][ i ][ 6 ]   eiq検出モデルの推論実現についてアドバイスをお願いします。   よろしくお願いします! ワン・タオタオ Re: How to use the object detection model trained by eiq on imx8mp board or pc? こんにちは@Zhiming_Liu eIQ ドキュメントではこの情報は見つかりませんでした。 imx8mp NPU 用の mobilenet ssd v3 を使用して object_detection モデルをトレーニングするために eiqtool を使用します。 eIQ_Toolkit_v1.16.0\workspace\モデル\mobilenet_ssd_v3\mobilenet_ssd_v3.ipynbに示されている例 推論は RTview と tensorflow を使用して行われますが、imx8mp には含めません。Tensorflow Lite推論を使用したいと思います。 テンソルの出力が得られます(クラスが1つあるため) 名前: StatefulPartitionedCall:0 テンソル: float32[1,2034,6] 位置: 392   (1, 2034, 2)、(1, 2034, 4)のスコアと境界ボックスに分割することにより、 そして、mobilenet_ssd_v3.ipynbと同じ出力処理に従います。境界ボックスとスコアが期待どおりに得られません。 SO、出力形式のシグネチャとは何でしょうか? 推測することはできます( https://community.nxp.com/t5/eIQ-Machine-Learning-Software/How-to-interpret-the-output-from-a-mobilenet-V3-correctly/より) モデルはクラスごとに2034個の検出を予測します。[1,2034,4]テンソルは、検出されたオブジェクトのボックスの位置(ピクセル単位[上、左、下、右])に対応します。 そして[1,2034,2]テンソルは私たちのクラスと背景のスコアに対応します。 eiq ツールでトレーニングしたモデルからは、正しく意味のある出力を取得できませんでした。このモデルは、出力の境界ボックスを組み合わせる独自の方法に従っているようで、rtview エンジンでのみ解釈できます。しかし、出力の詳細な説明をCANますか。rtview または tensorflow ライブラリを使用せずに表示する例はありますか? ありがとうございます。 Re: How to use the object detection model trained by eiq on imx8mp board or pc? HELP-->eIQ Documentationで eIQ ドキュメントを参照してください。
查看全文
关于使用 EB 的自由基的问题(针对 K3) 你好,团队 我可以问一下 EB 配置的 freertos 吗? 我正在尝试用 EB 配置为自由落体进行设置。 此时此刻,我有一个问题... 在 S32DS freertos 示例中,SYST 由 "vTaskStartScheduler "启动。 没问题。 但是,通过 EB(基于 MCAL),初始值如下。 问题来自 MCAL 初始代码。那些正在使用 OSIF 计数器... 然而,OSIF_init 并没有使 SYST. 例如,当前 val(SYST_CVR) 为 0。 我不知道如何在 "vTaskStartScheduler"(或 MCAL 配置)之前进行 SYST 配置。 问题是 如何踢 OSIF 计数器? 我是否要在 MCAL init 之前实现"vTaskStartScheduler" ? 谢谢。 EB TRESOS 许可证 RTD S32DS Re: Question aobut freertos with EB(for K3) 您好, 我认为该解决方案是正确的,因为我们将其提供给了RTD,但不知何故它没有发布到此RTD版本。 此致, 乔治 Re: Question aobut freertos with EB(for K3) Hi Quan Le 感谢您的支持。 但是,我的问题没有得到任何答复。 如果我失去了一些反馈,请告诉我。 (或者我需要等待 Jira 的反馈吗?) 谢谢。 Re: Question aobut freertos with EB(for K3) 嗨,@Luke_Chun。如果我的回答对您有帮助,请点击"接受为解决方案" 关闭主题。 Re: Question aobut freertos with EB(for K3) 您好,由于您的补丁仅适用于 OsIf 模块 => ,我已将此主题发送给 RTD 团队。 让我们看看他们是如何使用你的解决方案的。 https://jira.sw.nxp.com/browse/ARTD-184603 Re: Question aobut freertos with EB(for K3) 你好@lequana2 通过 K3 案例,我们找到了热电阻与 Freertos 的问题所在。 RTD 在 EB 和 S32CT 中都出现了同样的问题。 Syst 的第一个问题(我最初的问题)可以通过配置序列来解决。 不过,带 K3 的热电阻不适合带热电阻中断的 Freertos。 因此,我们为它制作了一些补丁并贴上了。 请问这种方法对吗? 或者有什么指导意见? 谢谢! Re: Question aobut freertos with EB(for K3) 你好@lequana2 感谢您的回复。 这里有更多信息。 1.客户的目标项目基于 EB,但客户没有使用 Autosar / OS。 客户希望使用 freertos。因此,我正在寻找与弗莱托斯集成的 EB。 明白了,只需点击几下鼠标,S32DS 和 S32CT 就可以使用 freertos。 2.S32K324, Rtd 4.0.0P14 HF1,freertos 版本未修复。 我使用的是 freertos 5.0.0,但请告诉我,freertos 版本是否会更改... 谢谢。 Re: Question aobut freertos with EB(for K3) 你好@Luke_Chun我来自 FreeRTOS 团队。请问,为什么 Tresos 需要 FreeRTOS?因为正如你所看到的,我们为 DS 做出了承诺,而且效果很好。如果您有这样的情况,我们或许可以提供更好的支持,并在未来加入 Tresos 样品。 关于 OsIf,也许 Base Bundle 团队@RaduPruna可以为他提供支持。但我们需要您当前的环境(哪个 NPI、哪个 RTD 版本、哪个 FreeRTOS 版本......),以便更好地提供支持。 最后,FreeRTOS 团队还能为您提供哪些相关支持?
查看全文
升级到内核 6.6 后,panel-lvds 驱动程序不再工作 您好, 我将 Linux 内核从 5.15.52 升级到 6.6。升级后,我的面板只显示了一条小条纹。我没有对设备树进行任何更改。当我使用 panel-simple 驱动程序而不是 panel-lvds 时,显示屏就能正常工作了。有人知道驱动程序的变化吗? 我使用 iMX8MP,面板连接到 LVDS1 接口。 dmesg 显示了一条信息,但我无法确定故障原因 dmesg | grep lvds [ 0.077630] platform panel-lvds1: Fixed dependency cycle(s) with /ldb-display-controller/lvds-channel@1 [ 2.511277] imx8mp-ldb ldb-display-controller: Failed to create device link (0x180) with phy-lvds [ 2.552129] imx8mp-ldb ldb-display-controller: Failed to create device link (0x180) with panel-lvds1 谢谢! i.MX 8M | i.MX 8M Mini | i.MX 8M Nano Linux Yocto Project Re: panel-lvds driver does not work anymore after upgrade to kernel 6.6 我也一直在为同样的问题苦苦挣扎了一个多星期,将这个属性('de-active = <1>; ')添加到我的设备树中的面板定时定义中终于解决了这个问题。我的显示屏现在能用了,谢谢你的帮助!如果我能给你不止 1 个赞,我会的 🙂 Re: panel-lvds driver does not work anymore after upgrade to kernel 6.6 @MicMoba 这是一个老话题,但我也遇到了同样的问题。 在我的案例中,我不得不通过 de-active =<1>; 属性来解决这个问题。 Re: panel-lvds driver does not work anymore after upgrade to kernel 6.6 在启动初期出现故障。这可能表明时钟出了问题。例如,检查驱动程序读取的节点 ldb 中的时钟名称。你用的是什么?drm 显示子系统还是帧缓冲区 (mxc)? Re: panel-lvds driver does not work anymore after upgrade to kernel 6.6 以下是我的设置。也许你发现了一个错误 / { backlight1: backlight1 { compatible = "pwm-backlight"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_lvds1>; default-brightness-level = <6>; pwms = <&pwm3 0 50000 0>; power-supply = <&reg_lvds1_reg_en>; enable-gpios = <&gpio2 20 GPIO_ACTIVE_LOW>; brightness-levels= <0 4 8 16 32 64 128 255>; status = "okay"; }; panel_lvds: panel-lvds1 { compatible = "panel-lvds"; backlight = <&backlight1>; width-mm = <218>; height-mm = <137>; data-mapping = "vesa-24"; status = "okay"; panel-timing { clock-frequency = <71000000>; hactive = <1280>; hfront-porch = <30>; hsync-len = <48>; hback-porch = <80>; vactive = <800>; vfront-porch = <3>; vsync-len = <6>; vback-porch = <14>; }; port { panel1_in: endpoint { remote-endpoint = <&lvds1_out>; }; }; }; }; &lcdif2 { status = "okay"; }; /* LVDS1 */ &ldb { status = "okay"; lvds-channel@1 { #address-cells = <1>; #size-cells = <0>; status = "okay"; primary; port@1 { reg = <1>; lvds1_out: endpoint { remote-endpoint = <&panel1_in>; }; }; }; }; &ldb_phy { status = "okay"; }; Re: panel-lvds driver does not work anymore after upgrade to kernel 6.6 是的,我检查了 DTB。我将 dtb 转回 dts。新的和旧的一样。我看不出有什么不同。 我使用的是 DataModul 10.1 英寸 TFT - WXGA - LVDS 面板 (TX26D207VM0AAA) Re: panel-lvds driver does not work anymore after upgrade to kernel 6.6 你好 你检查过 dtb 吗?你在开发哪个 lvds 设备? 此致 Re: panel-lvds driver does not work anymore after upgrade to kernel 6.6 @brood @brood感谢您的分享。我已经尝试过同样的方法,但并不奏效。我也是新手。 我的板:8MPLUSLPD4-EVK #include"imx8mp-evk.dts"   / { 背光1: 背光1 { 兼容 ="pwm-backlight" ; pinctrl-names ="默认" ; pinctrl-0 =<& pinctrl_lvds1> ; default-brightness-level =<6> ; pwms =<& pwm3 0 50000 0> ; 电源 =<& reg_lvds1_reg_en> ; enable-gpios =<& gpio2 20 GPIO_ACTIVE_LOW> ; brightness-levels=<0 4 8 16 32 64 128 255> ; status ="okay" ; };   panel_lvds: panel-lvds1 { 兼容 ="panel-lvds" ; backlight =<& backlight1> ;          宽度-毫米 =<218> ; 高度-毫米 =<137> ;   数据映射 ="VESA-24" ; status ="okay" ;          面板定时 { 时钟频率 =<71000000> ; hactive =<1280> ; hfront-porch =<30> ; hsync-len =<48> ; h back-porch =<80> ; vactive =<800> ; vfront-porch =<3> ; vsync-len =<6> ; vback-porch =<14> ; 去活动 =<1> ; };          端口 { panel1_in: 端点 { remote-endpoint =<& lvds1_out> ; }; }; }; }; &lcdif2 {   status = "okay"; }; /* LVDS1 */ &ldb { status ="okay" ;   lvds-channel@1 { #address-cells =<1> ; #size-cells =<0> ; status ="okay" ; 初级; 端口@1 { reg =<1> ; lvds1_out: 端点 { remote-endpoint =<& panel1_in> ; }; }; }; };   &ldb_phy { status ="okay" ; }; Re: panel-lvds driver does not work anymore after upgrade to kernel 6.6 你好@brood 我也遇到了同样的问题。能否请您在聊天中分享 DTS 文件?这将非常有帮助。 Re: panel-lvds driver does not work anymore after upgrade to kernel 6.6 @SanthoshRajavel我会检查 "lvds-channel@1 "节点中的 "fsl,data-mapping "和 "fsl,data-width "属性是否正确。 我在自己的 DTS 中将这些值定义为面板期望的特定值,这些值与驱动程序中定义的默认值不同。 我还想验证一下 "pinctrl-0 "和 "pinctrl-names "属性定义--我在背光节点定义中看到了这个属性,但我认为没有必要。 这个属性是在我的 "面板 "节点中定义的。 这些只是指针——我绝不是设备树配置方面的专家,但是这些东西突然成为了感兴趣的领域。 Re: panel-lvds driver does not work anymore after upgrade to kernel 6.6 你好,@SanthoshRajavel、 由于我的产品是专有的,所以我不能透露 DTS 的内容。不过,上述 DTS 中的这个片段显示,我在其中添加了 "de-active =<1>"属性,这就是我需要的修复方法: / { backlight1: backlight1 { compatible = "pwm-backlight"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_lvds1>; default-brightness-level = <6>; pwms = <&pwm3 0 50000 0>; power-supply = <&reg_lvds1_reg_en>; enable-gpios = <&gpio2 20 GPIO_ACTIVE_LOW>; brightness-levels= <0 4 8 16 32 64 128 255>; status = "okay"; }; panel_lvds: panel-lvds1 { compatible = "panel-lvds"; backlight = <&backlight1>; width-mm = <218>; height-mm = <137>; data-mapping = "vesa-24"; status = "okay"; panel-timing { clock-frequency = <71000000>; hactive = <1280>; hfront-porch = <30>; hsync-len = <48>; hback-porch = <80>; vactive = <800>; vfront-porch = <3>; vsync-len = <6>; vback-porch = <14>; de-active = <1>; }; port { panel1_in: endpoint { remote-endpoint = <&lvds1_out>; }; }; }; }; &lcdif2 { status = "okay"; }; /* LVDS1 */ &ldb { status = "okay"; lvds-channel@1 { #address-cells = <1>; #size-cells = <0>; status = "okay"; primary; port@1 { reg = <1>; lvds1_out: endpoint { remote-endpoint = <&panel1_in>; }; }; }; }; &ldb_phy { status = "okay"; }; Re: panel-lvds driver does not work anymore after upgrade to kernel 6.6 @brood 即使禁用 HDMI 并重新尝试设置,问题依然存在。 @MicMoba 我有一个单独的背光模块,通过它来控制背光。就我而言,不需要集成背光灯。 Re: panel-lvds driver does not work anymore after upgrade to kernel 6.6 也许会有帮助。在目前阶段,我记得这个补丁让我更进一步: diff --git a/drivers/video/backlight/pwm_bl.cb/drivers/video/backlight/pwm_bl.c --- a/drivers/video/backlight/pwm_bl.c +++ b/drivers/video/backlight/pwm_bl.c @@ -462,7 +462,7 @@ static int pwm_backlight_initial_power_state(const struct pwm_bl_data *pb) * 假设另一个驱动程序将在 * 适当的时候启用背光。因此,如果已禁用,请保持禁用状态。 */ - return active ?FB_BLANK_UNBLANK: FB_BLANK_POWERDOWN; + return FB_BLANK_UNBLANK; } static int pwm_backlight_probe(struct platform_device *pdev) Re: panel-lvds driver does not work anymore after upgrade to kernel 6.6 @brood 我已经更新了背光配置,代码成功构建。现在 DRM 中可以看到 LVDS 接口,但显示屏上没有输出。目前,我还停留在这个阶段。我在下面附上了我的代码和显示详情,供您查看并提出建议。 // SPDX-License-Identifier:GPL-2.0+ /* * Copyright 2020 NXP */   #include"imx8mp-evk.dts"   / {       panel_lvds: panel-lvds1 { 兼容 ="panel-lvds" ; 背光 =<& lvds_backlight> ;          宽度-毫米 =<165> ; 高度-毫米 =<104> ;   数据映射 ="VESA-24" ; status ="okay" ;          面板定时 { 时钟频率 =<29760000>; /* 29.76 MHz */   /* 横向 */ hactive =<800> ; hfront-porch =<24> ; hsync-len =<72> ; h back-porch =<96> ;        /* 垂直 */ vactive =<480> ; vfront-porch =<3> ; vsync-len =<7> ; vback-porch =<10> ;        /* 极性 */ hsync-active =<0> ; vsync-active =<0> ; 去活动 =<1> ; pixelclk-active =<0> ; };          端口 { panel1_in: 端点 { remote-endpoint =<& lvds1_out> ; }; }; }; };   &hdmi { status ="okay" ; };   &lcdif2 {   status = "okay"; };   /* LVDS1 */ &ldb { status ="okay" ;   lvds-channel@1 { #address-cells =<1> ; #size-cells =<0> ; status ="okay" ; 初级; 端口@1 { reg =<1> ; lvds1_out: 端点 { remote-endpoint =<& panel1_in> ; }; }; }; };   &ldb_phy { status ="okay" ; }; 显示屏:Innolux G070Y2-L01 Re: panel-lvds driver does not work anymore after upgrade to kernel 6.6 您使用的是 HDMI 面板吗? 我看到您激活了 HDMI 节点,这可能会导致冲突,具体取决于您的 pinmux。
查看全文
MCUBoot and Edgelock Secure Enclave on an MCXN947 using Zephyr I would like to use Zephyr's open source MCUBoot module on an IoT project using the FRDM-MCXN947 board, but also use the Edgelock Secure Enclave to increase key security. Am I correct that this would be difficult because it would require modification of MCUBoot source in order to get MCUBoot to use the Secure Enclave?  If I am correct about this, is it likely Zephyr / MCUBoot will use the Edgelock secure enclave in the future?  Am I correct that this improvement would provide a significant increase in security? Or should I be content with the key handling in standard Zephyr MCUBoot? Re: MCUBoot and Edgelock Secure Enclave on an MCXN947 using Zephyr @Harry_Zhang Do you have any feedback on if or when this might be accomplished? If it’s not soon, do you have any suggestions on how to use MCUBoot in Zephyr and maintain the best key security? Best wishes.! Clark Re: MCUBoot and Edgelock Secure Enclave on an MCXN947 using Zephyr Hi @ClarkS  Yes, i think using EdgeLock SE with MCUBoot is currently not trivial and would require source modifications or a custom integration layer. I will forward your requirements to our relevant team. Thank you for your suggestion. BR Harry
查看全文
使用 Zephyr 在 MCXN947 上实现 MCUBoot 和 Edgelock Secure Enclave 我想在使用 FRDM-MCXN947 板的物联网项目中使用 Zephyr 的开源 mcuBoot 模块,但也想使用 Edgelock Secure Enclave 来提高密钥网络安全。为了让 MCUBoot 使用安全飞地,需要修改 MCUBoot 的源代码,这是否会造成困难? 如果我的理解是正确的,那么 Zephyr / MCUBoot 今后是否有可能使用 Edgelock 安全飞地? 我说这种改进将显著提高网络安全是正确的吗?还是我应该满足于标准 Zephyr MCUBoot 的按键操作? Re: MCUBoot and Edgelock Secure Enclave on an MCXN947 using Zephyr @Harry_Zhang你对能否或何时实现这一目标有什么反馈意见吗?如果不是很快,你对如何在 Zephyr 中使用 McuBoot 并保持最佳密钥网络安全有什么建议吗? 最美好的祝愿 克拉克 Re: MCUBoot and Edgelock Secure Enclave on an MCXN947 using Zephyr 你好@ClarkS 是的,我认为目前将 EdgeLock SE 与 McuBoot 一起使用并非易事,需要修改源代码或自定义集成层。 我会将您的要求转达给我们的相关团队。谢谢您的建议。 BR 哈利
查看全文
GstV4l2Src:v4l2src0: Failed to allocate required memory We are using i.MX 8X with analog video via ADV7280A-M MIPI CSI-2 and Yocto Linux Scarthgap and Qt 6.8.2. The following works: gst-launch-1.0 v4l2src device=/dev/video2 ! video/x-raw,width=720,height=567,framerate=25/1 ! autovideosink But the equivalent does not work from Qt (gst_parse_element_make: no element "video"). Therefore am trying: gst-launch-1.0 -vvv v4l2src device=/dev/video2 ! rawvideoparse width=720 height=576 format=yuy2 ! autovideosink However that fails with ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to allocate required memory. The full output is: Setting pipeline to PAUSED ... error: XDG_RUNTIME_DIR is invalid or not set in the environment. error: XDG_RUNTIME_DIR is invalid or not set in the environment. EGL: Warning: No default display support on wayland EGL: Warning: No default display support on wayland Pipeline is live and does not need PREROLL ... /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstKMSSink:autovideosink0-actual-sink-kms: display-width = 1280 /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstKMSSink:autovideosink0-actual-sink-kms: display-height = 768 Pipeline is PREROLLED ... Setting pipeline to PLAYING ... New clock: GstSystemClock /GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw, format=(string)YUY2, width=(int)3840, height=(int)2160, framerate=(fraction)120/1, interlace-mode=(string)progressive, colorimetry=(string)1:4:5:1 /GstPipeline:pipeline0/GstRawVideoParse:rawvideoparse0.GstPad:sink: caps = video/x-raw, format=(string)YUY2, width=(int)3840, height=(int)2160, framerate=(fraction)120/1, interlace-mode=(string)progressive, colorimetry=(string)1:4:5:1 ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to allocate required memory. Additional debug info: /usr/src/debug/gstreamer1.0-plugins-good/1.24.0.imx/sys/v4l2/gstv4l2src.c(955): gst_v4l2src_decide_allocation (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Buffer pool activation failed Execution ended after 0:00:00.043197264 Setting pipeline to NULL ... ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error. Additional debug info: /usr/src/debug/gstreamer1.0/1.24.0.imx/libs/gst/base/gstbasesrc.c(3175): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: streaming stopped, reason not-negotiated (-4) Freeing pipeline ... Thank you -- Peter i.MX 8 Family | i.MX 8QuadMax (8QM) | 8QuadPlus Linux Multimedia Re: GstV4l2Src:v4l2src0: Failed to allocate required memory Hi @joanxie, GST_DEBUG=3 gst-launch-1.0 -v v4l2src num-buffers=5 device=/dev/video0 ! video/x-raw,format=GRAY8,depth=8,width=1280,height=800 ! videoconvert ! jpegenc ! multifilesink location=ar0144_mono_image.jpg issue is Starting GStreamer pipeline... Setting pipeline to PAUSED ... Pipeline is live and does not need PREROLL ... Pipeline is PREROLLED ... Setting pipeline to PLAYING ... 0:00:00.244283375 784 0xffffb4000b70 WARN v4l2 gstv4l2object.c:5023:gst_v4l2_object_get_crop_rect: Failed to get default crop rectangle with VIDIOC_G_SELECTION: Invalid argumet 0:00:00.244416875 784 0xffffb4000b70 WARN v4l2 gstv4l2object.c:5230:gst_v4l2_object_probe_caps: Failed to probe pixel aspect ratio with VIDIOC_CROPCAP: Invalid argument New clock: GstSystemClock 0:00:00.246845250 784 0xffffb4000b70 WARN v4l2 gstv4l2object.c:5023:gst_v4l2_object_get_crop_rect: Failed to get default crop rectangle with VIDIOC_G_SELECTION: Invalid argumet /GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw, format=(string)GRAY8, depth=(int)8, width=(int)1280, height=(int)800, framerate=(fraction)120/1, interlace-mode=(string)progressive /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, format=(string)GRAY8, depth=(int)8, width=(int)1280, height=(int)800, framerate=(fraction)120/1, interlace-mode=(string)progressie /GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:src: caps = video/x-raw, format=(string)GRAY8, depth=(int)8, width=(int)1280, height=(int)800, framerate=(fraction)120/1, interlace-mode=(string)progre /GstPipeline:pipeline0/GstJpegEnc:jpegenc0.GstPad:sink: caps = video/x-raw, format=(string)GRAY8, depth=(int)8, width=(int)1280, height=(int)800, framerate=(fraction)120/1, interlace-mode=(string)progressive /GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:sink: caps = video/x-raw, format=(string)GRAY8, depth=(int)8, width=(int)1280, height=(int)800, framerate=(fraction)120/1, interlace-mode=(string)proge /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw, format=(string)GRAY8, depth=(int)8, width=(int)1280, height=(int)800, framerate=(fraction)120/1, interlace-mode=(string)progresse 0:00:00.253795500 784 0xffffb4000b70 WARN v4l2 gstv4l2object.c:5023:gst_v4l2_object_get_crop_rect: Failed to get default crop rectangle with VIDIOC_G_SELECTION: Invalid argumet 0:00:00.253877250 784 0xffffb4000b70 WARN v4l2 gstv4l2object.c:5023:gst_v4l2_object_get_crop_rect: Failed to get default crop rectangle with VIDIOC_G_SELECTION: Invalid argumet 0:00:00.259326750 784 0xffffb4000b70 ERROR v4l2bufferpool gstv4l2bufferpool.c:721:gst_v4l2_buffer_pool_streamon: error with STREAMON 32 (Broken pipe) 0:00:00.259393750 784 0xffffb4000b70 ERROR bufferpool gstbufferpool.c:572:gst_buffer_pool_set_active: start failed 0:00:00.259435250 784 0xffffb4000b70 WARN v4l2src gstv4l2src.c:955:gst_v4l2src_decide_allocation: error: Failed to allocate required memory. 0:00:00.259461750 784 0xffffb4000b70 WARN v4l2src gstv4l2src.c:955:gst_v4l2src_decide_allocation: error: Buffer pool activation failed ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to allocate required memory. Additional debug info: /usr/src/debug/gstreamer1.0-plugins-good/1.24.0.imx/sys/v4l2/gstv4l2src.c(955): gst_v4l2src_decide_allocation (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Buffer pool activation failed 0:00:00.259690375 784 0xffffb4000b70 WARN basesrc gstbasesrc.c:3395:gst_base_src_prepare_allocation: Subclass failed to decide allocation Execution ended after 0:00:00.015445250 Setting pipeline to NULL ... 0:00:00.259771000 784 0xffffb4000b70 WARN basesrc gstbasesrc.c:3175:gst_base_src_loop: error: Internal data stream error. 0:00:00.259796500 784 0xffffb4000b70 WARN basesrc gstbasesrc.c:3175:gst_base_src_loop: error: streaming stopped, reason not-negotiated (-4) ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error. Additional debug info: /usr/src/debug/gstreamer1.0/1.24.0.imx/libs/gst/base/gstbasesrc.c(3175): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: streaming stopped, reason not-negotiated (-4) Freeing pipeline ... GStreamer command finished. Re: GstV4l2Src:v4l2src0: Failed to allocate required memory For completeness, this thread's original issue was solved using capsfilter, rather than rawvideoparse: player.source = "gstreamer-pipeline: v4l2src device=/dev/video2 ! capsfilter caps=video/x-raw,width=720,height=480,framerate=25/1" That does then have an intermittent SIGSEGV in gst_v4l2_object_fill_format_list, when used with Qt, but guess that is another issue. Re: GstV4l2Src:v4l2src0: Failed to allocate required memory Hi @Ahmed230, your message has a very large font size, making it hard to read. This thread is about ADV7280A-M (NTSC/PAL) working ok with: "! video/x-raw...", but not with: "! rawvideoparse..." Your message is about AR0144 image sensor not working with: "! video/x-raw". Different topic. Best to start a new post, and Ctrl+Shift+V to paste just the text, without the large font. Also replace the $NUMBER_OF_PIC, $VID_DEVICE, $FRAME_SIZE with the actual values. Re: GstV4l2Src:v4l2src0: Failed to allocate required memory My issue is with nxp 6.6.36 kernel for camera ar0144 on iMX8MM board to capture image or videos GST_DEBUG=3 gst-launch-1.0 -v v4l2src num-buffers=$NUMBER_OF_PIC device=$VID_DEVICE ! video/x-raw,format=GRAY8,depth=8,$FRAME_SIZE ! videoconvert ! jpegenc ! multifilesink location=ar0144_mono_image.jpg Starting GStreamer pipeline... Setting pipeline to PAUSED ... Pipeline is live and does not need PREROLL ... Pipeline is PREROLLED ... Setting pipeline to PLAYING ... 0:00:00.244283375 784 0xffffb4000b70 WARN v4l2 gstv4l2object.c:5023:gst_v4l2_object_get_crop_rect: Failed to get default crop rectangle with VIDIOC_G_SELECTION: Invalid argumet 0:00:00.244416875 784 0xffffb4000b70 WARN v4l2 gstv4l2object.c:5230:gst_v4l2_object_probe_caps: Failed to probe pixel aspect ratio with VIDIOC_CROPCAP: Invalid argument New clock: GstSystemClock 0:00:00.246845250 784 0xffffb4000b70 WARN v4l2 gstv4l2object.c:5023:gst_v4l2_object_get_crop_rect: Failed to get default crop rectangle with VIDIOC_G_SELECTION: Invalid argumet /GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw, format=(string)GRAY8, depth=(int)8, width=(int)1280, height=(int)800, framerate=(fraction)120/1, interlace-mode=(string)progressive /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, format=(string)GRAY8, depth=(int)8, width=(int)1280, height=(int)800, framerate=(fraction)120/1, interlace-mode=(string)progressie /GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:src: caps = video/x-raw, format=(string)GRAY8, depth=(int)8, width=(int)1280, height=(int)800, framerate=(fraction)120/1, interlace-mode=(string)progre /GstPipeline:pipeline0/GstJpegEnc:jpegenc0.GstPad:sink: caps = video/x-raw, format=(string)GRAY8, depth=(int)8, width=(int)1280, height=(int)800, framerate=(fraction)120/1, interlace-mode=(string)progressive /GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:sink: caps = video/x-raw, format=(string)GRAY8, depth=(int)8, width=(int)1280, height=(int)800, framerate=(fraction)120/1, interlace-mode=(string)proge /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw, format=(string)GRAY8, depth=(int)8, width=(int)1280, height=(int)800, framerate=(fraction)120/1, interlace-mode=(string)progresse 0:00:00.253795500 784 0xffffb4000b70 WARN v4l2 gstv4l2object.c:5023:gst_v4l2_object_get_crop_rect: Failed to get default crop rectangle with VIDIOC_G_SELECTION: Invalid argumet 0:00:00.253877250 784 0xffffb4000b70 WARN v4l2 gstv4l2object.c:5023:gst_v4l2_object_get_crop_rect: Failed to get default crop rectangle with VIDIOC_G_SELECTION: Invalid argumet 0:00:00.259326750 784 0xffffb4000b70 ERROR v4l2bufferpool gstv4l2bufferpool.c:721:gst_v4l2_buffer_pool_streamon: error with STREAMON 32 (Broken pipe) 0:00:00.259393750 784 0xffffb4000b70 ERROR bufferpool gstbufferpool.c:572:gst_buffer_pool_set_active: start failed 0:00:00.259435250 784 0xffffb4000b70 WARN v4l2src gstv4l2src.c:955:gst_v4l2src_decide_allocation: error: Failed to allocate required memory. 0:00:00.259461750 784 0xffffb4000b70 WARN v4l2src gstv4l2src.c:955:gst_v4l2src_decide_allocation: error: Buffer pool activation failed ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to allocate required memory. Additional debug info: /usr/src/debug/gstreamer1.0-plugins-good/1.24.0.imx/sys/v4l2/gstv4l2src.c(955): gst_v4l2src_decide_allocation (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Buffer pool activation failed 0:00:00.259690375 784 0xffffb4000b70 WARN basesrc gstbasesrc.c:3395:gst_base_src_prepare_allocation: Subclass failed to decide allocation Execution ended after 0:00:00.015445250 Setting pipeline to NULL ... 0:00:00.259771000 784 0xffffb4000b70 WARN basesrc gstbasesrc.c:3175:gst_base_src_loop: error: Internal data stream error. 0:00:00.259796500 784 0xffffb4000b70 WARN basesrc gstbasesrc.c:3175:gst_base_src_loop: error: streaming stopped, reason not-negotiated (-4) ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error. Additional debug info: /usr/src/debug/gstreamer1.0/1.24.0.imx/libs/gst/base/gstbasesrc.c(3175): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: streaming stopped, reason not-negotiated (-4) Freeing pipeline ... GStreamer command finished. Re: GstV4l2Src:v4l2src0: Failed to allocate required memory this time, what print error information you get?  I compare the bsp 6.6 with bsp 5.10, bsp 6.6 remove the code from 5.10 based this patch , did you try 5.10 bsp? https://github.com/nxptest/linux-imx/commit/4f87610383a0f365ee0c68d9354ddcf099240144 Re: GstV4l2Src:v4l2src0: Failed to allocate required memory PS @joanxie  Re: 0:00:00.518350875 427 0xffff80000b70 WARN v4l2 gstv4l2object.c:5023:gst_v4l2_object_get_crop_rect:v4l2src0:src Failed to get default crop rectangle with VIDIOC_G_SELECTION: Invalid argument this is because mxc_isi_cap_g_selection() is being called with: type 1 V4L2_BUF_TYPE_VIDEO_CAPTURE and target 1 V4L2_SEL_TGT_CROP_DEFAULT (and target 2 V4L2_SEL_TGT_CROP_BOUNDS) but is only expecting type V4L2_BUF_TYPE_VIDEO_OUTPUT or V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE https://github.com/nxp-imx/linux-imx/blob/lf-6.6.y/drivers/staging/media/imx/imx8-isi-cap.c#L1164 Adding handling for those makes the warning go away. (But then mxc_isi_cap_s_fmt_mplane is called and for some reason fmt changes from RGB565 720x480 to YUYV-16 3840x2160 anyway). Re: GstV4l2Src:v4l2src0: Failed to allocate required memory Hi @joanxie  We are using Yocto Scarthgap and linux-imx  uname shows 6.6.52 We forked from linux-imx after this commit: https://github.com/nxp-imx/linux-imx/commit/e0f9e2afd4cff3f02d71891244b4aa5899dfc786 If I add debug to drivers/staging/media/imx/imx8-mipi-csi2.c mxc_csi2_get_sensor_fmt(), that shows 720 x 480. Therefore am confused why  v4l2-ctl --get-fmt-video -d /dev/video2 shows 3840/2160 And wondering whether to implement VIDIOC_G_SELECTION or VIDIOC_CROPCAP somewhere for more consistency. Thank you -- Peter Re: GstV4l2Src:v4l2src0: Failed to allocate required memory what bsp version do you use? it seems the scale issue, that's why I asked you to test specific resolution, otherwise need to upscale to 3840, which would cause error Re: GstV4l2Src:v4l2src0: Failed to allocate required memory Hi @joanxie, thank you for replying. v4l2-ctl -d /dev/v4l-subdev1 --set-standard PAL Using "video/x-raw, width=720, height=480" works with gst-launch-1.0. However the issue is that using video/x-raw in gstreamer-pipeline: in Qt 6.8.2 (QML MediaPlayer) fails: ERROR GST_PIPELINE grammar.y:630:gst_parse_element_make: no element "video" Under Qt (which uses playbin) video/x-raw is not recognised as an element, because it is a caps filter. That is why I was trying to get a pipeline working without needing the video/x-raw caps filter in it... Ok, just found that there is a capsfilter element, so using that explicitly instead: player.source = "gstreamer-pipeline: v4l2src device=/dev/video2 ! capsfilter caps=video/x-raw,width=720,height=480,framerate=25/1" That almost works from Qt. Shows video for a bit but then segfaults with: 1 format_cmp_func gstv4l2object.c 1276 0xffffd80668dc 2 g_slist_insert_sorted_real gslist.c 913 0xfffff604fab4 3 g_slist_insert_sorted gslist.c 964 0xfffff60504e0 4 gst_v4l2_object_fill_format_list gstv4l2object.c 1324 0xffffd8065a60 5 gst_v4l2_object_get_format_list gstv4l2object.c 1373 0xffffd8065f2c 6 gst_v4l2_object_probe_caps gstv4l2object.c 5212 0xffffd806ed34 7 gst_v4l2_object_get_caps gstv4l2object.c 5310 0xffffd806ef38 8 gst_base_src_default_query gstbasesrc.c 1373 0xffffd9219490 9 gst_pad_query gstpad.c 4228 0xffffd90ec24c 10 gst_pad_query_caps gstutils.c 3117 0xffffd913140c 11 gst_v4l2src_negotiate gstv4l2src.c 786 0xffffd8079a04 12 gst_base_src_negotiate_unlocked gstbasesrc.c 3490 0xffffd9213e9c 13 gst_base_src_loop gstbasesrc.c 2915 0xffffd9215e7c 14 gst_task_func gsttask.c 399 0xffffd9122090 15 g_thread_pool_thread_proxy gthreadpool.c 350 0xfffff605d780 16 g_thread_proxy gthread.c 831 0xfffff605cad8 17 start_thread pthread_create.c 447 0xfffff6730fc4 18 thread_start clone3.S 76 0xfffff67931cc Will see what I can figure out. Either way, am wondering: v4l2-ctl --device /dev/video2 --all gives mxc-isi-cap_v1 Width/Height: 3840/2160 ... Guess because even though the ADV is only capable of 720 wide, the MIPI CSI-2 is capable of 3840. This changes it, but only temporarily: v4l2-ctl -d /dev/video2 -vwidth=720,height=480 It reverts back to 3840 when gstreamer is run without the capsfilter. Seeing as on our i.MX 8X based board, the MIPI CSI-2 is hard wired to the ADV, and will only ever be used as 720 wide, is there any way of configuring it to stay at 720 wide, rather than 3840 wide? That would make it "just work" and simplify the gstreamer pipeline for Qt etc? Thank you -- Peter Re: GstV4l2Src:v4l2src0: Failed to allocate required memory what format do you set for the ADV7280, how about set the specific resolution in the pipeline? for example, video/x-raw, width=720, height=480, it seems the issue related to the crop, you can try to set the resolution and test again Re: GstV4l2Src:v4l2src0: Failed to allocate required memory https://github.com/GStreamer/gst-plugins-good/blob/master/sys/v4l2/gstv4l2bufferpool.c#L668 if (obj- >ioctl (pool- >video_fd, VIDIOC_STREAMON, &obj- >type) < 0) goto streamon_failed;
查看全文
Question aobut freertos with EB(for K3) Hello Team May I ask about freertos with EB configuration? I’m trying to do the setup for freerots with EB configuration. At this time, I got one question… By S32DS freertos example, SYST is starting by “vTaskStartScheduler”. It is no problem. However, by EB(with MCAL based),  the initial is like below. The problem is coming from MCAL initial codes. Those are using OSIF counter.. However just OSIF_init did not make SYST. For example, Current val(SYST_CVR) is 0. I’m not sure how to make SYST configuration before “vTaskStartScheduler” (or MCAL configuration). Question is, How to kick the OSIF counter?(under freertos with EB) Do I implement "vTaskStartScheduler" before MCAL init? Thank you.  EB TRESOS LICENSES RTD S32DS Re: Question aobut freertos with EB(for K3) Hi, I think the solution is correct since we provided this to RTD but somehow it not reached this RTD release. Regards, George Re: Question aobut freertos with EB(for K3) Hi Quan Le Thanks for your supporting. However I did not have any answer about the my question. Please let me know, if I lost some feedback. (or Do I need to wait some feedback from Jira? not this ticket?) Thank you. Re: Question aobut freertos with EB(for K3) Hi @Luke_Chun. If my answer helps, please click "Accept as Solution" to close the thread. Re: Question aobut freertos with EB(for K3) Hi, as your patch is only for OsIf module => I have sent this thread to RTD team. Let's see how they use your solution. https://jira.sw.nxp.com/browse/ARTD-184603 Re: Question aobut freertos with EB(for K3) Hello @lequana2  We found what is problem about the RTD with freertos by K3 case. RTD is showing same issue both EB and S32CT. The first problem of Syst(my original question) is possible to fix configuration sequence. However, RTD with K3, it is not suitable Freertos with RTD interrupt. So, we made some patch for it and attached it. May I ask this approach is right way? Or any guidance for it? Thank you. Re: Question aobut freertos with EB(for K3) Hello @lequana2  Thanks for your reply. Here is more information.  1. The Customer's target project is based on EB but Customer did not use Autosar / OS.  Customer wishes to use freertos. So I'm seeking about the integrated EB with freertos.  Understood, S32DS with S32CT is possible to use freertos by just few mouse clicks.  2. S32K324, RTD 4.0.0 P14 HF1, freertos version is not fixed. I used freertos 5.0.0, but please let me know, the freertos version will be changed... Thank you.  Re: Question aobut freertos with EB(for K3) Hi @Luke_Chun I am from FreeRTOS team. May I ask why do you need FreeRTOS with Tresos ? Because as you can see, we commit for DS and it is working well. If you have the case, may be we can help better support and also include Tresos sample in the future. And related to OsIf, may be Base Bundle team @RaduPruna can help him with a support. But we need your current environment (which NPI, which RTD version, which FreeRTOS version...) to offer support better. Lastly, do any other thing FreeRTOS team can support you related to this issue ?
查看全文
PN7160 设计有效,但 PN7161 无效 我设计了带有 I2C 端口的 PN7160 和 PN7161 板。我用这个库测试了它们:GitHub-nxpnfclinux/Linux_libnfc-NCI:适用于基于 NCI 的恩智浦 NFC 控制器的 Linux NFC 堆栈 结果如下 1.所有 PN7160 板都运行良好。 2。所有 PN7161 板都无法运行,启动时出现故障。 PN7160 和 PN7161 板采用相同的设计。我没有获得苹果公司对 ECP 的授权。 我的问题 1.如果没有苹果公司对 ECP 的授权,PN7161 是否会像 PN7160 一样工作,或者根本不会工作? 2.除了 ECP,PN7161 和 PN7160 还有其他区别吗? 谢谢! Re: PN7160 design works but PN7161 doesn't work 请帮帮我、 我用 Pn7161 芯片设计了 nfc 板但启动时遇到了问题。 Re: PN7160 design works but PN7161 doesn't work 您好,ELECHOUSE, 能否请您分享一下问题的根本原因? 谢谢! BR Tomas Re: PN7160 design works but PN7161 doesn't work 不知道能否将链接粘贴到这里: https://www.elechouse.com/product/pn7160-nfc-rfid-module/ 我们已经解决了 PN7160 和 PN7161 模块的所有问题 Re: PN7160 design works but PN7161 doesn't work 只是对上述内容的更新以备将来参考: 通过应用以下主题中提到的相同解决方案,我们的问题迎刃而解: PN7160 TXLDO 在 VBAT 连接到 3V3 时保持 0V 电压 。 在我们的案例中,射频驱动由 3V3 控制,显然在所有情况下都无法通过 TXLDO 检查。禁用 TXLDO-Check 会产生射频信号。 目前还不清楚为什么有些 PCB 能通过测试,而有些则不能。 Re: PN7160 design works but PN7161 doesn't work 您好, 在一个应用中,我们使用了 PN7161 的 SPI 版本。 在同一批生产的 5 块印刷电路板中,有 3 块没有产生射频信号,但通过 SPI 进行了通信。 电子连接方面似乎没有问题。 你找到问题所在了吗? 提前谢谢您。 Re: PN7160 design works but PN7161 doesn't work 嗨,Elechouse,我喜欢你们的产品!您认为 PN7160 什么时候可以上市? Re: PN7160 design works but PN7161 doesn't work 我们又制作了 2 个新的 PN7160 板和 5 个新的 PN7161 板。除了我们上次制作的 5 个 PN7160 板外,我们还有: PN7160 板:7 个 PN7161 板: 5 个 它们的 PCBA 设计相同。测试结果是 7 个 PN7160 板:所有板都能正常工作 5 个 PN7161 板:没有一个能用。启动时全部失败.... 测试工具Rapberry Pi 软件: git clonehttps://github.com/NXPNFCLinux/linux_libnfc-nci.git-b NCI2.0_PN7160 如有任何建议,将不胜感激! 谢谢! Re: PN7160 design works but PN7161 doesn't work HI PN7161 的响应与 PN7160 完全相同,除非激活了特殊的 ECP 功能,否则它只是具有更多功能而已。 此致 丹尼尔 Re: PN7160 design works but PN7161 doesn't work 非常感谢你的答复。 您的意思是说,如果没有苹果公司的独裁,我们就无法使用 PN7161 的任何功能?甚至读取普通标签(如 Mifare)? Re: PN7160 design works but PN7161 doesn't work HI PN7161 与 PN7160 具有相同的功能,支持 Apple 增强型免接触式轮询 (ECP) 功能。 通用 PN7160 所采用的所有标准设计原则同样适用于 PN7161,其中包括额外的内容,但在外形、装配和功能上与 PN7160 完全相同。 PN7161 需要苹果公司授权 此致 丹尼尔
查看全文