Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
I.MX95 LVDS clock output can not be changed Hello everyone, Q1: I am working on single port LVDS display in the kernel lf-6.12y. I added my own panel config in driver/gpu/drm/panel/panel-simple.c, but the clock always be around 150Mhz when I was measuring the clock pins. But the other signals were working. But, In the lf-6.18y, the clock can output correctly, and in dual-port mode clock changing is also ok in the both versions. Is it a known problem or my mistake. Because some reasons I hope I can solve this problem in lf-6.12y.  The following are my settings panel-simple.c: static const struct display_timing lt9211_test_timing = { .pixelclock = { 35916000, 35916000, 35916000 }, .hactive = { 280, 280, 280 }, .hfront_porch = { 40, 40, 40, }, .hback_porch = { 60, 60, 60 }, .hsync_len = { 30, 30, 30 }, .vactive = { 1424, 1424, 1424 }, .vfront_porch = { 15, 15, 15 }, .vback_porch = { 17, 17, 17}, .vsync_len = { 4, 4, 4 }, .flags = DISPLAY_FLAGS_DE_HIGH, }; static const struct panel_desc lt9211_test = { .timings = &lt9211_test_timing, .bpc = 8, .num_timings = 1, .size = { .width = 292, .height = 111, }, .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA, .bus_flags = DRM_BUS_FLAG_DE_HIGH, .connector_type = DRM_MODE_CONNECTOR_LVDS, }; my lvds config in the device-tree &{/}{     lvds1_panel {         //compatible = "3ascreen,sa123hwv-l51";        compatible = "lt9211_test";        backlight = <&lvds_backlight>;        status = "okay";        port {            panel_in: endpoint {                remote-endpoint = <&lvds1_out>;            };        };     }; Q2: Under some conditions, the LVDS common voltage will not be aligned between the data lanes and clock in the same hardware. Or some signal missing like LVDS1 D3P has signal but D3N doesn't. Do you have ideas why this happened? Could some programs cause this? Q3: Is any config can shift the LVDS clock phase. Thanks Re: I.MX95 LVDS clock output can not be changed Q1: It is likely a known lf-6.12y LVDS clock driver limitation/bug , not your panel-simple.c timing mistake. In single-port LVDS the driver/clock path is likely forcing or rounding to about 148.5/150 MHz . Since lf-6.18y works, the practical fix is to backport the LVDS/LDB clock changes from lf-6.18y to lf-6.12y , or patch the 6.12y LVDS driver/PLL clock table to allow your 35.916 MHz pixel clock. git diff lf-6.12.y..lf-6.18.y -- \ drivers/gpu/drm/bridge/imx/imx95-ldb.c drivers/phy/freescale/phy-fsl-imx8mp-lvds.c drivers/clk/imx/clk-imx95-blk-ctl.c \ arch/arm64/boot/dts/freescale/imx95.dtsi \ arch/arm64/boot/dts/freescale/imx95-*-lvds* Q2: If one LVDS pair side is missing, like D3P has signal but D3N has no signal , that is usually not caused by panel timing . Check: LVDS channel enablement: LVDS0/LVDS1 mismatch fsl,data-width / fsl,data-mapping PHY enablement connector or PCB open/short soldering issue termination/probing method possible damaged LVDS output pin Software can cause wrong channel/lane/data-width setup, but one side of a differential pair missing strongly suggests hardware, pad, routing, termination, or measurement issue . Q3: For i.MX8MP LVDS, there is no normal device-tree config to shift LVDS clock phase . Fix clock frequency/timing/PHY setup instead. Re: I.MX95 LVDS clock output can not be changed Thank you so much. The lvds patch is so helpful.
View full article
问题:修复 IMX_SEC_ENCLAVE 和释放后使用依赖项。 Hello 这是对 GitHub 上这个 PR的后续跟进。 提供的补丁似乎最终没有应用,因为 lf-6.18.y 中没有这些补丁。 需要 Kconfig 提交来确保当 NVMEM_IMX_OCOTP_SCU 为 m 时 Enclave 驱动程序不能为 y,从而避免探测延迟。 否则你会看到这样的结果: root@colibri-imx8x-14985125:~# dmesg -l err [ 1.708145] rtc-ds1307 1-0068: hctosys: unable to read the hardware clock [ 2.072996] fsl-se secure-envlave-1: Fail to read FIPS fuse [ 2.078636] fsl-se secure-envlave-1: Failed to fetch SoC Info. [ 2.084513] fsl-se secure-envlave-1: failed[-EPROBE_DEFER] to fetch SoC Info [ 2.111555] fsl-se secure-envlave-1: Fail to read FIPS fuse [ 2.117209] fsl-se secure-envlave-1: Failed to fetch SoC Info. [ 2.123110] fsl-se secure-envlave-1: failed[-EPROBE_DEFER] to fetch SoC Info [ 2.141671] fsl-se secure-envlave-1: Fail to read FIPS fuse [ 2.147303] fsl-se secure-envlave-1: Failed to fetch SoC Info. [ 2.153200] fsl-se secure-envlave-1: failed[-EPROBE_DEFER] to fetch SoC Info [ 2.171418] fsl-se secure-envlave-1: Fail to read FIPS fuse [ 2.177065] fsl-se secure-envlave-1: Failed to fetch SoC Info. [ 2.182929] fsl-se secure-envlave-1: failed[-EPROBE_DEFER] to fetch SoC Info [ 5.744448] fsl-se secure-envlave-1: Fail to read FIPS fuse [ 5.750217] fsl-se secure-envlave-1: Failed to fetch SoC Info. [ 5.756186] fsl-se secure-envlave-1: failed[-EPROBE_DEFER] to fetch SoC Info [ 5.877660] fsl-se secure-envlave-1: Fail to read FIPS fuse [ 5.888247] fsl-se secure-envlave-1: Failed to fetch SoC Info. [ 5.894232] fsl-se secure-envlave-1: failed[-EPROBE_DEFER] to fetch SoC Info [ 10.324138] fsl-se secure-envlave-1: Fail to read FIPS fuse [ 10.349783] fsl-se secure-envlave-1: Failed to fetch SoC Info. [ 10.374692] fsl-se secure-envlave-1: failed[-EPROBE_DEFER] to fetch SoC Info [ 11.731697] fsl-se secure-envlave-1: Fail to read FIPS fuse [ 11.738134] fsl-se secure-envlave-1: Failed to fetch SoC Info. [ 11.747692] fsl-se secure-envlave-1: failed[-EPROBE_DEFER] to fetch SoC Info [ 12.284910] fsl-se secure-envlave-1: Fail to read FIPS fuse [ 12.295720] fsl-se secure-envlave-1: Failed to fetch SoC Info. [ 12.307723] fsl-se secure-envlave-1: failed[-EPROBE_DEFER] to fetch SoC Info [ 12.410541] fsl-se secure-envlave-1: Fail to read FIPS fuse [ 12.426771] fsl-se secure-envlave-1: Failed to fetch SoC Info. [ 12.443446] fsl-se secure-envlave-1: failed[-EPROBE_DEFER] to fetch SoC Info [ 12.644550] debugfs: '5f1a0000.phy' already exists in 'regmap' [ 12.655906] debugfs: '5f1a0000.phy' already exists in 'regmap' [ 12.670039] fsl-se secure-envlave-1: Fail to read FIPS fuse [ 12.688813] fsl-se secure-envlave-1: Failed to fetch SoC Info. [ 12.696063] fsl-se secure-envlave-1: failed[-EPROBE_DEFER] to fetch SoC Info [ 12.765923] fsl-se secure-envlave-1: Fail to read FIPS fuse [ 12.775810] fsl-se secure-envlave-1: Failed to fetch SoC Info. [ 12.786887] fsl-se secure-envlave-1: failed[-EPROBE_DEFER] to fetch SoC Info [ 12.839515] fsl-se secure-envlave-1: Fail to read FIPS fuse [ 12.847285] fsl-se secure-envlave-1: Failed to fetch SoC Info. [ 12.853801] fsl-se secure-envlave-1: failed[-EPROBE_DEFER] to fetch SoC Info [ 12.936721] nvmem imx-scu-ocotp0: cell mac raw len 6 unaligned to nvmem word size 4 [ 12.951328] nvmem imx-scu-ocotp0: cell mac raw len 6 unaligned to nvmem word size 4 [ 13.708903] genpd_provider mu_a1: failed to power off resource 214 ret -22 [ 16.701904] Bluetooth: hci0: unexpected event for opcode 0x0000 root@colibri-imx8x-14985125:~# 在提交的第二个版本中,驱动程序进行了一些重构,我不确定NXP是否已经解决了这个问题。 提交 9703dfecc735(“LF-15802:驱动程序:固件:imx:修复 SE 驱动程序移除”) SE团队能否确认一下? 此致敬礼 弗朗茨 Re: ISSUE: fix dependency for IMX_SEC_ENCLAVE and use-after-free 你好, 我看到这个问题还没有解决,我会和内部软件团队确认一下。 此致敬礼/Saludos, 阿尔多。
View full article
I.MX95 LVDS 时钟输出无法更改 大家好, 问题1: 我正在内核 lf-6.12y 中开发单端口 LVDS 显示功能。我在 driver/gpu/drm/panel/panel-simple.c 中添加了自己的面板配置,但是当我测量时钟引脚时,时钟频率始终在 150Mhz 左右。但其他信号都正常。 但是,在 lf-6.18y 中,时钟可以正确输出,并且在双端口模式下,两个版本的时钟切换也都可以。这是已知问题还是我的操作失误?由于某些原因,我希望能在lf-6.12y版本中解决这个问题。 以下是我的设置 panel-simple.c: static const struct display_timing lt9211_test_timing = { 像素时钟= { 35916000, 35916000, 35916000 }, .hactive= { 280, 280, 280 }, .hfront_porch= { 40, 40, 40, }, .hback_porch= { 60, 60, 60 }, .hsync_len= { 30, 30, 30 }, .vactive= { 1424, 1424, 1424 }, .vfront_porch= { 15, 15, 15 }, .vback_porch= { 17, 17, 17}, .vsync_len= { 4, 4, 4 }, .flags= DISPLAY_FLAGS_DE_HIGH, }; static const struct panel_desc lt9211_test = { 时间= &lt9211_test_timing, .bpc= 8, .num_timings= 1, 。尺寸= { 。宽度= 292, 。高度= 111, }, .bus_format= MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA, .bus_flags= DRM_BUS_FLAG_DE_HIGH, .连接器类型= DRM_MODE_CONNECTOR_LVDS, }; 设备树中的 lvds 配置 &{/}{ lvds1_panel { //兼容 = "3ascreen,sa123hwv-l51"; 兼容 = "lt9211_test"; 背光 = <&lvds_backlight>; 状态 = "正常"; 港口 { panel_in: 端点 { 远程端点 = <&lvds1_out>; }; }; }; Q2: 在某些情况下,同一硬件中的数据通道和时钟之间的 LVDS 公共电压将无法对齐。或者某些信号缺失,例如 LVDS1 D3P 有信号但 D3N 没有信号。你知道这是为什么吗?某些程序会导致这种情况吗? Q3: 是否有任何配置可以改变LVDS时钟相位? 谢谢! Re: I.MX95 LVDS clock output can not be changed 问题1:这很可能是LF-6.12Y LVDS时钟驱动程序的一个已知限制/错误,而不是你的panel-simple.c文件的问题。时机把握失误。在单端口LVDS中,驱动/时钟路径很可能强制或四舍五入到大约148.5/150。MHz。由于 lf-6.18y 可以正常工作,实际的解决方法是将 lf-6.18y 的 LVDS/LDB 时钟更改向后移植到 lf-6.12y,或者修补 6.12y LVDS 驱动程序/PLL 时钟表,以允许使用您的 35.916 MHz 像素时钟。 git diff lf-6.12.y..lf-6.18.y -- \ drivers/gpu/drm/bridge/imx/imx95-ldb.c drivers/phy/freescale/phy-fsl-imx8mp-lvds.c drivers/clk/imx/clk-imx95-blk-ctl.c \ arch/arm64/boot/dts/freescale/imx95.dtsi \ arch/arm64/boot/dts/freescale/imx95-*-lvds* Q2:如果 LVDS 对中的一侧缺失,例如 D3P 有信号但 D3N 没有信号,这通常不是面板时序造成的。查看: LVDS通道启用:LVDS0/LVDS1不匹配 fsl,数据宽度 / fsl,数据映射 PHY 使能 连接器或PCB开路/短路 焊接问题 终止/探测方法 LVDS 输出引脚可能损坏 软件可能会导致错误的通道/线路/数据宽度设置,但差分对的一侧缺失强烈表明存在硬件、焊盘、布线、端接或测量问题。 Q3:对于 i.MX8MP LVDS,没有常规的设备树配置来改变 LVDS 时钟相位。改为修复时钟频率/时序/PHY设置。 Re: I.MX95 LVDS clock output can not be changed 太感谢了。 lvds补丁太有用了。
View full article
FRDM-IMX93:LinuxからLPSPI3レジスタにアクセスできない(devmem読み取り時のバスエラー) — 外部SPIデビック 概要 FRDM-IMX93ボードの P11 EXPIヘッダーに LPSPI3 を使って、2つの外部MCP2515 CANコントローラー(Waveshare 2-CHAN HAT、本物のRaspberry Piで動作確認)を起動しようとしています(GPIO_IO08 UM12181表21参照、Raspberry-Pi互換ヘッダー位置に一致するピンです)。 見つけたデバイスツリーレベルの問題(電源、ピンマックス、チップセレクト、pinctrl-assert-gpio)をすべて修正した後、SPIクロック(SCK)は物理ヘッダーピンを切り替え ず 、LPSPI3ブロックの直接レジスタ読み込みは バスエラーを引き起こします。別の既知の動作ペリフェラル(LPUART1)は同じアドレス空間から問題なく読み返します。これはLinuxデバイスツリーから修正できるものではなく、リソース/バスアクセス制限(RDCなど)を示しています。 ボード/ソフトウェア ボード:FRDM-IMX93(NXP)、SoC:MIMX9352CVVXMAB BSP: NXP i.MX リリース ディストリビューション、カーネル 6.18.2-1.0.0-gf49f45233f7b ターゲット周辺機器:lpspi3(spi@42550000、/aliasesでエイリアスされたspi2、/proc/device-tree/で確認された本物のdtsラベル__symbols__ lpspi3) テスト中の外部デバイス:CS0/CS1上の2× MCP2515(Waveshare 2-CH CAN HAT) 既に動作が確認されているもの(除外されたもの) ヘッダーに電力を供給します。reg_vexp_3v3 / reg_vexp_5v は、デフォルトで無効になっているレギュレータ固定ノードです (regulator_summary では use=0 と表示されています)。レギュレーター常時オン+レギュレーターブートオンを追加し、オーバーレイフラグメントのターゲティング&reg_vexp_3v3/&reg_vexp_5vを追加しました( __symbols__で実際のラベルが確認されました)。その後、P11に3.3V/5Vの電圧が物理的に存在していることを確認しました。 Pinmux。GPIO_IO08-11 は、imx93-pinfunc.h の公式マクロを使用して、LPSPI3_PCS0/SIN/SOUT/SCK に正しく多重化されています。input_reg/input_valはこれら3つの機能に対して0x0000/0x0であるため、DAISYチェーンセレクトは不要です(マクロ検査で除外され、個別レジスタは不要)。 チップセレクト。cs-gpios = 、(ビットバンギングされたGPIO CS。このノードに対するNXP独自のアップストリームボードサポートパターンに一致)。cat /sys/kernel/debug/gpio とマルチメーター/ロジックアナライザーで確認したところ、 CS0 は正しくトグルし、物理的にヘッダーピンに到達していることがわかりました。 pinctrl-assert-gpios。NXP独自のこのボード用アップストリーム&lpspi3リファレンスには、pinctrl-assert-gpios = <&pcal6408 0 GPIO_ACTIVE_HIGH>; が含まれています(この行はほとんどの公開ガイドには記載されておらず、ボード独自のdtsパッチにのみ記載されています)。追加しました。/proc/device-tree/__symbols__ で pcal6408 が解決されること、および cat /sys/kernel/debug/gpio で lpspi3 のデフォルトの pinctrl 状態が要求されると GPIO がアサートされる (出力 hi) ことを確認しました。 オーバーレイはきれいに適用されます。U-Bootのfdt applyからFDT_ERR_NOTFOUNDは発生せず、/sys/bus/spi/devices/にはSPIコアによってspi2.0とspi2.1が登録されていることが示されています。 ERR051608 (LPSPI TCR[PRESCALE] のエラータ)。spi-fsl-lpspi.c を確認しました履歴 — 修正(fsl、imx93-spi の prescale_max = 1)は、2024年8月 / 安定版 6.6.51 でメインラインに取り込まれました。2024年9月6.10日は、このカーネルバージョン(6.18.2)よりずっと前のもので、互換文字列(fsl、imx93-spi)はすでにベースボードのdtsに存在しているため、ドライバはこの制限を自動的に適用すべきです。完全に否定できるわけではないが(実際にPRESCALEフィールドが書き込まれたという直接的なレジスタ確認はない)、タイムラインから判断すると既に処理済みである可能性が高い。 実際の症状 CS0/CS1、MISO、MOSI、SCKが物理的なP11ピン(マルチメーター、CS0落ち込みエッジで10〜20 MSa/sのロジックアナライザーをトリガー)でプローブしつつ、転送を繰り返し再試行(ループ内でspidev_testし、Echo spi2.0 > /sys/bus/spi/drivers/mcp251x/bindを経て繰り返しMCP251xの再プローブを強制することで別々に実行しました): CS0の切り替え。マルチメーターとロジックアナライザーの両方で確認済み。 SCKは切り替えません。継続的に転送を試みても、変化はなく、活動は見られない。 MOSIは切り替えません。 両方のMCP2515が同じように失敗します:mcp251x spi2.0/spi2.1:リセット/プローブ失敗後、MCP251xはコンフモードに入らなかった。err=110(ETIMEDOUT)。つまり、ドライバ自身のSPIレベルのリセット+read-CANSTATシーケンスは応答せず、SCKがSoCを出ないのと一致している。 根本原因はデバイスツリーではなくクロック/バスアクセスに絞られます   # clk_enable_count is 0 despite the controller actively being used $ cat /sys/kernel/debug/clk/clk_summary | grep -i lpspi3 lpspi3_root 0 0 0 50000000 0 0 50000 N deviceless no_connection_id lpspi3 0 0 0 50000000 0 0 50000 N 42550000.spi per LPSpi3の機能クロック(per)クロックはenable_count=0と表示されますが、42550000.SPI(実際のバインドされた消費者)がループ内で転送を試みている間も、単に「未使用」ではありません(lpspi1/2/4はデバイス レスで0 と表示されるため、それだけでは決定的ではありません)。 決定的なテスト ― devmem を介したレジスタの直接読み取り:   $ devmem 0x44380000 32 # LPUART1 base — known-good peripheral 0x04040007 $ devmem 0x42550000 32 # LPSPI3 base (VERID register) Bus error (core dumped) 全く関係のない動作するペリフェラル(LPUART1、デバッグコンソール用)は同じCPU/バスのコンテキストから問題なく読み戻せます。LPSPI3のベースアドレスフォルトは、クロックゲーティングやピンマックスの考慮が問題になる前に、単純な32ビット読み取りで発生します。これはリソースドメインコントローラー(RDC)やそれに類するアクセス制御機構が、ハードウェアレベルでCortex-A55(Linux)ドメインをこのペリフェラルのアドレス範囲からブロックしているように見えます。Linuxデバイスツリーから設定可能なものとは無関係です。 NXPへの質問 FRDM-IMX93 の LPSPI3 は、別のドメイン (例:Cortex-M33 / Secure World)をボードのデフォルトのRDC構成に含めて、追加のSPL/ATF/TF-Aレベルの再構成なしでLinuxからは使えなくなるのでしょうか? もしそうなら、LPSPI3バスアクセスをCortex-A55の非セキュアドメインに再割り当てする方法(U-Boot SPLのRDC設定やOP-TEE/TF-Aの変更)は文書で記載されているのでしょうか?それとも、GPIO_IO08-11が壊れているにもかかわらず、このボードのP11ヘッダーで外部SPIとしては単純にサポートされていないのでしょうか? これは私のボード/カーネルビルド特有の問題でしょうか、それともデフォルトのFRDM-IMX93 BSPの既知の特性でしょうか?参照用のimx93-11x11-frdm-lpspi.dts(EVKの場合はimx93-11x11-evk-lpspi.dtsに相当)があれば非常に助かります。 再現方法 ベースボードdtb: i.MXリリースディストリビューションイメージに同梱されている標準のimx93-11x11-frdm.dtb(変更されていないNXP lpspi3 + pcal6408 + reg_vexp_3v3/reg_vexp_5vノード - すべて__symbols__経由で存在が確認されています)。 上記で説明したオーバーレイを適用します(レギュレータ常時オン、&lpspi3 上の pinctrl + cs-gpios + pinctrl-assert-gpios)。 spidev(組み込み、CONFIG_SPI_SPIDEV=y)を手動でspi2.0にバインドします。   echo spidev > /sys/bus/spi/devices/spi2.0/driver_override echo spi2.0 > /sys/bus/spi/drivers/spidev/bind spidev_test -D /dev/spidev2.0-s 1000000 -v — 転送は「成功」します(I/O エラーなし)が、MOSI/MISO が物理的に短絡されていても、RX データは TX のループバックではありません。 devmem 0x42550000 32 → バスエラー。 必要であれば、オーバーレイのソースコード、dmesgログ、clk_summary/gpioダンプなど、すべての情報を提供いたします。 Re: FRDM-IMX93: LPSPI3 registers inaccessible from Linux (Bus error on devmem read) — external SPI d こんにちは、 @irfanktm お元気でお過ごしのことと思います。 以下の投稿コミュニティをご覧ください。 https://community.nxp.com/t5/i-MX-Processors/FRDM-IMX93-LPSPI3-EXPI-P11-SPI-pins-produce-no-valid-SPI/td-p/2413472 よろしくお願いいたします。 サラス。
View full article
S32K358 about Cache operation I am writing an S32K358 program in S32DS. To create an OTA upgrade program, I need to manipulate the internal FLASH. When I call the above function, I can compile it successfully, but I cannot find the above function by pressing CTRL+left mouse button. Is this normal? Screenshot 2026-09-15 141928.png Screenshot 2026-09-15 141953.png Re: S32K358 about Cache operation Hi @sunshine88, Can you try rebuilding the index? danielmartynek_0-1789469464382.png Thank you, BR, Daniel
View full article
S32K358 キャッシュ操作について S32DSでS32K358プログラムを作成しています。OTAアップグレードプログラムを作成するために、内部FLASHを操作する必要があります。上記の関数を呼び出すとコンパイルは正常に完了しますが、Ctrlキーを押しながらマウスの左ボタンを押しても上記の関数が見つかりません。これは正常な動作でしょうか? スクリーンショット 2026-09-15 141928.png スクリーンショット 2026-09-15 141953.png Re: S32K358 about Cache operation こんにちは@sunshine88 さん インデックスを再構築してみることはできますか? danielmartynek_0-1789469464382.png ありがとうございました。 BR、ダニエル
View full article
Does NXP official have a code routine for configuring external boot for S32K344 chip? Does NXP official have a code routine and tutorial for configuring external boot for S32K344 chip? We would like to configure the chip to boot from the SD card? Re: Does NXP official have a code routine for configuring external boot for S32K344 chip? In a nonsecure boot configuration - does the first bootloader run from ROM (is it immutable)? Can this first bootloader be configured to boot the subsequent bootloaders/application images from an external source/flash? Re: Does NXP official have a code routine for configuring external boot for S32K344 chip? This device does not offer an option to boot from external memory. Device supports secure and nonsecure boot modes but in both cases it is internal flash boot.
View full article
IW612のBluetoothが数日後にクラッシュする こんにちは、 ユーザーの一人から、murata LBES5PL2EL-923(IW612コア)のBluetooth機能に関するバグを報告がありました。BluetoothスタックがBluetooth静的RFCOMM/SPPでデバイスにコネクテッドすると数日後にクラッシュする現象です (元のレポートは公開されており、日本語版はhttps://armadillo.atmark-techno.com/forum/armadillo/31772で閲覧可能です。)) これに関して既知のバグはありますか? ソフトウェアのセットアップ: * Linux 6.12 は lf-6.12.49-2.2.0 に基づく(正確なソースツリー:https://github.com/atmark-techno/linux-6.12-at/tree/6.12.105-r0) これはBTの問題ですが、参考までにワイヤレスドライバーはmwifiex lf-6.12.49-2.2.0をベースにしています。 * ファームウェアをimx-firmwareリポジトリの最新版lf-6.18.20_2.0.0にアップデートしました。https://github.com/nxp-imx/imx-firmware/tree/lf-6.18.20_2.0.0/FwImage_IW612_SD * BlueZスタック(正確なバージョンを確認中です。申し訳ありませんが、確認し忘れていました。) * 基板は*Bluetooth classic*(BLEではない)で単一のデバイスに接続され、RFCOMM/SPPで接続されています。60秒ごとにアプリケーションはメッセージを送信し、返信(簡単なポーリング)を受け取ります。数日後にコマンドタイムアウトが入り、BTドライバが再起動します クラッシュ後に/sys/class/bluetooth/hci0/devcoredump/dataから取得したファームウェアダンプを添付しました。役に立つと仮定して、クラッシュまではdmesgにメッセージはありません(すみません、「FWダンプ開始」の前に短縮されているためタイムスタンプがなく、クラッシュ直後だったと理解しています)。 FWのリロード機構は動作しますが、再接続が必要なので、可能であれば対応が良いでしょう。 [ 0.000000] Linux version 6.12.105-0-at (builder@71056255c5a6) (aarch64-alpine-linux-musl-cc (Alpine 15.2.0) 15.2.0, GNU ld (GNU Binutils) 2.45.1) #1-Alpine SMP PREEMPT Mon Aug 24 07:48:35 UTC 2026 [...] [ 9.321032] wlan: version = SDIW612---18.99.8.p52-MM6X18540.p33-GPL-(FP92) [...] [ 10.349326] Bluetooth: hci0: FW already running. [ 38.303160] Bluetooth: MGMT ver 1.23 [170117.376944] Bluetooth: hci0: command tx timeout Bluetooth: hci0: ==== Start FW dump === Bluetooth: hci0: ==== FW dump complete === Bluetooth: hci0: Request Firmware: nxp/uartspi_n61x_v1.bin.se Bluetooth: hci0: FW Download Complete: 412940 bytes 分析に役立つその他の情報があれば、お尋ねください。 よろしくお願い申し上げます。 Re: IW612 bluetooth crash after a few days 1. HCIログも提供していただければ、どのコマンドがタイムアウトし、ファームウェアダンプが生成されているかを特定するのに役立ちます。 この件で具体的にどういう意味か教えていただけますか?実行後から実行できるコマンドはありますか?それともプロセスが実行されている間にhcidumpや同等のコマンドを実行すればよいのでしょうか? Wi-Fiドライバーの読み込みパラメータを入手> 3.To、/lib/firmware/nxp/wifi_mod_para.conf を教えてください。 このファイルは使わないので、ここでもデフォルトのパラメータを使うべきです。ログレベルをデフォルト値から下げたので、DMESGもあまり役に立たないでしょう(前回の返信でdmesgのリンクを送りました)。 この期間中にWi-Fiを使っているかどうか、ユーザーに確認してみます Re: IW612 bluetooth crash after a few days こんにちは、 @martinetd 1. HCIログも提供していただければ、どのコマンドが タイムアウトし、ファームウェアダンプが生成されているかを 特定するのに役立ちます 。 2. WLANが稼働している間にWLANベースのユースケースを教えてくれますが、ファームウェアダンプが生成されている間にWLANが正常に動作しているか確認してもらえますか? 3.To get Wi-Fiドライバー loading parameters, you can provide us the: /lib/firmware/nxp/wifi_mod_para.conf または、WiFiやBluetoothの読み込み全過程を含む 通常の起動DMESGログ を提供してもらえます。DMESGのログから情報を得ることができます。 4.現在、お客様が使用されているものよりも新しい公開されているGitHubファームウェアリリースはありません。 imx-firmware/FwImage_IW612_SD (lf-6.18.20_2.0.0) · nxp-imx/imx-firmware · GitHub ですので、これは既知の問題ではないと思います。 私たちは、ユースケースに関する情報やHCIログを多めに持っておきたいので、何が起こったかを追跡したり手順を再現したりして、ローカルで問題を再現できるようにしたいと考えています。 もしこの問題に関する他に情報があれば、ぜひ教えてください。 よろしくお願いいたします。 Christine。 Re: IW612 bluetooth crash after a few days こんにちは、 @Christine_Li さん、迅速なご返信ありがとうございます。 > 1.もしbtnxpuartドライバーを使っているなら、btnxpuart.cを教えてください。 私たちは、 https://github.com/nxp-imx/linux-imxで提供されている btnxpuart を使用しています。バージョン lf-6.12.49-2.2.0 に基づいており、正確なファイルはこちらでご覧いただけます https://github.com/atmark-techno/linux-6.12-at/blob/6.12.105-r0/drivers/bluetooth/btnxpuart.c 2. Wi-FiとBluetooth/802.15.4のコンボファームウェアを使用していますか?それとも、別々のファームウェアを使用していますか? 両方使っています:起動時にWi-FiドライバーがコンボFWを読み込み、クラッシュ後に別のFWをリロードします(だからログで別FWの名前を付けています)。 このクラッシュが発生したとき、コンボファームウェアがロードされていました(起動後の最初のクラッシュ)が、両方のファームウェアで再現すると理解しています。 >  3.Wi-FiとBluetoothドライバーの負荷パラメータを教えてもらえますか? 明示的に設定している唯一のWiFiパラメータはdrv_mode = 0x3で、使っていないWiFiダイレクトインターフェースを無効化します。Bluetoothパラメータは設定していません。もし正確な設定のダンプ方法を教えていただければ、ユーザーにコマンドを実行してもらい、情報を取得してもらうよう頼めます。 > 4.詳細な再現手順を教えていただけますか? これはユーザー報告に基づくものなので、説明したこと(数日間60秒ごとにRFCOMM接続をポーリングする)以上のことは言えません。チップが接続されているサブデバイスによって異なるのではないかと心配しています。 RFCOMM経由でpingを送ってローカルで再現できるデバイスを探してテストスクリプトを提供してみますが、今のところファームウェアやBTNXPUARTドライバの既知のバグが記載されたリリースノートは見つからなかったので、既知のバグがあるかどうか(そしてできればファームウェアのダンプから何か情報が得られるか)を確認したいです。 よろしくお願い申し上げます。 Re: IW612 bluetooth crash after a few days こんにちは、 @martinetd 1. Bluetooth用にNXPのBTNXPUARTドライバーを使っていますか?それともLinuxのオープンソースUartドライバを使っていますか? もしbtnxpuartドライバーを使っているなら、btnxpuart.cを教えてください。 2. Wi-FiとBluetooth/802.15.4のコンボファームウェアを使用していますか?それとも、個別のファームウェアを使用していますか? ログが下にあるのを見ているので、別のFWを使っているのではないかと疑っています。確認が必要です。 hci0: Request Firmware: nxp/uartspi_n61x_v1.bin.se 3. Wi-FiとBluetoothドライバーの負荷パラメータを教えてもらえますか? 4. 詳細な再現手順を教えていただけますか? よろしくお願いいたします。 Christine。 Re: IW612 bluetooth crash after a few days > * BlueZスタック(正確なバージョンを確認中です。申し訳ありませんが、確認し忘れていました。) 参考までに、BlueZ版は5.82です Re: IW612 bluetooth crash after a few days > btmon ご説明いただきありがとうございます。 クラッシュの再現には数日かかり、ログが大きくなるため、完全なログを保存・共有するのは現実的ではないかもしれません(1分で100KB見えるので、2日で約300MBになります)。 残念ながらbtmonにはtcpdumpのような「巡回記録」モードはないようですが、クラッシュ直前の数分だけに興味があるなら、顧客のログを5分ごとに2ファイル交互に表示して、最後の5分を記録できるようにリクエストできます。 (未テスト)といった形で、最後のサンプルを送ることは許容範囲でしょうか?(ただし、ランの間にイベントが記録されない短いウィンドウがあります...) I=0; while ! [ -e /sys/class/bluetooth/hci0/devcoredump/data ]; do timeout 300s btmon -K -t -w log.$I; I=$((I+1%3)); done > コアダンプが読み取れません 残念ですが、どうしようもありません。 このファイルは、FW ダンプ完了メッセージの後に /sys/class/bluetooth/hci0/devcoredump/data から読み取ったものです。もしこの方法が適切でない場合や、より有用なデータを取得する方法があれば喜んで対応しますが、今は btmon トレースに焦点を当てましょう。 よろしくお願い申し上げます。 Re: IW612 bluetooth crash after a few days こんにちは、 @martinetd 1. btmonの場合: ==>はい、サイズの都合で全工程を記録できれば、あなたが提案した方法が良いと思います。それに、それ以外に良いアイデアはありません。 2. ファームウェアダンプの場合: drvdbg=0xa0037でドライバーを読み込むことをおすすめします。これにより、より多くのfwダンプやドライバーのダンプログを記録して分析できます。   問題が発生しました   ログは以下のようにこのディレクトリに自動的に保存されます。   ======================================== [4221.173141]ディレクトリ /data/dump_4220 の作成エラー。/var にディレクトリを作成してみてください。 [4221.173147]ウェイクアップデバイス... [4221.173231]ディレクトリ /var/dump_4220 の作成に成功しました。 [4221.173232]ディレクトリ名は /var/dump_4220 です [ 4221.173233] === ドライバ情報開始 ダンプ=== [4221.173289]DRVダンプデータは/var/dump_4220/file_drv_infoにあります。 [4221.173306]ウェイクアップデバイス... [4221.173889]SDIO Func0 (0x0-0x9): 43 03 06 00 07 00 00 02 03 00 [4221.175173]SDIO 機能 1 (0x4-0xb): 00 00 00 00 ff ff ff ff [4221.175879]SDIO Func1: (0x4c) 00 (0x50) 08 (0x54) 07 (0x55) 0c (0x58) 10 (0x59) 00 (0x5c) 00 (0x5d) 00 [4221.176284]SDIO 機能 1 (0xc0-0xca): DC fe 96 00 31 11 00 37 37 02 20 [ 4221.177301] | [4221.275861]SDIO Func1 (0xc0-0xca): DC fe a1 00 3b 00 00 37 37 02 20 [4221.276501]ドライブ情報の合計バイト数 = 263150 (0x403ee) [ 4221.276503] === ドライバー情報ダンプ 終了===ウェイクアップ装置... [ 4221.276555] ==== デバッグモード出力開始: 4220.878602 === ====================================================   ダンプが「/var」や「/data」で自動生成されていない場合は、以下の「cat /proc/mwlan/adapter0/fw_dump > file_fw_dump」コマンドを使って手動で収集できます。     2. DMESGログにディレクトリが印刷されていないか、あなたの場合はログレベルが下がっている場合は、以下の方法で登録してください:   - echo debug_dump > /proc/mwlan/adapter0/config しばらく(1~2分)お待ちください。 fw_dumpの場合: - cat /proc/mwlan/adapter0/fw_dump > file_fw_dump drv_dumpの場合: cat /proc/mwlan/adapter0/drv_dump > file_drv_dump   このようなFWクラッシュ問題に対して、btmonログはお客様のユースCASEや問題シナリオをよりよく理解するための拡張ログです。FW_dumpは私たちにとって最も重要なログです。   また、前述の通り、このテスト中にお客様にWi-Fiのユースケースについても尋ねてください。   よろしくお願いいたします。 Christine。 Re: IW612 bluetooth crash after a few days BTmonについては了解しました。リクエストしてみます(Wi-Fiの使用状況についても質問します)。 まずファームウェアのダンプについて確認させてください。私が取得したダンプはBluetoothのダンプでしたが、あなたが説明しているのはワイヤレスのダンプのようですね。 お客様からのトレースではWiFiドライバはクラッシュしなかったので、drvdbg=は効果がないのではないかと思います。 また、結合ファームウェアの場合(「echo debug_dump > /proc/mwlan/adapter0/config」)でワイヤレスファームウェアが必要な場合、問題はBTドライバーが自動的に新しいファームウェアをリロードし、アダプターを再起動してしまうため、これを動作させるにはファームウェアの読み込みを無効にする必要があることです ダンプは分析に有用だと思います。もしダンプの入手方法を修正できるなら、まず知りたいです。何をすべきかが明確になったら、一度にお客様にすべて尋ねます よろしくお願いします。 Re: IW612 bluetooth crash after a few days こんにちは、 @martinetd この件で具体的にどういう意味か教えていただけますか?実行後から実行できるコマンドはありますか?それともプロセスが実行されている間にhcidumpや同等のコマンドを実行すればよいのでしょうか? ==>hciログは、以下のコマンドでBluetooth/BLEを有効にする後にキャプチャ可能です: btmon -w failed_snoop.log & その後、顧客は再現手順を実行し、この問題を再現しようとします。 failed_snoop.log には、Bluetooth/BLE のすべてのプロセスが記録されます。 問題が再現されたら、このログを確認して実行されているコマンドやイベント情報を把握し、関連する疑いを見つけることができます。 これは、ファイアウォールがクラッシュした後に失敗したログを実行して取得するためのコマンドではありません。 ところで、提供された fw ダンプ bin ファイルfw_devcorecump.binを復号化するために、社内の専門家チームに協力を依頼しました。しかし残念ながら、復号がうまく解読できていません。ファイルが破損しているか、データが不足しているため復号できないようです。 よろしくお願いいたします。 Christine。 Re: IW612 bluetooth crash after a few days こんにちは、 @martinetd はい、おっしゃる通りです。 この問題の再現が難しいため、必要なログをすべて取得することを推奨します。 社内チームに確認したところ、BSP 6.12.34以降では、btnxpuartカーネルモジュールがIW612ナローバンドファームウェアが停止していることを検出するとのことです。狭帯域CPUをリセットして再度ダウンロードすることで、自動的に復旧プロセスが開始されます。BTファームウェアのダンプは自動的に生成されます。コマンドのタイムアウトが発生した時点で生成されます。 だから、あなたの言う通りです。Wi-Fiダンプは不要です。BTファームウェアダンプと、可能であればhciログのみを提供してください。また、WiFiのユースケースやシナリオについても、ぜひご協力ください。 よろしくお願いいたします。 Christine。 Re: IW612 bluetooth crash after a few days こんにちは、 @Christine_Li 返信が遅くなり申し訳ありません。現在、祝日期間中です。 >  この問題は再現が難しいため、必要なログをすべて取得することを希望します。 わかりました。できるだけ多くの情報をお客様から得て、今後1〜2週間で自分で再現できるかも確認してみます >  社内チームに確認したところ、BSP 6.12.34 以降では、btnxpuart カーネルモジュールが IW612 ナローバンドファームウェアが停止していることを検出するとのことです。狭帯域CPUをリセットして再度ダウンロードすることで、自動的に復旧プロセスが開始されます。BTファームウェアのダンプは自動的に生成されます。コマンドのタイムアウトが発生した時点で生成されます。 > つまり、あなたの言う通りです。Wi-Fiダンプは不要です。BTファームウェアダンプと、可能であればhciログのみを提供してください。また、WiFiのユースケースやシナリオについても、ぜひご協力ください。 Wi-Fi ダンプが不要であることを確認していただきありがとうございます。しかし、BT ダンプについては困ったことになっています。最初の投稿で送信したダンプは、btnxpuart モジュールが自動的に生成したもので、切り詰められたとは考えられません (サイズは、/sys/class/bluetooth/hci0/device/coredump に 1 を書き込んで人為的にダンプを生成したときに得られるものと似ています)。 その入手方法は、クラッシュ完了後にデータファイルから(catコマンドで)読み取るだけだった。 cat /sys/class/bluetooth/hci0/devcoredump/data > fw_dump ダンプを取得するもっと適切な方法はありますか? また、初歩的な質問で恐縮ですが、私が送ったダンプファイルはBTダンプとして開封されたものでしょうか? この時点では明日お客様にすべてをまとめますが、新しいダンプが送られてしまい、再び開けられなくなるのではとかなり心配なので、この点をはっきりさせていただきたいです。 よろしくお願い申し上げます。 ドミニク Re: IW612 bluetooth crash after a few days こんにちは、 @martinetd ご意見ありがとうございます。 ファームウェアのダンプについて。はい、ファームウェアのダンプに関するあなたの懸念は十分に理解しています。 そこで、社内チームとアプリケーションノートAN14710 を再確認しました。あなたがFWダンプを取得する手順は、特にBTNXPUARTドライバに関して正しいようです。 内部の専門家チームに確認して、現在の共有ダンプファイルから有用な情報を見つけられるか確認してみます。ここで何か他にやるべきことがあるかもしれませんが、私はそれを知らないので、コアの研究開発チームに確認します。 HCIログ用。 その間、エンドカスタマーから HCIログ の取得もお手伝 いください 。これにより、 HCIコマンドシーケンスを分析し、問題を自社側で再現できるかどうか判断できます。 ドライバおよびFW版について: それに、FW版とドライバを二重に確認するために、ボードから読み上げるのも手伝ってください。 あなたは既に、以下のものを使用していると述べていましたね。 ドライバ:mwifiex lf-6.12.49-2.2.0 FW: lf-6.18.20_2.0.0 https://github.com/nxp-imx/imx-firmware/tree/lf-6.18.20_2.0.0/FwImage_IW612_SD しかし、ボードのDMESGログから読めば、二重に確認できます。どうもありがとう。 dmesg | grep wlan すると、以下のようにWiFiとファームウェアのバージョンが表示されます。 [ 7.573794] wlan: バージョン = SDIW612---18.99.8.p52--MM6X18543.p18-GPL-(FP92) その他の情報。 また、ドライバとFWの不一致は推奨しません。 例えば、あなたは lf-6.12.49-2.2.0 ベースのドライバーを使っていますが、FW は lf-6.18.20_2.0.0 に基づいています。 代わりに、同じタグでマッチしたFWとドライバーのバージョンを使うことを推奨しています。 宜しくお願いします、 Christine。 Re: IW612 bluetooth crash after a few days こんにちは、 @martinetd 迅速な返信で、要求されたドライバとFWのバージョン情報を教えてくれてありがとうございます。 ですので、あなたの側からは、HCIログ+WiFiとBluetoothのユースケース、そしてFWダンプを一緒に提供するのを手伝ってください。 私としては、社内チームに現在のファームウェアダンプを確認するよう依頼します。 双方から何か新しい情報がありましたら、こちらで共有してください。 よろしくお願いいたします。 Christine。 Re: IW612 bluetooth crash after a few days 迅速なご返信ありがとうございます。お客様がHCIlogを提供できたらまたご連絡します バージョンについては同意します。最新バージョンにアップグレードしたのは、テストマシンでファームウェアだけをアップグレードする方が簡単だからです。この問題は6.12.49〜2.2.0のファームウェアでも発生しました。 ユーザーのDMESG(元のコアダンプ付き)からのバージョンは以下の通りです: [ 9.321032] wlan: version = SDIW612---18.99.8.p52-MM6X18540.p33-GPL-(FP92) ありがとう Re: IW612 bluetooth crash after a few days こんにちは、 @Christine_Li さん。 ファームウェアチームにダンプについて確認していただき、ありがとうございます。彼らがそれを解読できたと聞いて大変嬉しく思います! ウォッチドッグタイマーについて気になっています。お客様から入手したDMESGのタイムスタンプは170117s(=1日23時間15分17秒)だったので驚いていますが、お客様に聞いてみます 再現手順についてですが、実は別の問題で忙しく、自分で再現を試みる時間が取れていません。休暇から戻られる頃には、ご連絡できると思います。 ログを入手次第、お送りします(残念ながらお届け予定日は未定ですが、社内で対応がスムーズに進むようでしたら、私からの返信があるまでこの問題を保留にしていただいても構いません)。 ありがとうございました。 ドミニク Re: IW612 bluetooth crash after a few days こんにちは、 @martinetd 社内チームはファームウェアのダンプを解読することに成功しました。以下にその結果を示します。   7.5日間の稼働後にWDOG_TIMEOUTが発生しました。障害や破損はなく、ウォッチドッグが期限切れになった時点で有効なコードが実行されていました。 2つのBTリンクがあり、両方ともSNIFFモードになっているが、クラッシュ時にはアクティブなBTトラフィックはなかった。   これからすると、お客様の発言と私たちがダンプから見ているものには違いがあるようです。下記に関するフィードバックにご協力ください。 クラッシュ時のお客様からのHCIダンプログ(btsnoop/hcidump)を。 具体的なテスト手順:デバイスの数、プロファイル(SPP/A2DP/HFP)、60秒ごとにトリガーされるもの、ペイロードサイズ、デバイスが1台か2台か? また、ログの到着予定時刻を手伝ってもらえますか? ログがないと、問題の根本原因を特定するのは困難です。 参考までにお知らせしますが、私は明日(10月1日)から7日間、国民の祝日をいただきます。10月8日にオフィスに戻ります。この期間中は、返信が遅れる場合がございますのでご了承ください。そしてもちろん、この期間中はメキシコ代表チームにバックアップメンバーを用意しておくつもりです。彼女/彼は緊急の問題に対して引き続きサポートを行います。ご迷惑をおかけして申し訳ございません。 よろしくお願いいたします。 Christine。 Re: IW612 bluetooth crash after a few days こんにちは、 @martinetd ご返信ありがとうございます。 もちろん、到着予定時刻がなくても大丈夫です。正直に言ってくれてありがとう。ゆっくりで構いませんよ。 その後、保留状態にして、お客様からのフィードバックをお待ちいたします。 よろしくお願いいたします。 Christine。 Re: IW612 bluetooth crash after a few days こんにちは、 @martinetd HCIログやFWダンプ、そしてお客様からのリクエストされた情報を受け取る機会はありましたか? よろしくお願いいたします。 Christine。 Re: IW612 bluetooth crash after a few days こんにちは、 @martinetd このメッセージは、私が既に職場復帰したことをお知らせするために残しておきます。 もしすでに問題を再現しているか、お客様からログを受け取った場合は、遠慮なくお知らせください。 まだ決めていないのであれば、遠慮なく、私があなたを急かしていると思わないでください。ご自身のペースで進めてください。 いつでも喜んでサポートいたします! よろしくお願いいたします。 Christine。 Re: IW612 bluetooth crash after a few days こんにちは、 @martinetd 有益な情報を提供していただきありがとうございます。 はい、btmonのログと関連するダンプを待ちます。 BR、 Christine。 Re: IW612 bluetooth crash after a few days 最新情報をお知らせいただきありがとうございます。 先ほどお客様から返事がありました。追跡情報を提供してくれることに同意してくれました。利用可能になったらこちらに送りますが、それまではいくつか確認できることがあります。 - Wi-Fiが使われていない(通常、OSは数分ごとにスキャンをトリガーしますが、顧客の意見では無効とされているため、使うべきではありません) - コネクテッド時に単一のデバイスまたは複数のデバイスに接続した際にクラッシュが発生します。コネクテッド時はBluetooth classicのSPP/RFCOMMモードで接続し、一度アクティブなスキャンは行われません。5秒ごとにpingが送信され、60秒ごとにデータが送信されます(トレースを取得したら正確なサイズを確認します)。 btmonと関連するcoredump/dmesgが入手でき次第、こちらで再度更新します。 ありがとう Re: IW612 bluetooth crash after a few days こんにちは、 @Christine_Li お客様はトレースを有効にして再現できます。トレースを添付します: - btmon_stripped.2はクラッシュ時のBTMONトレースを含み、他の2つのファイルには送信されたメッセージのイメージを把握するための直近10分間のデータが含まれています。残念ながら、送信されたデータにはお客様向けの機密情報が含まれていたため、ASCIIデータをイベント情報、ACL TX、ACL RX、CTRL_EVENTパケットで「x」に書き換えました...btmon -rでファイルが読み取れる/意味合いがあるか確認しましたが、もし何か間違えていたら教えてください。必要なら元のトレースをプライベートで共有する許可も得られると思います。 - dmesg.logにはクラッシュまでのdmesgログが含まれています(btmonは2回目の発生に関するものです) - fw_devcoredump.bin は 2 回目のクラッシュ後に取得されましたが、残念ながら、クラッシュが再び発生したときにダンプを更新するメカニズムが正しく機能するかどうかはわかりません... データが一致しない場合は申し訳ありませんが、少なくともサンプルポイントとして役立つことを願っています。お客様に再度複製をお願いする必要がある場合は、ぜひご連絡ください。 よろしくお願いします。 Re: IW612 bluetooth crash after a few days こんにちは、 @martinetd 返信が遅くなり申し訳ありません。CASEシステムがコミュニティからの更新を正常に同期できませんでした。 今すぐ確認して、できるだけ早く返信します。 同時に、関連するCASEはCASEシステムで再開し、更新をタイムリーに追跡し、システムによる遅延対応を回避できるようにします。 BR、 Christine。 Re: IW612 bluetooth crash after a few days こんにちは、 @Christine_Li 2週間前に私が提供したトレースデータはご覧いただけましたか? ありがとう Re: IW612 bluetooth crash after a few days こんにちは、 @martinetd ファームウェアダンプの解析のため、既にログを社内の専門チームに提供しました。 何か新しい情報があれば、お知らせします。 BR、 Christine。 Re: IW612 bluetooth crash after a few days 返信ありがとうございます > この問題を地域で再現するための具体的な手順は何ですか?私たちは、地元の側で再現できるかどうかを試したいと考えています。 申し訳ありませんが、まだこちら側で再現を試みることができていません。現時点では、私もあなたと同じ情報しか持っていません。実は、私が制御する2台のデバイスを使ってテストを試みてみたのですが、BlueZスタックからスニフモードを設定する方法が分からず、時間もなくなってしまいました…。 私の理解では、BTMONのようなもので、RFCOMMでリンクを設定してアイドル時にスニッフモードを有効にし、5〜66バイト程度の小さなメッセージを定期的にやり取りするものです(5秒ごとにキープリブがあると言われましたが、あと10分分のログがあるのにそうは思えません)。60秒ごとに小さな爆発が見られます。 実はスニッフモードの操作方法には詳しくありませんが、ユーザープログラムがデータを送信するたびに手動で(スニッフモードの入り/退出)切り替えているのでしょうか?それとも、bluezスタックが自動的に処理して、アイドル状態になると再びスニッフィングモードに戻るのでしょうか? 数日中に時間を作って再挑戦してみます。 >問題は再生頻度の何なのでしょうか?今のところ非常に低いと知っています。もし詳しい情報を提供していただけるとありがたいです。 「数日に一度」と言われましたが、ログを見る限り、少し頻度が増えているようで、セットアップが1台から2台に変わったためかもしれません。 > あなたの具体的なユースCASEは何で、スニッフモードはアプリケーションに必須ですか?ログでは2台の デバイスがコネクテッドなのに対し、あなたは1台しかコネクテッドしていないと言っていました。ですので、再度確認する必要があります。 バッテリー節約のためにスニッフモードを使っており、これは明確に必須だと聞きました(接続先のデバイスはBLEをサポートしていないため、スニッフモードを使ってバッテリーを節約するために受信時間制限しているのです)。 問題は1台または複数のデバイスで発生すると聞いていますが、btmonトレースで再試行するデバイスの数は指定していません。 よろしくお願いします。 Re: IW612 bluetooth crash after a few days こんにちは、 @martinetd ご提供いただいたログを分析した結果は以下のとおりです。 dmesgログより: 17,904秒と17,915秒(約5時間の稼働時間)に、hci0: command tx timeoutメッセージが2つ表示されます(障害1)。 17,936秒から17,961秒にかけて、「Start FW dump」と「FW dump complete」が表示されます。その後、ファームウェアnxp/uartspi_n61x_v1.bin.seが再ロードされます。 55,551秒と55,562秒(リロード後約10.4時間)に、同じ2つのコマンド送信タイムアウトメッセージが表示されます(失敗2)。 55,567秒から55,592秒まで、同じファームウェアダンプとファームウェア再ロードのシーケンスが繰り返されます。   HCIログ(btmon_stripped.2)より HCI#227および#228:コントローラからの最後のイベント情報。これらは2つの接続ハンドル、0x0001と0x0002に対して2つのモード変更イベント情報(スニッフモード、50ms間隔)です。 HCI#230: ホストがハンドル 0x0002 に対して HCI_Exit_Sniff_Mode を送信しました。コントローラはイベント情報全体を返しません。 HCI#231: コマンド送信タイムアウトが2秒後に発生しました。 HCI#234: ホストがハンドル 0x0001 に対して HCI_Exit_Sniff_Mode を送信します。コントローラは再び反応しません。 HCI#235: コマンド送信タイムアウトが2秒後に発生しました。 HCI#237: FWダンプを開始します。フレーム#238:コントローラがHCIハードウェアエラーイベント情報(コード0xB0)を送信します。 HCI#250 #251: ファームウェアが再ロードされました。HCI#252: ホストがHCIリセットを送信し、初期化が完了しました。   これらのログから、コントローラはHCIコマンドに応答しなくなり、現在は内部チームに確認を進めています。その間、以下の質問にご協力をお願いします。 この問題がローカル環境で再現するための具体的な手順を教えてください。私たちは地元の側でCAN繁殖するかどうかを見たいと思っています。 問題の再現頻度はどのくらいですか?今のところ、非常に低いということしか分かっていません。もし詳細を教えていただけるとありがたいです。 あなたの具体的なユースCASEは何で、スニッフモードはアプリケーションに必須ですか?ログでは2台の デバイスがコネクテッドされているのに対し、あなたは1台しかコネクテッドしていないと言っていました。ですので、再度確認する必要があります。 BR、 Christine。 Re: IW612 bluetooth crash after a few days こんにちは、 @martinetd 情報提供ありがとうございます。 もちろん、この問題を再現できるなら、詳細な手順も教えてください。 同時に、社内チームがファームウェアのダンプを分析しています。 何か新しい情報があれば、お互いに共有しましょう。 BR、 Christine。 Re: IW612 bluetooth crash after a few days ありがとうございます! お客様にPVT_FW_1_combo.bin.seをターゲットに/lib/firmware/nxp/sduart_nw61x_v1.bin.seとしてインストールしてもらい、再現できるか確認し、ログや詳細を提供してもらうつもりです。 (ファームウェアをインストールした後、dmesgにはこのバージョンが表示されました。) [ 8.853049] wlan: バージョン = SDIW612---18.92.8.p52.2, -1-gc524d609-Test--MM6X18543.p18-GPL-(FP92) ) Re: IW612 bluetooth crash after a few days こんにちは、 @martinetd ご辛抱いただきありがとうございます。 本日、社内チームからPVTファームウェアを1つ受け取りました。弊社ではローカル環境で問題を再現できないため、共有されたPVTファームウェアで問題が解決するかどうかをご確認いただけますでしょうか。   ファームウェアの詳細: FW名: PVT_FW_1_combo.bin.se MD5SUM: c9eb78febccafa4772ed6c216215362a 注:このファームウェアは検証目的のみに使用されるものであり、公式リリースには使用されません。 追加の問題が見られた場合に備え、必須のFWダンプやbtmonログとdmesgログの共有を手伝ってください。 BR、 Christine。 Re: IW612 bluetooth crash after a few days こんにちは、 @martinetd はい、そのバージョンは正しいようです。 エンドのお客様から何か進展はありますか? BR、 Christine。
View full article
ARINC615A 数据加载,使用 JTAG 访问密码保护 当未安装 HSE 固件时,可以使用CUST_DB_PSWD_A字段和设备生命周期配置来限制 S32K3 上的 SWD/JTAG 访问。假设更新是由应用程序或引导加载程序软件处理,而不是通过调试接口处理,启用此密码保护是否会对向处理器执行 ARINC 615A 软件数据加载产生任何影响? Re: ARINC615A Data loading with JTAG Access password protected CUST_DB_PSWD_A 仅限制 SWD/JTAG 调试访问。我不熟悉您的 ARINC 615A 实现的细节,但如果软件加载完全由您的应用程序或引导加载程序处理,我认为调试密码本身不会产生任何影响。 最终,这是特定应用,取决于 ARINC 615A 在您的系统中是如何实现的。如果更新机制不使用调试接口,则调试访问限制通常应独立于软件加载过程。任何其他限制都将取决于您的生命周期配置和应用程序网络安全设计。
View full article
在 S32 Design Studio for Power Architecture v2.1 中,PEmicro GDB 启动失败 您好, 我正在测试的电路板是 MTRCKTSPS5744P(带有 MPC5744P MCU 的三相 PMSM 电机控制开发套件)。 不知何故,下载过程不太顺利。 点击调试按钮后,下载失败,此时会弹出此窗口。 eunwoo_lee_0-1789496057004.png 弹出一个窗口,显示此错误信息。 服务启动序列错误 PEmicro GDB 启动失败:GDB 服务器无法与目标处理器建立连接。请检查您的连接和电源。请确认调试配置中的启动设置是否准确。 控制台面板显示此消息。 来自“127.0.0.1”的连接,通过 127.0.0.1。从端口“53438”到7224的连接 PE错误:警告。部件运行时无法读取寄存器。 PE错误:警告。部件运行时无法读取内存。@0(4 字节) PE错误:警告。部件运行时无法读取内存。@0(4 字节) PE错误:警告。部件运行时无法读取寄存器。 PE错误:警告。部件运行时无法读取内存。@0(4 字节) PE错误:警告。部件运行时无法读取内存。@0(4 字节) PE错误:警告。部件运行时无法写入二进制文件。40001000 - 长度:0 - 值:二进制数据 PE错误:警告。部件运行时无法写入二进制文件。40001000 - 长度:460 - 值:二进制数据 PE错误:警告。部件运行时无法写入二进制文件。40001460 - 长度:460 - 值:二进制数据 PE错误:警告。部件运行时无法写入二进制文件。400018c0 - 长度:460 - 值:二进制数据 PE错误:警告。部件运行时无法写入二进制文件。40001d20 - 长度:2e0 - 值:二进制数据 PE错误:GDB客户端处理:发生异常:程序异常! 异常类:EIDCONNCLOSEDGRACEFULLY 消息:连接已正常关闭。 地址 0X0046EA89 通过 127.0.0.1 与“127.0.0.1”断开连接。通过端口“53438”与7224断开连接 目标设备已断开连接。 你知道有什么办法解决这个问题吗? 谢谢。 Re: PEmicro GDB Launch Failure in S32 Design Studio for Power Architecture v2.1 你好, 你知道有什么办法解决这个问题吗? 正如消息中所述,您无法在运行时写入/读取寄存器。首先在调试器中停止代码执行,然后才能修改寄存器、内存等…… MPC5744P 正在运行用户代码,P&E 探针无法停止设备,因此所有内存/寄存器访问均失败,下载操作中止。 这看起来不像是一个闪存编程问题,而更像是调试器在下载之前未能停止 MPC5744P 的运行。 例如,微控制器中是否存在启用了 SWT0 的软件? 或者这是一个没有运行任何软件的全新样本? 顺祝商祺! Peter Re: PEmicro GDB Launch Failure in S32 Design Studio for Power Architecture v2.1 我通过更换扁平电缆解决了这个问题。虽然连接线看起来没问题,但却无法连接调试器。我猜想这条电缆容易受到串扰或线路间噪声的影响。最后我通过缩短电缆解决了这个问题。
View full article
S32K3_RTD_6_0_0_D2506_ASR_REL_4_7_REV_0000_2025 不支持 HB200x AUTOSAR R21-11 版本 0.8.0 您好,NXP, 我尝试将 HB200x AUTOSAR 规范 SDK 集成到 S32 Design Studio 中,但收到以下错误消息: 问题:在工具链/IDE 项目中找不到 Mc33hb。该项目无法编译! 级别:错误 类型:验证 工具:工具链/IDE 项目 来源:外围设备 目标:工具链/IDE 项目:M7_0 资源:platform.driver.mc33hb 甚至包括 CDD_Mb33Hb.c 文件在 S32 Design Studio 应用程序 (v3.6.4) 中安装 SDK 时,尚未添加 CDD_Mb33Hb.h 等文件。 Re: HB200x AUTOSAR R21-11 Version 0.8.0 not supported by S32K3_RTD_6_0_0_D2506_ASR_REL_4_7_REV_0000_ 你好, 您似乎使用了错误的RTD版本。根据 HB200x AUTOSAR R21-11 0.8.0 发行说明,该软件可以基于 SW32K3_RTD_4.4_R21-11_3.0.0_D2303_DS_updatesite.zip 使用(该软件需要安装在 S32 Design Studio IDE v3.5 中)。 PetrS_0-1789471295419.png BR,彼得 Re: HB200x AUTOSAR R21-11 Version 0.8.0 not supported by S32K3_RTD_6_0_0_D2506_ASR_REL_4_7_REV_0000_ 是否有其他版本的 HB200x SDK 支持 RTD 6.0.0 或更高版本?因为我们希望在我们的用例中使用最新的 AUTOSAR 库。 Re: HB200x AUTOSAR R21-11 Version 0.8.0 not supported by S32K3_RTD_6_0_0_D2506_ASR_REL_4_7_REV_0000_ 我们更倾向于使用 RTD 6.0.0 或更高版本。如果能找到一种方法将现有驱动程序升级到与 RTD 6.0.0 兼容,我将不胜感激。恳请指导。
View full article
PEmicro GDB Launch Failure in S32 Design Studio for Power Architecture v2.1 Hi, The board I am testing is MTRCKTSPS5744P (3-Phase PMSM Motor Control Development Kit with MPC5744P MCU). For some reason, the download process doesn't go well. This window pops up after failure in downloading when I click debug button. eunwoo_lee_0-1789496057004.png An window pops up showing this error message. Error in services launch sequence PEmicro GDB Launch Failure : The GDB Server was not able to establish a connection to the target processor. Please check your connections and power. Verify that the launch settings in the Debug Configuration are accurate. Console panel displays this message. Connection from "127.0.0.1" via 127.0.0.1. Connection from port "53438" to 7224 PE-ERROR: Warning. Can't read registers while part is running. PE-ERROR: Warning. Can't read memory while part is running. @0 (4 bytes) PE-ERROR: Warning. Can't read memory while part is running. @0 (4 bytes) PE-ERROR: Warning. Can't read registers while part is running. PE-ERROR: Warning. Can't read memory while part is running. @0 (4 bytes) PE-ERROR: Warning. Can't read memory while part is running. @0 (4 bytes) PE-ERROR: Warning. Can't Write Binary while part is running. 40001000 - Length of: 0 - Value of: Binary Data PE-ERROR: Warning. Can't Write Binary while part is running. 40001000 - Length of: 460 - Value of: Binary Data PE-ERROR: Warning. Can't Write Binary while part is running. 40001460 - Length of: 460 - Value of: Binary Data PE-ERROR: Warning. Can't Write Binary while part is running. 400018c0 - Length of: 460 - Value of: Binary Data PE-ERROR: Warning. Can't Write Binary while part is running. 40001d20 - Length of: 2e0 - Value of: Binary Data PE-ERROR: GDB Client Processing : Exception Occured : PROGRAM EXCEPTION! EXCEPTION CLASS: EIDCONNCLOSEDGRACEFULLY MESSAGE: CONNECTION CLOSED GRACEFULLY. ADDRESS 0X0046EA89 Disconnected from "127.0.0.1" via 127.0.0.1. Disconnection by port "53438" from 7224 Target Disconnected. Is there any solution you know for this problem? Thanks. Re: PEmicro GDB Launch Failure in S32 Design Studio for Power Architecture v2.1 Hello, Is there any solution you know for this problem? As the message explains you cannot write/read registers on the fly. First stop the execution of the code in debugger and then you can modify the registers, memory, etc... The MPC5744P is running user code and the P&E probe is unable to halt the device, therefore all memory/register accesses fail and the download operation aborts. This looks less like a flash programming problem and more like a debugger failing to halt the MPC5744P before download. Is there for example SW with SWT0 enabled in the microcontroller? Or is it a fresh sample with no SW running? Best regards, Peter Re: PEmicro GDB Launch Failure in S32 Design Studio for Power Architecture v2.1 I solved this problem by replacing the flat ribbon cable. Although the cable seems good in terms of connection, it fails to connect the debugger. I guess the cable is susceptible to crosstalk or line-to-line noise. I ended up making it work by creating shorter cable.
View full article
IW612蓝牙连接几天后崩溃 你好, 一位用户向我们报告了 Murata LBES5PL2EL-923(IW612 内核)蓝牙功能的一个缺陷:通过蓝牙静态 RFCOMM/SPP 连接设备几天后,蓝牙协议栈会崩溃。 (原始报告已公开,可在以下网址以日语查看:https://armadillo.atmark-techno.com/forum/armadillo/31772)) 关于这个问题,目前已知有哪些漏洞? 软件设置: * 基于 lf-6.12.49-2.2.0 的 Linux 6.12(确切的源代码树: https://github.com/atmark-techno/linux-6.12-at/tree/6.12.105-r0 ) 这是一个蓝牙问题,但以防万一,无线驱动程序基于 mwifiex lf-6.12.49-2.2.0。 * 固件已从 imx-firmware 仓库更新至最新版本 lf-6.18.20_2.0.0 https://github.com/nxp-imx/imx-firmware/tree/lf-6.18.20_2.0.0/FwImage_IW612_SD * BlueZ 软件包(目前正在确认确切版本,抱歉我忘了问) * 该板通过 *经典蓝牙*(非 BLE)连接到单个设备,采用 RFCOMM/SPP。每隔 60 秒,应用程序发送一条消息并收到回复(简单轮询)。几天后出现命令超时,蓝牙驱动程序重启。 我附上了一个固件转储文件(崩溃后从 /sys/class/bluetooth/hci0/devcoredump/data 获取),假设它有用的话,在崩溃之前 dmesg 中没有任何消息(很抱歉,在“开始固件转储”消息之前的内容被截断了,所以没有时间戳,我的理解是崩溃发生后立即发生的)。 FW 重新装弹机制可以工作,但这需要重新连接,所以如果可能的话,最好解决这个问题。 [ 0.000000] Linux version 6.12.105-0-at (builder@71056255c5a6) (aarch64-alpine-linux-musl-cc (Alpine 15.2.0) 15.2.0, GNU ld (GNU Binutils) 2.45.1) #1-Alpine SMP PREEMPT Mon Aug 24 07:48:35 UTC 2026 [...] [ 9.321032] wlan: version = SDIW612---18.99.8.p52-MM6X18540.p33-GPL-(FP92) [...] [ 10.349326] Bluetooth: hci0: FW already running. [ 38.303160] Bluetooth: MGMT ver 1.23 [170117.376944] Bluetooth: hci0: command tx timeout Bluetooth: hci0: ==== Start FW dump === Bluetooth: hci0: ==== FW dump complete === Bluetooth: hci0: Request Firmware: nxp/uartspi_n61x_v1.bin.se Bluetooth: hci0: FW Download Complete: 412940 bytes 如有其他有助于分析的信息,请提出。 谢谢 Re: IW612 bluetooth crash after a few days 1.能否提供HCI日志,以便我们确定是哪个命令超时并生成了固件转储? 您能解释一下您这句话的意思吗?事后是否有命令可以运行,还是应该运行 hcidump 或类似命令来转储进程运行时的所有命令? 3. 要获取 Wi-Fi 驱动程序加载参数,您可以提供以下文件:/lib/firmware/nxp/wifi_mod_para.conf 我们不会使用此文件,因此这里也应该使用默认参数。我们已经将日志级别从默认值降低了,所以 dmesg 在这里也帮不上什么忙(我在之前的回复中已经发送了 dmesg 的链接)。 我会向用户确认他们在此期间是否使用无线网络。 Re: IW612 bluetooth crash after a few days 嗨, @martinetd 1.能否提供HCI日志,以便我们确定是哪个命令超时并生成了固件转储? 2.请提供基于WLAN的使用案例,在WLAN运行的情况下,检查在生成固件转储文件时WLAN是否工作正常? 3.要获取Wi-Fi驱动程序加载参数,您可以提供以下文件:/lib/firmware/nxp/wifi_mod_para.conf 或者您可以向我们提供正常的启动 dmesg 日志,其中包含 WiFi/蓝牙加载的整个过程。我们可以从 dmesg 日志中获取信息。 4.目前,我们没有比您正在使用的版本更新的公开 GitHub 固件版本: imx-firmware/FwImage_IW612_SD at lf-6.18.20_2.0.0 · nxp-imx/imx-firmware · GitHub 所以,我认为这不是一个已知问题。 我们希望获得更多与用例和 HCI 日志相关的信息,以便跟踪发生了什么或重现步骤,从而使我们能够在本地重现问题。 如果您还有其他与此问题相关的信息,请与我们分享。 顺祝商祺! Christine。 Re: IW612 bluetooth crash after a few days 嗨@Christine_Li,谢谢你的快速回复。 > 1.如果您正在使用 btnxpuart 驱动程序,请提供 btnxpuart.c 文件。 我们正在使用https://github.com/nxp-imx/linux-imx中提供的 btnxpuart。基于 lf-6.12.49-2.2.0 版本,您可以在这里找到确切的文件:https://github.com/atmark-techno/linux-6.12-at/blob/6.12.105-r0/drivers/bluetooth/btnxpuart.c > 2. 您使用的是 Wi-Fi 和蓝牙/802.15.4 组合固件吗?还是使用的是单独的固件? 我们同时使用了这两种方式:wifi 驱动程序在启动时加载组合固件,崩溃后重新加载单独的固件(因此日志中会将单独的固件命名为“单独的固件”)。 发生此次崩溃时,组合固件已加载(启动后首次崩溃),但据我了解,两种固件都会出现此问题。 > 3.请问您能否提供一下您的 Wi-Fi 和蓝牙驱动程序加载参数? 我们明确设置的唯一 wifi 参数是 drv_mode = 0x3,用于禁用我们不使用的 wifi direct 接口;我们没有设置任何蓝牙参数。如果你能告诉我如何导出确切的设置,我可以让我们的用户运行命令来获取这些信息。 > 4.请问您能否提供详细的重现步骤? 由于这是基于用户报告,我只能描述一下(RFCOMM 连接每 60 秒轮询一次,持续几天);恐怕这可能取决于芯片实际连接的子设备。 我会尝试找一个可以通过 RFCOMM ping 通的设备,并在本地重现问题,以便为您提供测试脚本(如果需要的话)。但目前我找不到任何关于固件/btnxpuart 驱动程序已知错误的发布说明,所以我想确认是否存在已知错误(也希望您能从固件转储中获取任何信息)。 谢谢 Re: IW612 bluetooth crash after a few days 嗨, @martinetd 1.您是否正在使用我们NXP的btnxpuart蓝牙驱动程序?或者您使用的是Linux开源UART驱动程序? 如果您正在使用 btnxpuart 驱动程序,请提供 btnxpuart.c 文件。 2.您使用的是Wi-Fi和蓝牙/802.15.4组合固件吗?还是使用的是单独的固件? 因为我看到你的日志如下所示,所以我怀疑你使用了单独的固件,需要和你再次确认。 hci0: Request Firmware: nxp/uartspi_n61x_v1.bin.se 3.请问您能否提供一下您的 Wi-Fi 和蓝牙驱动程序负载参数? 4.请问您能否提供详细的重现步骤? 顺祝商祺! Christine。 Re: IW612 bluetooth crash after a few days >> * BlueZ 软件包(目前正在确认确切版本,抱歉我忘了问) 如果这很重要的话,BlueZ 版本是 5.82。 Re: IW612 bluetooth crash after a few days 嗨, @martinetd 1.对于 btmon: 是的,如果出于文件大小的考虑,我们可以记录整个过程,那么我认为你推荐的方法是个好主意。而且,我们也没有比这更好的主意了。 2. 对于固件转储: 我建议使用drvdbg=0xa0037加载驱动程序,这样可以记录更多固件转储和驱动程序转储日志以供分析。   问题发生   日志将自动保存到如下所示的目录中:   ======================================== [ 4221.173141]创建目录 /data/dump_4220 时出错,请尝试在 /var 中创建目录 [ 4221.173147]唤醒设备…… [ 4221.173231]目录 /var/dump_4220 创建成功 [ 4221.173232]目录名称为 /var/dump_4220 [ 4221.173233] === 开始驱动程序信息转储 === [ 4221.173289]DRV 转储数据位于 /var/dump_4220/file_drv_info 中 [ 4221.173306]唤醒设备…… [ 4221.173889]SDIO 功能 0 (0x0-0x9): 43 03 06 00 07 00 00 02 03 00 [ 4221.175173]SDIO 功能 1 (0x4-0xb): 00 00 00 00 ff ff ff ff [ 4221.175879]SDIO Func1: (0x4c) 00 (0x50) 08 (0x54) 07 (0x55) 0c (0x58) 10 (0x59) 00 (0x5c) 00 (0x5d) 00 [ 4221.176284]SDIO Func1 (0xc0-0xca): 直流铁 96 00 31 11 00 37 37 02 20 [ 4221.177301] | [ 4221.275861]SDIO Func1 (0xc0-0xca): 直流 fe a1 00 3b 00 00 37 37 02 20 [ 4221.276501]驱动程序信息总字节数 = 263150 (0x403ee) [ 4221.276503] === 驱动程序信息转储结束 === 唤醒设备... [ 4221.276555] ==== 调试模式输出开始:4220.878602 === ====================================================   如果转储文件没有自动生成在“/var”或“/data”目录下,则可以使用以下“ cat /proc/mwlan/adapter0/fw_dump > file_fw_dump”命令手动收集。     2. 如果您检查后发现 dmesg 日志中没有打印目录信息,或者您降低了日志级别,请按以下方式获取:   - echo debug_dump > /proc/mwlan/adapter0/config - 稍等片刻(1 或 2 分钟) 对于 fw_dump: - cat /proc/mwlan/adapter0/fw_dump > file_fw_dump 对于 drv_dump: cat /proc/mwlan/adapter0/drv_dump > file_drv_dump   对于此类固件崩溃问题,btmon 日志是扩展日志,以便更好地了解客户的使用案例和问题场景。FW_dump 是我们最重要的日志文件。   另外,正如之前讨论过的,请在此测试期间询问您的客户有关 WiFi 使用情况。   顺祝商祺! Christine。 Re: IW612 bluetooth crash after a few days 好的,对于btmon,我会提出请求(并询问有关wifi使用情况)。 不过我首先想确认一下固件转储:我得到的转储是蓝牙转储,但你描述的似乎是无线转储。 根据客户提供的跟踪信息,WiFi驱动程序似乎没有崩溃,所以我认为drvdbg=在这里不会起作用? 另外,如果您确实需要在合并固件的情况下获取无线固件(使用 `echo debug_dump > /proc/mwlan/adapter0/config`),问题在于蓝牙驱动程序会自动重新加载新固件并重启适配器,因此我们需要禁用固件加载才能使其正常工作。 我同意拥有转储文件对分析很有帮助,所以如果可以改进获取转储文件的方式,我想先了解一下。等我们明确了该怎么做之后,我会一次性向客户询问所有情况。 谢谢! Re: IW612 bluetooth crash after a few days > btmon 谢谢你的澄清。 崩溃需要几天时间才能重现,而且考虑到日志文件的大小(我看到一分钟后就有 100KB,所以两天后大约有 300MB),恐怕存储/共享完整的日志文件不太实际。 遗憾的是,btmon 似乎没有像 tcpdump 那样的“循环记录”模式,但如果您只对崩溃前几分钟的情况感兴趣,我可以请求我们的客户每隔 5 分钟交替提供两个日志文件,这样我们就能获得最后 5 分钟的数据了。 像(未经测试的)那样寄送最后一批样品是否可以接受?(请注意,在两次运行之间会有一小段时间不会被记录事件……) I=0; while ! [ -e /sys/class/bluetooth/hci0/devcoredump/data ]; do timeout 300s btmon -K -t -w log.$I; I=$((I+1%3)); done > 核心转储文件无法读取 好吧,这很遗憾,但对此也无能为力。 该文件是在固件转储完成消息之后从 /sys/class/bluetooth/hci0/devcoredump/data 读取获得的。如果这样做不合适,或者有更好的方法来获取有用的数据,我很乐意效劳,但现在我们先专注于 btmon 跟踪。 谢谢 Re: IW612 bluetooth crash after a few days 嗨, @martinetd 您能解释一下您这句话的意思吗?事后是否有命令可以运行,还是应该运行 hcidump 或类似命令来转储进程运行时的所有命令? 启用蓝牙/BLE 后,可以使用以下命令捕获 hci 日志: btmon -w failed_snoop.log & 然后客户执行重现步骤,尝试重现此问题。 failed_snoop.log 将记录蓝牙/BLE 的所有过程。 一旦问题重现,我们可以检查此日志,看看正在执行哪些命令/事件,以便找到一些相关的嫌疑人。 这不是用于在固件崩溃后运行并捕获失败日志的命令。 顺便说一下,我请求我们内部的专家团队帮忙解密提供的固件转储二进制文件: fw_devcorecump.bin 。但很遗憾,解密失败。文件似乎已损坏或数据不足,因此无法解密。 顺祝商祺! Christine。 Re: IW612 bluetooth crash after a few days 嗨, @martinetd 是的你是对的。 由于该问题难以重现,我们也希望捕获我们需要的完整日志。 我向我们的内部团队确认,从 电路板支持包。 6.12.34 开始,btnxpuart 内核模块检测到 IW612 窄带固件卡住了。它会自动执行恢复过程,重置窄带 CPU 并重新下载。BT固件转储文件将自动生成。当命令超时时,也会生成该文件。 所以,你是对的。无需提供 Wi-Fi 转储文件,只需提供 BT 固件转储文件,如果可以的话,也请提供 hci 日志。另外,也请提供一些关于WiFi使用案例和场景的信息。 顺祝商祺! Christine。 Re: IW612 bluetooth crash after a few days 嗨@Christine_Li 抱歉回复晚了,我们现在正值公共假期。 由于该问题难以重现,我们也希望捕获我们需要的完整日志。 好的,我会尽量从客户那里获取更多信息,并在接下来的一两周内尝试重现这个问题。 > 我向我们的内部团队确认,从 BSP 6.12.34 开始,btnxpuart 内核模块检测到 IW612 窄带固件卡住了。它会自动执行恢复过程,重置窄带 CPU 并重新下载。BT固件转储文件将自动生成。当命令超时时,也会生成该文件。 所以,你是对的。无需提供 Wi-Fi 转储文件,只需提供 BT 固件转储文件,如果可以的话,也请提供 hci 日志。另外,也请提供一些关于WiFi使用案例和场景的信息。 感谢您确认不需要 Wi-Fi 转储文件,但这让我对蓝牙转储文件感到困惑:我在原帖中发送的转储文件是 btnxpuart 模块自动生成的,我没有理由相信它被截断了(其大小与我通过向 /sys/class/bluetooth/hci0/device/coredump 写入 1 人为生成转储文件时得到的大小相似)。 获取方法是在崩溃完成后,直接从数据文件中读取(cat)数据: cat /sys/class/bluetooth/hci0/devcoredump/data > fw_dump 是否有更合适的方法来获取数据转储文件? 另外,请原谅我问个很幼稚的问题,但我发送的 dump 文件是以 BT dump 格式打开的吗? 明天我会把所有情况都向客户汇报一遍,但无论如何,我很担心我们只是发送了一个无法再次打开的新转储文件,所以最好能把这个问题弄清楚。 谢谢 多米尼克 Re: IW612 bluetooth crash after a few days 嗨, @martinetd 感谢您的反馈。 关于固件转储。是的,我完全理解您对固件转储的担忧。 因此,我与我们的内部团队再次确认,并再次查阅了我们的应用笔记文档:AN 14710。您捕获固件转储的步骤似乎是正确的,特别是对于BTNXPUART 驱动程序而言。 我会咨询我们内部的专家团队,看看他们能否从您当前共享的转储文件中找到任何有用的信息。可能还有其他我不知道需要做的事情,所以我将与核心研发团队确认。 用于 HCI 日志。 同时,请您协助从最终客户处获取HCI 日志。这将有助于我们分析 HCI 命令序列,并确定我们是否能够重现该问题。 驱动程序和固件版本: 此外,为了再次确认固件和驱动程序版本,请帮忙从主板上读取一下。 我知道您已经提到您正在使用: 驱动程序:mwifiex lf-6.12.49-2.2.0 固件版本:lf-6.18.20_2.0.0 https://github.com/nxp-imx/imx-firmware/tree/lf-6.18.20_2.0.0/FwImage_IW612_SD 但是,如果您能从主板的 dmesg 日志中读取到相关信息,就能再次确认这一点。多谢。 dmesg | grep wlan 然后它会显示如下所示的 WiFi 和固件版本: [ 7.573794] wlan: 版本 = SDIW612---18.99.8.p52--MM6X18543.p18-GPL-(FP92) 其他信息。 另外,请注意,我们不建议使用不匹配的驱动程序和固件。 例如:您正在使用基于lf-6.12.49-2.2.0的驱动程序,但固件基于: lf-6.18.20_2.0.0。相反,我们建议使用版本号相同的固件和驱动程序。 最良好的问候, Christine。 Re: IW612 bluetooth crash after a few days 嗨, @martinetd 感谢您迅速回复并提供我们所需的驱动程序和固件版本信息。 所以,请您帮忙提供HCI 日志、WiFi 和蓝牙使用案例以及固件转储文件。 我这边会要求我们内部团队检查当前的固件转储文件。 双方如有任何最新消息,请在此共同分享。 感谢并致意 Christine。 Re: IW612 bluetooth crash after a few days 感谢您的快速回复,等客户提供HCIlog日志后,我会尽快回复您。 关于版本问题,我同意你的看法,我们升级到最新版本只是为了看看问题是否已在最新版本中得到修复,而且在测试机上升级固件也更容易;6.12.49-2.2.0 固件也出现了同样的问题。 以下是用户 dmesg 日志(包含原始核心转储文件)中的版本信息: [ 9.321032] wlan: 版本 = SDIW612---18.99.8.p52-MM6X18540.p33-GPL-(FP92) 谢谢 Re: IW612 bluetooth crash after a few days 嗨@Christine_Li 感谢您与固件团队核实转储文件的情况,很高兴得知他们能够解密该文件! 我对看门狗定时器很感兴趣,我们从客户那里得到的 dmesg 日志时间戳是 170117 秒(= 1 天 23 小时 15 分 17 秒),这让我很惊讶,但我会问问我们的客户。 关于具体的重现步骤,我其实一直在忙于另一个无关的问题,还没有时间自己尝试重现,希望在你假期回来之前能回复你。 我收到日志后会立即发送给您(很遗憾目前无法确定具体时间,但如果这能帮助您内部解决问题,您可以暂时搁置此问题,直到收到我的回复)。 谢谢! 多米尼克 Re: IW612 bluetooth crash after a few days 嗨, @martinetd 您是否有机会收到客户提供的 HCI 日志、固件转储文件以及其他所需信息? 顺祝商祺! Christine。 Re: IW612 bluetooth crash after a few days 你好, @martinetd 我们的内部团队已经能够解密固件转储文件,以下是调查结果。   运行 7.5 天后出现 WDOG_TIMEOUT 错误 - 没有故障,没有数据损坏,看门狗超时时正在执行有效代码。 两条蓝牙连接均处于嗅探模式——崩溃时无活跃的蓝牙流量   由此看来,你们客户的说法和我们从垃圾场看到的情况似乎存在差异。请帮忙收集以下问题的反馈意见: 从您的客户处获取崩溃时间附近的 HCI 转储日志(btsnoop/hcidump)。 具体的测试步骤——设备数量、配置文件(SPP/A2DP/HFP)、每 60 秒触发一次的触发信号、有效载荷大小、单设备与双设备测试? 另外,您能帮忙查询一下日志的预计到达时间吗? 如果没有日志,就很难找到问题的根本原因。 另外,我将于明天(10月1日至10月7日)开始放7天的全国公共假期,10月8日返回办公室。在此期间,请允许我延迟回复。当然,在此期间,我们墨西哥队会有替补队员。她/他将继续支持解决紧急问题。给您带来的不便,敬请谅解。 顺祝商祺! Christine。 Re: IW612 bluetooth crash after a few days 嗨, @martinetd 感谢您的回复。 当然可以,没有预计完成时间也没关系,谢谢你的坦诚,慢慢来。 然后我们会将其置于搁置状态,等待您的反馈。 顺祝商祺! Christine。 Re: IW612 bluetooth crash after a few days 嗨, @martinetd 我特此留言告知您,我已经回到办公室了。 如果您已经重现了该问题或收到了客户的日志,请随时告知我。 如果还没想好,也请不要着急,不要觉得我在催你,慢慢来就好。 我们随时都乐意为您提供支持! 顺祝商祺! Christine。 Re: IW612 bluetooth crash after a few days 谢谢你及时通知我最新情况。 我刚刚收到客户的回复;他们同意提供追踪信息,一旦有信息我会立即发送给您,但在此之前,我可以确认以下几点: - 未使用 wifi(我们的操作系统通常每隔几分钟就会触发信号,进行一次扫描,但根据客户的说法,此功能已禁用,因此完全不应该使用) - 连接单个设备或多个设备时发生崩溃,连接方式为蓝牙经典 SPP/RFCOMM 模式,连接后不会进行主动扫描。每 5 秒发送一次 ping 请求,每 60 秒发送更多数据(我们将在获得跟踪信息后确认确切大小)。 一旦有 btmon 和相关的 coredump/dmesg 文件,我会在这里再次更新。 谢谢 Re: IW612 bluetooth crash after a few days 嗨, @martinetd 感谢您提供这些有用的信息。 当然,我们会等待 btmon 日志和相关转储文件。 BR, Christine。 Re: IW612 bluetooth crash after a few days 嗨@Christine_Li 我们的客户在启用跟踪功能后重现了该问题,我已将跟踪信息附上: - btmon_stripped.2 包含崩溃时刻的 btmon 跟踪信息;另外两个文件包含前 10 分钟的数据,以便了解发送的消息。很遗憾,传输的数据包含我们客户的敏感信息,所以我已将 EVENT、ACL TX、ACL RX 和 CTRL_EVENT 数据包中的 ASCII 数据重写为“x”。我已使用 btmon -r 检查过文件可读/可理解,但如果我弄错了什么,请告诉我;如有需要,我也可以私下获得分享原始跟踪文件的权限。 - dmesg.log 文件包含崩溃前的 dmesg 日志(btmon 文件涉及第二次崩溃)。 - fw_devcoredump.bin 文件是在第二次崩溃后生成的,但遗憾的是,我不确定当再次发生崩溃时,更新转储文件的机制是否正常工作……如果数据不匹配,我深表歉意,但至少希望它能作为一个样本点。如果需要我要求客户再次重现问题,请告知。 谢谢! Re: IW612 bluetooth crash after a few days 嗨@Christine_Li 你有没有机会查看我两周前提供的痕迹? 谢谢 Re: IW612 bluetooth crash after a few days 嗨, @martinetd 抱歉回复晚了。我们的案例系统未能成功同步您从社区提交的更新。 我现在就查一下,尽快回复您。 同时,我将在我们的案件系统中重新开启相关案件,以便我们能够及时跟踪您的更新,避免因我们的系统而出现此类回复延迟的情况。 BR, Christine。 Re: IW612 bluetooth crash after a few days 嗨, @martinetd 我已经将日志提供给了我们内部的专家团队,让他们解码固件转储文件。 如有任何更新,我会通知您。 BR, Christine。 Re: IW612 bluetooth crash after a few days 嗨, @martinetd 我们已分析了您提供的日志,分析结果如下。 从 dmesg 日志中可以看到: 在 17,904 秒和 17,915 秒(大约 5 小时的运行时间)时,出现两条 hci0: 命令 tx 超时消息(故障 1)。 从 17936 秒到 17961 秒,屏幕上依次显示“开始固件转储”和“固件转储完成”。随后,固件 nxp/uartspi_n61x_v1.bin.se被重新加载。 在 55,551 秒和 55,562 秒(重新加载后约 10.4 小时),出现相同的两个命令 tx 超时消息(失败 2)。 从 55,567 秒到 55,592 秒,相同的固件转储和固件重新加载序列重复进行。   来自 HCI 日志(btmon_stripped.2) HCI#227 和 #228:控制器的最后事件。对于两个连接句柄 0x0001 和 0x0002,存在两个模式更改事件(嗅探模式,50 毫秒间隔)。 HCI#230:主机为句柄 0x0002 发送 HCI_Exit_Sniff_Mode。控制器始终没有返回完整的事件信息。 HCI#231:命令发送超时,2 秒后。 HCI#234:主机为句柄 0x0001 发送 HCI_Exit_Sniff_Mode。控制器仍然没有反应。 HCI#235:命令发送超时,2 秒后。 HCI#237:开始固件转储。第 238 帧:控制器发送 HCI 硬件错误事件(代码 0xB0)。 HCI#250 #251:固件已重新加载。HCI#252:主机发送 HCI RESET,初始化完成。   从这些日志来看,控制器停止响应 HCI 命令,目前我们正在与内部团队进一步核实此事。与此同时,请您协助我们解答以下问题: 如何在本地重现此问题?我们更倾向于看看能否在本地复现。 该问题的再发频率是多少?到目前为止,我只知道它非常低。如果您能提供更多细节,我们将不胜感激。 您的具体使用场景是什么?您的应用程序是否需要嗅探模式?日志显示有 2 台设备连接,而您提到只有 1 台设备连接。因此,我们需要与您再次确认。 BR, Christine。 Re: IW612 bluetooth crash after a few days 谢谢你的回复 >如何在本地重现此问题?我们希望能够在本地环境中重现该问题。 很抱歉,我这边还没能尝试重现这个问题;目前我掌握的信息和你一样多。我确实尝试用我控制的两台设备设置一个测试,但我没能弄明白如何从 bluez 堆栈中设置嗅探模式,而且现在时间也不够了…… 据我所知,它应该类似于我们在 btmon 中看到的情况,即与 RFCOMM 建立连接,在空闲时启用嗅探模式,并定期交换一些小消息(5-66 字节)(有人告诉我应该每 5 秒发送一次 keepalive,但我还有 10 分钟的日志,似乎并没有)。我每隔 60 秒会看到小幅爆发) 我其实不太清楚如何操作嗅探模式,用户程序每次传输数据时都需要手动切换(进入/退出嗅探模式)吗?或者 bluez 堆栈会自动处理这种情况,并在空闲时重新进入嗅探模式? 我会在接下来的几天里尽量抽出时间再试一次…… >该问题的重现频率如何?我目前只知道频率很低。如果您能提供更多详细信息,我们将不胜感激。 我被告知“每隔几天就会发生一次”,但从日志来看,这种情况发生的频率似乎更高一些,这可能是因为他们将设置从 1 台设备切换到了 2 台设备。 > 您的具体使用场景是什么?您的应用程序是否需要嗅探模式?日志显示有 2 台设备连接,而您提到只有 1 台设备连接。因此,我们需要与您再次确认。 他们使用嗅探模式来节省电量,而且我被明确告知这是硬性要求(他们连接的目标设备不支持 BLE,所以他们使用嗅探模式来限制监听的时间段,从而节省电量)。 据我了解,问题可能出现在一个或多个设备上,但我没有具体说明要重试 btmon 跟踪的设备数量。 谢谢! Re: IW612 bluetooth crash after a few days 嗨, @martinetd 感谢您提供信息。 当然,如果您能重现此问题,请将详细步骤分享给我们。 与此同时,我们的内部团队正在分析固件转储文件。 如有任何更新,请随时互相告知。 BR, Christine。 Re: IW612 bluetooth crash after a few days 嗨, @martinetd 感谢您的耐心等待。 我们今天从内部团队收到了一份 PVT 固件,由于我们无法在本地重现该问题,请帮忙检查并确认该共享的 PVT 固件是否解决了该问题。   固件详情: 固件 名称 : PVT_FW_1_combo.bin.se MD5SUM: c9eb78febccafa4772ed6c216215362a 注意:此固件仅用于验证目的,不会用于任何正式版本。 如果发现任何其他问题,请协助检查并分享所需的固件转储、btmon 日志和 dmesg 日志。 BR, Christine。 Re: IW612 bluetooth crash after a few days 谢谢你! 我会请我们的客户在目标设备上安装 PVT_FW_1_combo.bin.se,并将其作为 /lib/firmware/nxp/sduart_nw61x_v1.bin.se 安装,看看他们是否能重现问题,如果能重现,请提供日志和更多重现问题的详细信息。 (安装固件后,我在 dmesg 中看到以下版本信息:) [ 8.853049] wlan: 版本 = SDIW612---18.92.8.p52.2, -1-gc524d609-Test--MM6X18543.p18-GPL-(FP92) ) Re: IW612 bluetooth crash after a few days 嗨, @martinetd 是的,版本看起来是正确的。 我们是否有来自终端客户的最新进展? BR, Christine。
View full article
ARINC615A Data loading with JTAG Access password protected When HSE firmware is not installed, SWD/JTAG access on the S32K3 can be restricted using the CUST_DB_PSWD_A field and device lifecycle configuration. Would enabling this password protection have any impact on performing an ARINC 615A software data load to the processor, assuming the update is handled by application or bootloader software rather than through the debug interface? Re: ARINC615A Data loading with JTAG Access password protected CUST_DB_PSWD_A only restricts SWD/JTAG debug access. I am not familiar with the details of your ARINC 615A implementation, but if the software load is handled entirely by your application or bootloader, I would not expect the debug password itself to have any impact. Ultimately, this is application-specific and depends on how ARINC 615A has been implemented in your system. If the update mechanism does not use the debug interface, debug access restrictions should generally be independent of the software loading process. Any additional limitations would depend on your lifecycle configuration and application security design.
View full article
参照構成パス Simulinkでハードウェアを構成する際に、参照構成のディレクトリを相対パスに変更しようとしています。 Simulink -> HW-Settings -> Hardware Implementation -> Target hardware resources -> Referenced Configuration 参照構成パス = '.\generated\referenced_config' 残念ながら、ここでは相対パスを入力することはできません。 また、MATLABスクリプトで進路を設定することもまだできません。 スクリプトはCoderTargetDataにパスを設定しているように見えますが、実際には適用されていません。 古いパスが引き続き有効になるか、空のパスが適用されます。 参照設定に対して相対パスを設定する方法はありますか? Re: refence configuration path こんにちは、 @AlexG124 さん、 詳細を教えていただきありがとうございます。ご使用中のMBDTツールボックスバージョンとMATLABバージョンについて教えていただけませんか? もしS32K3ツールボックスを使っているなら、model_ref/s32k3xx_refconfig_s32ctフォルダの下に参照された設定ワークフローを示すモデル例があります。ここにはs32k3xx_refconfig_update_paths_callback.mというMATLABスクリプトがあり、あなたの目標達成に役立つかもしれません。 また、ご参照の構成方法、使用方法、アプリケーションの流れについても詳しく教えていただけると助かります。 よろしくお願いいたします。 ドラゴス
View full article
HB200x AUTOSAR R21-11 バージョン 0.8.0 S32K3_RTD_6_0_0_D2506_ASR_REL_4_7_REV_0000_2025 がサポートしていません こんにちは、NXPさん。 HB200x AUTOSAR仕様SDKをS32 Design Studioに統合しようとしましたが、以下のエラーメッセージが表示されます。 問題点:Mc33hbはツールチェーン/IDEプロジェクトに存在しません。プロジェクトはコンパイルできません! レベル: エラー タイプ:検証 ツール:ツールチェーン/IDEプロジェクト 起源:ペリフェラル ターゲット:ツールチェーン/IDEプロジェクト:M7_0 リソース:platform.driver.mc33hb CDD_Mb33Hb.c ファイルでさえCDD_Mb33Hb.hなどは、SDKがS32 Design Studioアプリケーション(v3.6.4)にインストールされた際には追加されていませんでした。 Re: HB200x AUTOSAR R21-11 Version 0.8.0 not supported by S32K3_RTD_6_0_0_D2506_ASR_REL_4_7_REV_0000_ こんにちは、 どうやら間違ったRTDバージョンを使用しているようです。HB200x AUTOSAR R21-11 0.8.0リリースノートに基づき、このソフトウェアはSW32K3_RTD_4.4_R21-11_3.0.0_D2303_DS_updatesite.zip(S32 Design Studio IDE v3.5にインストールする必要があります)上で使用可能です。 PetrS_0-1789471295419.png BR、ペトル Re: HB200x AUTOSAR R21-11 Version 0.8.0 not supported by S32K3_RTD_6_0_0_D2506_ASR_REL_4_7_REV_0000_ 最新のAUTOSARライブラリを使いたい場合、RTD 6.0.0以上をサポートするHB200x SDKの他バージョンはありますか? Re: HB200x AUTOSAR R21-11 Version 0.8.0 not supported by S32K3_RTD_6_0_0_D2506_ASR_REL_4_7_REV_0000_ 私たちはRTD 6.0.0以降の使用を推奨しています。既存のドライバをRTD 6.0.0と互換性のあるものにアップグレードする方法があれば助かります。アドバイスをお願いします。
View full article
refence configuration path In Simulink, when configuring the hardware, I am trying to change the directory for the reference configuration to a relative path. Simulink -> HW-Settings -> Hardware Implementation -> Target hardware resources -> Referenced Configuration Reference Configuration Path = '.\generated\referenced_config' Unfortunately, it is not possible to enter a relative path here. Nor have I so far been able to set the path via a MATLAB script. Although the script appears to set the path in CoderTargetData, it is not actually applied. Either the old path remains active, or an empty path is applied. Is there a way to set a relative path for the reference configuration? Re: refence configuration path Hi, @AlexG124, Thanks for the details. Could you please help us and let us know what are the MBDT toolbox version, as well as the MATLAB version that you are currently using? In case you are using S32K3 toolbox, there is a model example showcasing the referenced configuration workflow, under model_ref/s32k3xx_refconfig_s32ct folder. Here you will find a MATLAB script called s32k3xx_refconfig_update_paths_callback.m that could help in achieving your goal. It will be also helpful if you could let us know more details on your referenced configuration way of working, usage and application flow. Best regards, Dragos
View full article
参考配置路径 在 Simulink 中配置硬件时,我尝试将参考配置的目录更改为相对路径。 Simulink -> 硬件设置 -> 硬件实现 -> 目标硬件资源 -> 参考配置 参考配置路径 = '.\generated\referenced_config' 很遗憾,这里无法输入相对路径。 到目前为止,我还没能通过 MATLAB 脚本设置路径。 虽然脚本似乎在 CoderTargetData 中设置了路径,但实际上并没有应用。 要么保持旧路径有效,要么应用一个空路径。 是否可以为参考配置设置相对路径? Re: refence configuration path 你好, @AlexG124 , 谢谢你提供的详细信息。请问您能否告知我们您目前使用的 MBDT 工具箱版本以及 MATLAB 版本? 如果您正在使用S32K3工具箱,则在model_ref/s32k3xx_refconfig_s32ct文件夹下有一个模型示例,展示了所引用的配置工作流程。这里有一个名为s32k3xx_refconfig_update_paths_callback.m的 MATLAB 脚本,它可以帮助您实现目标。 如果您能与我们联系并提供更多关于您所参考的配置的工作方式、使用方法和应用程序流程的详细信息,将对我们很有帮助。 顺祝商祺! 德拉戈斯
View full article
IW612 bluetooth crash after a few days Hello, One of our users reported us a bug with the murata LBES5PL2EL-923 (IW612 core) bluetooth functionality, where the bluetooth stack crashes after a few days connected to a device over bluetooth static RFCOMM/SPP (The original report is public and available in Japanese at https://armadillo.atmark-techno.com/forum/armadillo/31772 ) Are there any known bugs about this? Software setup: * linux 6.12 based on lf-6.12.49-2.2.0 (exact source tree: https://github.com/atmark-techno/linux-6.12-at/tree/6.12.105-r0 ) this is a BT problem but in case it matters the wireless driver is based on mwifiex lf-6.12.49-2.2.0 * firmware updated to the latest from the imx-firmware repo at lf-6.18.20_2.0.0 https://github.com/nxp-imx/imx-firmware/tree/lf-6.18.20_2.0.0/FwImage_IW612_SD * BlueZ stack (currently confirming the exact version, sorry I forgot to ask) * the board is connected to a single device over *bluetooth classic* (not BLE), with RFCOMM/SPP. Every 60 seconds the application sends a message and gets a reply (simple polling). After a few days there is a command timeout and the BT driver restarts I've attached a firmware dump (obtained from /sys/class/bluetooth/hci0/devcoredump/data after crash happened), assuming it can be useful, there is no message in dmesg until the crash (I'm sorry it's truncated before the "Start FW dump" message so there is no timestamp for these, my understanding is that it was immediately afterwards) The FW reloading mechanism works, but this requires a reconnection so would be better addressed if possible. [ 0.000000] Linux version 6.12.105-0-at (builder@71056255c5a6) (aarch64-alpine-linux-musl-cc (Alpine 15.2.0) 15.2.0, GNU ld (GNU Binutils) 2.45.1) #1-Alpine SMP PREEMPT Mon Aug 24 07:48:35 UTC 2026 [...] [ 9.321032] wlan: version = SDIW612---18.99.8.p52-MM6X18540.p33-GPL-(FP92) [...] [ 10.349326] Bluetooth: hci0: FW already running. [ 38.303160] Bluetooth: MGMT ver 1.23 [170117.376944] Bluetooth: hci0: command tx timeout Bluetooth: hci0: ==== Start FW dump === Bluetooth: hci0: ==== FW dump complete === Bluetooth: hci0: Request Firmware: nxp/uartspi_n61x_v1.bin.se Bluetooth: hci0: FW Download Complete: 412940 bytes If there is any other information that would be useful for analysis please ask Thank you Re: IW612 bluetooth crash after a few days > 1.Is it possible to provide us the HCI logs as well as that will help to identify which command is getting timeout for which the firmware dump is getting generated. Could you clarify what you mean with this? Is there a command that can be run after the fact, or should we run hcidump or equivalent to dump all commands while the process is running? > 3.To get Wi-Fi driver loading parameters, you can provide us the: /lib/firmware/nxp/wifi_mod_para.conf We do not use this file so default parameters should be used here as well. We've reduced the log level from the default values so dmesg will not be of much help here either (I sent a link to dmesg in the previous reply) I'll check with our user if they use wifi at all during this time Re: IW612 bluetooth crash after a few days Hi, @martinetd  1.Is it possible to provide us the HCI logs as well as that will help to identify which command is getting timeout for which the firmware dump is getting generated. 2.Can you please provide the WLAN based use case as WLAN is running then check if WLAN is working fine during the firmware dump is getting generated? 3.To get Wi-Fi driver loading parameters, you can provide us the: /lib/firmware/nxp/wifi_mod_para.conf  or you can provide us a normal booting dmesg logs which including the whole process that WiFi/bluetooth loading. We can get the info from dmesg logs. 4.Currently, we do not have newer public github FW release than the one you are using: imx-firmware/FwImage_IW612_SD at lf-6.18.20_2.0.0 · nxp-imx/imx-firmware · GitHub So, I do not think this is an known issue. We prefer to have more info related to the use case and hci logs to track what happened or reproduce steps so that we can reproduce the issue locally. So if you have any further other info related to the issue, please share with us. Best regards, Christine. Re: IW612 bluetooth crash after a few days Hi @Christine_Li thank you for the quick reply > 1. If you are using btnxpuart driver, please help to provide me btnxpuart.c. We are using the btnxpuart provided in https://github.com/nxp-imx/linux-imx based on version lf-6.12.49-2.2.0 , you can find the exact file here https://github.com/atmark-techno/linux-6.12-at/blob/6.12.105-r0/drivers/bluetooth/btnxpuart.c > 2. Are you using Wi-Fi and Bluetooth/802.15.4 combo FW? Or you are using separate FW? We are using both: the wifi driver loads the combo FW at boot, and after crash the separate FW is reloaded (hence log naming the separate FW) When this crash happened the combo FW was loaded (first crash after boot) but my understanding is that it reproduces with both > 3. Can you please help to provide your Wi-Fi and Bluetooth driver load parameters? The only wifi parameter we explicitly set is drv_mode = 0x3 to disable the wifi direct interface we do not use; we do not set any bluetooth parameter. If you can tell me how to dump the exact settings I can ask our user to run commands to get the info for us. > 4.Can you please let me know your detailed reproduce steps? Since this is based on a user report I can't say much more than the description I gave (RFCOMM connection polled every 60s for a few days); I'm afraid it might depend on the actual sub device the chip is connected to. I'll try to find a device that can be pinged over RFCOMM and reproduce locally to provide you with a test script if that helps, but for now I couldn't find any release note with known bugs for the firmware/btnxpuart driver so I'd like to confirm if there is a known bug (and hopefully if you can get any information from the firmware dump) Thank you Re: IW612 bluetooth crash after a few days Hi, @martinetd  1.Are you using our nxp's btnxpuart driver for bluetooth? or you are using Linux Open Source Uart driver? If you are using btnxpuart driver, please help to provide me btnxpuart.c. 2.Are you using Wi-Fi and Bluetooth/802.15.4 combo FW? Or you are using separate FW? Because I see your log as below, so I just suspect you are using separate FW, need to double confirm with you. hci0: Request Firmware: nxp/uartspi_n61x_v1.bin.se 3.Can you please help to provide your Wi-Fi and Bluetooth driver load parameters? 4.Can you please let me know your detailed reproduce steps?  Best regards, Christine. Re: IW612 bluetooth crash after a few days > * BlueZ stack (currently confirming the exact version, sorry I forgot to ask) in case it matters, the BlueZ version is 5.82 Re: IW612 bluetooth crash after a few days Hi, @martinetd  1.For btmon: ==>Yes, if we could record the whole process for size reason, then I think the method you recommend would be a good idea. And also, we have not other better ideas than that one. 2.For FW dump: I will recommend to load driver with drvdbg=0xa0037, it can record more fw dump and also driver dump logs for analysis.   issue happened   logs will automatically save in this directory like below:   ======================================== [ 4221.173141] Create directory /data/dump_4220 error, try create dir in /var [ 4221.173147] Wakeup device... [ 4221.173231] Create directory /var/dump_4220 successfully [ 4221.173232] Directory name is /var/dump_4220 [ 4221.173233] === START DRIVER INFO DUMP=== [ 4221.173289] DRV dump data in /var/dump_4220/file_drv_info [ 4221.173306] Wakeup device... [ 4221.173889] SDIO Func0 (0x0-0x9): 43 03 06 00 07 00 00 02 03 00 [ 4221.175173] SDIO Func1 (0x4-0xb): 00 00 00 00 ff ff ff ff [ 4221.175879] SDIO Func1: (0x4c) 00 (0x50) 08 (0x54) 07 (0x55) 0c (0x58) 10 (0x59) 00 (0x5c) 00 (0x5d) 00 [ 4221.176284] SDIO Func1 (0xc0-0xca): dc fe 96 00 31 11 00 37 37 02 20 [ 4221.177301] | [ 4221.275861] SDIO Func1 (0xc0-0xca): dc fe a1 00 3b 00 00 37 37 02 20 [ 4221.276501] Drv info total bytes = 263150 (0x403ee) [ 4221.276503] === DRIVER INFO DUMP END===Wakeup device... [ 4221.276555] ==== DEBUG MODE OUTPUT START: 4220.878602 === ====================================================   If the dump is not auto-generated at "/var" or "/data" it can be collected manually using below "cat /proc/mwlan/adapter0/fw_dump > file_fw_dump" command.     2. If you check it doesn't print the directory in dmesg logs or in your case, you decrease the log level, then please get it in below way:   - echo debug_dump > /proc/mwlan/adapter0/config - Wait for some time (1 or 2 min) for fw_dump: - cat /proc/mwlan/adapter0/fw_dump > file_fw_dump for drv_dump: cat /proc/mwlan/adapter0/drv_dump > file_drv_dump   For such kind of FW crash issue, btmon log is the extended logs to better understand customer's use case and also issue scenarios. FW_dump is the most important logs for us.    And also, as discussed before, please also ask your customer about wifi use case during this test.   Best regards, Christine. Re: IW612 bluetooth crash after a few days > btmon Thank you for clarifying The crash takes a couple of days to reproduce, and I'm afraid it might not be practical to store/share a full log given how big it gets (I see 100KB after a minute so ~300MB in 2 days) Unfortunately btmon does not seem to have a "cyclic recording" mode like tcpdump, but if you're only interested in the few minutes before the crash then I can request our customer logs alternating two files every e.g. 5 minutes so we can get the last 5 minutes? Would something like (untested) be acceptable, sending the last samples? (note there is a small window between runs where events are not logged...) I=0; while ! [ -e /sys/class/bluetooth/hci0/devcoredump/data ]; do timeout 300s btmon -K -t -w log.$I; I=$((I+1%3)); done > coredump not readable Ok, this is a shame but there is not much to do about it. The file was obtained reading from /sys/class/bluetooth/hci0/devcoredump/data after the FW dump complete message, if that is not appropriate or there is a better way to get useful data I'll be happy to oblige but let's focus on the btmon traces for now. Thank you Re: IW612 bluetooth crash after a few days Ok for btmon, I will request that (and ask about wifi usage) I'd like to confirm fw dump first though: the dump I obtained was a bluetooth dump, but you seem to describe a wireless dump. In the traces from customer the wifi driver did not seem to crash, so I believe drvdbg= will not be effective there? Also in case you do need the wireless firmware in the combined firmware case (with `echo debug_dump > /proc/mwlan/adapter0/config`), the problem is that the BT driver automatically reloads a new firmware and restarts the adapter, so we would need to disable the firmware loading for this to work I agree having a dump is useful for analysis so if it's possible to fix the way the dump is obtained I'd like to know first, I'll ask our customer everything at once after we're clear on what to do Thanks Re: IW612 bluetooth crash after a few days Hi, @martinetd  Could you clarify what you mean with this? Is there a command that can be run after the fact, or should we run hcidump or equivalent to dump all commands while the process is running? ==>hci log can be captured after enabled Bluetooth/BLE with below commands: btmon -w failed_snoop.log & Then customer execute their reproduce steps, and try to reproduce this issue. The failed_snoop.log will record all of the process of bluetooth/BLE. Once issue is reproduced, we can check this log to see what kind of commands/events are executing, so that we will have some related suspects. It is not a command to run and capture the failed logs after FW crash. By the way, I requested our internal expert team help to decrypt the provided fw dump bin file: fw_devcorecump.bin, but unfortunately, it is not getting decrypted  successfully. It seems like file is corrupt or not having enough data so not able to decrypt. Best regards, Christine. Re: IW612 bluetooth crash after a few days Hi, @martinetd  Yes, you are right.  Because the issue is difficult to reproduce, we also prefer to capture full logs that we need. I checked with our internal team that from BSP 6.12.34 onward, the btnxpuart kernel module detects that IW612 narrowband firmware is stuck. It proceeds automatically with a recovery process by resetting the narrowband CPU and downloading it again. The BT FW dump will automatically generate. When command timeout happens, at that time it will generate. So, you are right. Do not need to provide Wi-Fi dump and only provide BT FW dump and also hci logs if possible. And also about WiFi use case and scenarios, please also help to provide. Best regards, Christine. Re: IW612 bluetooth crash after a few days hi @Christine_Li  Sorry for the slow reply we're in the middle of public holidays here > Because the issue is difficult to reproduce, we also prefer to capture full logs that we need. Ok, I will try to get as much as possible from the customer and also see if I can reproduce myself over the next week or two > I checked with our internal team that from BSP 6.12.34 onward, the btnxpuart kernel module detects that IW612 narrowband firmware is stuck. It proceeds automatically with a recovery process by resetting the narrowband CPU and downloading it again. The BT FW dump will automatically generate. When command timeout happens, at that time it will generate. > So, you are right. Do not need to provide Wi-Fi dump and only provide BT FW dump and also hci logs if possible. And also about WiFi use case and scenarios, please also help to provide. Thank you for confirming the Wi-Fi dump is not needed, but that leaves me in a pinch about the BT dump: The dump I sent in the original post comes from what the btnxpuart module automatically generated, and I have no reason to believe it was truncated (the size is similar to what I get when I artificially generate a dump by writing 1 to /sys/class/bluetooth/hci0/device/coredump ) The way it was obtained was just reading (cat) from the data file after the crash was complete: cat /sys/class/bluetooth/hci0/devcoredump/data > fw_dump Is there a more appropriate way to get the dump? Also, please forgive the naive question, but was the dump I sent opened as a BT dump? I'll recap everything to our customer tomorrow regardless of this point, but I'm quite worried that we'll just send a new dump that won't be openable again, so it'd be great to clear this up. Thank you Dominique Re: IW612 bluetooth crash after a few days Hi, @martinetd  Thanks for your feedback.  About FW dump. Yes, I totally understood your concerns about FW dump. So, I double checked with our internal team and also double checked our Application Note document: AN14710. The procedure followed by you to capture FW dump appears to be correct, specifically for the BTNXPUART driver. I will check with our internal expert team to see if they can identify any useful information from the current your shared dump file.  There might be something else need to be done which I am not aware so I will check with core R&D team. For HCI log. In the meantime, please also help obtain the HCI logs from your end customer. This will allow us to analyze the HCI command sequence and determine whether we can reproduce the issue on our side. For Driver and FW version: Besides, to double confirm the FW and Driver version, please also help to read it from board. I know you already mentioned that you are using: Driver: mwifiex lf-6.12.49-2.2.0 FW: lf-6.18.20_2.0.0 https://github.com/nxp-imx/imx-firmware/tree/lf-6.18.20_2.0.0/FwImage_IW612_SD But if you can read it from the board dmesg logs, it will double confirm for us. Thanks a lot. dmesg | grep wlan Then it will show the WiFi and FW version like below: [ 7.573794] wlan: version = SDIW612---18.99.8.p52--MM6X18543.p18-GPL-(FP92) Other info. Also for your information, we do not encourage to use the mismatched Driver and FW. For example: you are using driver based on lf-6.12.49-2.2.0, but FW is based on: lf-6.18.20_2.0.0. Instead, we encourage to use the matched FW and driver version with same tag. Best regard, Christine. Re: IW612 bluetooth crash after a few days Thank you for the quick reply, I'll come back to you with the hcilog when our customer can provide it Regarding the version, I agree with you, we've only upgraded to the latest version in case it was fixed there and it's easier to upgrade just the firmware on a test machine; the problem also occurred with the 6.12.49-2.2.0 firmware. The version from our user's dmesg (with the original coredump) is as follow: [ 9.321032] wlan: version = SDIW612---18.99.8.p52-MM6X18540.p33-GPL-(FP92) Thanks Re: IW612 bluetooth crash after a few days Hi, @martinetd  Thanks for your quick reply to provide us the requested driver and FW version info. So from your side, please help to provide HCI logs + WiFi and Bluetooth use case and FW dump together. From my side, I will request our internal team to check current FW dump. Once have any updates from our each side, please share together here. Thanks and Regards, Christine. Re: IW612 bluetooth crash after a few days Hi @Christine_Li  Thank you for checking with the firmware team about the dump, it's great to read that they were able to decrypt it! I'm curious about the watchdog timer, the dmesg we obtained from the customer had a timestamp of 170117s (= 1 day 23 hours 15 minutes 17 seconds) so I'm surprised, but I will ask our customer About the precise reproduction step I've actually been busy with another unrelated issue and haven't found time to try to reproduce myself, I'll hopefully get back to you by the time you're back from holidays. I'll also send logs as soon as I get them (unfortunately no ETA, but feel free to put the issue on hold until you hear back from me if that helps internally) Thank you, Dominique Re: IW612 bluetooth crash after a few days Hi, @martinetd  Did you get any chance to receive the HCI logs together with FW dumps and also requested info from your customer? Best regards, Christine. Re: IW612 bluetooth crash after a few days Hello, @martinetd  Our internal team has been able to decrypt the firmware dump, and below are the findings.   WDOG_TIMEOUT after 7.5 days uptime - no fault, no corruption, valid code executing when watchdog expired. 2 BT links and both in SNIFF mode - no active BT traffic at crash   So from this it looks like there is a difference between what your customer is saying and what we are seeing from the dump. Please help to get feedback for below: HCI dump logs (btsnoop/hcidump) from your customer around crash time. Exact test steps- number of devices, profiles (SPP/A2DP/HFP), what triggers every 60 seconds, payload size, single vs 2 devices? Also, can you help to get the ETA for the logs? Without logs, it will be hard to find the root cause of the issue. And for your info, I will start my public National holiday from tomorrow(Oct 1st to Oct 7th) for 7 days, will come back to office on Oct 8th. During this period, please allow me have delay reply. And for sure, I will have a back up in our Mexico team during this period. She/he will continue to support for urgent issue. Sorry for the inconvenience to you. Best regards, Christine. Re: IW612 bluetooth crash after a few days Hi, @martinetd  Thanks for your reply. Sure, no ETA is ok, thanks for your honest and take your time. Then we will put it in hold status and wait for your feedback. Best regards, Christine. Re: IW612 bluetooth crash after a few days Hi, @martinetd  I prefer to leave this message to you to let you know that I am already back to office. So if you already have reproduce the issue or received logs from your customer, please do not hesitate to let me know. If still not yet, please also feel free and do not feel that I am pushing you, just take your time. We will be always happy to support you at any time! Best regards, Christine. Re: IW612 bluetooth crash after a few days Hi, @martinetd  Thanks for providing the useful info. Sure, we will just wait for the btmon logs and related dump. BR, Christine. Re: IW612 bluetooth crash after a few days Thank you for keeping me updated. I've just heard back from our customer; they agreed to provide a trace and I'll send it here once available but until then can confirm a few things: - wifi is not used (our OS normally triggers a scan every few minutes but this is disabled according to customer, so it should not be used at all) - the crash happens when connecting to a single device or multiple devices, the connection is in bluetooth classic SPP/RFCOMM mode, no active scan is done once connected. There is a ping every 5 seconds and more data every 60 seconds (will confirm exact size when we get a trace). I'll update here again with btmon and associated coredump/dmesg once available. Thanks Re: IW612 bluetooth crash after a few days hi @Christine_Li  our customer could reproduce with traces enabled, I'm attaching you traces: - btmon_stripped.2 contains btmon traces at the moment of the crash; the other two files contain the previous 10 minutes of data to get an idea of messages sent. Unfortunately the transmitted data contained sensitive information for our customer, so I've rewritten ascii data as 'x' in EVENT, ACL TX, ACL RX and CTRL_EVENT packets... I've checked the file is readable/sensible with btmon -r but if I messed something up please let me know; I can also probably get permission to share the original traces privately if needed. - dmesg.log includes dmesg up to crash (the btmon concerns the second occurence) - fw_devcoredump.bin was taken after the second crash, but unfortunately I'm not sure if the mechanism works properly to update the dump when crash happens again... I'm sorry if the data doesn't match but at least hopefully it'll be a sample point. Please ask if I need to request our customer reproduces again. Thanks Re: IW612 bluetooth crash after a few days hi @Christine_Li Have you had a chance to look at the traces I provided 2 weeks ago? Thanks Re: IW612 bluetooth crash after a few days Hi, @martinetd  Sorry for my delay reply. Our cases system did not sync your updates successfully from  the community.  Let me check it now and will reply to you ASAP. At the same time, I will reopen the related case in our case system so that we can track your updates in time and avoid such kind of delay replying scenarios because of our system. BR, Christine. Re: IW612 bluetooth crash after a few days Hi, @martinetd  I already provided the logs to our internal expert team to decode the fw dump. Once have any updates, I will let you know. BR, Christine. Re: IW612 bluetooth crash after a few days Hi, @martinetd  We have analyzed the logs you provided and our findings are below. From the dmesg log: At 17,904 s and 17,915 s (about 5 h of uptime), two hci0: command tx timeout messages appear (failure 1). From 17,936 s to 17,961 s, Start FW dump and FW dump complete appear. The firmware nxp/uartspi_n61x_v1.bin.se is then reloaded. At 55,551 s and 55,562 s (about 10.4 h after the reload), the same two command tx timeout messages appear (failure 2). From 55,567 s to 55,592 s, the same FW dump and firmware reload sequence repeats.   From the HCI log(btmon_stripped.2) HCI#227 and #228: the last events from the controller. They are two Mode Change events (sniff mode, 50 ms interval) for the two connection handles, 0x0001 and 0x0002. HCI#230: the host sends HCI_Exit_Sniff_Mode for handle 0x0002. The controller never responds with the complete event. HCI#231: command tx timeout after 2 s. HCI#234: the host sends HCI_Exit_Sniff_Mode for handle 0x0001. The controller again does not respond. HCI#235: command tx timeout after 2 s. HCI#237: Start FW dump. Frame #238: the controller sends an HCI Hardware Error event (code 0xB0). HCI#250 #251: the firmware is reloaded. HCI#252: the host sends HCI Reset and initialization completes.   From these logs, the controller stops responding to HCI commands and currently we are checking with our internal team more on this. In the meantime, please help us with these questions: What are the exact steps to reproduce the issue locally? We prefer to see whether can reproduce on our local side. What is the issue reproduction frequency? I only know it is very low until now. If you can provide more details, would be appreciated. What is your exact use case, and is sniff mode required for your application? In the logs we are seeing 2 devices connected whereas you mentioned only 1 device connected. So we need to double confirm with you. BR, Christine. Re: IW612 bluetooth crash after a few days Thanks for the reply > What are the exact steps to reproduce the issue locally? We prefer to see whether can reproduce on our local side. I'm sorry I still haven't had try to reproduce on my end; I only have as much information as you do at this point. I actually did try to setup a test with two devices I control but I couldn't figure how to setup sniff mode from the bluez stack and ran out of time for now... As far as I can tell it should be something like what we see from btmon, that is setup a link with RFCOMM that enables sniff mode when idle, and some small messages (5-66 bytes) are exchanged regularily (I was told there should be a keepalive every 5 seconds, but I have 10 more minutes of logs and there doesn't seem to be. I see small bursts every 60s) I'm actually not familiar with how to operate sniff mode, is it something the user program is toggling (enter/exit sniff mode) manually everytime they transmit data? Or does the bluez stack automatically take care of it, and re-enters sniff mode on idle? I'll try to make time to retry in the next few days... > What is the issue reproduction frequency? I only know it is very low until now. If you can provide more details, would be appreciated. I was told "once every few days", but from the logs it looks like it happens a bit more often, that might be because they switched their setup from 1 to 2 devices. > What is your exact use case, and is sniff mode required for your application? In the logs we are seeing 2 devices connected whereas you mentioned only 1 device connected. So we need to double confirm with you. They're using sniff mode to save battery and I was explicitly told this is a hard requirement (the target device they're connecting to does not support BLE so they're using sniff mode to limit the time slots during which it has to listen to save battery) I'm told the problem happens with one or multiple devices, I didn't specify the number of devices to retry for the btmon traces. Thanks Re: IW612 bluetooth crash after a few days Hi, @martinetd  Thanks for providing the info. Sure, if you can reproduce this issue, please also share to us the detailed steps. And at the same time, our internal team is analyzing the firmware dump. Once have any updates, let us keep updates each other. BR, Christine. Re: IW612 bluetooth crash after a few days Hi, @martinetd  Thanks for your patience. We received one PVT FW today from our internal team, as we are not able to reproduce the issue locally, please help to check and confirm whether the issue is resolved with the shared PVT FW or not.   Firmware details: FW Name: PVT_FW_1_combo.bin.se MD5SUM: c9eb78febccafa4772ed6c216215362a Note: This firmware is only for the verification purpose only and not used for any official release. Please help to check and help to share the require FW dump, btmon logs with dmesg log in case of any further issue observed. BR, Christine. Re: IW612 bluetooth crash after a few days Thank you! I'll ask our customer to install PVT_FW_1_combo.bin.se as /lib/firmware/nxp/sduart_nw61x_v1.bin.se on target and see if they reproduce, if they do provide logs & more details on the reproducer. (After installing the firmware as such I have this version in dmesg: [ 8.853049] wlan: version = SDIW612---18.92.8.p52.2, -1-gc524d609-Test--MM6X18543.p18-GPL-(FP92) ) Re: IW612 bluetooth crash after a few days Hi, @martinetd  Yes, the version seems correct. And do we have any updates from end customer? BR, Christine.
View full article
Power ArchitectureのS32 Design Studio v2.1におけるPEmicro GDBローンチ失敗 こんにちは、 私がテストしている基板はMTRCKTSPS5744P(3相PMSMモーター制御開発キットとMPC5744P MCU)です。 何らかの理由で、ダウンロード処理がうまくいきません。 ダウンロードに失敗した後、デバッグボタンをクリックすると、このウィンドウが表示されます。 eunwoo_lee_0-1789496057004.png このエラーメッセージが表示されたウィンドウがポップアップします。 サービス開始順序の誤り PEmicro GDB起動失敗:GDBサーバーがターゲットプロセッサへの接続を確立できませんでした。接続と電源を確認してください。デバッグ構成の起動設定が正確であることを確認してください。 コンソールパネルにこのメッセージが表示されます。 127.0.0.1 から 127.0.0.1 を経由して接続します。ポート「53438」から7224への接続 PEエラー:警告。部品が稼働している間はレジスタが読み取れません。 PEエラー:警告。部品が稼働中はメモリを読み取れません。@0 (4バイト) PEエラー:警告。部品が稼働中はメモリを読み取れません。@0 (4バイト) PEエラー:警告。部品が稼働している間はレジスタが読み取れません。 PEエラー:警告。部品が稼働中はメモリを読み取れません。@0 (4バイト) PEエラー:警告。部品が稼働中はメモリを読み取れません。@0 (4バイト) PEエラー:警告。パートが実行中はバイナリを書けません。40001000 - 長さ: 0 - 値: バイナリデータ PEエラー:警告。パートが実行中はバイナリを書けません。40001000 - 長さ: 460 - 値: バイナリデータ PEエラー:警告。パートが実行中はバイナリを書けません。40001460 - 長さ: 460 - 値: バイナリデータ PEエラー:警告。パートが実行中はバイナリを書けません。400018c0 - 長さ: 460 - 値: バイナリデータ PEエラー:警告。パートが実行中はバイナリを書けません。40001d20 - 長さ:2e0 - 値:バイナリデータ PE-エラー:GDBクライアント処理:例外が発生しました:プログラム例外! 例外クラス: EIDCONNCLOSEDGRACEFULLY メッセージ:接続が正常に切断されました。 アドレス 0X0046EA89 127.0.0.1 経由で「127.0.0.1」から切断されました。ポート「53438」による7224からの切断 ターゲットとの接続が切断されました。 この問題に対する解決策をご存知ですか? ありがとうございます。 Re: PEmicro GDB Launch Failure in S32 Design Studio for Power Architecture v2.1 こんにちは、 この問題に対する解決策をご存知ですか? メッセージの通り、レジスタをその場で書き込む・読み取ることはできません。まずデバッガーでコードの実行を停止し、その後レジスタやメモリなどを修正できます。 MPC5744Pはユーザーコードを実行中で、P&Eプローブがデバイスを停止できないため、すべてのメモリ/レジスタアクセスが失敗し、ダウンロード操作が中止されます。 これはフラッシュプログラミングの問題というよりは、デバッガがダウンロード前にMPC5744Pを停止させることに失敗しているように見えます。 例えば、マイクロコントローラでSWT0を有効にしたSWはありますか? それとも、ソフトウェアが一切動作していない、まっさらなサンプルなのでしょうか? よろしくお願いいたします。 ピーター Re: PEmicro GDB Launch Failure in S32 Design Studio for Power Architecture v2.1 フラットリボンケーブルを交換することで、この問題を解決しました。ケーブルの接続性は良さそうに見えるが、デバッガーとの接続に失敗する。ケーブルがクロストークや線間ノイズの影響を受けやすいのだと思います。最終的には、ケーブルを短くすることで解決しました。
View full article