Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
Solyball Cooling Ace Designed for Modern Living Solyball When temperatures begin to rise, maintaining a comfortable indoor environment becomes a priority for many people. Whether at home, in the office, or in a personal workspace, excessive warmth can affect concentration, relaxation, and overall comfort. This is where Solyball offers a convenient and practical solution. Designed with portability, simplicity, and modern living in mind, Solyball is a compact cooling device that helps users create a more pleasant atmosphere in a variety of indoor settings. One of the most notable features of Solyball is its lightweight and portable design. Unlike large cooling systems that can be difficult to move or require significant space, Solyball is compact enough to fit comfortably in almost any room. Its portable nature allows users to carry it from one location to another with ease, making it suitable for use throughout the day as needs change. Whether you are working in a home office, relaxing in the living room, or preparing for a restful night's sleep, Solyball can be positioned wherever additional comfort is desired. The versatility of Solyball makes it a valuable addition to many different indoor environments. In bedrooms, it can help create a more enjoyable atmosphere during warm evenings. Comfortable sleeping conditions are important for overall well-being, and a compact cooling device can contribute to a more pleasant bedtime experience. Solyball's convenient size allows it to fit neatly on a bedside table or nearby surface without creating clutter. For professionals and remote workers, Solyball maintaining a comfortable workspace can be essential for productivity. Warm indoor temperatures may sometimes make it difficult to stay focused on tasks and responsibilities. Solyball offers a practical way to improve comfort while working, helping users create a more pleasant environment throughout the day. Its compact footprint means it can sit conveniently on a desk or workstation without occupying excessive space. Solyball Living rooms and shared family spaces can also benefit from the convenience of Solyball. These areas often serve as central gathering points where people spend time watching television, reading, socializing, or simply relaxing. By incorporating Solyball into these spaces, users can enjoy a more comfortable atmosphere while going about their daily activities. Its modern appearance ensures that it blends naturally with contemporary home décor.
View full article
RT1176 LVGL + VGLITE:字体渲染错误 我正在尝试将 VGLITE 应用于我的代码中,该代码基于 RT1176 上的 LVGL。我正在运行演示基准测试。 当我设置时: #define LV_USE_DRAW_SW 1 #define LV_USE_DRAW_VGLITE 0 渲染效果很好。 当我启用 VGLITE 时 #define LV_USE_DRAW_SW 0 #define LV_USE_DRAW_VGLITE 1 字母被破坏了,它们看起来像是外星字体,即使在某些帧中它们被正确渲染。启用 VGLITE 后,演示程序会在场景 14 卡住。 我应该从哪里开始调查? Re: RT1176 LVGL + VGLITE: Bad font rendering 嘿@P3r3gr1nus ,我启用 vglite 时也遇到了同样的问题(文本渲染错误),请问您是否已经解决了这个问题? Re: RT1176 LVGL + VGLITE: Bad font rendering 你好@EdwinHz ,我发现问题与字符串中的字符数有关。我按顺序展示: 字符串 123 字符串 1234 字符串 12345 字符串 123456 字符串 1234567 字符串 12345678 字符串 123456789 字符串 1234567890 恰好从“String 12345”到“String 12345678”的字符串损坏了(字体异常),其他字符串都正常。该序列会重复出现,且行为是确定性的。当我将字体大小从lv_font_montserrat_14 更改为 lv_font_montserrat_12 时,也会出现同样的问题。 此时,了解 LVGL9 + VGLITE 是否已经过验证对我来说应该很有用。 Re: RT1176 LVGL + VGLITE: Bad font rendering 这里有一个关于这个问题的简短视频。似乎只影响文本。即使过了一会儿演示画面卡住了。 Re: RT1176 LVGL + VGLITE: Bad font rendering 你好@EdwinHz , 是的,如果我按照您的建议,在 conf.h 文件中禁用 VGLITE: LV_USE_DRAW_VGLITE 0 LV_USE_DRAW_SW 1 一切都很好。 然而,我的目标是启用 VGLITE GPU 加速。我使用了 demo_benckmark 作为参考,但最终目标将是我的应用程序。 此外,我没有使用 RGB888,而是使用了 LV_COLOR_DEPTH 16 缓冲区设置为 RGB565。 我忘了提一下,我的项目是基于 RT1176 的,我使用的是 FREERTOS。 你认为VGLITE有可能与LVGL一起使用吗? Re: RT1176 LVGL + VGLITE: Bad font rendering 嗨@P3r3gr1nus , 如“lvgl_examples_readme.md”中所述文件: “ GPU 和 PXP 不支持 8 位,请取消选中 `LV_USE_DRAW_VGLITE` 和 `LV_USE_PXP`。 在 Kconfig 中,或者像这样修改 mcux_config.h: ``` #define CONFIG_LV_USE_DRAW_VGLITE 0 #define CONFIG_LV_USE_PXP 0 #define CONFIG_LV_ATTRIBUTE_MEM_ALIGN_SIZE 1 #define CONFIG_LV_DRAW_SW_DRAW_UNIT_CNT 1 ” BR, 埃德温。 Re: RT1176 LVGL + VGLITE: Bad font rendering 你好@HasanIqbalKhan , 不,最后我禁用了 VGLITE。即使是成绩的提升也没有预期的那么好。
View full article
使用 Jlink-Segger 脚本下载 HSE 固件 你好 我需要将 FW 下载到 S32k310 中 目前,我使用的是移植到 s32k310 上的恩智浦演示程序 HSE_FW_INSTALL。 我注意到 Trace32 练习脚本可用于此目的。 有可能为此创建一个 Segger Jlink 脚本吗? 需要采取哪些步骤? 我需要一个更快的批量生产流程。 顺祝商祺! 法比奥 Re: Download HSE Firmware using a Jlink-Segger Script 目前,我们没有使用SEGGER J-Link安装HSE固件的现成解决方案或参考流程。 可用且经过验证的方法有 TRACE32 Practice 脚本(官方支持用于此目的)和 HSE Demo 应用程序(独立于调试器,可以移植并用于执行安装)。 如果您计划使用J-Link,则需要根据通用HSE安装顺序(UTEST标志编程、固件映像下载、RESET)自行开发自定义脚本解决方案,因为恩智浦目前不为该用例提供专用的J-Link脚本。 有关 SEGGER 的具体指导,请参阅其文档或联系其支持人员: https://www.segger.com/support/。
View full article
S32K148 ロック 誤ってJ-LINKを使用してS32K148 MCUをフラッシュしてしまったため、再度接続しようとした際に「JLINK unsecured is no longer working」というエラーが発生しました。どうすれば解決できますか? 接続中... - USB経由でプローブ/プログラマデバイス0に接続 - プローブ/プログラマーファームウェア: J-Link V9 コンパイル日: 2022年12月13日 11:14:50 - プローブ/プログラマー S/N: 25994751 - デバイス「S32K148」が選択されました。 - ターゲットインターフェース速度: 50 kHz (固定) - VTarget = 3.301V - ConfigTargetSettings() の開始 - ConfigTargetSettings() 終了 - 305us かかりました - InitTarget() 開始 - SWDが選択されました。JTAG -> SWD切り替えシーケンスを実行しています。 - フラッシュ内のアドレス 0x400 - 0x40F の保護バイトは、読み出し保護が設定されていることを示します。 デバッガー接続の場合、デバイスはセキュリティ保護されていない必要があります。 注意: セキュリティを解除すると、内部フラッシュの一括消去が実行されます。 - 以前にレジストリに保存されたデフォルトの動作を実行します。 - デバイスは保護されなくなります。 - デバイスのセキュリティ解除中にタイムアウトが発生しました。消去は停止しません。 - InitTarget() 終了 - 2.17秒かかりました - ID 0x2BA01477 の SW-DP が見つかりました - DPv0が検出されました - CoreSight SoC-400 以前 - APマップをスキャンして利用可能なすべてのAPを見つける - AP[2]: APマップの終端に達したため、APスキャンを停止しました - AP[0]: AHB-AP (IDR: 0x24770011, ADDR: 0x00000000) - AP[1]: JTAG-AP (IDR: 0x001C0000, ADDR: 0x01000000) - APマップを反復処理して使用するAHB-APを見つける - AP[0]: スキップ。CPUIDレジスタを読み取れませんでした - AP[1]: スキップ。AHB-APではない - CPUへの接続に失敗しました。リセット状態で接続を実行しています。 Re: S32K148锁死 こんにちは@ドンクイリ まず、暗号化されたセグメントは永続的なエラー値で書き込まれており、大量消去ではサポートされない可能性があるため、回復は保証されません。 ドキュメント6. S32K1xxシリーズMCUチップロックアップ現象についてお読みください。 https://mp.weixin.qq.com/s?__biz=MzI0MDk0ODcxMw==&mid=2247485716&idx=1&sn=979631aa2385a4e3c7651ee75ee252b4&chksm=e9124d92de65c484f1cfec7de451958cfd5cf818c46a4f71a7d3dd8a522af229c5a18aad58ff&scene=21#wechat_redirect Re: S32K148锁死 お返事ありがとうございます。 リンク先のドキュメントとチップのマニュアルをよく読みましたが、何度か試しても一括消去では復元できませんでした。S32FlashTool_v2.3.4を使いたかったのですが、S32K148をサポートしていません。S32K148をサポートするS32FlashToolはありますか? Re: S32K148锁死 こんにちは@ドンクイリ これは使用しているソフトウェアとは関係ありません。記事にもあるように、リセットピンの波形をテストして、復旧できるかどうかを確認してください。復旧できない場合は、時間を無駄にしないでください。
View full article
CSEC GenerateMACAddrMode 地址范围 圣诞快乐 你好 当我使用 CSEC 的 GenerateMACAddrMode 函数时,当地址值超过 0x7DFFF 时,会发生错误。这正常吗? Re: CSEC GenerateMACAddrMode address range 我的错 我的意思是无法从 512kb CSEC_DRV_GenerateMACAddrMode(CSEC_RAM_KEY,(uint8_t *)0x0007FFFC, 0x00000080, (uint8_t *)cmacout) 中取出; 但我使用 addr = 0x0007FFFC,len = 0x00000080 也没有错误,但超出范围 Re: CSEC GenerateMACAddrMode address range 你好@SaLan 这是 Addr 模式下 CMD_GENERATE_MAC 命令(也称为指针方法)的限制: 分区(即块大小)可以是 128KB、256KB 或 512KB,视衍生产品而定: 此致, Lukas
View full article
spi example code Hello, I am studying the spi example code provided by NXP in a project called 'Spi_Transfer_S32K312'. I want to know what each function means in the code, can I know the location of the header file? Re: spi example code Hi @mingimin  The header files are located under RTD → include within the project directory. Additionally, I recommend reviewing the S32K3/S32M27x SPI Driver Integration Manual and the User Manual included with the RTDs. These documents provide detailed information about the driver, including its limitations, hardware and software requirements, usage guidelines, and configuration instructions. They are helpful for a deeper understanding of the driver's behavior and capabilities. You can find these resources, for example, at the following path: C:\NXP\S32DS.3.5\S32DS\software\PlatformSDK_S32K3\RTD\Spi_TS_T40D34M50I0R0\doc Please note that the exact path may vary depending on the S32DS version and your installation directory. BR, VaneB
View full article
カスタムボードの Yocto BSP の DDR バイナリを置き換えるにはどうすればよいでしょうか? こんにちは、 カスタム ボードの Yocto BSP 内の DDR バイナリを置き換えようとしています。 新しいマシンが作成され、必要なファイルを含むレシピ ddr-firmware のディレクトリもカスタム メタ レイヤーに作成されます。しかし、SRC_URI に新しい値を割り当て、レシピ追加で元の値を削除しても、Bitbake が評価ボードの元のパスを検索するのを止めることはできません。レシピ追加を使用しない場合も、この検索については何も変わりません。 唯一機能する方法は、元のレシピをマスクし、カスタム レイヤーに新しいレシピを作成することです。 しかし、それは好ましい方法ではないと思います。これは、カスタム マシン用に作成された DDR バイナリを使用するのに簡単に実行できるはずです。ここで何が見逃される可能性があるでしょうか? よろしくお願いします! クレーン Re: How to replace DDR binaries in Yocto BSP for the custom board? はい、うまくいきました。NXP_FIRMWARE_LOCAL_DIR に設定されているフォルダーと正確に一致しないようです。しかし、いずれにせよ、それは機能します。 もう 1 つ質問があります。カスタム レイヤーの .bbappend で NXP-EULA ライセンスを閉じるにはどうすればよいでしょうか? よろしくお願いいたします。 クレーン Re: How to replace DDR binaries in Yocto BSP for the custom board? こんにちは、鶴 ご返信よろしくお願いします。 お客様の DDR にも DDR ファームウェアが含まれている必要があります。Yocto で BSP をビルドするときに、S32G3_LinuxBSP_44.0_User_Manual.pdf を参照して DDR ファームウェアを追加していただけますか。 BR ジョーイ Re: How to replace DDR binaries in Yocto BSP for the custom board? こんにちは、ジョーイ。 ご返信よろしくお願いします。 S32G3で、BSPは「bsp44.0」です。 よろしくお願いいたします。 クレーン Re: How to replace DDR binaries in Yocto BSP for the custom board? こんにちは、クレーン お問い合わせいただきありがとうございます。 使用している BSP のバージョンはどれですか? S32G3 または S32G2 チップを使用していますか? BR ジョーイ Re: How to replace DDR binaries in Yocto BSP for the custom board? こんにちは、クレーン フォルダ(fsl-車載-Yocto-bsp/build_s32g274ardb2/conf)内のlocal.confファイルを変更してみてください。 ACCEPT_FSL_EULA = "1" BR ジョーイ Re: How to replace DDR binaries in Yocto BSP for the custom board? こんにちは、ジョーイ。 .bbappend を追加しようとしましたが機能しませんでしたカスタムボード用。 ERROR: /home/crane/work/yocto/sources/meta-alb/meta-alb-bsp/recipes-bsp/ddr-firmware/ddr-firmware.bb: Unable to get checksum for ddr-firmware SRC_URI entry NXP-EULA: file could not be found The following paths were searched: .bbappendを試してみたLICENSE = "CLOSED"、LIC_FILES_CHKSUM = "" で、SUMMARYのみ、.bbappendも試しませんでした。すべて同じエラーメッセージが表示されます。 元のレシピに基づいてレシピを追加するのではなく、NXP からの元のレシピをマスクしてカスタム レシピを作成するのが、カスタム DDR バイナリを処理する唯一の方法ですか? よろしくお願いいたします。 クレーン Re: How to replace DDR binaries in Yocto BSP for the custom board? こんにちは、クレーン フォルダーに NXP-EULA ファイルを追加しましたか? BR ジョーイ Re: How to replace DDR binaries in Yocto BSP for the custom board? こんにちは、ジョーイ。 このファイルを元のレシピまたはカスタムレシピにコピーしようとしましたが、どちらも機能しません。ファイルは両方の方法で見つかりますが、どちらも以下のエラー メッセージを生成します。 ERROR: No recipes in default available for: /home/crane/work/yocto/sources/meta-crane/recipes-bsp/ddr-firmware/ddr-firmware_%.bbappend 私は NXP の DDR バイナリを使用していないので、NXP によって生成された NXP-EULA を使用するのは意味がないと思います。NXP-EULA のチェックを無効にするのが合理的ですよね? よろしくお願いいたします。 クレーン Re: How to replace DDR binaries in Yocto BSP for the custom board? こんにちは、クレーン ご返信よろしくお願いします。 この問題の根本原因を見つける必要があります。NXPのDDRファームウェアとNXP-EULAファイルを使用するには、YoctoでBSP44をビルドしてみてください。BSP44を正常にビルドできた場合は、DDRファームウェアを交換してから再度ビルドしてみてください。 BR ジョーイ
View full article
S32K388CVB-Q289 Driving PTC21 Dear Team I am using S32K388CVB-Q289, and enabling the FlexCAN_0 along with the TJA1153 CAN0. I am connected a second node on the physical bus for testing porpose. But the FlexCAN_0 gets Ack errors upon transmission When I double check that the TJA1153 transceiver is enabled, I measure pin 5 in J95 But it reads ~2 Volts. And when I change the GPDO85 register between 0 and 1, the voltage read on the pin is not affected. Although I can see that pin is Set high in GPDO85 register, and that the Output driver is enabled in MSCR85 Configuration: Re: S32K388CVB-Q289 Driving PTC21 Hi, to check pin level simply remove J95.5-6 jumper and check MCU (5) and TJA1153 (6) side. Note TJA1153 has VIO connected to VDD_HV_B_PERH (VDD_HV_B 3.3V) using J804, while used MCU pins are on VDD_HV_A (5V) There is no need to drive EN pin, unless user want to switch between TJA1153 modes. Both EN and STB_N are pulled up to VIO by external resistors. STB_N should be driven low by MCU to allow local configuration if device is in Vanilla state. At the end of config TJA1153, STB is put back to Normal mode with EN, STB_N high. If you see message on the bus, but it is not ACKed, most probably it is due to inconsistent CAN bit timing between both nodes. Anyway, ready example for S32K388EVB is posted on  https://community.nxp.com/t5/S32K/Need-MCAL-working-CAN-Configuration-for-S32K388-EVB-bench/m-p/1923345/highlight/true#M38660   BR, Petr Re: S32K388CVB-Q289 Driving PTC21 Thanks for your response. The voltage levels seems now good. EN and nSTB go to high. Still I get Ack errors, with nothing appearing on the bus in my test measurement tool. Is it possible that my transceiver is in Vanilla state, and hence it is not operational till I configure it once? I read the example, but it would be way easier for my current setup to just send the CAN messages from test tool, rather than connecting the transceivers to each other. Can you share with me the initialization sequence, what I should send through CAN for a basic configuration that just send and receive (no security requirements needed)? Re: S32K388CVB-Q289 Driving PTC21 Hi, by default the device is in Vanilla state so must be configured, either from host or remotely. After configuration, the state can be changed, but in examples it is commonly kept in Vanilla state, so init is needed after each power on. If the posted example is working between FlexCAN modules on the board, it should work as well if just single one is connected to your CAN tool. In that example the ID being transmitted is added to the CAN0 transceiver's passlist, other configurations are left as default. You can refer to below example, done in IP level,  for another init sequence. https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K358-FlexCAN-TXRX-ISR-S32DS35-RTD400-500/ta-p/1981987 It expects transceiver in Vanilla state as well and set transceiver's passlist to pass all std and ext ID and do not block any message coming from bus. Finally leaving configuration mode without writing to non-volatile memory nor locking the transceiver (keeping Vanilla). BR, Petr
View full article
启动 QSPI 时 S32g274a 中的 LLCE 固件加载失败 大家好, 我们正在使用 S32g274a,其中所有 LIN 核心都用作 UART,我们还使用中断转发来让 LIN 核心在有 rx 数据时获取中断。一切都与调试器完美配合。但我们面临的问题是,当我们将图像刷入外部启动存储器(如 qspi flash)并从中启动时,代码会在 llce_firmware_load() 处停止。 有什么方法可以解决这个问题吗? S32G2 #LLCE 回复:启动 QSPI 时 S32g274a 中的 LLCE 固件加载失败 你好@naveenkumar_muthusamy , 您能提供更多有关您的设置的信息吗? 我了解您在这个项目中使用 Core M7,我的理解正确吗? 我知道您使用的是定制板而不是 RDB2,我的理解正确吗? 您使用的 LLCE FW 是什么版本? 您使用的 RTD 是什么版本? 您是从一个例子开始您的项目吗?如果有的话,哪一个? 您以前能够从 QSPI 启动 LLCE 应用程序吗? 您能描述一下构建二进制文件并将其刷入 QSPI 闪存的一般过程吗? 您如何识别程序正在阻止上述函数llce_firmware_load() 中的执行。 提前感谢提供的信息。
View full article
Stresstest fails at 3 frequencypoints but passes with 1 frequencypoint, LPDDR4 Hello everyone, I had asked a similar question when i used the mScale DDR Test Tool and that error was resolved when switched to ConfigTool V15. I am currently working on a board bring-up with the following combination of SOC, RAM and Software for the RAM-Stresstest: - i.MX 8M Plus (1600 MHz) + Micron LPDDR4 4GB (MT53D1024M32D4DS) - iMX Config Tool v24.12 I have used the NXP RPA Excel sheet for generating the according ".ds"-file for the Stresstest program. Also using the standard parameters in the "DDR Configuration Sheet" results in the same error.  The question is as following: Why does the Stresstest run smoothly and without errors, even under temperature fluctuations, when chosing 2000 MHz as the single frequency for the test, but fails when i chose the same parameterset, but now with three frequency points enabled. In that case the default, additional 200 MHz and 50 MHz, are tested as well.  Any help is hugely appreciated Greetings Niko i.MX 8 Family | i.MX 8QuadMax (8QM) | 8QuadPlus Re: Stresstest fails at 3 frequencypoints but passes with 1 frequencypoint, LPDDR4 Hello, If selecting a frequency range to test, ensure that the start frequency test is within ±50MHz of the frequency that the DDR initialization script is tuned for and make sure end frequency is no less than start frequency and within 100Mhz of the start frequency. Best regards. Re: Stresstest fails at 3 frequencypoints but passes with 1 frequencypoint, LPDDR4 I have already extensively tested the ODT, PDDS, Vref etc. For our highest target frequency i can get the stresstest running succesfully, without errors, when its the only tested frequency -> i assume our layout is good, because the most critical operating point works. Also in the first test run when 200 and 50 MHz are enabled. Only from the second run errors arrise in the highest frequency operating point as well -> i assume some the firmware or the Config Tool dont work as expected: So you´d test the 2000 MHz/200 MHz and 50 MHz seperately and then just enable the 3 frequencies in the RPA sheet?  Re: Stresstest fails at 3 frequencypoints but passes with 1 frequencypoint, LPDDR4 Hello, It is suggested to run the stress test at the target operating frequency for an extended period of time to verify the DDR performance on the target board. Running the stress test higher/lower than the target operating frequency is not meaningful. The signal waveform may change a lot as the frequency increases/decreases. Therefore, passing the stress test at a frequency higher/lower than the target operating frequency does not necessarily mean that there is more timing margin. To pass the stress test you may need to change: ODTImpedance Desired ODT impedance in Ohm. Valid values for DDR4=240,120,80,60,40. Valid values for LPDDR4=240,120,80,60,40 TxImpedance Write Driver Impedance for DQ/DQS in ohm (Valid values for all DDR type= 240, 120, 80, 60, 48, 40, 34) ATxImpedance Write Driver Impedance for Address/Command (AC) bus in ohm (Valid values for all DDR type = 120, 60, 40, 30, 24, 20) Best regards.
View full article
Separating Control Plane and Data Plane between GPP and AIOP on LS2085 This document introduces a method to separate control plane and data plane between GPP(ARM) and AIOP based on different L4 protocols implemented in the AIOP software. So far, in the current MC version, this scenario could not be implemented from WRIOP using DPDMUX, so it is a good choice for users to separate the traffic in AIOP.   1. Basic Concept of DPAA2 Objects   2. AIOP Application to Implement Control in ARM and Data Plane in AIOP   3. Build AIOP Application Project with CodeWarrior   4. Running AIOP Application Program on LS2085ARDB QorIQ LS2 Devices
View full article
MCX W72 Knowledge hub The MCX W72x family features a 96 MHz Arm® Cortex®-M33 core coupled with a multiprotocol radio subsystem supporting Matter, Thread, Zigbee and Bluetooth LE. The independent radio subsystem, with a dedicated core and memory, offloads the main CPU, preserving it for the primary application and allowing firmware updates to support future wireless standards. The MCX W72x also offers advanced security with an integrated EdgeLock® Secure Enclave Core Profile and will be supported by NXP's EdgeLock 2GO cloud services for credential sharing. The MCX W72x family includes Bluetooth Channel Sounding capabilities, with a dedicated on-chip Localization Compute Engine to reduce ranging latency. It incorporates additional memory to support application-specific code, connectivity stacks and over-the-air firmware updates. In addition, the radio subsystem can run the full Thread or Zigbee stack alongside the Bluetooth Low Energy stack. This delivers reliable wireless performance, as the real-time activities of the radio run on a separate core from the application. Building on NXP's strong history of providing industrial edge solutions, the MCX W series offers a wide operating temperature range from -40 °C to 125 °C and peripherals for industrial applications, including an optional CAN interface and will be part of NXP's 15-year Product Longevity program to support long-term industrial use. The MCX W series is supported by the MCUXpresso Developer Experience to optimize, ease and help accelerate embedded system development.   Security Certifications  PSA Certified Level 2 SESIP Level 2 Security Target  SESIP Level 2 KW47/MCXW72 SESIP certificate and ST are on TrustCB website Regulatory Certifications European Union Declaration of Conformity - FRDM MCXW72 MIC Radio Certificate - FRDM-MCXW72 European Union Declaration of Conformity - MCXW72-LOC MIC Radio Certificate - MCXW72-LOC Bluetooth Qualifications Qualified Products | Bluetooth® Technology Website Q360996: KW47 / MCX W72 Bluetooth LE 6.0 (Channel Sounding) Controller Q332147: KW47 / MCX W72 Bluetooth LE 6.0 (Channel Sounding) Host Documents MCX W72 Product Family Data Sheet MCX W72 Reference Manual Errata Sheet for MCX W72 MCXW72 Hardware Design Guide   Getting Started with Matter on MCX W72 platforms Getting Started with OpenThread on NXP MCX W72    FRDM-MCXW72 User Manual Getting Started with the FRDM-MCXW72   MCX W72-LOC User Manual Bluetooth Interested in Bluetooth technology? Bluetooth® Low Energy Primer – Essential reading for understanding BLE fundamentals. Bluetooth® Specifications – Full list of standards, protocols, and technical documents. Awards and Recognition - Every year, the Bluetooth Special Interest Group (SIG) celebrates the hard work and commitment of working groups, committee members, and contributors who have been recognized by their peers as making a difference in advancing Bluetooth technology.  2024: Channel Sounding 2025: Channel sounding amplitude-based attack resilience, LE test mode enhancements and Ranging profile and service.  Bluetooth AI Assistant - Amber   Bluetooth Feature Overview Bluetooth_5.0_Feature_Overview  Bluetooth_5.1_Feature_Overview  Bluetooth_5.2_Feature_Overview Bluetooth_5.3_Feature_Overview Bluetooth_5.4_Feature_Overview Bluetooth_6_Feature_Overview Bluetooth_6.1_Feature_Overview Bluetooth_6.2_Feature_Overview Bluetooth_6.3_Feature_Overview Bluetooth Core Specification Core Specification 4.0 Core Specification 4.1 Bluetooth 4.1 FAQ Core Specification 4.2 Bluetooth 4.2 FAQ Core Specification 5.0 Core Specification 5.1 Core Specification 5.2 Core Specification 5.3 Core Specification 5.4 Core Specification 6.0 Core Specification 6.1 Core Specification 6.2 Core Specification 6.3   Application Notes Software, Hardware and Peripherals: AN14850 Boosting application performance with MCX W72: This application note describes the usage of the dual-core architecture in the MCX W72 microcontroller to improve performance in generic embedded applications. AN14937 32kHz Crystal-less mode on MCX W72: This application note provides information on the 32 kHz Crystal-less mode on the MCX W72 device. This mode allows you to reduce the cost of the system, without compromising the 32 kHz clock accuracy. The Free‑Running Oscillator (FRO32K) is used as the 32 kHz clock source and is calibrated against the 32 MHz RF oscillator through the Signal Frequency Analyzer (SFA) module of MCX W72 AN14745 Features, Usage, and Capabilities of Smart Power Switch on the MCX W72: This application note describes the use of the smart power switch in the MCX W72microcontroller. The MCX W72 integrates a programmable solid-state switch that turns connected components on or off, including MCX W72 power domains. AN14747 Loadpull test Report for MCX W72: This document explains the purpose of measuring the supply current, the transmit power, and the harmonics level. These measurements are monitored while the complex output load seen by the device under test (DUT) is tuned in amplitude and phase. Power Management:  AN14739 MCX W72 Bluetooth Low Energy Power Consumption Analysis: This document provides the power consumption analysis of the MCX W72 (IIOT) wireless MCU using the MCXW72-EVK board AN14745 Features Usage and Capabilities of Smart Power Switch on MCX W72 Microcontroller:  This application note describes the use of the smart power switch in the MCX W72 microcontroller. The MCX W72 integrates a programmable solid-state switch that turns connected components on or off, including MCX W72 power domains. AN14841 802.15.4 Matter and Zigbee Power Consumption Analysis for MCX W72: This document provides the power consumption analysis of the Kinetis MCX W72 (IIoT) wireless MCUs. AN14742 Power Management Hardware for the MCX W72: This application note describes the usage of the different modules dedicated to power management in the MCX W72microcontroller AN14664 Coincell Hardware Recommendations for Kinetis BLE Applications: his document describes some hardware and software solutions to minimize the peaks of current at the coin cell level RF: AN14865 Channel Sounding Fundamentals for the KW47 and MCX W72: This document provides an overview of the fundamentals for CS technology and how it can be used for custom solutions and applications. AN14779 Printed Channel Sounding Antennas for the KW47 and MCX W72: his application note is focused on printed antennas implemented on printed-circuit boards (PCB), designed by NXP for the KW47 and MCX W72 controllers AN14832 Fundamental Steps to Design a Channel Sounding Board - Creating a Simple PCB without Diversity: In this document, an example of a minimalistic CS subsystem is presented. Attention is paid to the Radio-Frequency (RF) path, since RF circuitry strongly influences the properties of the whole CS application. AN14747 Loadpull Test Report for MCX W72: This document explains the purpose of measuring the supply current, the transmit power, and the harmonics level. These measurements are monitored while the complex output load seen by the device under test (DUT) is tuned in amplitude and phase. AN14868 RF Modeling of Channel Sounding in ANSYS: focuses on techniques for simulating and analyzing channel sounding in wireless communication systems using ANSYS tools AN14855 Channel Sounding Tests in Different Environments: This application note is about Bluetooth Channel Sounding (CS), a technique for measuring the distance between two devices in the Bluetooth frequency band. It explains key factors affecting accuracy AN14869 Fundamental Steps to Design a Complex Channel Sounding Board:  It focuses on creating hardware that supports advanced CS features, including antenna diversity and optimized RF paths, to improve accuracy and mitigate issues like multipath propagation. AN2731 Compact Planar Antennas for 2.4GHz Communication: This document is not an exhaustive inquiry into antenna design. It is instead focused on helping the customers understand enough board layout and antenna basics to select a correct antenna type for their application, as well as avoiding typical layout mistakes that cause performance issues that lead to delays AN14889: FRDM-MCXW72 Radio Frequency System Evaluation Report for Bluetooth Low Energy and for IEEE 802.15.4 This document provides the radio frequency (RF) evaluation test results of the FRDM-MCXW72 board for Bluetooth Low Energy (2FSK modulation) and IEEE 802.15.4 (OQPSK modulation) applications.  Security: AN14648 MCX W72 In-System Programming Utility: The document provides steps to boot the MCX W72 MCU in ISP mode and establish various serial connections to communicate with the MCU AN14613 MCX W72 Secure Boot using SEC tool: The MCX W72 is a low-power, highly secure, single-chip wireless MCU, the contents of flash memory can be saved as encrypted data, which can be decrypted instantly. It helps in protecting the sensitive data and algorithms. AN14646 Debug Authentication on MCX W72: This application note describes the steps for debug authentication using the MCUXpresso Secure Provisioning Tool (SEC). AN14728 MCX W72 Flash Encryption using NPX: There is an increasing requirement to protect the application code and data stored in flash memories in an encrypted form due to security reasons. The NVM PRINCE XEX (NPX) is a module inside the Flash Memory Controller (FMC) that allows customers to protect the contents of flash regions (up to four regions). It performs on-the-fly, low-latency encryption and decryption of flash contents, and it is transparent to the developer and to the Cortex-M33 platform. No special handle is needed from the perspective of the developer. AN14644 MCX W72 Managing Lifecycles: This document describes the following: Lifecycle stages that are available to the user, how to access the lifecycles, limitations of the lifecycles, how to transition to the next lifecycle AN14670 EdgeLock 2GO Provisioning via SPSDK for MCUs: EdgeLock 2GO is a fully managed cloud platform operated by NXP that provides secure provisioning services for easy deployment and maintenance of IoT devices that integrate NXP MCU, MPU, and EdgeLock SE05x secure elements. AN14624 EdgeLock 2GO PRovisioning via Secure Provisioning Tool (SEC) for MCUs: EdgeLock 2GO is a fully managed cloud platform operated by NXP that provides secure provisioning services for easy deployment and maintenance of IoT devices that integrate NXP MCU, MPU, and EdgeLock SE05x secure elements. AN14544 EdgeLock 2Go Services for MPU and MCU: EdgeLock 2GO is the service platform of NXP for provisioning and managing IoT devices. It lets you securely install keys and certificates into your devices, either during manufacturing or in the field, and then keep credentials up to date during the device life cycle. EdgeLock 2GO uses the security capability of each device, for optimal levels of security across your entire IoT fleet. Bluetooth Training Bluetooth Low Energy 6.0 NXP Training MCX W Series Training - NXP Community   RF Switch Comparison Absorptive/Reflective Standards Comparison ETSI / FCC / ARIB requirements BLE Channel Sounding  - Overview BLE Channel Sounding - RF Hardware BLE Channel Sounding - ANSYS Modeling Tools  BLE Channel Sounding - Antenna Prototypes Validation Measurements Equipment Wireless Equipment: This article provides the links to the Equipment that helps to the project development  Useful Links Debug probe firmware installation for the KW47-EVK and FRDM-MCXW72 This post will cover how to install the CMSIS-DAP/SEGGER J-link firmware for the KW47-EVK and FRDM-MCXW72 using NXP’s MCU-LINK installer. How to generate a Standalone IAR toolchain project from MCUXSDK application example - KWX/MCWX  Updating NBU for Wireless Examples on KW47/MCXW72This post will cover how to update the NBU firmware How to import and run demo examples with MCUXpresso for Visual Studio Code: This article gives information on how to import and run demo examples from the new SDK with ARM GCC toolchain, in MCUXpresso for Visual Studio Code. [MCUXSDK] How to use GitHub SDK for KW4x, MCXW7x, MCXW2x - NXP Community this community post provides step by step how to use GitHub SDK [MCUXSDK] GitHub SDK - Documentation for Bluetooth LE platforms - NXP Community this community post provides the documentation for BLE platforms.  The best way to build a PCB first time right with KW47 (Automotive) or MCXW72 (IoT/Industrial): In this community provides the important link to build a PCB using a KW45 or K32W148 and MCXW71 and all concerning the radio performances, low power and radio certification (CE/FCC/ICC) Workaround implementation for DCDC failure during drive strength change a DCDC failure can occur infrequently during a drive strength change to low, and the DCDC output voltage becomes greater than or equal to the current output voltage. How to use the HCI_bb on Kinetis family products and get access to the DTM mode:  This article is presenting two parts: How to flash the HCI_bb binary into the Kinetis product. Perform RF measurement using the R&S CMW270 BLE HCI Application to set transmitter/receiver test commands: This article provides the steps to show how user could send serial commands to the device. Bluetooth LE HCI Black Box Quick Start Guide : This article describes a simple process for enabling the user controls the radio through serial commands. Using HCI_VENDOR_CONFIG_TX_POWER on KW47 and MCXW72 Bluetooth LE Devices Kinetis (../45/47/43;MCX W71/72/70) & MCX W23 Power Profile Tools (including Localization):  This page is dedicated to the Kinetis (KW35/KW38/KW45/KW47/KW43) and MCX W7x (MCX W71/W72/W70) Power Profile Tools. It will help you to estimate the power consumption in your application (Automotive or IIoT) and evaluate the battery lifetime of your solution. One Wireless Connectivity Power Profile Tool KW47/MCXW72 32MHz & 32kHz Oscillation margins: this article provides the properly configuration for the Oscillation margins for the circuit. Errata ERR053377: Use Cases for Different Message Buffer ConfigurationsThis article discusses the different use cases and configuration of the errata "ERR053377: FlexCAN: Message Buffer (MB) and Enhanced RX FIFO Filter Element (ERFFEL) Memory Corruption" CAN-FD maximum baud rate on KW47 and MCXW72  This article describes the clock accuracy requirements and FlexCAN configuration needed to achieve the maximum supported CAN FD data rate of 6 Mbps on KW47 and MCXW72 devices. It explains how to use the FRO192 clock in closed-loop trim mode with a 32 MHz crystal reference and provides example code for clock and CAN FD configuration. Videos NXP Channel Sounding technology interfacing with Google Pixel 10 This is a demo showing the MCX W72 LOC board interacting with Google Pixel 10 phone using channel sounding Exploring Bluetooth Channel Sounding on FRDM-MCXW72 - Part 1: In this video, you will see step‑by‑step how Bluetooth® Channel Sounding works using NXP’s Rate2 distance‑estimation solution. Performing the demonstration includes a computer with VS Code, the MCUXpresso extension and toolchains installed, a FRDM‑MCXW72 development board and a smartphone running the BLE Hero application. Exploring Bluetooth Channel Sounding on FRM-MCXW72 - Part 2:  Concluding the demonstration of Bluetooth® Channel Sounding, part two of this presentation continues with a brief review of the testing setup and walks you through running board‑to‑board measurements
View full article
如何真正实现PT60的中断嵌套 最近在支持几个PT60的家电项目,遇到一个共同的问题,就是程序运行的时候,显示数码管会有不规律的闪烁。 几个项目都是以触摸TSI为核心的,对方工程师反应,如果把TSI的中断关闭就不会有闪烁现象。数码管的扫描程序是在MTIM的中断中完成的,经初步分析推测,应该中断时序错乱导致的问题。 因此我们想着这个应该用中断嵌套的方式可以解决。 中断嵌套的定义简单来说,就是当MCU正在处理一个低优先级的中断的时候,来了一个高优先级的中断,系统此时就会放下低优先级转向去执行高优先级的,完了之后继续回来执行低优先级的。 按照这个逻辑,我们应该只要将各个中断的优先级预先设好就没有问题了。项目一共用了四个中断TSI,RTC(这两个中断组合完成TSI扫描按键,是基于sam之前写的的算法),MTIM(数码管扫描),KBI(用作低功耗唤醒)。 因此,我们把MTIM的优先级设成最高,就应该不会再出现闪烁的现象了,但改完之后,结果依旧失败。   经过不断讨论以及查找数据手册,最终实现了,但不得不说PT60实现中断嵌套还是挺麻烦的。 我们一步一步来:   1.首先我们来看CPU是执行中断的顺序。其余步骤没有什么特别,关键就在于第2步。 2.我们来看这个I位的作用。当进入某个中断之后,这个I位就会被自动置位,也就是系统将整个interrupts都给关掉了,这么做的原因也就是为了让系统在执行某个中断的时候,不会被其他的中断给干扰打断。 那么这就是为什么我们会中断嵌套失败的根本原因! 3.因此,如果我们需要使用中断嵌套的话,那么就需要在每个中断程序里面添加这个清楚CCR寄存器I位的指令,asm cli。 4.因为中断嵌套被启用了,有潜在的风险会导致进中断前一些堆栈数据出错或者中断优先级出问题等,那么在中断程序的最后,我们再加一句话,让一切恢复正常就可以了 IPC_SC_PULIPM = 1;   经过以上步骤,中断嵌套就能够实现了。     但在这个过程中,遇到了几个问题,也和大家分享下 1.PT60的中断会自己嵌套自己: 手册中有提到,高优先级和同级中断都是可以抢占低优先级的。 我举个例子来说明: 现在有两个中断,1号中断--低优先级0级,2号中断--高优先级1级。 1号中断正在执行的过程中,此时2号中断过来打断了他,系统必然要先把2号中断执行完。之后再回去执行1号中断剩下的部分。但很不巧,此时新的1号中断又来了,就是说上一次的1号中断还没跑完,又被新的1号抢占了,也就是自己嵌套了自己,最后必然导致全部中断的时序都出现了问题。 这是一种潜在的隐患,我们的解决方法就是:让0级的1号中断一开始执行中断程序之后,让其把自身的中断等级提高一级,中断结束的时候在加上上面提到的恢复语句又变回0级。这样的话,我旧的1号中断(1级)还没执行完,新的一号中断(0级)即使来了,也无法抢占,必须乖乖的等着让旧的先执行完。下面这几条语句就是提高中断等级的,我们实验的时候让中断只有0和1级。   2.在执行asm cli指令之前必须要清除中断标志位: 接上,如果不清楚标志位的话就打开asm cli的话,那么系统就一直不断地让这个中断再进,也就是中断自己不断地在嵌套自己,最终把堆栈给压爆了,程序也就跑飞了。   东西很简单,但是确实值得注意。 附件是测试的程序,有需要的可以参考。  General
View full article
wxWidgetsベースの分散情報および制御システム <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> そこで開発されたのは、i.MX53+Linuxを使用したコントローラーです。 分散情報・制御システムを構築するためのソリューションを開発しました。 Prototmpyは1年以上運用されています。 例: - 制御電磁攪拌(ミキサー) http://ontecom.com/en/catalog/ems /ルサール、クラスノヤルスク。 - ポンプ場の管理と管理。 - 気候制御システムの監視と制御。 スマートホームシステムやIoTを作ることができます。PLC(Power Line Communication)Qualcomm/Atherosの経験があります。 余暇には、PLC(電力線通信)制御/監視コンポーネントのスマートホーム用の予算ソリューションを開発しています。 標準IEC 61131-3に基づいて開発されたソフトウェア-分散情報管理システム。 解決策はクロスプラットフォームです。単一のシステムには、異なるアーキテクチャとさまざまなオペレーティングシステムのコンピューターが含まれる場合があります。 このような信号は、ARM/Linuxの同期コントローラ、およびx86サーバ(Win、Linux、VMSなど)です。 wxWidgets を使用します。 このテーマに関する記事は、ロシア語です。
View full article
DwFシリコンバレー - 2015-03-26 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> オープニングセッション IoT エンド ノードの概念 設計、ソフトウェア、サービス スマートインダストリー " modifiedtitle="true" title="モータ制御のための効率的な熱管理 ヘルスケア&ウェアラブル " modifiedtitle="true" title="ウェアラブルを市場に投入する:プロトタイプから製品化まで スマートシティ " modifiedtitle="true" title="フリースケール・ワイヤレス・コネクティビティ・ポートフォリオの概要 スマートホームとスマートビルディング i.MX 6シリーズ用のビデオおよび画像コーデックとデータパイプライン 次世代 i.MX アプリケーションプロセッサ上のヘテロジニアスマルチプロセッシング(ARM® Cortex-A® + Cortex-M)の概要 Yocto プロジェクト™と i.MX アプリケーション プロセッサ向けの Linux® ソフトウェア開発 スマートネットワーク QorIQ LS1024A Consumer Network Attached Storage(cNAS)ソリューションによるパーソナル・クラウドの起動 デジタル・ネットワーキングのセキュリティ 101: QorIQ Communications Platform、QorlQ Qonverge Platform、C29x Crypto Coprocessor Family、Layerscape Architecture セキュリティ・エンジンとそのソフトウェア・イネーブルメントの概要 QorIQ T4240通信プロセッサの詳細 QorIQ LSシリーズ・プロセッサを使用した電力効率の設計方法 QorIQ Platformのトラスト・アーキテクチャの概要: ネットワーク・システムおよびネットワーキング・システムへのトラストの追加 Power Architecture®とARM®テクノロジのプログラム・モデルの違い QorIQプロセッシング・プラットフォームにおけるDDRの基礎 Sneak Peak: QorIQプロセッサの新機能 QorIQ通信プラットフォームおよびC29x暗号化コプロセッサ・ファミリ上のOpenSSL QorIQ T102xおよびLS10xxプロセッサを搭載した次世代IEEE® 802.11ac WLANシステム設計 ソフトウェア・デファインド・ネットワーキングとモノのインターネット(IoT)
View full article
iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP For iMX6DQ, there are two IPUs, so they can support up to 4 cameras at the same time. But the default BSP can only support up to two cameras at the same time. The attached patch can make the BSP support up to 4 cameras based on 3.10.53 GA 1.1.0 BSP.   The 4 cameras can be: - 1xCSI, 3xMIPI - 2xCSI, 2xMIPI - 4xMIPI   For 4xMIPI case, the four cameras should be combined on the single MIPI CSI2 interface, and each camera data should be transfered on a mipi virtual channel.   In this patch, we given the example driver for Maxim MAX9286, it was verified working on iMX6DQ SabreAuto board. The input to MAX9286 is four 720P30 cameras. The verified camera boards:     (1) Onsemi AR0140+AP0101+MAX9271 boards.     (2) OmniVision OV10635+MAX9271 boards.   The MIPI CSI2 CVBS camera surround view solution can be found at: iMX6DQ ISL79985/79987 MIPI CSI2 CVBS camera surround view solution for Linux BSP The MIPI CSI2 CVBS HD camera surround view solution can be found at: iMX6DQ TP2854 MIPI CSI2 720P CVBS camera surround view solution for Linux BSP   The kernel patches: 0001-IPU-update-IPU-capture-driver-to-support-up-to-four-.patch      Updated IPU common code to support up to four cameras.   0002-Add-Max9286-support-on-SabreAuto-board-which-can-sup.patch      MAX9286 driver, it includes MAX9271, AP0101 and AR0140 drivers.   0003-Remove-the-page-size-align-requirement-for-v4l2-capt.patch      With this patch, the mxc_v4l2_tvin test application can use overlay framebuffer as V4l2 capture buffer directly.   0004-Max9286-skip-AP0101-camera-re-initialization.patch      If the camera board's power had been kept after initialized, this patch will bypass the re-initialization to reduce the start up time.   0005-Max9286-set-I2C-speed-to-400Kbps.patch     Set I2C to 400Kbps to reduce the AP0101+AR0140 initialization time.   0006-Max9286-add-retry-for-MAX9271-I2C-access.patch     Added retry for MAX9271 I2C access.   0007-Max9286-Add-support-for-OV10635-camera.patch     Updated code for OV10635 camera.   0008-Max9286-support-auto-detect-camera-number.patch     Make the Max9286 driver can detect the camera number automatically.     How to builld the kernel with MAX9286 support:       make imx_v7_defconfig       make menuconfig (In this command, you should select the MAX9286 driver:             Device Drivers  --->                   <*> Multimedia support  --->                         [*]   V4L platform devices  --->                               <*>   MXC Video For Linux Video Capture                                       MXC Camera/V4L2 PRP Features support  --->                                           <*>Maxim max9286 GMSL Deserializer Input support                                               Select Camera Sensor (OmniVision OV10635 camera sensor)  // Or (Onsemi AP0101 and AR0140 camera sensor)                                           <*>mxc VADC support                                           <*>Select Overlay Rounting (Queue ipu device for overlay library)                                           <*>Pre-processor Encoder library                                           <*>IPU CSI Encoder library)       make zImage       make dtbs   The built out image file:       arch/arm/boot/dts/imx6q-sabreauto.dtb       arch/arm/boot/zImage   "mxc_v4l2_tvin_max9286.tar.gz" is the test application, test command to capture the four cameras and render on 1080P HDMI display: /mxc_v4l2_tvin.out -ol 0 -ot 0 -ow 960 -oh 540 -d 1 -x 0 -g2d & /mxc_v4l2_tvin.out -ol 960 -ot 0 -ow 960 -oh 540 -d 1 -x 1 -g2d & /mxc_v4l2_tvin.out -ol 0 -ot 540 -ow 960 -oh 540 -d 1 -x 2 -g2d & /mxc_v4l2_tvin.out -ol 960 -ot 540 -ow 960 -oh 540 -d 1 -x 3 -g2d &   Some hardware check point on AR0140+AP0101+MAX9271 camera board (Please get MAX9286 and OV10635 schematics from Maxim): 1. In this patch, MAX9286's I2C address is 0x4D, so ADD0 and ADD1 should be connected to high. AP0101's I2C address is 0xBA, so SADDR should be connected to high.   2. AP0101's DOUT0~DOUT7 should be connected to MAX9271's DIN7~DIN0, the order should be switched, MSB connected to LSB.   3. MAX9271's GPO pin should be connected to AP0101's FRAME_SYNC pin. The pull down resistance on FRAME_SYNC pin should not be 0 ohm.   Some known limitation: 1. AP0101's VSYNC invalid time, last video line's HSYNC to VSYNC porch's max value is 255 pixel clocks, it is not enough for MAX9286 to generate the Frame End MIPI packets for each camera. So in order to let iMX6DQ to capture 1280x720 video for each camera, we had let AP0101 output 1280*724 frame size, and iMX6 will only capture 720 lines, the remained video data and Frame End will be ignored. This solution will not impact the function, but there will be "Error matching Frame Start with Frame End for Virtual Channel x" error reported from iMX6 MIPI_CSI_ERR1 register. Maxim suggested to use MAX96705 to relace the MAX9271, it can delay the VSYNC invalid time, then the MIPI error will be fixed.     2015-11-17 update: Updated for OV10635 camera support. File: L3.10.53_GA1.1.0_MAX9286_Surroundview_Patch_2015-11-17.zip   2015-12-04 update: File: L3.10.53_GA1.1.0_MAX9286_Surroundview_Patch_2015-12-04.zip Added patch 0009-Max9286-updated-PCLK-edge-setting-for-OV10635.patch to correct the OV10635 PCLK edge setting     2016-03-07 update: File L3.14.38_GA_MAX9286_Surroundview_Patch_2016-03-07.zip Added kernel patch for L3.14.38 GA 1.1.0 BSP.   2016-07-26 update: Files: L3.10.53_GA1.1.0_MAX9286_Surroundview_Patch_2016-07-26.zip; L3.14.38_GA1.1.0_MAX9286_Surroundview_Patch_2016-07-26.zip; L3.14.52_GA1.1.0_MAX9286_Surroundview_Patch_2016-07-26.zip. Added gstreamer support. Added MAX96705 support. Added patch for L3.14.52_GA1.1.0.   2017-12-11 update: Added CVBS surround view link: iMX6DQ TP2854 MIPI CSI2 720P CVBS camera surround view solution for Linux BSP 2021-04-26 update: Some customer reported, when system loading is heavy, sometimes, some camera will flicker left and right. It is caused by SFMC FIFO data lost. The original patch used IDMAC 0 and IDMAC 1 for two cameras on one IPU, this is not the best setting.  IDMAC 1 is fixed to use 1/4 SMFC FIFO and it will cause IDMAC 0 to use 1/4 SMFC FIFO too. And another 1/2 of SMFC FIFO can't be used in this case. Some code update to improve it: For each IPU, please use IDMAC 0 and IDMAC 2 to capture the two cameras. This needs change the hard coding in "drivers\media\platform\mxc\capture\ipu_csi_enc.c", "CSI_MEM1" and "IPU_IRQ_CSI1_OUT_EOF" should be changed to "CSI_MEM2" and "IPU_IRQ_CSI2_OUT_EOF". In this case, all SMFC FIFO can be used. And in "ipu_common.c", function ipu_probe(), the followed code should be changed to make IDMAC2 use high priority too. /* Set sync refresh channels and CSI->mem channel as high priority */ - ipu_idmac_write(ipu, 0x18800003L, IDMAC_CHA_PRI(0)); + ipu_idmac_write(ipu, 0x1880000FL, IDMAC_CHA_PRI(0)); Graphics & Display i.MX6Dual i.MX6Quad Linux Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Qiang Li,   Sorry for the confusion. I assumed that below single pipe which causes saw-tooth issue does not render all cameras.   #gst-launch-1.0 -v -e imxv4l2videosrc device=/dev/video2 ! imxg2dvideosink framebuffer=/dev/fb0 force-aspect-ratio=false   I am studying about gstreamer to draw 4 cameras to one target buffer.   Thanks and best regards. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP As I explained, this is the render issue, for 60fps display, the PAN display can only be up to 60fps, but for 4x720P30 camera, if you render them alone, there are total 120fps, so it can't work correctly. You need combine the 4 cameras together then render them once. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP The log shows there is no enough memory, I think you need reserve more memory for GPU. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Qiang Li, The following two pipelines work normally when run seperately. gst-launch-1.0 -v -e imxv4l2videosrc device=/dev/video0 ! imxg2dvideosink framebuffer=/dev/fb0 force-aspect-ratio=false  gst-launch-1.0 -v -e imxv4l2videosrc device=/dev/video1 ! imxg2dvideosink framebuffer=/dev/fb0 force-aspect-ratio=false  However, each pipelines given below (especially with video3) cause sawtooth issue given as attached gif, even if they run seperately. gst-launch-1.0 -v -e imxv4l2videosrc device=/dev/video2 ! imxg2dvideosink framebuffer=/dev/fb0 force-aspect-ratio=false  gst-launch-1.0 -v -e imxv4l2videosrc device=/dev/video3 ! imxg2dvideosink framebuffer=/dev/fb0 force-aspect-ratio=false  While twin app does not create any problem for each camera. While using gstreamer, what can cause this situation? Is it about gstreamer patch or IPU2? Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP For gstreamer, when you render 4 cameras together, it needs combine the buffer 4 times and swap the buffer 4 times, this will impact the performance. For tvin test application, it just renders the cameras to target framebuffer directly, no buffer swap, this can cause sawtooth issue. The best way for rendering: draw the 4 cameras to one target buffer, then swap it to frambuffer in one time. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Qiang Li, I am using Imx6qp. With following commands, the system is working properly. WIDTH=640 HEIGHT=240 ./mxc_v4l2_tvin.out -ol 0 -ot 0 -ow ${WIDTH} -oh ${HEIGHT} -d 0 -x 0 -g2d & ./mxc_v4l2_tvin.out -ol ${WIDTH} -ot 0 -ow ${WIDTH} -oh ${HEIGHT} -d 0 -x 1 -g2d & ./mxc_v4l2_tvin.out -ol 0 -ot ${HEIGHT} -ow ${WIDTH} -oh ${HEIGHT} -d 0 -x 2 -g2d & ./mxc_v4l2_tvin.out -ol ${WIDTH} -ot ${HEIGHT} -ow ${WIDTH} -oh ${HEIGHT} -d 0 -x 3 -g2d & When I try to use gstreamer with the following pipelines, third and forth cameras are jittering and scrolling. WINDOW1="window-x-coord=0 window-y-coord=0 window-width=${WIDTH} window-height=${HEIGHT}" WINDOW2="window-x-coord=${WIDTH} window-y-coord=0 window-width=${WIDTH} window-height=${HEIGHT}" WINDOW3="window-x-coord=0 window-y-coord=${HEIGHT} window-width=${WIDTH} window-height=${HEIGHT}" WINDOW4="window-x-coord=${WIDTH} window-y-coord=${HEIGHT} window-width=${WIDTH} window-height=${HEIGHT}" gst-launch-1.0 -v -e imxv4l2videosrc device=/dev/video0 ! imxg2dvideosink framebuffer=/dev/fb0 force-aspect-ratio=false $WINDOW1 & gst-launch-1.0 -v -e imxv4l2videosrc device=/dev/video1 ! imxg2dvideosink framebuffer=/dev/fb0 force-aspect-ratio=false $WINDOW2 & gst-launch-1.0 -v -e imxv4l2videosrc device=/dev/video2 ! imxg2dvideosink framebuffer=/dev/fb0 force-aspect-ratio=false $WINDOW3 & gst-launch-1.0 -v -e imxv4l2videosrc device=/dev/video3 ! imxg2dvideosink framebuffer=/dev/fb0 force-aspect-ratio=false $WINDOW4 & v4l applications are working properly but gstreamer causes the problem seen above. Do you have any idea about this problem? Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Excuse me, can I have another patch of Linux 3.14.38? That link failed Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Thanks a lot! Qiang Li.  Understand now. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP 2 x MIPI CSI2 means two MIPI virtual channels(VC1 and VC2) on one physical MIPI CSI2 interface. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Thanks Qiang! So can we have 2 x BT656 and 2 x MIPI CSI2 work together?  if yes , how many virtual channels(1~4) can each of the 2x MIPI CSI2 have?  Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Each IPU has two CSI modules, their input can be parallel CSI interface or MIPI CSI2 virtual channel. And for iMX6DQ, it can support up to two parallel CSI interfaces (BT656 interface). Both of them can work at the same time. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Dear Qiang Li,         Sorry, I am some confused, as you said, Imx6Q can support up to 4 cameras,  The 4 cameras can be: - 1xCSI, 3xMIPI - 2xCSI, 2xMIPI - 4xMIPI what is the meaning of  1x CSI and 3x MIPI, etc? usually we say MIPI CSI-2 together,  CSI is the same thing as MIPI CSI-2? BTW, how many BT656 interfaces can be directly supported by Imx6Q simultaneously?      Many thanks~~ Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi z dq, Did you solve the instability problem? I got sensor clk error when connecting more than 2 cameras although MAX96705's GPO pin are connected to AP0101's FRAME_SYNC pin.  I rarely got the error with 2 cameras . 28.463487] max9286_mipi 1-006a: ap0101_initialize: AP0101 hasn't been found, reg = 0x0, index = 4. [ 28.472625] max9286_mipi 1-006a: max9286_write_reg:write reg error:reg=34,val=b6 [ 28.673495] max9286_mipi 1-006a: max9271_write_reg:write reg error:reg= 4,val=83 [ 28.783553] max9286_mipi 1-006a: max9286_write_reg:write reg error:reg=15,val=9b [ 29.403469] mipi csi2 can not receive sensor clk! MIPI_CSI_PHY_STATE = 0x6f0. Regards Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Qiang_FSL‌ Hi, Liqiang Could you please tell me what's the fps value if we run the surroundview(4 camera 1280x720) application base your patch and  Imx6d processor? whether he DDR bandwidth is enough? thank you! 以下中文: ----------------- 如果使用这个patch并跑在imx6d的板子上,目前surroundview(基于4个720p的摄像头)能达到多少个fps, 内存带宽够用吗?谢谢! --------------- Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP The color issue happens between MAX96705 and MAX9286 mapping, so PC USB has no use for reference. There are several kind of mapping order on data line, 8 bits/10bits, MSB/LSB. You need fine tuning it based on the OV10635 and MAX96705 connecting. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP This had been explained, g2d_blit target buffer should be the current displayed framebuffer: " The current mxc_v4l2_tvin demo application will render camera video to current frame buffer directly, so there will be tearing issue. For real use case, you need use multi-buffers, for example, the virtual framebuffer size is 3 times of real display buffer, and each time only one buffer is showing on display, so when buffer 1 is showing on display, you can draw combined camera videos into buffer 2, after finished drawing, call ioctl FBIOPAN_DISPLAY to show buffer 2 on screen. " Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi,liqiang I have solve the color fault problem, by swap data line using ov10635 register 0x4709, so thank you very much!! Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi, liqiang In my local environment which using immunity mode, and do data line swap according to your suggestion, which causes image color change but problem NOT solved. (帖子里好像帖不了附件,单独像您提了一个问题。) By the way, I am using leopardimaging LI-USB30-OV10635-SER camera as following: https://www.leopardimaging.com/uploads/LI-OV10635-SER_datasheet.pdf It works well when connecting to PC by USB 3.0. please help check, thanks! Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Qiang Li: I use the IMX6Q core board. Now when using both GC2000 and GC320, there are occasional image tears on the screen display. The specific implementation is like this:    Get the real-time video data of the 4-way camera, display it on the GPU and display it in real time on the lvds screen. At the same time, the 4 channels of video are called by g2d to call the g2g_blit function for resize. The image of each frame is 720P resize to 640*480, and then synthesized into one frame. Image so that 4 channels of video can be displayed in one frame.the spliced video is not display on the screen and saved directly into the video,but now it is found that the video displayed by the GPU rendering in real time will be torn. Playback of the saved video also found that the image has a tearing problem, affecting the viewing effect.    If you test the GPU rendering display separately, or the video of 4 channels of video is saved by G2D synthesis, there will be no image tearing problem. But as long as these two functions are combined into one project, the problem of image tearing will occur when displaying and the saving  video. 1. Can I use the GC2000 of IMX6 and GC320 at the same time? Is there a problem with GPU resource preemption? 2. Is there a problem with data conflicts in the GPU? I have already made the GC2000 and GC320 get data that cannot be bufed, but after the two functions are integrated, there will still be a problem of video tearing. I have been plagued by this problem for several weeks, and there has been no good solution. I am very anxious. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Qiang Li: I use the IMX6Q core board. Now when using both GC2000 and GC320, there are occasional image tears on the screen display. The specific implementation is like this:    Get the real-time video data of the 4-way camera, display it on the GPU and display it in real time on the lvds screen. At the same time, the 4 channels of video are called by g2d to call the g2g_blit function for resize. The image of each frame is 720P resize to 640*480, and then synthesized into one frame. Image so that 4 channels of video can be displayed in one frame.the spliced video is not display on the screen and saved directly into the video,but now it is found that the video displayed by the GPU rendering in real time will be torn. Playback of the saved video also found that the image has a tearing problem, affecting the viewing effect.    If you test the GPU rendering display separately, or the video of 4 channels of video is saved by G2D synthesis, there will be no image tearing problem. But as long as these two functions are combined into one project, the problem of image tearing will occur when displaying and the saving  video. 1. Can I use the GC2000 of IMX6 and GC320 at the same time? Is there a problem with GPU resource preemption? 2. Is there a problem with data conflicts in the GPU? I have already made the GC2000 and GC320 get data that cannot be bufed, but after the two functions are integrated, there will still be a problem of video tearing. I have been plagued by this problem for several weeks, and there has been no good solution. I am very anxious. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Qiang Li, Sorry, maybe I didn't tell you my question clearly: 1.When I don't use -g2d,the display image is ok,no screen tearing. And the demo code really use FBIOPAN_DISPLAY to change display buffer ; 2.But when I use -g2d,screen tearing occurs. And the demo code use g2d_blit to display. So my question is how to resolve this problem? Thanks! Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP MAX96705 data line swap related code are in regiter 0x20~0x29; 0x30~0x39, you can find the discussion from old items here. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Qiang_FSL‌ 谢谢回复! >The ov10635 and max9286 driver captured frame format is YUYV, that means data in buffer is YUYV, if your application handles it other format, such as RGB565, you can >get such wrong color issue 上面图片是使用7yuv查看的结果,选择的格式是YUYV;图像颜色不对。所以不是显示格式不匹配的问题。 >Another thing should be paied attention to is that the MAX96705 can swap the data line order, if you set it to wrong, the color is wrong. 请问您知道驱动那里可以swap dataline order吗?谢谢! Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP The ov10635 and max9286 driver captured frame format is YUYV, that means data in buffer is YUYV, if your application handles it other format, such as RGB565, you can get such wrong color issue. Another thing should be paied attention to is that the MAX96705 can swap the data line order, if you set it to wrong, the color is wrong. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP The current mxc_v4l2_tvin demo application will render camera video to current frame buffer directly, so there will be tearing issue. For real use case, you need use multi-buffers, for example, the virtual framebuffer size is 3 times of real display buffer, and each time only one buffer is showing on display, so when buffer 1 is showing on display, you can draw combined camera videos into buffer 2, after finished drawing, call ioctl FBIOPAN_DISPLAY to show buffer 2 on screen. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi,Liqiang Qiang_FSL‌ We are developing 4 camera surroundview application, based on imx6d/OV10635/MAX96705/MAX9286 boards, the patch we apply is L3.14.52_GA1.1.0_MAX9286_Surroundview_Patch_2016-07-26.zip.  but the image color is NOT right as following: Can you please help ? Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Thans for your support! 1. You means that if input resolution and format is same as output,IPU will not deal with it. Right? 2. I still have another question,when I use command with -g2d argument,like this: root@imx6qsabresd:/# ./mxc_v4l2_tvin.out -ol 0 -ot 0 -ow 1280 -oh 720 -d 1 -x 0 -g2d,screen tearing occurs like the following picture: Could you  give me some advice?Thanks! Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP The default IPU task doesn't support memory copy use case, input resolution and format is same as output. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Qiang Li, I meet following problem:when I use command without -g2d argument,it display following error, root@imx6qsabresd:/# ./mxc_v4l2_tvin.out -ol 0 -ot 0 -ow 1280 -oh 720 -d 1 -x 0 g_in_width = 1280, g_in_height = 720. fb_fix.id = DISP3 FG. fb: smem_start = 0x26700000, smem_len = 0xa8c000. fb: frame buffer size = 0x1c2000 bytes. fb: g_screen_info.xres = 1280, g_screen_info.yres = 720. fb: g_display_left = 0. fb: g_display_top = 0. fb: g_display_width = 1280. fb: g_display_height = 720. IPU_CHECK_TASK failed. But when I use the command ./mxc_v4l2_tvin.out -ol 0 -ot 0 -ow 1280 -oh 719 -d 1 -x 0,the display image is OK. what's the impossible reason?Thanks! Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi, How to build the "Surround View Application" and its required packages in Yocto for i.MX6 QuadPLUS Hoping for a better guidance. Regards, Bala Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi,Qiang Li,谢谢回复,我们现在确实是镜头模组上挂了个flash,不过flash里面的固件是安森美的代理商提供的,他们确认已经工作在framesync模式,并且这个固件已经有别的客户在量产,我们读出AP0101的0xC88C,0xC88D,0xC88E寄存器,值分别是0x03,0x03,0x00,同时通过逻辑分析仪分析AP0101对AR0143的配置,感觉也应该是正确的;max9286这端已经确认生成的framesync信号有传输到AP0101,现在sensor出来的帧率是25fps; 请问针对25fps,max9286这边的配置应该如果修改,盼复,谢谢! Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP The FLASH ROM setting on camera module should follow the driver's setting. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi, VIDIOC_DQBUF  error dissappears when I changed the test hardware with a new set. I will work on the real reason but it seems to be a hardware issue. Although I sometimes  get VIDIOC_DQBUF and MIPI CLK errors; I can succesfully get the image with the below configuration. AR0140 sensor AP0101 ISP MAX96705 Serializer MAX9286 Deserializer Our designed daughter board between MAX9286 EVM and iMX6 board. We use kernel 4.1.15 and use below switch code: + max9271_write_reg(i, 0x20, 0x07); + max9271_write_reg(i, 0x21, 0x06); + max9271_write_reg(i, 0x22, 0x05); + max9271_write_reg(i, 0x23, 0x04); + max9271_write_reg(i, 0x24, 0x03); + max9271_write_reg(i, 0x25, 0x02); + max9271_write_reg(i, 0x26, 0x01); + max9271_write_reg(i, 0x27, 0x00); + + + max9271_write_reg(i, 0x30, 0x17); + max9271_write_reg(i, 0x31, 0x16); + max9271_write_reg(i, 0x32, 0x15); + max9271_write_reg(i, 0x33, 0x14); + max9271_write_reg(i, 0x34, 0x13); + max9271_write_reg(i, 0x35, 0x12); + max9271_write_reg(i, 0x36, 0x11); + max9271_write_reg(i, 0x37, 0x10); Thanks and best regards Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Ferhat, The camera I used doesn't need such switch, so no such code in patch, but I had show you the sample code, for detail setting on MAX96705 switch, you can check with Maxim. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Qiang Li, Could not find the switch code on patch files. Could you please update the links with your latest versions? Thanks and best regards Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi DONGON KIM, Some video combining chip can insert some bytes into each video line, then software can check these inserted data to identify the camera number. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP The "0003-Add-Max9286-support-on-SabreAuto-board-which-can-sup.patch" files of the L3.14.38_GA andL3.14.52_GA patches have errors. +static int max9271_write_reg(int index, u8 reg, u8 val) +{ + s32 ret; + int retry, timeout = 10; + + max9286_data[0].i2c_client->addr = ADDR_MAX9271 + index; + for (retry = 0; retry < timeout; retry ++) { + ret = i2c_smbus_write_byte_data(max9286_data[0].i2c_client, reg, val); + if (val < 0) + msleep(5); + else + break; + } + + if (retry >= timeout) { + dev_info(&max9286_data[0].i2c_client->dev, + "%s:write reg error:reg=%2x,val=%2x\n", __func__, + reg, val); + return -1; + } + + return 0; +} Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Thanks for your ans. Then, is there any example code for split the video from each virtual channel? If not, may I know how to read the raw packet data of mipi_csi? Thanks. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Ferhat, Yes, the switch code:  max9271_write_reg(0, 0x20, 0x09);  max9271_write_reg(0, 0x21, 0x08);  max9271_write_reg(0, 0x22, 0x07);  max9271_write_reg(0, 0x23, 0x06);  max9271_write_reg(0, 0x24, 0x05);  max9271_write_reg(0, 0x25, 0x04);  max9271_write_reg(0, 0x26, 0x03);  max9271_write_reg(0, 0x27, 0x02);  max9271_write_reg(0, 0x28, 0x01);  max9271_write_reg(0, 0x29, 0x00);  max9271_write_reg(0, 0x30, 0x19);  max9271_write_reg(0, 0x31, 0x18);  max9271_write_reg(0, 0x32, 0x17);  max9271_write_reg(0, 0x33, 0x16);  max9271_write_reg(0, 0x34, 0x15);  max9271_write_reg(0, 0x35, 0x14);  max9271_write_reg(0, 0x36, 0x13);  max9271_write_reg(0, 0x37, 0x12);  max9271_write_reg(0, 0x38, 0x11);  max9271_write_reg(0, 0x39, 0x10); Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Qiang, Does the patch you provided include such swap settings on MAX96705? We use MAX96705 and do not do such swap by driver Thank you Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Ferhat, MAX9286's data mapping needs such MSB to LSB switch, if you are using MAX96705, it can do such swap by setting, but MAX9271 doesn't support it. And AP0101 doesn't dupport such swap too, so hardware should be modified. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Dongoh, The iMX8MQ can receive video with multiple virtual channels, but there is no hardware module to split the video from each virtual channel. That means you need use software to split, and the MIPI sender need insert some flag to identify the data for each virtual channel. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi, Qiang Li May I know the reason for i.MX8MQ can't support multiple virtual channel? According to the features and functional description of MIPI-CSI2 Controller on Reference Manual for i.MX8M Quad, i.MX8M seems to support multiple virtual channel.(13.6.1.1 and 13.6.3) Thanks. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Dear Qiang Li, I would like to know the reason of your hardware point stated as below. "2) AP0101's DOUT0~DOUT7 should be connected to MAX9271's DIN7~DIN0, the order should be switched, MSB connected to LSB" In our reference camera board supplied by Onsemi (MARS module) these pins are connected directly (DOUT0-DOUT7 to DIN0-DIN7). Is there any way to switch these connection by software? I could not find on datasheets of MAX96705 and AP0101. Thanks  Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP That means your patch porting has error, please check it. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Dear Qiang Li, we removed eeprom on the camera module and we switched it to host configuration mode by setting SPI-SDI pin to LOW. Thus it is initialized successfully by the driver of max9286 in the beginning, after kernel is loaded. Do you have any other suggestion for both "not a csi channel" and vidioc_dqbuf errors? Thank you, Best regards Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP “ap0101_initialize:AP0101 is already in Slave (Shutter-Sync) Mode” This log means your camera had already be initialized, so you need check if there is flash ROM on your camera module which will initialize it during power on, if so, you need update that flash ROM to use the driver's setting. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi again Qiang Li, As you can see in our logs, our camera is in shutter-sync mode, thus doesn't this means our camera setting is correct? What do you mean by camera setting, can you be more specific and explain it in detail?. Also MIPI_CSI_ERR1 register is 0, there is no error of transmission of bits, clock signal etc and mpi csi2 can receive the data correctly. Doesnot that mean that camera sends correct signals and is configured properly?  Secondly, we reviewed all patches and applied them directly by copy-paste, also we double checked whether there is an error; thus, we are (almost) sure that we ported correctly. What is the key points we need to look at? Can there be any other possible cause of this problem? Thank you, Best regards Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP For error "not a csi channel error", I think you haven't ported the patch successfully. For error "vidioc_dqbuf failed", that means no available video frames had been captured. Maybe you need check your AP0101 camera setting. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Qiang Li, In our project we have one camera connected to max9286 and we applied your patches to 4.1.15 kernel; however when we test it, we get the following picture: Logs are as follow: root@esomimx6q:~# ./mxc_v4l2_tvin.out -ol 0 -ot 0 -ow 400 -oh 240 -d 1 -x 0 [ 3144.243857] max9286_mipi: sensor number = 1. [ 3144.248939] mxc_mipi_csi2 21dc000.mipi_csi: mipi_csi2_reset: mipi_lane_bps = 148 Mbps [ 3144.257446] mxc_mipi_csi2 21dc000.mipi_csi: mipi_csi2_reset: value = 0x42. [ 3144.743416] max9286_mipi 1-006a: ap0101_initialize: AP0101 was found, index = 1. [ 3144.751541] max9286_mipi 1-006a: ap0101_initialize:AP0101 is already in Slave (Shutter-Sync) Mode. g_in_width = 1280, g_in_height = 720. fb_fix.id = DISP4 FG. fb: smem_start = 0x6a100000, smem_len = 0x8ca00. fb: frame buffer size = 0x2ee00 bytes. fb: g_screen_info.xres = 400, g_screen_info.yres = 240. fb: g_display_left = 0. fb: g_display_top = 0. fb: g_display_width = 400. fb: g_display_height = 240. start time = 1535715437 s, 436911 us [ 3154.993386] ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0 VIDIOC_DQBUF failed. We could not understand the reason of the problem (also we adjusted gpr1 pins 19 and 20 as 0).  Secondly, the following logs show us that there are problems with /dev/video 1 and dev/video3 about csi channel although dev/video0 and /dev/video2 is ok , however all of them have timeout error (note that since only one camera is connected, only "cat /dev/video0" command can initialize ap0101). root@esomimx6q:~# cat /dev/video0 [ 3313.913877] max9286_mipi: sensor number = 1. [ 3313.918963] mxc_mipi_csi2 21dc000.mipi_csi: mipi_csi2_reset: mipi_lane_bps = 148 Mbps [ 3313.926941] mxc_mipi_csi2 21dc000.mipi_csi: mipi_csi2_reset: value = 0x42. [ 3314.413402] max9286_mipi 1-006a: ap0101_initialize: AP0101 was found, index = 1. [ 3314.421469] max9286_mipi 1-006a: ap0101_initialize:AP0101 is already in Slave (Shutter-Sync) Mode. [ 3324.583392] ERROR: v4l2 capture: mxc_v4l_read timeout counter 0 cat: read error: Timer expired root@esomimx6q:~# cat /dev/video1 [ 3337.083393] ERROR: v4l2 capture: mxc_v4l_read timeout counter 0 [ 3337.089359] imx-ipuv3 2400000.ipu: Not a CSI channel cat: read error: Timer expired root@esomimx6q:~# cat /dev/video2 [ 3351.493394] ERROR: v4l2 capture: mxc_v4l_read timeout counter 0 cat: read error: Timer expired root@esomimx6q:~# cat /dev/video3 [ 3403.463393] ERROR: v4l2 capture: mxc_v4l_read timeout counter 0 [ 3403.469360] imx-ipuv3 2800000.ipu: Not a CSI channel cat: read error: Timer expired Can you help us with them? What is the reason of "not a csi channel error" on video1 and video3 while others don't give this error. Also the first error is more important, which is the error of "vidioc_dqbuf failed". Thank you Best regards Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP You can check with the AP0101 camera chip vendor. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Qiang Li,   My problem is as bellow.Can you help me to deal with it. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Thinks for your help! I have other problem with devicetree.Look at the picture,reg=6A,but max9286 datasheet is no this address. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP The head file is in your rootfs which is built from Yocto. You can also use the binary "mxc_v4l2_tvin.out" directly. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Qiang Li,   The test application file not contain "g2d.h",but  "mxc_v4l2_tvin.c" has the code #include "g2d.h".So,when I make it,it turn out error.   Can you help me solve the problem?   Think you! Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP HI Qiang Li   When I use the "Patch",my kernel show error.My kernel vision is kernel-3.10.53.   So,I want to now what's the differance between the kernel-3.10.53 and L3.10.53_1.1.0-GA.   I think that the different vision make the error. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP From real test, the total delay is about 86ms. Camera number will not impact the delay, capture delay is fixed on camera fps, for example, 30fps camera input, the capture delay is 33ms. And render delay is fixed on display fps, for examlpe, 60Hz display, the delay is 17ms, then the post-process delay, it needs less than camera fps (33ms) to avoid frame lost. So for 8 camera case, you need make sure all the post process is less than 33ms to avoid frame drop. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Li Qiang       Thank you for your Patch.        Now,I have some trouble when I use "patch".        Can you write a manual to me so that I can understand how to use the "patch".        Thanks Sincerely.        Zhongmao Liu. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi. Qiang Li The four camera`s video can render on 1080P HDMI display.  How does the surround view algorithm get the four cameras`s capture buffers. do you have some good ideas? Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Qiang Li ! Is it possible for you to share "60-persistent-v4l.rules" file? It should be inside /lib/udev/rules.d Thank you very much Regards, Gokcen  Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi! Thank you for the reply. The resolution is 1280x720. So, I think that is not the problem. We are using kernel version 4.1.15.  May the following errors be related to that? [ 36.921793] v4l2_int_device wlcore_sdio mxc_dcic [ 36.926813] CPU: 3 PID: 399 Comm: v4l_id Not tainted 4.1.15 #1 [ 94.823493] udevd[215]: worker [230] /devices/soc0/v4l2_cap_1/video4linux/video1 is taking a long time [ 95.098316] udevd[230]: slow: 'v4l_id /dev/video1' [402] bootlogd: cannot allocate pseudo tty: No such file or directory Have a nice day! Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP As I remembered, the blank from frame end to new frame is not enough for AP0101, so even the camera output resolution is 1280*800, we need capture just 1280*720, otherwise, the video capture will fail. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Qiang Lee, I have tried initializing MAX9286 in high immunity mode and now, ar140 is being found. However, I think there is something wrong with the v4l part. Here is the related log :  [ 34.085201] [ 34.086911] Internal error: Oops: 17 [#1] PREEMPT SMP ARM [ 34.092313] Modules linked in: wlcore mxc_v4l2_capture ipu_bg_overlay_sdc ipu_still ipu_prp_enc ipu_csi_enc max9286_gmsl ipu_fg_overlay_sdc v4l2_int_device wlcore_sdio mxc_dcic [ 34.108239] CPU: 3 PID: 402 Comm: v4l_id Not tainted 4.1.15 #1 [ 34.114078] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree) [ 34.120628] task: d87b2ac0 ti: d8c78000 task.ti: d8c78000 [ 34.123891] max9286_mipi 1-006a: max9286_write_reg:write reg error:reg=3b,val=1e [ 34.133488] PC is at mxc_v4l_do_ioctl+0xc4c/0x2590 [mxc_v4l2_capture] [ 34.139979] LR is at mxc_v4l_do_ioctl+0xc3c/0x2590 [mxc_v4l2_capture] [ 34.146476] pc : [<7f08539c>] lr : [<7f08538c>] psr: 600e0013 [ 34.146476] sp : d8c79e40 ip : 00000074 fp : 00000000 [ 34.157991] r10: d88f9300 r9 : 7f034094 r8 : d8c79e90 [ 34.163245] r7 : 80685600 r6 : 00000000 r5 : d8d19008 r4 : d8d19000 [ 34.169792] r3 : 00000000 r2 : d8c79ea7 r1 : 7f087ae0 r0 : d8c79ec0 [ 34.176346] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user [ 34.183504] Control: 10c53c7d Table: 6939c04a DAC: 00000015 [ 34.189288] Process v4l_id (pid: 402, stack limit = 0xd8c78210) [ 34.195251] Stack: (0xd8c79e40 to 0xd8c7a000) [ 34.199652] 9e40: d88f9300 00000000 00000000 00000000 d8868550 d6023000 d80fe028 d8c41700 [ 34.207872] 9e60: 80b154c0 80685600 00000068 00000000 00000002 7ebeec88 d8c79e90 7f084750 [ 34.216090] 9e80: 00000000 804dbc10 d88f9300 800f6978 5f63786d 326c3476 00000000 00000000 [ 34.224327] 9ea0: 3978616d 00363832 00000000 00000000 00000000 00000000 00000000 00000000 [ 34.232540] 9ec0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 34.240757] 9ee0: 0004010f 85200005 05200005 00000000 00000000 00000000 9087e695 00000006 [ 34.248978] 9f00: d925f015 76f11000 00000000 d61505d8 d8ffa318 7ebeec88 d8ffa318 d88f9300 [ 34.253976] max9286_mipi: sensor number = 1. [ 34.254788] mxc_mipi_csi2 21dc000.mipi_csi: mipi_csi2_reset: mipi_lane_bps = 148 Mbps [ 34.254801] mxc_mipi_csi2 21dc000.mipi_csi: mipi_csi2_reset: value = 0x42. [ 34.276213] 9f20: 00000003 7ebeec88 d8c78000 00000000 00000000 800fa0e4 d8c79f40 800e3970 [ 34.284441] 9f40: 80b06720 00000003 d88f9300 d925f000 d8ffa318 d88f9308 00000020 00000000 [ 34.292668] 9f60: 00000000 800e91ac 00000000 00000000 d88f9300 00000003 d88f9300 80685600 [ 34.300888] 9f80: 7ebeec88 d8c78000 00000000 800fa338 00000000 7ebeee54 00000003 00000036 [ 34.309102] 9fa0: 8000f604 8000f480 00000000 7ebeee54 00000003 80685600 7ebeec88 00000001 [ 34.317312] 9fc0: 00000000 7ebeee54 00000003 00000036 00000000 00000000 76f11000 00000000 [ 34.325534] 9fe0: 76e6e2a0 7ebeec7c 00011cfc 76e6e2ac 600e0010 00000003 8112f040 0420f044 [ 34.333788] [<7f08539c>] (mxc_v4l_do_ioctl [mxc_v4l2_capture]) from [<804dbc10>] (video_usercopy+0x1b8/0x480) [ 34.343777] [<804dbc10>] (video_usercopy) from [<800fa0e4>] (do_vfs_ioctl+0x3e8/0x608) [ 34.351752] [<800fa0e4>] (do_vfs_ioctl) from [<800fa338>] (SyS_ioctl+0x34/0x5c) [ 34.359115] [<800fa338>] (SyS_ioctl) from [<8000f480>] (ret_fast_syscall+0x0/0x3c) [ 34.366711] Code: e5993008 e3071ae0 e2880030 e3471f08 (e5932018) [ 34.374557] ---[ end trace 756e286723ff907f ]--- [ 34.435645] FAT-fs (mmcblk1p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. [ 34.531108] kjournald starting. Commit interval 5 seconds [ 34.549007] EXT4-fs (mmcblk1p2): recovery complete [ 34.553859] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null) [ 34.591916] EXT3-fs (mmcblk0p2): using internal journal [ 34.597183] EXT3-fs (mmcblk0p2): recovery complete [ 34.601980] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode [ 34.602407] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. [ 34.644868] wlcore: loaded [ 34.733493] max9286_mipi 1-006a: ap0101_initialize: AP0101 was found, index = 1. [ 35.357742] ap0101_LastPatchStatus [ 35.812239] ap0101_LastPatchStatus [ 35.985973] ap0101_LastPatchStatus [ 36.194854] ap0101_LastPatchStatus [ 36.243936] ap0101_LastPatchStatus [ 36.392576] ap0101_LastPatchStatus [ 37.086270] max9286_mipi 1-006a: ap0101_InitSensor: AR0140 was found, index = 1. [ 94.823493] udevd[215]: worker [230] /devices/soc0/v4l2_cap_1/video4linux/video1 is taking a long time [ 95.098316] udevd[230]: slow: 'v4l_id /dev/video1' [402] bootlogd: cannot allocate pseudo tty: No such file or directory Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Qiang Li, We have tried with the following equipment :  ONSEMI MARS Reference Desşgn (MAX96705, AP0101, AR0140) 30 cm RG174 (and also 3 m coaxial cable) included in the reference design.  MAX9286S32V Daugter board is used to connect iMX6 board.  I have taken AP0101 to host configuration mode by removing flash. Despite I am writing 0x36 to MAX9286' s 34th register to disable local auto acknowledge, I observed that 9th bit coming immediately after 8th bit of SCL. I am attaching the oscilloscope view. The problematic bits are circled with red.  MAX9286 LFLT led is ON and LOCK led is  OFF.   Down below, we tried to read from AP0101 (address: 0x92).  If you have any suggestions it would be appreciated.  Regards Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi qiang, The 4 cameras can be: - 1xCSI, 3xMIPI - 2xCSI, 2xMIPI - 4xMIPI 可以解释一下上面的CSI和MIPI什么意思吗?不知道这个csi是指ipu内部的csi0-3 还是camera mipi总线。 Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Qiang Li, 1xCSI, 3xMIPI,  what does it meanning? Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP I think you need check the signal quality on Coax between MAX9286 and MAX96705. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Qiang Lee! I am using ap0101 with max96705 and max9286 deserializer. I was able to establish connection with max9286 and max96705. However, while reading max96705 registers, I get the following error:  [ 21.113432] max9286_mipi 1-006a: max9271_read_reg:read reg error: reg=35 [ 21.120143] MAX9271 Reg 0x35 = 0xffffffff. [ 21.323460] max9286_mipi 1-006a: max9271_read_reg:read reg error: reg= a [ 21.330183] MAX9271 Reg 0x0a = 0xffffffff. [ 21.533474] max9286_mipi 1-006a: max9271_read_reg:read reg error: reg= b [ 21.540199] MAX9271 Reg 0x0b = 0xffffffff. [ 21.743480] max9286_mipi 1-006a: max9271_read_reg:read reg error: reg= c [ 21.750201] MAX9271 Reg 0x0c = 0xffffffff. Any help would be appreciated !  Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi qiang ,     I use the 'mx8_v4l2_cap_drm.out' test my board, but the test progress is stopped in the 'start_capturing' function. Finally , I found that it actually stopped in the 'ioctl(fd_v4l, VIDIOC_DQBUF, &buf)' function . And then , I test the four output singal of the max9286, Dout0~Dout3 are all have singal, and the clock I tested  is 295MHz,the input also have singal too. It seems that max9286 and sensors are all work well ,but there is nothing showed on my screen. It confused me for some days. Could you give some advieces to me ? Thanks.  The log is attached below. root@imx8mqevk:~# ./mx8_v4l2_cap_drm.out -cam 3 init_video_channel, /dev/video0 init 0 init_video_channel, /dev/video1 init 1 Open /dev/dri/card0 success num of fb:0 num of crtc:2 num of encoder:1 num of connector:1 num of modes = 1 num of encoders = 1 num of props = 2[ 21.059227] mxc-mipi-csi2 58227000.csi: width=1280, height=800, fmt.code=0x2011 modes[0] info:resolution=1024*600 pixels kms info: fb_base = 0[ 21.071187] input fmt YUV4 x789b3000 w/h=(1024,600) bits_per_pixel=4 bpp=32 screen_buf_s[ 21.079551] output fmt RGB4 ize =2457600 xres=1024, y_res=600 ch_id=0, w=512, h=300, x_offs[ 21.088947] mxc-isi 58100000.isi: input_size(800,1280), output_size(300,512) et=0, y_offset=0 ch_id=1, w=512, h=300, x_offset=512, y_offset=0[ 21.105981] mxc-mipi-csi2 58227000.csi: width=1280, height=800, fmt.code=0x2011 Try to open device /dev/video0 cap=0x84201000 index=0 pixelf[ 21.113602] input fmt YUV4 ormat (output by camera): RGBP index=1 pixelformat (output by c[ 21.121958] output fmt RGB4 amera): RGB3 index=2 pixelformat (output by camera): RGB4 inde[ 21.130400] mxc-isi 58110000.isi: input_size(800,1280), output_size(300,512) x=3 pixelformat (output by camera): BGR3 index=4 pixelformat (output by camera): BA24 index=5 pixelformat (output by camera)[ 21.150628] mxc-mipi-csi2 58227000.csi: width=1280, height=800, fmt.code=0x2011 : YUYV index=6 pixelformat (output by camera): YUV4 VIDIOC ENUM FMT failed, index=7 video_ch=0, width=512, height=300, pixelformat: RGB4 WxH@fps = 512x300@30 Image size = 614400 v4l_capture_setup, Open v4l_dev=0x4, channel=0 Try to open device /dev/video1 cap=0x84201000 index=0 pixelformat (output by camera): RGBP index=1 pixelformat (output by camera): RGB3 index=2 pixelformat (output by camera): RGB4 index=3 pixelformat (output by camera): BGR3 index=4 pixelformat (output by camera): BA24 index=5 pixelformat (output by camera): YUYV index=6 pixelformat (output by camera): YUV4 VIDIOC ENUM FMT failed, index=7 video_ch=1, width=512, height=300, pixelformat: RGB4 WxH@fps = 512x300@30 Image size = 614400 v4l_capture_setup, Open v4l_dev=0x5, channel=1 buffer[0] startAddr=0x7891d000, offset=0x0, buf_size=614400 buffer[1] startAddr=0x78887000, offset=0x96000, buf_size=614400 buffer[2] startAddr=0x787f1000, offset=0x12c000, buf_size=614400 buffer[0] startAddr=0x7875b000, offset=0x0, buf_size=614400 buffer[1] startAddr=0x786c5000, offset=0x96000, buf_size=614400 buffer[2] startAddr=0x7862f000, offset=0x12c000, buf_size=614400 start_capturing channel=0, v4l_dev=0x4 start_capturing channel=1, v4l_dev=0x5 Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP For iMX8M, it is not "mx8_v4l2_cap_xxx.c", it is mx6s_v4l2_cap_drm.c, you can find it from the L4.9.51 GA release for IMX8MQ. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Qiang, It can't work. The error message is as below. Do you know which one is the correct executable for i.MX8M? Thanks. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP iMX8 has its own test application, you can find it from the yocto imx-test-xxx.tar.gz, test/mxc_v4l2_test/mx8_v4l2_cap_xxx.c Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi qiang,       I am porting the 360 surround view based on imx8qxp, and the kernel is 4.9.51,and the sensor is ap0101+AR0140,the other is max9286+max96705 . I port the driver from imx6q's driver to imx8 just like all right , because the mxa9286 and four ap0101 have been found successfully in the log. But when I use the imx6's test code 'mxc_v4l2_tvin.out ' ,there is a error just like 'no such files found '. I am not sure imx6's test code could be used in the imx8qxp, is there  any other test code just for imx8 ?? If yes ,could you  provide one demo for me ? Thanks a lot.    Best regards jun Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Jianfeng, Can you try the mxc_v4l2_tvin from "https://community.nxp.com/docs/DOC-335803", I haven't seen your issue. And you can also modify the mxc_v4l2_tvin.c source code, it can capture video data to file, then you can check the file on PC with some YUVPlayer to check if the captured data is correct or not. /*  char still_file[100] = "./still.yuv";  int fd_still = 0;  if ((fd_still = open(still_file, O_RDWR | O_CREAT | O_TRUNC, 0x0666)) < 0)  {   printf("Unable to create y frame recording file\n");  } */ ... ... //  if(i>100 && i<120) //   write(fd_still, capture_buffers[capture_buf.index].start, 720*240*2); ... ... // close(fd_still); Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP hi liqiang,    i use the imx6q instead of imx6d, but the problem still exits. now i have no idea to solve this problem. Is it an application problem or a kernel problem? please help,thank you ,anyway. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP hi liqiang,    Thank you for advice.  Maybe it is due to i use the imx6d ,not the imx6Q?? if i use the imx6D ,how can i make it right? tkank you very much for your help. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP You can reference to the mxc_v4l2_tvin in https://community.nxp.com/docs/DOC-335803 It had fixed some issues. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP The hardware has pixel align requirement, you'd better let the width and height to align in 16 pixels. Another thing should be checked: the G2D will set frame buffer to RGB format, but without "-g2d", it will use IPU to render and it needs YUV format fb1. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP hi liqiang, two question about the test mxc_v4l2_tvin_max9286.tar,the screen resolution is 800x480 when i use the command "mxc_v4l2_tvin.out -ol 0 -ot 0 -ow 800 -oh 480 -d 1 -x 0" ,the camera seem normal 1.when i use the command "mxc_v4l2_tvin.out -ol 0 -ot 0 -ow 400 -oh 240 -d 1 -x 0"  the screen will scroll  2.when i use the command " mxc_v4l2_tvin.out -ol 0 -ot 0 -ow 800 -oh 480 -d 1 -x 0 -g2d", the sreen show fliker  thank you very much .looking for you answer. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Qiang Li, We know that IMX8 BSP has support for MAX9286, but it seems only for i.MX8Q. MAX9286 driver must work with MIPI CSI2 driver. In i.MX8Q device tree (fsl-imx8qm-mek.dts), we see it is linked with 'fsl,mxc-mipi-csi2' driver (drivers/media/platform/imx8/mxc-mipi-csi2.c). But in i.MX8M device tree, MIPI CSI2 driver is 'fsl,mxc-mipi-csi2_yav' (drivers/media/platform/imx8/mxc-mipi-csi2-yav.c). After comparing these two drivers, we found the major differences are the hardware manipulation and V4L2 media control pad initialization. Our questions are:   1. Does 'fsl,mxc-mipi-csi2' driver work on i.MX8M?   2. Otherwise, does the 'fsl,mxc-mipi-csi2_yav' driver support virtual channel well?   3. Furthermore, how to support virtual channel feature in 'fsl,mxc-mipi-csi2_yav' driver? (the i.MX8M reference manual does not have enough information for MIPI CSI2 virtual channel)? Thanks. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP The camera we verified on iMX8 is MAX9271+OV10635, but if you are using the MAX96705, you can reference to this iMX6 patch, there is only some small modifications for MAX96705. Your failure means when MAX9286 try to access OV10635 with Coax cable (I2C signals are transfered on it), there is I2C access error, the I2C between MAX9286 and iMX8 has no error. There is is between MAX9286 and camera module. It is more like Coax signal issue. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Qiang, We use the LI-USB30-OV10635-SER  connect to PC by usb 3.0,  the capture show normal on tools, We think the ov10635 modules is OK. max9286 driver load,  max9286 can access by I2C, I2C driver I think is OK. We doubt the configure of max9286 and max96705,Is this combination be worked on imx8x 4.9.51 version? Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP The I2C access issue is more like hardware issue, I think you need check your hardware. The default iMX8 BSP supports MAX9286 directly, no patch is needed. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Qiang, I use max9286 and max96705+ov10635 on imx8x kernel version is 4.9.51, Does this version have patch? Use the default max9286 driver which exist in kernel  4.9.51 source code,It show some error when driver load。 It seems ov10635 Communication failure by I2C, But the max9286 is success use the same I2C access error log as below: [    2.525043] mxc-mipi-csi2 58227000.csi: mipi_csi2_probe [    2.549343] mxc-mipi-csi2 58227000.csi: lanes: 4, name: mxc-mipi-csi2.0 [    2.556705] max9286_mipi 0-006a: In max9286_hardware_preinit() [    2.854197] max9286_mipi: reg = 0xf0. [    2.857870] max9286_mipi: sensor number = 4. [    2.862158] max9286_mipi 0-006a: In max9286_hardware_init() [    2.893273] max9286_mipi: initialized sensor  = 0x01. [    2.921271] max9286_mipi: initialized sensor  = 0x02. [    2.949272] max9286_mipi: initialized sensor  = 0x03. [    2.977271] max9286_mipi: initialized sensor  = 0x04. [    3.145279] max9286_mipi 0-006a: ov10635_read_reg:read reg error: reg=0x300a. [    3.152433] max9286_mipi 0-006a: ov10635_check_device: OV10635 hasn't been found, reg[0x300a] = 0x0., index=1 [    3.321275] max9286_mipi 0-006a: ov10635_read_reg:read reg error: reg=0x300a. [    3.328419] max9286_mipi 0-006a: ov10635_check_device: OV10635 hasn't been found, reg[0x300a] = 0x0., index=2 [    3.497275] max9286_mipi 0-006a: ov10635_read_reg:read reg error: reg=0x300a. [    3.504421] max9286_mipi 0-006a: ov10635_check_device: OV10635 hasn't been found, reg[0x300a] = 0x0., index=3 [    3.673275] max9286_mipi 0-006a: ov10635_read_reg:read reg error: reg=0x300a. [    3.680420] max9286_mipi 0-006a: ov10635_check_device: OV10635 hasn't been found, reg[0x300a] = 0x0., index=4 [    4.752679] max9286_mipi 0-006a: max9286_mipi is found, name max9286_mipi 0-006a Could you help me which part error will lead to ov10635 access failure. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Chris, if they are two MIPI CSI2 cameras, you can't connect them to CPU directly. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Qiang, This is great information!  In the event that you want to use 2 CSI2 cameras, do you know if it's possible to hook both cameras directly to the processor (how do you handle the 2 clk pairs from the two cameras?) of if you need to use a signal aggregator to combine the cameras into one interface? Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP The MAX9286 needs all camera working at frame sync mode and same timing, so the cameras should send out vsync at almost same time. If some camera is working at free run mode, there will be scroll issue, because MAX9286 can't sync them. You can measue the VSYNC for all cameras to check this.  Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP i used the patch L3.10.53_GA1.1.0_MAX9286_Surroundview_Patch_2015-12-04.zip , when i connect 2 camera , i can capture image correctly. but when i connect three cameras i can not get image correctly, the image scroll. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP I think you need check with Maxim for both the MAX9286 Programming Guider and the MAX9286 hardware schematics. From my point, the power supply to camera board with Coax cable is easy to cause such stable issue. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP it like the signle is not stable , 70% it can work succefully ,the  hard ware is designed according to the official schematic design.I am not sure where to check Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP would you please send the MAX9286 Programming Guide to me Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP The Max9286 setting is from "MAX9286 Programming Guide", I think you need check your hardware, if the MAX9286 can't lock the camera signals, it will not output valid MIPI CSI2 signal, then on iMX6 side, it will show "mipi csi2 can not receive sensor clk". Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi li i use max9286 and max96705 i found the connect is not very stable, sometime i get "mipi csi2 can not receive sensor clk..." ,when i  git this error i fount all the config are success i use the patch L3.10.53_GA1.1.0_MAX9286_Surroundview_Patch_2016-07-26.zip, in the patch i found you config max9286 register 0x3f 0x3b ,but i did not found any introduction about these register ? Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP "ap0101_initialize:AP0101 is not in Host Configuration Mode" This log means the camera is not in I2C config mode, so we can't initialize it. You need check your camera board, if it has flash on board, then you need update the flash ROM setting with the driver's. You can also remove the flash ROM on camera board, then the MAX9286 driver can initialize it with I2C commands. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Lion, You need include blank data too. So use the pixel clock to calculate the throughput is more simple and accuracy. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Qiang I also use ov10635, and use  the same sensor register values as in your patch the sensor output 1280*800@30fps with yuv422(uyvy,0x1e) per my understanding, the camera data rate should be 30M*16bits=480Mbps how to get the value of 768Mbps? and in function mipi_csi2_reset, it just sets register MIPI_CSI_PHY_TST_CTL1, from the name, it is just a test related register, is it useful for the mipi csi2 init? thanks Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Lion Wei, the MAX throughput for IMX6 MIPI CSI2 is 3.2Gbps in 4 lanes mode, so each camera can be up to 800Mbps (include blank data). And the followed code should be adjust for your real camera, the 768 should be your real camera bps:  /* 48MHz pixel clock (1280*800@30fps) * 16 bits per pixel (YUV422) = 768Mbps mipi data rate for each camera */  mipi_csi2_reset(mipi_csi2_info, (768 * g_sensor_num) / (lanes + 1)); Anoter limitation, at least 3 blank lines are needed for two frames from camera. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Qiang thanks for your help! after tune the ti settings, I can receive four camera data now. currently for 1/2/3 sensors, I can receive the data with correct pixels however for 4 sensors, the pixel data has some line corruptions(see the below picture) from TI side, we can set the data lane numbers and data lane rate however, the data lane rate has only three options(400M, 800M, 1.6G) with different rate+lane number setting, the 1/2/3 sensors can work perfectly for 4 sensors, only 800M+4 data lanes works, but the data has some corruptions my question is 1) for imx6 mipi csi2 receiver, is there any special requirement on the rate and data lanes setting? 2) for imx6 mipi csi, what is the suitable ratio between the real data rate and the total data capability? 2) any suggestions? Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Mustafa, These packages are implemented by the MIPI CSI2 hardware, from software side, we just tell it the virtual channel number and Data Identifier (It can be found at include\linux\mipi_csi2.h). Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Thank you for respond Qiang_FSL‌ I am now looking at the MIPI CSI2 Reference Documentation , I am checking all. Also I made search on the my imx6q(Wandboard Quad) custom board source and header files. After my research I could not find  relative source code in the my kernel files, which defines packet types and communication sub-structures for CSI-2 Interface Low Level Protocol message protocol , SoT and EoT package sample codes. I will take the video by using  "mxc" relative files and it's ipu source codes. So If you can share any source code or any relative codes which informs me about  SoT,EoT and LLP Massage Package Structures sample codes, It would be very nice and useful for me because I don't have any reference code in my kernel files.  Best Regards. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Lion, The MIPI CSI2 error registers can be used to check the MIPI CSI2 package is correct with CRC or follows the protocol. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Mustafa, the information can be found from MIPI CSI2 specification: Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi lionwei Qiang_FSL ; According to iMX6 CSI2IPU documentation we need to create  short or long type packages  and also we need Start Of Transmission and End Of Transmission packages too,  How can I send this packages for example in the camera device driver source this packages should be created and sent these data types or we are defining these values to another files . What is the format of SoT and EoT packages? Can someone give me any example about that, I have been working to solve the csi2 format mipi clock and data lane problem, I couldnt define to the iMX6Q processor custom board since 3 week. It would be very very appreciated. Best Regards Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Qiang is there any way on imx6 to confirm the mipi data correct or not from mipi csi-2? for example some register show the status of the mipi csi-2, specially the virtual channel/frame size related Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Lion, no special modification is needed on iMX6 side, you should tune the Ti chip setting. As I know, some customer had already make the Ti 964 work on iMX6 platform, the main work is in Ti side, you should check with them. For iMX6, you just need make sure the four cameras is transfered on 4 MIPI virtual channel. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Qiang I am using following hardwares for similiar surroundview implementation under linux 3.14.52 ov10635 <--> ds90ub913 <--> ov10635 <--> ds90ub913 <--> DS90ub964-q <-----> imx6q ov10635 <--> ds90ub913 <--> ov10635 <--> ds90ub913 <--> the driver patches are most the same as the one you provided and currently the mipi-csi2 can detect the pixclock successfully also the waves on the data lines of mipi-csi2 seems correctly however, I can not receive the camera_callback for camera 0-2, only can receive camera_callback of camera 3 I have read all the comments above, and can not find the similiar causes I have checked the following things 1) the MIPI_IPU1_MUX and MIPI_IPU2_MUX are set to 0 for mipi_csi 2) the register dumps: IPU1_CSI0_SENSE_CONF(0x2630000): 0x04008a00 IPU1_CSI1_SENSE_CONF(0x2638000): 0x04008a00 IPU2_CSI0_SENSE_CONF(0x2a30000): 0x04008a00 IPU2_CSI1_SENSE_CONF(0x2a38000): 0x04008a00 IPU1_IDMAC_CH_EN_1(0x2608004): 0x00000003 IPU1_IDMAC_CH_EN_2(0x2608008): 0x00000000 IPU2_IDMAC_CH_EN_1(0x2a08004): 0x00800003 IPU2_IDMAC_CH_EN_2(0x2a08008): 0x00000000 IPU1_IDMAC_CH_BUSY_1(0x2608100): 0x00000003 IPU2_IDMAC_CH_BUSY_1(0x2a08100): 0x00800002 IPU1_SMFC_MAP(0x2650000): 0x00000020 IPU2_SMFC_MAP(0x2a50000): 0x00000020 my questions are 1) are the smfc and idmac setting correct for these four cameras? 2) from the spec, it says ipu mipi should use non-gated mode, but mxc_v4l2_capture.c uses gated mode in mxc_v4l2_s_param which mode should I use(I have tried both modes, and neither of them works for me) 3) which case need me to set the hsync_pol, vsync_pol? 4) any suggestion to identify this issue? thanks Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP That means your kernel is not aligned with the GPU libs in your rootfs. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Qiang,       Have a nice holiday. I have some trouble with  my borad. We refer to the sabresd and max9286+max96705+ap 0101, and we used the 3.14.52 BSP.  Now our four camera are all working properly, but when I used '-g2d'  in the test command  there is a error just like 'Segmentation fault'. I think It may be  something wrong with  my GPU,but I don't kown how to deal with the problem. Could you give  some advices to me ?Thanks . Here is the log below.                    root@imx6qdlsolo:~# ./mxc_v4l2_tvin.out -ol 0 -ot 0 -ow 960 -oh 540 -d 0 -x 0 ------------------------------here is AP0101-------------------------------- max9286_mipi: sensor number = 4. mxc_mipi_csi2 21dc000.mipi_csi: mipi_csi2_reset: mipi_lane_bps = 594 Mbps mxc_mipi_csi2 21dc000.mipi_csi: mipi_csi2_reset: value = 0x2e. max9286_mipi 1-006a: ap0101_initialize: AP0101 was found, index = 1. max9286_mipi 1-006a: ap0101_initialize:AP0101 is already in Slave (Shutter-Sync) Mode. max9286_mipi 1-006a: ap0101_initialize: AP0101 was found, index = 2. max9286_mipi 1-006a: ap0101_initialize:AP0101 is already in Slave (Shutter-Sync) Mode. max9286_mipi 1-006a: ap0101_initialize: AP0101 was found, index = 3. max9286_mipi 1-006a: ap0101_initialize:AP0101 is already in Slave (Shutter-Sync) Mode. max9286_mipi 1-006a: ap0101_initialize: AP0101 was found, index = 4. max9286_mipi 1-006a: ap0101_initialize:AP0101 is already in Slave (Shutter-Sync) Mode. g_in_width = 1280, g_in_height = 720. fb_fix.id = DISP4 BG. It is background screen, only full screen default format was supported. fb: smem_start = 0x25600000, smem_len = 0x546000. fb: frame buffer size = 0x1c2000 bytes. fb: g_screen_info.xres = 1280, g_screen_info.yres = 720. fb: g_display_left = 0. fb: g_display_top = 0. fb: g_display_width = 1280. fb: g_display_height = 720. start time = 1449238585 s, 124037 us ^CERROR: v4l2 capture: mxc_v4l_dqueue() interrupt received root@imx6qdlsolo:~# ./mxc_v4l2_tvin.out -ol 0 -ot 0 -ow 960 -oh 540 -d 0 -x 0 -g2d ------------------------------here is AP0101-------------------------------- max9286_mipi: sensor number = 4. mxc_mipi_csi2 21dc000.mipi_csi: mipi_csi2_reset: mipi_lane_bps = 594 Mbps mxc_mipi_csi2 21dc000.mipi_csi: mipi_csi2_reset: value = 0x2e. max9286_mipi 1-006a: ap0101_initialize: AP0101 was found, index = 1. max9286_mipi 1-006a: ap0101_initialize:AP0101 is already in Slave (Shutter-Sync) Mode. max9286_mipi 1-006a: ap0101_initialize: AP0101 was found, index = 2. max9286_mipi 1-006a: ap0101_initialize:AP0101 is already in Slave (Shutter-Sync) Mode. max9286_mipi 1-006a: ap0101_initialize: AP0101 was found, index = 3. max9286_mipi 1-006a: ap0101_initialize:AP0101 is already in Slave (Shutter-Sync) Mode. max9286_mipi 1-006a: ap0101_initialize: AP0101 was found, index = 4. max9286_mipi 1-006a: ap0101_initialize:AP0101 is already in Slave (Shutter-Sync) Mode. g_in_width = 1280, g_in_height = 720. fb_fix.id = DISP4 BG. fb: smem_start = 0x25600000, smem_len = 0x546000. fb: frame buffer size = 0x1c2000 bytes. fb: g_screen_info.xres = 1280, g_screen_info.yres = 720. fb: g_display_left = 0. fb: g_display_top = 0. fb: g_display_width = 960. fb: g_display_height = 540. Segmentation fault      With my best regards  Jun Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Yu fe, This error means MAX9286 can't detect the cameras, you need check your hardware signal and power between MAX9286 and MAX96705. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP hi, Qiang Li my custom board is ref to saresd, max9286+max96705+ap010. my yocto version is 3.14.52, i  got message below after patched the kernel pr_info("max9286_mipi: sensor number = %d.\n", g_sensor_num); if (g_sensor_num == 0) { pr_err("%s: no camera connected.\n", __func__); return -1; } can you please give me some suggestion to find the program? Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP When you used IPU for CSC on 1280*720 frames, the IPU loading is heavy, there is chance that IPU can't service the capture on time. To improve it, you need use IDMAC 0 and IDMAC 2, then all FIFO can be used: In ipu_common.c, function ipu_probe(), please make sure all CSI->MEM channels are set to high priority:  /* Set sync refresh channels and CSI->mem channel as high priority */ - ipu_idmac_write(ipu, 0x18800003L, IDMAC_CHA_PRI(0)); + ipu_idmac_write(ipu, 0x1880000FL, IDMAC_CHA_PRI(0)); Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP This file can be found from your rootfs. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hello Qiang, The attached tvin source code includes a local file #include "g2d.h".  However this file is not included in the archive.  Where do we get this file? Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP 4 in 1 HD recorder resolved? Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Brave, That error means there is no valid MIPI CSI2 signal to IMX6, from your log, it seems there is flash in your camera module, if so, the flash setting for the camera should be algined with the AP0101 setting in max9286.c, the camera should work in frame sync mode. On Max9286, there is a lock pin, only when the four cameras are working in frame sync mode and are locked by MAX9286, it will output valid MIPI CSI2 signal to iMX6. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Dear Qiang Li, could you please kindly take a look at following post and give me an insight ? Adding X11 Interlace Video Mode Support to Yocto  Thanks in Advance Anuradha Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP The iMX6 SabreAuto board can only supply 5V power to MAX9286 board, so if you are using long Coax cable, there will be issue. You can rework your MAX9286 board, and supply 7~12V power to it. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP "MAX9296 + 4 96705 +4camera" the reference patch had already covered this, the sync setting is in camera and Maxim chip side. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Qiang, How to sync the camera of the MAX9296 + 4 96705 +4camera?  We have 2 customer want to use the IMX.6 + MAX9268+ 4 MAX96705---camera. Could you suggest how to sync the camera? Thank you very much. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Li, Why do I need to set video format to 4 (UYVY) when using grecorder tool? Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Qiang_FSL‌ now i try use h.264, ./mxc_vpu_test.out -E "-x 0 -f 0 -c 1800 -a 30 -w 1280 -h 792 -o ss.mp4 -l 0 -b 5204" when i try to play ss.mp4 on PC i can't play it normally, like the mp4 file has no header, how to create a mp4 file when use H.264 recoder video data? Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi, Li now i try to use VPU to encode the camera data, i use MJPEG, i do not want to use other standed (H263 H264), the the file is a too large, 100 frames will make a file about 11M. how to reduce MJPEG file? thanks Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Dear Qiang! I am using MAX9286+OV10635+MAX9271. I have tested 3.10.53patch and 3.14.52patch, but both of them are not work. When I ran "/mxc_v4l2_tvin.out -ol 0 -ot 0 -ow 960 -oh 540 -d 1 -x 0 -g2d &". I got the same errors, like this [ 2027.062578] max9286_mipi 0-0048: max9286_write_reg reg = 0x15, val = 0x13. [ 2027.070238] max9286_mipi 0-0048: max9286_write_reg reg = 0xe, val = 0x5f. root@wandboard-quad:/usr/src# [ 2027.093488] max9286_mipi 0-0048: max9286_write_reg reg = 0x3f, val = 0x4f. [ 2027.113488] max9286_mipi 0-0048: max9286_write_reg reg = 0x3b, val = 0x1e. [ 2027.332778] max9286_mipi 0-0048: max9271_write_reg:write reg error:reg= 4,val=43 [ 2027.552770] max9286_mipi 0-0048: max9271_write_reg:write reg error:reg= 8,val= 1 [ 2027.573473] max9286_mipi 0-0048: max9286_write_reg reg = 0x3b, val = 0x19. [ 2027.593452] max9286_mipi 0-0048: max9286_write_reg reg = 0x12, val = 0xf3. [ 2027.601029] max9286_mipi 0-0048: max9286_write_reg reg = 0x1, val = 0x2. [ 2027.713713] max9286_mipi: sensor number = 1. [ 2027.718679] max9286_mipi 0-0048: max9286_write_reg reg = 0xe, val = 0x50. [ 2027.728809] max9286_mipi 0-0048: max9286_write_reg reg = 0xb, val = 0xe1. [ 2027.735691] mxc_mipi_csi2 21dc000.mipi_csi: mipi_csi2_reset: mipi_lane_bps = 192 Mbps [ 2027.744033] mxc_mipi_csi2 21dc000.mipi_csi: mipi_csi2_reset: value = 0x44. [ 2027.751624] max9286_mipi 0-0048: max9286_write_reg reg = 0x0, val = 0xe2. [ 2027.760490] max9286_mipi 0-0048: max9286_write_reg reg = 0xa, val = 0x22. [ 2027.962765] max9286_mipi 0-0048: max9271_write_reg:write reg error:reg= 0,val= 4 [ 2028.182767] max9286_mipi 0-0048: max9271_write_reg:write reg error:reg= 7,val=84 [ 2028.402761] max9286_mipi 0-0048: max9271_write_reg:write reg error:reg= 1,val=90 [ 2028.602752] max9286_mipi 0-0048: max9271_write_reg:write reg error:reg= 9,val=c4 [ 2028.802767] max9286_mipi 0-0048: max9271_write_reg:write reg error:reg= a,val=c0 [ 2029.002791] max9286_mipi 0-0048: max9271_write_reg:write reg error:reg= b,val= a [ 2029.202766] max9286_mipi 0-0048: max9271_write_reg:write reg error:reg= c,val= 4 [ 2029.223462] max9286_mipi 0-0048: max9286_write_reg reg = 0xa, val = 0x22. [ 2029.230955] max9286_mipi 0-0048: max9286_write_reg reg = 0xa, val = 0xff. [ 2029.432766] max9286_mipi 0-0048: max9271_write_reg:write reg error:reg= 4,val=43 [ 2029.441134] max9286 reg 0x0A = 0xff. [ 2029.447266] max9286_mipi 0-0048: max9286_write_reg reg = 0x34, val = 0x36. [ 2029.652766] max9286_mipi 0-0048: max9271_read_reg:read reg error: reg= 4 [ 2029.659488] max9271 reg 0x04 = 0xffffffff. [ 2029.862766] max9286_mipi 0-0048: max9271_read_reg:read reg error: reg= 4 [ 2029.869489] max9271 reg 0x04 = 0xffffffff. [ 2030.072766] max9286_mipi 0-0048: max9271_read_reg:read reg error: reg= 4 [ 2030.079487] max9271 reg 0x04 = 0xffffffff. [ 2030.282776] max9286_mipi 0-0048: max9271_read_reg:read reg error: reg= 4 [ 2030.289497] max9271 reg 0x04 = 0xffffffff. [ 2030.492792] max9286_mipi 0-0048: ov10635_read_reg:read reg error: reg=0x300a. [ 2030.499957] max9286_mipi 0-0048: ov10635_check_device: OV10635 hasn't been found, reg[0x300a] = 0x0. [ 2030.510196] max9286_mipi 0-0048: max9286_write_reg reg = 0x34, val = 0xb6. [ 2030.712770] max9286_mipi 0-0048: max9271_write_reg:write reg error:reg= 4,val=83 [ 2030.823490] max9286_mipi 0-0048: max9286_write_reg reg = 0x15, val = 0x9b. [ 2031.442763] mipi csi2 can not receive sensor clk! MIPI_CSI_PHY_STATE = 0x200. g_in_width = 1280, g_in_height = 800. fb_fix.id = DISP3 FG. fb: smem_start = 0x40800000, smem_len = 0xa8c000. fb: frame buffer size = 0x384000 bytes. fb: g_screen_info.xres = 1280, g_screen_info.yres = 720. fb: g_display_left = 0. fb: g_display_top = 0. fb: g_display_width = 960. fb: g_display_height = 540. start time = 1499055466 s, 40751 us [ 2041.482836] ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0 VIDIOC_DQBUF failed. It shows that can't find OV10635 and MAX9271. If there are something wrong with I2C drivers? I can confirm my hardware board is OK, because I am using the "MAX9286 COAX EVKIT" board. Could you help me? Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP 3.14.52 BSP release has this tool. For other release, it is same as normal camera recode. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP where can i get grecorder-1.0 Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP VPU performance is not enough for 4x720P30 recoder. For one camera: grecorder-1.0 --camera_id 0 --video_format 4 --width1280 --height 720 --fps 30 Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi li How to use gstreamer record the four channel camera data? Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Thanks for your reply. where should i change the ipu driver code?like csi_enc_setup in ipu_csi_enc.c ,and  camera_callback in mxc_v4l2_capture.c Could you please describe in more detail? thanks Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP You can alloc a big buffer array for V4l2 capture driver with 2560*1440 pixel buffers: For camera 1, let its DMA buffer base address to pixel (0, 0), width 1280, height 720, but set the stride to 1280*2*2; then after filled 1280 pixels (1280*2 bytes for UYVY input), it will jump 1280*2*2 bytes; so camera 1 will fill the left-up 1280*720 pixels of the buffer; For camera 2, let its DMA buffer base address to pixel (1280, 0), width 1280, height 720, but set the stride to 1280*2*2; then after filled 1280 pixels (1280*2 bytes for UYVY input), it will jump 1280*2*2 bytes; so camera 2 will fill the right-up 1280*720 pixels of the buffer;  For camera 3, let its DMA buffer base address to pixel (0, 720), width 1280, height 720, but set the stride to 1280*2*2; then after filled 1280 pixels (1280*2 bytes for UYVY input), it will jump 1280*2*2 bytes; so camera 3 will fill the left-down 1280*720 pixels of the buffer;  For camera 4, let its DMA buffer base address to pixel (1280, 720), width 1280, height 720, but set the stride to 1280*2*2; then after filled 1280 pixels (1280*2 bytes for UYVY input), it will jump 1280*2*2 bytes; so camera 4 will fill the right-down 1280*720 pixels of the buffer. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Qiang_FSL‌  @zhang hongliang  i want to put the four Independent camera data together in the ipu driver like one of below image , so then user can just use once DQBUF call to get all the four camera data. Any suggestions? or Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Please check with your S32V contact window for that, here is just for IMX6. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP I think you still need check and tuning your ISX016 camera setting, the reference code is for AP0101+AR0140 camera board. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Thank you for your reply, the camera is working in sync mode. sometime i can connect two camrea successfully: max9286_mipi: sensor number = 2. mxc_mipi_csi2 21dc000.mipi_csi: mipi_csi2_reset: mipi_lane_bps = 336 Mbps mxc_mipi_csi2 21dc000.mipi_csi: mipi_csi2_reset: value = 0x2a. max9286_mipi 1-006a: ap0101_initialize: AP0101 was found, index = 1. max9286_mipi 1-006a: ap0101_initialize:AP0101 is already in Slave (Shutter-Sync) Mode. max9286_mipi 1-006a: ap0101_initialize: AP0101 was found, index = 2. max9286_mipi 1-006a: ap0101_initialize:AP0101 is already in Slave (Shutter-Sync) Mode. but when i try to get image,the image is not  normal, the clock configure is not right? g_sensor_num = 2  lanes = 3 mipi_csi2_reset(mipi_csi2_info, (672* g_sensor_num) / (lanes + 1)); Qiang_FSL‌ Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP I think your cameras are not working in sync mode. They should work in such mode: MAX9286 send a pulse to each camera, then each camera send out one frame. The VSYNC for each camera should appear in almost same time. If MAX9286 can't sync the multi-cameras, it will not output MIPI signals. But for single camera, no sync was needed. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP now i use BSP 3.10.53, max9286+max96707+ISX016 when connest one camera i can get image successfully,but when i connect tow cameras i always get mipi csi2 can not receive sensor clk! MIPI_CSI_PHY_STATE = 0x6f0. i have patched L3.10.53_GA1.1.0_MAX9286_Surroundview_Patch_2016-07-26.zip my code :  max9271_write_reg(0, 0x40, 0x2F);  msleep(2);  max9271_write_reg(0, 0x97, 0x5F); ....  max9286_write_reg(0x01, 0x00);  max9286_write_reg(0x63, 0x00);  max9286_write_reg(0x64, 0x00);  max9286_write_reg(0x06, 0x00);  max9286_write_reg(0x07, 0x00);  max9286_write_reg(0x08, 0x26); ... mipi_csi2_reset(mipi_csi2_info, (576 * g_sensor_num) / (lanes + 1)); i have refer Debug steps for customer MIPI sensor.docx. my doubt is how to  confirm hsp_clk  and  ccm_pixel_clkm and where to configure hsp_clk  and  ccm_pixel_clkm? another question is about MAX9286 (FSYN CLOCKED in register 0x31 ) when i read it it is 0x0, if the two camera can not get FSYNC LOCKED, this will lead to can not receive sensor clk??? how to fix this? thanks Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Thanks. The problem has been resoved. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Reference to MIPI specification, the YUV422 data transferred on MIPI CSI2 is UYVY, no YUYV, so in max9286_mipi.c, we have the followed code: max9286_data[0].pix.pixelformat = V4L2_PIX_FMT_UYVY; if (sensor->pix.pixelformat == V4L2_PIX_FMT_UYVY) { for (i=0; i mipi_csi2_set_datatype(mipi_csi2_info, i, MIPI_DT_YUV422); If your camera can only be YUYV format, you should change the max9286_mipi.c as followed: max9286_data[0].pix.pixelformat = V4L2_PIX_FMT_YUYV; if (sensor->pix.pixelformat == V4L2_PIX_FMT_YUYV) { for (i=0; i mipi_csi2_set_datatype(mipi_csi2_info, i, MIPI_DT_YUV422); Note: MIPI_DT_YUV422 can't be changed, it is defined by MIPI CSI2 specification for UYVY, there is no MIPI data type for YUYV. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP The patch had already show you the reference code to set the GPR register in file arch/arm/mach-imx/mach-imx6q.c. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP You need check your kernel boot up log to confirm there is no other V4l2 capture driver used video0. You can also use command "ls /dev/video*" to list all video device in your system. And register IOMUXC_GPR1 (0x020E0004) should also be checked, bit 20 and bit 19 must be 0. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP (1) Onsemi AR0140+AP0101+MAX9271 boards. We got this board from Onsemi. (2) OmniVision OV10635+MAX9271 boards. This board is made by Maxim, you can check with them. And as I know AVNET China team had also built some camera boards for both AR0140 and OV10635. "http://entroninc.com/" had also built camera boards for this solution. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP I want to get your Test camera board      (1) Onsemi AR0140+AP0101+MAX9271 boards.     (2) OmniVision OV10635+MAX9271 boards. where can I get them? Could you please recommend  Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Li, when i build BSP L3.14.52.1.1,i got some error, please give some help,thanks bitback fsl-image-gui Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Thanks for your reply. There is no flash ROM on OV10635 board. Follow are the wave of FSIN,HRFE and VSYNC. I think the issure in the OV10635 register setting, My OV10635 is producted in 2014, did you test the patch on the 2014 version chip and have the correct register setting?  Coment:yellow is FSIN, blue is VSYNC. Coment:yellow is HREF, blue is VSYNC. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Qiang,      The patch of HD 720p sound view we have tested on I.MX6qp-sabreauto .But  now our board designed based on I.mx6qsabresd and BSP version is L3.14.52 for imx6qsabresd. So ,my question is  can you send us the patch for L3.14.52 of  imx6qsabresd ? Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Winter, did you measure the correct pin? The HREF is the HSYNC signal, it is for line, so it will not be 30fps. I think you need check your OV10635 setting, if it is initialized by on board flash ROM, not from the MAX9286 driver, you should update your flash ROM setting. The VSYNC should align with the FSIN signal, this signal is from MAX9271's GPO. One FSIN, one VSYNC. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi~Li Qiang!       Thank you for your Patch~       I use your patch for my camera OV10635 board,  it is not work. I found  the VSYNC of the OV10635  is discontinuous,the HREF is ok and looks about 30fps.  Can you paste your VSYNC wave here? Thanks Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP The camera sensor AR0140 should connect to ISP AP0101, then AP0101 should connected to MAX9271 to output the serial signal. And I think, without AP0101, the AR0140 can't work in the solution. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP hi  Li Qiang:                     have change the config,But i find i your code only  have AP0101,not have AR0140,i run the board,like this: Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Please read the readme file again, it had already told you where to select the camera sensor. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP hi  Li qiang:                       i find my sensor is AR0140,not OV10635,Where I need to change?thank you Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Haifeng, yes the MAX9286 board was powered from iMX6 board with 5V power, and the OV10635 camera boards can also be powered from iMX6 boards's 5V, but there is another power connector on MAX9286 board which can be used to power the 4xOV10635 camera board, you can connect 12V power to it and select the jump on MAX9286 boards. So the final power: 5V from iMX6 board to MAX9286 board; 12V from MAX9286 board's power connector to OV10635 camera boards. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP hi  qiang li:                  i use the MAX9286 board,i find the max9286 board supply by 5V, my max9286board supply by maxim,they designed for I.mx6. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP These setting are used in mxc_mipi_csi2.c and mxc_v4l2_capture.c, you can modify the code directly. By the way, I think you should not compare the patched 3.10.53 files with 3.0.35 files, you can manually modify the 3.0.35 files directly, based on the code modification in patches. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP inux_3.10.35/arch/arm/boot/dts/imx6q-sabreauto.dts  中     &mipi_csi { status = "okay"; lanes = <4>; mipi-csi2-channel@0 { ipu_id = <0>; csi_id = <0>; v_channel = <0>; status = "okay"; }; mipi-csi2-channel@1 { ipu_id = <0>; csi_id = <1>; v_channel = <1>; status = "okay"; }; mipi-csi2-channel@2 { ipu_id = <1>; csi_id = <0>; v_channel = <2>; status = "okay"; }; mipi-csi2-channel@3 { ipu_id = <1>; csi_id = <1>; v_channel = <3>; status = "okay"; }; }; 这一段在3.0.35中怎么处理? Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Jin, if you supply the camera board with 5V power and using long Coax cable, there is chance to get such issue. The OV10635 camera board is designed for 7~12V power supply, so you can supply the camera board with 12V power. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP dear Qiang Li:                              have you try on the imx6q-sabreauto board? i can not use the max9286 on sabreauto board,it is some error: 1 -x 0 -g2d &lo:/unit_tests# ./mxc_v4l2_tvin.out -ol 0 -ot 0 -ow 960 -oh 540 -d [1] 845 root@imx6qdlsolo:/unit_tests# max9286_mipi: sensor number = 1. mxc_mipi_csi2 21dc000.mipi_csi: mipi_csi2_reset: mipi_lane_bps = 192 Mbps mxc_mipi_csi2 21dc000.mipi_csi: mipi_csi2_reset: value = 0x44. max9286_mipi 1-006a: ov10635_read_reg:read reg error: reg=0x300a. max9286_mipi 1-006a: ov10635_check_device: OV10635 hasn't been found, reg[0x300a] = 0x0. mipi csi2 can not receive sensor clk! MIPI_CSI_PHY_STATE = 0x6f0. g_in_width = 1280, g_in_height = 800. fb_fix.id = DISP4 FG. fb: smem_start = 0x73600000, smem_len = 0x480000. fb: frame buffer size = 0x180000 bytes. fb: g_screen_info.xres = 1024, g_screen_info.yres = 768. fb: g_display_left = 0. fb: g_display_top = 0. fb: g_display_width = 960. fb: g_display_height = 540. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP You can link the libg2d.so to libg2d.so.0.8. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP dear Qiang Li:                       i have use the L3.14.52,it is some error use the binary in mxc_v4l2_tvin_max9286.tar.gz which yours,the log : ./mxc_v4l2_tvin.out: error while loading shared libraries: libg2d.so.0.8: cannot open shared object file: No such file or directory Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP There is binary file in mxc_v4l2_tvin_max9286.tar.gz, you can use it directly. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Qiang Li                  i use de 3.14.52,all patch used,but i have not use,mxc_v4l2_tvin_max9286.tar.gz,in the rootfs,i use unit_tests/mxc_v4l2_tvin.out ,it is nothing to display,can you help me?in the 3.14.52 yocto ,i can not complie the mxc_v4l2_tvin_max9286.tar.gz ,it is something wrong Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP After commented out adv7180, it became OK. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Qiang Li I see. the adv7180 should be commented out in imx6qdl-sabreauto.dtsi file. Thank you! ZongbiaoLiao Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP From your log "g_in_width = 720, g_in_height = 624", I think the IPU0 CSI0 port hasn't been used by the MAX9286, it is still combined with adv7180. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Qiang Li The log is as bellow: --------------------------------------- root@imx6qsabreauto:/unit_tests# ./max9286.sh root@imx6qsabreauto:/unit_tests# g_in_width = 1280, g_in_height = 800. fb_fix.id = DISP3 FG. g_in_width = 1280, g_in_height = 800. g_in_width = 1280, g_in_height = 800. fb: smem_start = 0x72c00000, smem_len = 0xbdd800. fb_fix.id = DISP3 FG. fb: frame buffer size = 0x3f4800 bytes. fb: g_screen_info.xres = 1920, g_screen_info.yres = 1080. fb: g_display_left = 960. fb: g_display_top = 0. fb: g_display_width = 960. fb: g_display_height = 540. fb: smem_start = 0x72c00000, smem_len = 0xbdd800. start time = 1457509993 s, 697691 us fb: frame buffer size = 0x3f4800 bytes. fb: g_screen_info.xres = 1920, g_screen_info.yres = 1080. fb: g_display_left = 0. fb: g_display_top = 540. fb_fix.id = DISP3 FG. fb: g_display_width = 960. fb: g_display_height = 540. fb: smem_start = 0x72c00000, smem_len = 0xbdd800. fb: frame buffer size = 0x3f4800 bytes. fb: g_screen_info.xres = 1920, g_screen_info.yres = 1080. fb: g_display_left = 960. fb: g_display_top = 540. fb: g_display_width = 960. fb: g_display_height = 540. start time = 1457509993 s, 717597 us start time = 1457509993 s, 717698 us g_in_width = 720, g_in_height = 624. fb_fix.id = DISP3 FG. fb: smem_start = 0x72c00000, smem_len = 0xbdd800. fb: frame buffer size = 0x3f4800 bytes. fb: g_screen_info.xres = 1920, g_screen_info.yres = 1080. fb: g_display_left = 0. fb: g_display_top = 0. fb: g_display_width = 960. fb: g_display_height = 540. start time = 1457509994 s, 45827 us ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0 VIDIOC_DQBUF failed. ------------------------------------------------------ and what the HDMI display showed is as bellow: The first camera shows nothing and after several seconds the 'ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0' is output, all other three cameras also stop and show nothing. Thank you! ZongbiaoLiao Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP What's the error log? Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi, Qiang Li I selected MAX9271. My problem is three cameras work except the first one. Thank you! ZongbiaoLiao Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP You need select MAX96705 or MAX9271 in the kernel config, if it is different with your hardware, it will not work. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi Qiang Li Thank you for releasing patch for L3.14.52_GA1.1.0. I have tested the patch,but  I met  a problem. The first camera(mxc_v4l2_tvin.out -ol 0 -ot 0 -ow 960 -oh 540 -d 1 -x 0 -g2d &) does not show anything, and after several seconds, error 'VIDIOC_DQBUF failed' happened,all other three cameras also stopped. Then I tested patch for 3.10.53,all cameras have no problem. Could you help me? Thank you! ZongbiaoLiao Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP We have no plan to back porting the driver to 3.0.35 BSP, please do it by yourself. Thanks! Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP Hi~Li Qiang!       Thank you for your Patch~        But our cpu is IMX6Q-Sabresd, Camera is Ov10635. LTIB is L3.0.35_4.1.0        Can you help me support this Patch ?        Thanks Sincerely~~ Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> FRSYNC/GPI does not need to be connected to iMX6, and CSI0_MCLK is not used. All working mode settings are between MAX9286 and camera, so you need to confirm with Maxim about the specific connection settings between MAX9286 and Camera (AP0101). For iMX6, you only need to connect the data and clock of MIPI CSI2. If the working mode of MAX9286 and Camera is not correct, the data coming from MIPI will be abnormal. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> Thank you very much. The problem of video0 not displaying has been solved. Now there is another problem, that is, the YUV data obtained through the mxc_v4l2_tvin_max9286 process is always reversed. For example, I set g_in_fmt = V4L2_PIX_FMT_UYVY in my application, and the data viewed in capture_buffers is actually YUYV. If g_in_fmt = V4L2_PIX_FMT_YUYV, the data viewed in capture_buffers is actually UYVY. I configured the CSI data format YUYV and UYUV by changing CSI0_SENS_DATA_FORMAT, but it didn't work. Is this modification correct? What causes this problem? Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> Boss, didn't you adjust it on version 3.0.35 before? Please share with us. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> Supplement: The sensor I use is ov490 (isp) + ov10640 (sensor), and the data format output by the sensor is YUV422---YUYV. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> @Qiang Li - Mpu Se Hello! Thanks for your reply! First of all, the high and low data lines from the camera to the MAX96705 are indeed reversed, but we only connected 8 data lines instead of 10. The picture shown above is the image after the data lines are reversed. The specific settings are as follows: max9271_write_reg(i, 0x20, 0x07); max9271_write_reg(i, 0x21, 0x06); max9271_write_reg(i, 0x22, 0x05); max9271_write_reg(i, 0x23, 0x04); max9271_write_reg(i, 0x24, 0x03); max9271_write_reg(i, 0x25, 0x02); max9271_write_reg(i, 0x26, 0x01); max9271_write_reg(i, 0x27, 0x00); max9271_write_reg(i, 0x30, 0x17); max9271_write_reg(i, 0x31, 0x16); max9271_write_reg(i, 0x32, 0x15); max9271_write_reg(i, 0x33, 0x14); max9271_write_reg(i, 0x34, 0x13); max9271_write_reg(i, 0x35, 0x12); max9271_write_reg(i, 0x36, 0x11); max9271_write_reg(i, 0x37, 0x10); Then we changed it according to your settings, and after that the image lost more outline details. Could there be some other factor causing this? Thanks! Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> Hi, our current board is IMX6QP+MAX9286+MAX96705+AP0101AT+AR0143AT , and the kernel version is L4.1.15. AP0101 is equipped with a flash and uses the firmware provided by the supplier. The video format is: YUV422 8bit/LSB. It has been confirmed that the video data output by the ISP is normal. Currently only one camera module is connected for debugging. After applying the patch you provided, the following prompt appears: root@imx6qp-avm718:/unit_tests# ./mxc_v4l2_tvin.out -ol 0 -ot 0 -ow 960 -oh 540 -d 0 -x 0 In MVC: mxc_v4l_open device name is Mxc Camera End of mxc_v4l_open: v2f pix widthxheight 288 x 352 End of mxc_v4l_open: crop_bounds widthxheight 1280 x 720 End of mxc_v4l_open: crop_defrect widthxheight 1280 x 720 End of mxc_v4l_open: crop_current widthxheight 1280 x 720 On Open: Input to ipu size is 1280 x 720 max9286_mipi: sensor number = 1. mxc_mipi_csi2 21dc000.mipi_csi: mipi_csi2_reset: mipi_lane_bps = 148 Mbps mxc_mipi_csi2 21dc000.mipi_csi: mipi_csi2_reset: value = 0x42. max9286_mipi 1-006a: ap0101_initialize: AP0101 was found, index = 1. max9286_mipi 1-006a: ap0101_initialize:AP0101 is already in Slave (Shutter-Sync) Mode. In MVC:mxc_v4l_ioctl In MVC: mxc_v4l_do_ioctl 80685600 case VIDIOC_QUERYCAP In MVC:mxc_v4l_ioctl In MVC: mxc_v4l_do_ioctl c0045627 case VIDIOC_S_INPUT In MVC:mxc_streamoff In MVC:mxc_v4l_ioctl In MVC: mxc_v4l_do_ioctl c02c563a case VIDIOC_CROPCAP In MVC:mxc_v4l_ioctl In MVC: mxc_v4l_do_ioctl c0cc5616 case VIDIOC_S_PARM In mxc_v4l2_s_param Current capabilities are 0 Current capturemode is 0 change to 0 Current framerate is 30 change to 0 clock_curr=mclk=27000000 g_fmt_cap returns widthxheight of input as 1280 x 720 In MVC:mxc_v4l_ioctl In MVC: mxc_v4l_do_ioctl c0cc5605 case VIDIOC_S_FMT In MVC: mxc_v4l2_s_fmt type=V4L2_BUF_TYPE_VIDEO_CAPTURE End of mxc_v4l2_s_fmt: v2f pix widthxheight 1280 x 720 End of mxc_v4l2_s_fmt: crop_bounds widthxheight 1280 x 720 End of mxc_v4l2_s_fmt: crop_defrect widthxheight 1280 x 720 End of mxc_v4l2_s_fmt: crop_current widthxheight 1280 x 720 In MVC:mxc_v4l_ioctl In MVC: mxc_v4l_do_ioctl c0cc5604 case VIDIOC_G_FMT In MVC: mxc_v4l2_g_fmt type=1 type is V4L2_BUF_TYPE_VIDEO_CAPTURE End of mxc_v4l2_g_fmt: v2f pix widthxheight 1280 x 720 End of mxc_v4l2_g_fmt: crop_bounds widthxheight 1280 x 720 End of mxc_v4l2_g_fmt: crop_defrect widthxheight 1280 x 720 End of mxc_v4l2_g_fmt: crop_current widthxheight 1280 x 720 g_in_width = 1280, g_in_height = In MVC:mxc_v4l_ioctl 720. In MVC: mxc_v4l_do_ioctl c0145608 case VIDIOC_REQBUFS In MVC:mxc_streamoff MVC: In mxc_free_frame_buf In MVC:mxc_allocate_frame_buf - size=1843200 fb_fix.id = DISP3 BG - DI1. It is background screen, only full screen default format was supported. fb: smem_start = 0x73500000, smemIn MVC:mxc_v4l_ioctl _len = 0xbdd800. fb: frame buffIn MVC: mxc_v4l_do_ioctl c0445609 er size = 0x3f4800 bytes. fb: g case VIDIOC_QUERYBUF _screen_info.xres = 1920, g_screeIn MVC:mxc_v4l2_buffer_status n_info.yres = 1080. fb: g_displIn MVC:mxc_mmap ay_left = 0. fb: g_display_top pgoff=0x72d00, start=0x75e00000, end=0x75fc2000 = 0. fb: g_display_width = 1920In MVC:mxc_v4l_ioctl . In MVC: mxc_v4l_do_ioctl c0445609 case VIDIOC_QUERYBUF In MVC:mxc_v4l2_buffer_status In MVC:mxc_mmap pgoff=0x72f00, start=0x75c3e000, end=0x75e00000 In MVC:mxc_v4l_ioctl In MVC: mxc_v4l_do_ioctl c0445609 case VIDIOC_QUERYBUF In MVC:mxc_v4l2_buffer_status In MVC:mxc_mmap pgoff=0x73100, start=0x75a7c000, end=0x75c3e000 In MVC:mxc_v4l_ioctl In MVC: mxc_v4l_do_ioctl c0445609 case VIDIOC_QUERYBUF In MVC:mxc_v4l2_buffer_status In MVC:mxc_mmap pgoff=0x73300, start=0x758ba000, end=0x75a7c000 In MVC:mxc_v4l_ioctl In MVC: mxc_v4l_do_ioctl c044560f case VIDIOC_QBUF In MVC:mxc_v4l_ioctl In MVC: mxc_v4l_do_ioctl c044560f case VIDIOC_QBUF In MVC:mxc_v4l_ioctl In MVC: mxc_v4l_do_ioctl c044560f case VIDIOC_QBUF In MVC:mxc_v4l_ioctl In MVC: mxc_v4l_do_ioctl c044560f case VIDIOC_QBUF In MVC:mxc_v4l_ioctl In MVC: mxc_v4l_do_ioctl 40045612 case VIDIOC_STREAMON In MVC:mxc_streamon IPU:In csi_enc_enabling_tasks In csi_enc_setup start time = 1540834851 s, 23859 In MVC:mxc_v4l_ioctl us In MVC: mxc_v4l_do_ioctl c0445611 case VIDIOC_DQBUF In MVC:mxc_v4l_dqueue ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0 VIDIOC_DQBUF failed. In MVC:mxc_v4l_ioctl In MVC: mxc_v4l_do_ioctl 40045613 case VIDIOC_STREAMOFF In MVC:mxc_streamoff CSI_MEM0:fffffc0,CIS_MEM1:10ffffc1,CSI_MEM2:11ffffc2,CSI_MEM3:12ffffc3,CSI_PRP_ENC_MEM:13ffffd4,CSI_PRP_VF_MEM:14ffffd5 channel:fffffc0 In MVC:mxc_free_frames In MVC:mxc_v4l_close In MVC:mxc_streamoff mxc_v4l_close: release resource MVC: In mxc_free_frame_buf In MVC:mxc_free_frames It seems that the video data is not obtained. I measured the output of MAX9286 mipi, where the mipi clk is 72MHz, and the waveform on the data pin is as follows; I considered the problem of the data pins of AP0101 and MAX96705 being misaligned or reversed, but from other people's previous experience, if the data pins are misaligned, the video can be seen, but the video picture is abnormal, and VIDIOC_DQBUF failed will not appear; Could you please provide some debugging tips? Thanks! Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> I want to compress four cameras into one 720p video in up, down, left, and right format for storage. How can I integrate the four videos? Do you have any suggestions? Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> ferhatolgun ‌Hello, have you solved your problem? I am facing the same problem as yours. If you have solved it, could you let me know? Thank you! Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> Our image was called out in version 3.0.35. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> Hi, I reversed the polarity of VS, and then added the code you provided, and now the picture appears, thank you! Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> Thank you very much for your reply. Bit 19 is 1 and it is ok now. The CSI0_SENS_DATA_FORMAT configuration of CSI data format YUYV and UYUV did not work. Is this modification correct? What causes this problem? Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> Hi Pengtao, AP0101 needs to be set to Frame Sync mode instead of the default Free Run mode. In Free Run mode, you will see your phenomenon: a single camera is OK, but multiple cameras are not. If your camera settings are in the flash ROM, then these settings need to be modified according to the driver. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> This should be the high and low data lines from the camera to the MAX96705 are reversed. They can be reversed when setting 96705 (italic part): #ifdef MAX96705 //Invert VSYNC max9271_write_reg(0, 0x40, 0x2F); msleep(2); max9271_write_reg(0, 0x08, 0x81); msleep(2);  max9271_write_reg(0, 0x97, 0x5F);  max9271_write_reg(0, 0x20, 0x09);  max9271_write_reg(0, 0x21, 0x08);  max9271_write_reg(0, 0x22, 0x07);  max9271_write_reg(0, 0x23, 0x06);  max9271_write_reg(0, 0x24, 0x05);  max9271_write_reg(0, 0x25, 0x04);  max9271_write_reg(0, 0x26, 0x03);  max9271_write_reg(0, 0x27, 0x02);  max9271_write_reg(0, 0x28, 0x01);  max9271_write_reg(0, 0x29, 0x00);  max9271_write_reg(0, 0x30, 0x19);  max9271_write_reg(0, 0x31, 0x18);  max9271_write_reg(0, 0x32, 0x17);  max9271_write_reg(0, 0x33, 0x16);  max9271_write_reg(0, 0x34, 0x15);  max9271_write_reg(0, 0x35, 0x14);  max9271_write_reg(0, 0x36, 0x13);  max9271_write_reg(0, 0x37, 0x12);  max9271_write_reg(0, 0x38, 0x11);  max9271_write_reg(0, 0x39, 0x10); #else Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> Hello, the picture is out now, but the picture is abnormal. The whole picture is green, and the light part is pink. I guess it is because the sensor output is YUYV. In the application mxc_v4l2_tvin.c, I converted the captured data into UYVY and displayed it. The picture color is normal. It is verified that this problem is caused by the sensor output format being YUYV. Since converting data to UYVY in the application will occupy system resources, make the following changes in the driver and in max9286_mipi.c: - max9286_data[0].pix.pixelformat = V4L2_PIX_FMT_UYVY;  + max9286_data[0].pix.pixelformat = V4L2_PIX_FMT_YUYV;  - if(sensor->pix.pixelformat == V4L2_PIX_FMT_UYVY){ + if(sensor->pix.pixelformat == V4L2_PIX_FMT_YUYV){       for(i = 0; i < MAX_SENSOR_NUM;i++)             mipi_csi2_set_datatype(mipi_csi2_info,i,MIPI_DT_YUV422); } Then, execute the following command: ./mxc_v4l2_tvin.out -ol 0 -ot 0 -ow 960 -oh 540 -d 1 -x 0 -if YUYV Track and check that the CSI_SENS_CONF register value is 0x900, which means that SENS_DATA_FORMAT has been successfully configured to YUYV; However, the picture output through HDMI is still abnormal, and it is exactly the same as the picture before the modification, which makes it feel like the modification has not taken effect; Is there any problem with the above modification method? Is there any other place that needs to be modified synchronously? Thank you! Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> Hello! We are currently adjusting a camera with IMX225+FH8536+MAX96705, platform: IMX6+MAX9286, Kernel version 3.14.52. The basic outline of the video is normal, but the color is not normal, as shown in the figure In order to verify whether there is a problem with the front-end ISP output, we did an experiment. We disconnected the ISP from the MAX96705, connected the ISP output to a decoder (TW8836), and then debugged 8836. We found that the image can be output normally, that is, there is no problem with the data output by the ISP, and the output format is YVYU. So I would like to ask, can max96705 convert YVYU data into UYVY format and then pass it to MAX9286? Or how should the display part be processed on the imx6 end? Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> Hi Qiang Li: I debugged the situation on the L3.14.52_GA1.1.0 version: 1. Onsemi AR0143+AP0101+MAX9 6705+Max9286+Imx6D single channel display is normal. 2. Onsemi AR0143+AP0101+MAX9 6705+Max9286+Imx6D two-way display effect is as shown in the figure: The camera on the right shows why this is the case, and there are four identical images, all with a green tint. What is the problem? Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> Hello Qiang Li , Thanks for your help. The problem has been solved with the solution you provided! The system instability mentioned above is caused by other reasons and has nothing to do with this solution! Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> Dear Qiang, I am using the s32v-evb development board to debug MAX9286 + Onsemi AR0140 + AP0101 + MAX9271. Do you have any relevant debugging documents or reference code that you can provide me with? Thanks a lot. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> Currently, the MAX96705 is set up to sample the camera image using 10 data lines. If only 8 lines are connected, the high 2 bits of the image will be lost after inversion, which is basically unacceptable. You can ask Maxim how to handle the 8-line method. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> Let's see if your input is: Raw data input or YUV input, if it is raw CMOS sensor input, it should be 12bit. Bit loss will cause problems. If it is 8-bit YUV input (BT656), it depends on whether you have the right bits, 0~7 or 2~9... Serdis usually does a transmission, what is input is what is output~ [email protected] Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> Hello, can I ask you a question: 1. I see that FH8536 seems to have only analog output, how did you connect it to 96705; 2. If IMX225+FH8536 is used, how do you synchronize the images of the four lens modules? Looking forward to your reply, thank you! Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> You can measure the lock pin of MAX9286. It should be high all the time to ensure the stable output of MIPI data. If the camera and MAX9286 are not set up properly, the high level cannot be maintained all the time, and the data will be incomplete. From the test results of AP0101, the MAX9286 needs to be set to manual mode, and the register 0x08 needs to be adjusted according to the camera's frame rate setting: #ifdef SENSOR_AP0101  //Manual Mode  max9286_write_reg(0x01, 0x00);  max9286_write_reg(0x63, 0x00);  max9286_write_reg(0x64, 0x00);  max9286_write_reg(0x06, 0x00);  max9286_write_reg(0x07, 0x00);  max9286_write_reg(0x08, 0x26); #endif Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> hi  Qiang li: Because the products we developed with BYD include tw6865 + max9286. I have already adjusted tw6865 on 3.0.35, but it is more difficult to adjust 9286 on 3.0.35, so I hope to get your help. I think the first step should be to enable the 4 virtual channels of imx6 to collect data at the same time. The second step is to adjust the device. At present, max9286 can sometimes detect the device AP0101, but sometimes it cannot detect it. I don’t know why. I suspect that there is a problem with enabling the 4 virtual channels. I transplanted it according to the patch 3.10.53 you released. I hope to get your help. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> Hi Qiang Li ! How many 720P 60fps camera inputs can imx8 support? (All IMX8 included) Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> On the MAX9286 side, you can try to modify register 0x08 max9286_write_reg(0x08, 0x26); Change to max9286_write_reg(0x08, 0x2C); It is best to refer to the settings in the Driver for the Flash settings in your Camera module. The frame rate under FrameSync mode should be determined by the MAX9286. So in theory, it should not happen that the MAX9286 sends FrameSync to the camera at 30fps while the camera sends images at 25fps. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> Hi, our lens uses MAX96705+AP0101+AR0143AT, AP0101 is connected with a flash, ISP output is YUV422/8bit/LSB, and VIDIOC_DQBUF failed is displayed. After reading other people's questions, it seems that VIDIOC_DQBUF failed will not appear if it is a data misalignment problem. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> hello yu  :  能否将l3.0.35的补丁给我一份,[email protected]。感激不尽 Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> According to the MIPI specification, the YUV422 transmitted by MIPI CSI2 should be in UYVY format, but you are transmitting YUYV, so you cannot use a unified setting to process it. In mxc_v4l2_tvin, the settings of g_in_fmt (g_g2d_fmt) will be set in the Driver by default, and will also be used when rendering. According to your situation, the Driver should use all UYVY settings, and then when rendering, just change g_in_fmt (g_g2d_fmt) to YUYV. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> The lock pin of MAX9286 cannot maintain a high level, which means it cannot completely lock the camera signal. Then the data on MIPI CSI2 must be problematic. This has nothing to do with the iMX6. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> Qiang_FSL‌ In addition, my environment is as follows: OV10635 sensor MAX96705 Serializer MAX9286 Deserializer kernel 4.1.15 patch L3.14.52_GA1.1.0_MAX9286_Surroundview_Patch_2016-07-26.zip The image can be displayed, but the color is wrong. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> Hi, my previous statement was wrong. The real reason is that the CSI2IPU gasket output format is configured as YUYV. The problem is solved after setting the YUV422_8BIT_FM of the CSI2IPU_SW_RST register to UYVY. Thank you! Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> Hello Qiang_FSL , there is also a color problem! I saw your email and compared it with the original code. I found that the ov10635_setting in the email is exactly the same as the setting in the original code. There is also the file MAX9286_OV10635_1280x800_Quad_FSIN_MOD.C. I don’t know if it is useful to me. How can I modify the original code? Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> Hi. Qiang Li When we connect 4 720p@60pfs cameras, what is the delay from camera connection to display on the screen? Do you have this performance indicator?      When we access 8-way For a 720p@60pfs camera, what is the latency from camera access to screen display? Do you have this performance indicator? Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> Thanks for your reply. We are now running normally with 0143+0101+96705. The synchronization of 0143 is indeed controlled by the trigger in of the sensor, but IMX225 does not seem to have a trigger pin. The datasheet describes that slave mode requires VS and HS. In addition, I see that the FH8536 ISP only has analog output, and 96705 does not seem to be able to connect to analog input. I don't know how the IMX225+FH8536+MAX96705 solution solves these two problems. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> The photosensitive sensor I use here is AP0143; the sensor has been frame synced, because in the previous mode, multiple sensors cannot produce images; Now when I capture 320 lines and connect three sensors, there will be no scrolling, but there will be horizontal bars and jitter. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> HiJiajie Wu It depends on what camera sensor you use. If you buy a ready-made module, it usually comes with flash, and its working mode is set in the flash ROM. Even if the Frame Sync mode is set on the MAX9286, the camera mode cannot be changed. In addition, for some camera sensors (such as AP0101+AR0130), the time from HSYNC to VSYNC of the last line is less than 255 pixel clocks, which may also cause problems. In this case, the IPU CSI needs to capture fewer lines of data. For example, for an input of 720 lines, the IPU CSI only captures 712 lines. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> I also need the patch for version L3.0.35_4.1.0, thank you Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> Qiang li: The patches applied in bsp 3.10.53 are as follows:      static int mipi_csi2_probe(struct platform_device *pdev) { . . . . . . . . . . ret = of_property_read_u32(np, "lanes", &(gmipi_csi2->lanes)); if (ret) { dev_err(&pdev->dev, "lanes missing or invalid\n"); goto err; } if (gmipi_csi2->lanes > 4) { dev_err(&pdev->dev, "invalid lanes for mipi csi2!\n"); ret = -EINVAL; goto err; } for_each_child_of_node(np, child) { struct mipi_csi2_chan *chan; if (!of_device_is_available(child)) continue; ret = of_property_read_u32(child, "v_channel", &v_channel); if (ret) { dev_err(&pdev->dev, "v_channel missing\n"); goto err; } if (v_channel > 3) { dev_err(&pdev->dev, "v_channel invalid\n"); ret = -EINVAL; goto err; } chan = &(gmipi_csi2->mipi_chan[v_channel]); ret = of_property_read_u32(child, "ipu_id", &(gmipi_csi2->mipi_chan[v_channel].ipu_id)); if (ret) { dev_err(&pdev->dev, "ipu_id missing or invalid\n"); goto err; } ret = of_property_read_u32(child, "csi_id", &(gmipi_csi2->mipi_chan[v_channel].csi_id)); if (ret) { dev_err(&pdev->dev, "csi_id missing or invalid\n"); goto err; } if ((gmipi_csi2->mipi_chan[v_channel].ipu_id < 0) || (gmipi_csi2->mipi_chan[v_channel].ipu_id > 1) || (gmipi_csi2->mipi_chan[v_channel].csi_id > 1)) { dev_err(&pdev->dev, "invalid param for mipi csi2!\n"); ret = -EINVAL; goto err; 。。。。。。。。。。。。 This is how I handled this part in 3.0.35. Please help me check if there is any problem.    static int mipi_csi2_probe(struct platform_device *pdev) { struct mipi_csi2_platform_data *plat_data = pdev->dev.platform_data; struct resource *res; u32 mipi_csi2_dphy_ver; struct mipi_csi2_chan *chan; int ret , v_channel; printk("mipi_csi2 probe start !!!!!!!!!!!!!!!!!!!!!\n"); gmipi_csi2 = kmalloc(sizeof(struct mipi_csi2_info), GFP_KERNEL); if (!gmipi_csi2) { ret = -ENOMEM; goto alloc_failed; } printk("v_channel is %d !!!!!!!!!!!!!!!!1111\n",v_channel); /* initialize mutex */ mutex_init(&gmipi_csi2->mutex_lock); chan = &(gmipi_csi2->mipi_chan[v_channel]); /* get mipi csi2 informaiton */ gmipi_csi2->pdev = pdev; gmipi_csi2->mipi_en = false; //gmipi_csi2->ipu_id = plat_data->ipu_id; //gmipi_csi2->csi_id = plat_data->csi_id; //gmipi_csi2->v_channel = plat_data->v_channel; gmipi_csi2->lanes = plat_data->lanes; printk("plat_data lanes is %d !!!!!!!!!!!!!!!\n", plat_data->lanes); v_channel = plat_data->v_channel; gmipi_csi2->mipi_chan[v_channel].ipu_id= plat_data->ipu_id; gmipi_csi2->mipi_chan[v_channel].csi_id= plat_data->csi_id; if ((gmipi_csi2->mipi_chan[v_channel].ipu_id < 0) || (gmipi_csi2->mipi_chan[v_channel].ipu_id > 1) || (gmipi_csi2->mipi_chan[v_channel].csi_id > 1)) { dev_err(&pdev->dev, "invalid param for mipi csi2!\n"); ret = -EINVAL; } . . . . . . . The platform data is as follows:   static struct mipi_csi2_platform_data mipi_csi2_pdata = { .ipu_id = 0, //0 // modify by lee .csi_id = 0, .v_channel = 0, .lanes = 4, .dphy_clk = "mipi_pllref_clk", .pixel_clk = "emi_clk", }; Is this operation OK? Thank you. I have been dealing with max9286 on 3.0.35 for a long time. There has been no progress. I hope to get your support. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> Thanks for your reply, Our application scenario is like this: the 4-way spliced display screen is encoded and stored, so it is equivalent to only encoding one 720P. Since it is not a direct encoding of the original image, it is impossible to output the UYVY image into NV12 for encoding through the camera driver. Our splicing is achieved through the GPU, and the image sent to the encoder is RGBA32, so the color space conversion is required before encoding, and then the image is abnormal. In fact, we also tested the color conversion of a single-channel 720×480 image, that is, first reduce the 720P image to 720×480 through the GPU and then transcode and record with this resolution image, which will also cause input image abnormality. If we transcode 720×480 (RGBA32 -> NV12 or UYVY -> NV12), only one channel will be abnormal. If the transcoding is 1280×720, except for the first channel, the other three channels are all abnormal. I checked the underlying driver and found that the data flow is CSI--> SMFC--> IDMAC--> MEM. I tracked the IDMAC channel usage and the default is CSI_MEM0 = _MAKE_CHAN(15, NO_DMA, NO_DMA, NO_DMA, 0). CSI_MEM1 = _MAKE_CHAN(16, NO_DMA, NO_DMA, NO_DMA, 1), CSI_MEM2 = _MAKE_CHAN(17, NO_DMA, NO_DMA, NO_DMA, 2), CSI_MEM3 = _MAKE_CHAN(18, NO_DMA, NO_DMA, NO_DMA, 3), The problem at 720×480 is CSI_MEM1 = _MAKE_CHAN(16, NO_DMA, NO_DMA, NO_DMA, 1). If the above channel control is modified as follows CSI_MEM0 = _MAKE_CHAN(15, NO_DMA, NO_DMA, NO_DMA, 1), CSI_MEM1 = _MAKE_CHAN(16, NO_DMA, NO_DMA, NO_DMA, 0), CSI_MEM2 = _MAKE_CHAN(17, NO_DMA, NO_DMA, NO_DMA, 2), CSI_MEM3 = _MAKE_CHAN(18, NO_DMA, NO_DMA, NO_DMA, 3), Then the problematic channel becomes CSI_MEM0 = _MAKE_CHAN(15, NO_DMA, NO_DMA, NO_DMA, 1). From this perspective, it seems that the driver has a conflict in managing the underlying resources. Or the hardware itself does not support this usage. Can you help confirm the root cause of the problem and do you have any suggestions? Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> zhang hongliang : Hello. My sensor is the same as yours, ov10640+ ov490 ISP + max96705. Could you please send me a copy of your debugged code? Or what parameters or registers should I change in the official code? Thanks Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> The standard 720P60 pixel clock is 74.25MHz. If it is UYVY For a 16bpp camera, the bandwidth of a single camera is 74.25M*16. = 1.188Gbps The maximum bandwidth of MIPI CSI2 of iMX8 and iMX8X is 6Gbps, and each can support 4 virtual channels, so each MIPI CSI2 port can support 4 720P60 cameras. iMX8 has 2 MIPI CSI2 ports, so it can support 8. iMX8X has only one MIPI CSI2, so it can support 4 channels, but it has an 8-bit parallel CSI, which can also support one 720P camera, which adds up to 5 channels. Although iMX8M has 2 MIPI CSI2, it does not support multi virtual channel, so it can only support 2 cameras. Re: iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> HI Liqiang: Hello! I use imx6d + max9286 + max96705 to preview three cameras at the same time. When two or three cameras are connected, the preview screen will shake and roll; It's normal for me to only connect one camera. Confirmed with Maxim FAE that all cameras are in frame sync mode. I have been looking for this question for a long time. Please help me
View full article
HOWTO: offline install S32K1 RTD 2.0.0 in S32DS v3.5 The release notes of S32K RTD usually mention which dependent software packages need to be installed. Taking SW32K1_S32M24x_RTD_R21-11_2.0.0_P04_D2404_ReleaseNotes.pdf as an example, we can see that the following software packages need to be installed: You must be logged into your account on NXP.com to gain access to the download link. 1. Download and install S32Design Studio 3.5: Click S32 Design Studio 3.5 – Windows/Linux -> 3.5 S32 Design Studio for S32 Platform v.3.5 -> S32DS.3.5_b220726_win32.x86_64.exe Note: For Windows OS, the user account designated for installing S32 Design Studio for the S32 Platform must be a member of the local Administrators security group. 2. Download and Install S32 Design Studio 3.5 Update 4 D2307: SW32_S32DS_3.5.4_D2307.zip (com.nxp.s32ds.update_3.5.4.20230707034206.zip) Since the SW32K1_S32DS_3.5.4_D2307.zip downloaded in step3 already contains the files of the SW32_S32DS_3.5.4_D2307.zip in the step2, we will skip this step here. 3. Download and Install S32 Design Studio 3.5 development packages for offline use, support for S32K1 (3.5.4_D2307): SW32K1_S32DS_3.5.4_D2307.zip  (com.nxp.s32ds.s32k1.dev.repository_1.0.0.202307062245.zip) Unchecking Contact all update sites during install to find required software can complete offline installation faster. 4. Click Real-Time Drivers for S32K1 -> Automotive SW - EB tresos Studio / AUTOSAR Configuration Tool Select and install one of the following updatesite.zip for S32K1 RTD 2.0.0: The latest S32K1 RTD version is usually recommended. However, if you need to use Reference Software or Premium Software (such as FreeRTOS, LIN Stack, TCP/IP Stack Structural , Core Self-Test (SCST), Automotive Math and Motor Control Library (AMMCLib), S32K ISELED), it is recommended to install the specific version of S32K1 RTD according to their release notes. 4.a) Download and install S32K1_S32M24X Real Time Drivers AUTOSAR 4.4 & R21-11 Version 2.0.0: SW32K1_S32M24x_RTD_4.4_R21-11_2.0.0_D2308_DS_Updatesite.zip 4.b) Download and install S32K1_S32M24X Real Time Drivers AUTOSAR 4.4 Version 2.0.0 P01: SW32K1_S32M24x_RTD_4.4_R21-11_2.0.0_P01_D2308_DS_Updatesite.zip 4.c) Download and install S32K1_S32M24X Real Time Drivers AUTOSAR R21-11 Version 2.0.0 P04: SW32K1_S32M24x_RTD_R21-11_2.0.0_P04_D2404_DS_updatesite.zip Activation | Installation | Licensing | Installer Download SDKs
View full article
S32K312MINI-EVB 你好, 我使用的是NXP S32K312MINI-EVB开发板。 最初,电路板已通电,LED 指示灯也亮着,但 Windows 设备管理器未检测到 USB 连接。 我已确认 PEmicro 驱动程序已安装。设备管理器显示: Jungo 连接 → pemicrovincdrv 我还用另一台电脑和另一个 USB 连接测试了该电路板,但该电路板未被识别。 在故障排除过程中,当电路板通过 USB 连接时,我移除了J19 和 J20 跳线。电路板上的LED灯熄灭了。 然后我把跳线接回去了,但是现在当我尝试通过 USB 供电时,板无法开机。当我通过 J1 提供 12V 电压时,只有 RGB LED 灯亮起。 根据 S32K312MINI-EVB 硬件用户手册: USB-C J9 → J19 = 1–2,J20 = 1–2 12V J1 → J19 = 2–3,J20 = 2–3 我已经按要求设置了 J19/J20,但是电源指示灯仍然熄灭。 请问有人可以帮我判断一下电路板的电源电路是否可能受到影响,以及我应该测量哪些测试点吗? 我可以提供电路板的照片以及 J23 (VBAT)、J24 (VBST)、J16 (P5V0)、J17 (P3V3) 和 J27 (GND) 处的电压测量结果。 谢谢! Re: S32K312MINI-EVB HI 请勿使用USB集线器;请将USB线缆直接连接到电脑。我建议使用 USB 3.0 或 Type-C 接口连接。 S32K312MINI on board debugger.pngS32K312MINI 板载调试器.png 红色 OSDA_LED D9 指示灯是否亮起? 否则,OpenSDA 可能无法正常工作,这将阻止板载调试器的使用。 请根据电路图逐一检查电压。 此致敬礼, Robin Re: S32K312MINI-EVB HI 当使用 USB 供电(J19 1-2,J20 1-2)时,J19 的引脚 2 测量值为 12V,J20 的引脚 2 测量值为 5V。D9 上的红色 OSDA_LED 亮起。 UM12505 表 3. 供电板方法(低电流).png 当通过 J1(J19 2-3,J20 2-3)外部供电时,J19 和 J20 的引脚 2 均测量为 12V。所有LED灯均未亮起。在这种情况下,需要将外部调试器连接到 J7,以便将程序下载到 S32K312。 UM12505 表 4. 供电板方法(高电流).png 另外,请参阅 UM12505、FRDM-A-S32K312 开发板 MCU 硬件用户手册 中的 图 3. 主 THP 用于功率测量, 以检查其是否符合 表 5. 用于测量电压的通孔焊盘 。 UM12505 表 5. 用于测量电压的通孔焊盘 图 3. 用于功率测量的主 THP.png
View full article
MC33774 is unresponsive MC33774无响应 The current DEMO routine for MC33665+MC33774 implements 665 initialization, 774 initialization, and voltage and temperature acquisition functions. The bench setup is shown in the figure. 1. When the S32K314 main control unit uses JLINK to connect to the SWD debug port for debugging and simulation, both 33774 and 33665 can respond normally, returning reply frames and acquiring the correct unit voltage and GPIO port data. The bench power-on sequence is "sampling slave board power-on -> MC33665A power-on -> MCU main board power-on". The communication initialization to request read register message is shown as MC33774_FIRST (where the CAN type message is the MC33665 reply frame). 2. When the emulator is disconnected and the entire bench is powered down, wait for a period of time, and then power on again in the sequence of "sampling slave board power-on -> MC33665A power-on -> MCU main board power-on", the MC33774 does not respond, and only the MC33665A can return a response frame. Re-initializing the MCU motherboard by powering it on and off didn't work; it only communicates normally with the MC33774 when debugging with J-Link. The message is as shown in MC33774_SECOND. I'd like to know what directions I can take for troubleshooting. 当前MC33665+MC33774的DEMO例程实现665初始化、774初始化以及电压温度采集功能,台架构成如图: 1.当S32K314主控部分使用JLINK链接SWD调试口进行调试仿真时,33774和33665均能正常响应返回回复帧并且采集正确的单体电压和GPIO端口数据。台架上电顺序为“采样从板上电->MC33665A上电->MCU主板上电”。通讯初始化至请求读取寄存器报文如MC33774_FIRST所示(其中CAN 类型的报文为MC33665回复帧) 2.当断开仿真器并且将台架全部下电后等待一段时间,重新按照“采样从板上电->MC33665A上电->MCU主板上电”顺序上电后,MC33774无响应,仅有MC33665A能返回响应帧。重新将MCU主板上下电进行初始化也无效,只有用JLINK调试时又能正常与MC33774通讯。报文如MC33774_SECOND所示。 我想知道有什么排查的方向吗? Re: MC33774 is unresponsive MC33774无响应 Dear Embedded Novice, The MC33665 includes internal communication management and does not behave as a transparent bridge. When the MC33665 is reset while the MC33774 remains powered, the TPL link becomes unsynchronized, leaving the device in a state where SPI communication works but TPL forwarding is not enabled. Executing initialization twice effectively clears the internal state and re-establishes link synchronization, which is why it resolves the issue. The recommended solution is to ensure proper TPL re-initialization or synchronized reset of both devices. With Best Regards, Jozef Re: MC33774 is unresponsive MC33774无响应 Through experimentation, I discovered that the issue is caused by the MC33665 being powered off. When my MC33774 remains powered on, and the MC33665 powers off and restarts, and the MCU also powers off and restarts, although the software logic reinitializes the MC33665, it seems to be in a state where it cannot forward TPL data. This is because my messages show that the MC33665 can send reply frames. Therefore, the MC33665 must be in some state that prevents it from converting the TPL signal and sending it to the 33774. Currently, I can avoid this phenomenon by performing the same MC33665 initialization twice in the software logic. However, I am unclear why the MC33665 behaves this way. Do you have any ideas? 我通过实验发现是由于MC33665下电导致的,当我的MC33774保持上电,MC33665下电重启,MCU也下电重启后,虽然软件逻辑上会对MC33665重新初始化,但是此时MC33665似乎处于无法转发TPL数据的状态,因为我的报文中可以看出MC33665能够发出回复帧,所以MC33665应该处于某种状态导致无法转换TPL信号并发送给33774。我当前是在软件逻辑中进行两次相同的MC33665初始化就能够避免这种现象。但是我并不清楚MC33665为什么会这样。请问您有什么思路吗? Re: MC33774 is unresponsive MC33774无响应 Dear Embedded Novice, The issue is most likely caused by a startup timing dependency. When the system is debugged with J‑Link, the MCU execution is delayed, giving sufficient time for the MC33774 to complete its internal initialization. In a normal power-up scenario, the MCU starts immediately and sends communication requests before the MC33774 is ready, resulting in no response. It is recommended to introduce a delay (e.g., 50–200 ms) before the first communication, implement a retry mechanism, and ensure that the MC33665 correctly initializes and wakes up the TPL communication chain before addressing the MC33774. Additionally, the reset and power ramp conditions of the MC33774 should be verified. With Best Regards, Jozef
View full article
在 FRDM-IMX95 上调试 Ara240 模块 入门视频 (function() { var wrapper = document.getElementById('lia-vid-6393577020112w960h540r856'); var videoEl = wrapper ? wrapper.querySelector('video-js') : null; if (videoEl) { if (window.videojs) { window.videojs(videoEl).ready(function() { this.on('loadedmetadata', function() { this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) { bar.setAttribute('role', 'presentation'); bar.setAttribute('aria-hidden', 'true'); }); }); }); } }})(); (在我的视频中查看) 本指南提供分步说明,说明如何验证与 Ara240 模块的成功通信以及与 FRDM i.MX 95 开发板接口的运行时软件环境。 打破常规 熟悉 Ara240 模块 Ara240 Module [Top view]Ara240 模块 [俯视图] Ara240 Module [Back view]Ara240 模块 [后视图]      连接 M.2 模块 本节介绍如何将分立模块 Ara240 连接到 FRDM i.MX 95 开发板。FRDM i.MX 95 快速入门指南中的说明将引导您完成主板上预加载的嵌入式 Linux 映像的启动过程以及如何连接 USB 调试电缆。有关其他详细信息,请参阅 FRDM i.MX 95 开发板官方文档。 参考,引用: FRDM i.MX 95 快速入门指南 FRDM i.MX 95 开发板产品页面 FRDM i.MX 95 入门页面 ARA2-M2-16G-GT 入门 按照以下步骤将 Ara240 模块连接到 FRDM i.MX 95 开发板: 剧透 (加亮显示以阅读) 重要:在进行任何连接之前,请确保主板已关闭电源。 重要:在进行任何连接之前,请确保主板已关闭电源。 将 Ara240 模块插入 FRDM i.MX 95 开发板上的 M.2 Key-M 插槽。 使用提供的螺钉固定模块。 将风扇电缆连接到主板的风扇接头(有关接头的确切位置,请参阅 FRDM i.MX 95 主板文档)。 Connect the Ara240 to the FRDM i.MX 95 development board.将 Ara240 连接到 FRDM i.MX 95 开发板。 开启板电源 按照《FRDM-IMX95 入门》中的说明开启(启动)板。 开机后,检查风扇和 Ara240 模块的绿色 LED 指示灯是否亮起。   获取软件 本节将向您介绍 Ara240 Runtime 软件开发工具包 (SDK),这是 Ara240 SDK 的精简子集,旨在恩智浦平台上快速启用和执行。Runtime SDK 简化了安装和配置,使开发人员能够以最小的工作量在 Ara240 模块上快速部署和运行 AI/ML 工作负载。 概述 有关 Ara240 软件开发套件 (SDK) 的详细信息,请参阅 Ara240 软件发行说明 Ara240 入门页面仅概述了在特定 i.MX 开发平台上的使用情况 对于任何其他平台,请联系您的恩智浦代表寻求指导。 模块枚举和软件配置 本节提供有关在 FRDM i.MX 95 开发板上验证是否正确安装了 Ara240 模块和 Ara240 Runtime SDK 配置的说明。 验证设备检测 主板成功启动后,连接到串行调试端口以监测系统日志。要确认主板是否检测到 Ara240 模块,请运行以下命令: $ lspci | grep 1e58 预期输出: 0000:01:00.0 Processing accelerators: Device 1e58:0002 (rev 02) 启用 Ara240 设备 为了快速启用,Ara240 运行时 SDK 会在启动时启动。有关详细说明和环境设置步骤,请参阅Ara240 Runtime SDK 文档。 开发人员体验 本节概述了使用 FRDM i.MX 95 开发板支持 Ara240 运行时软件。 验证设置环境 使用以下指南来了解如何连接所需设备。对于大多数演示,你需要摄像头、键盘、鼠标、互联网连接和一个 HDMI 显示器。 Setup preparation for FRDM i.MX 95 board [Top view]FRDM i.MX 95 主板的设置准备 [顶部视图] Setup preparation for FRDM i.MX 95 board [Back view]FRDM i.MX 95 主板的设置准备 [返回视图] 剧透 (加亮显示以阅读) 注意:您可能需要使用 USB 集线器来同时连接键盘、鼠标和摄像头。 注意:您可能需要使用 USB 集线器来同时连接键盘、鼠标和摄像头。   运行时设置 说明 Runtime SDK 提供了一个完整的运行环境,可在 Ara240 模块上实现 AI/ML 加速。要运行演示应用程序,请确保 Ara240 启动过程已成功完成,系统已为演示评估做好准备。 请参阅 Runtime SDK 文档,了解有关以下方面的详细指导: 验证 Runtime SDK 的正确安装。 检查并更新 Ara240 固件版本。 验证代理服务启动状态。 在 Ara240 上执行基准测试。 按照这些步骤操作可确保模块正确初始化并可随时使用。Ara240 支持执行 CNN、LLM、VLM 和代理框架,使高级人工智能工作负载能够直接在 Ara 上运行。有关全面的示例和端到端工作流程指导,请参阅Ara SDK文档页面。 FRDM-IMX9
View full article