Multi Source Translation Content

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

Multi Source Translation Content

讨论

排序依据:
Ilitek ILI9881C MIPI LCD Panel issue on i.MX93 I am working with a carrier board based on the iMX93, which is connected to a DSI panel. I'm trying to use the ilitek ili9881c driver with specific configurations to get the panel to display correctly, but I have been unsuccessful so far. I do some displays with Weston and modetest. In 2 cas, The panel displays something initially, but then the screen becomes blurry and eventually becomes completely unreadable. Could you please assist me in making it work with the information follow : Panel DSI (https://midasdisplays.com/shop/tft/mdt0500b2ihc-mipi/) with documentation (https://midasdisplays.com/wp-content/uploads/2023/08/MDT0500B2IHC-MIPI.pdf) Driver panel-ilitek-ili9881c for ili9881C IC on linux-imx 6.1.36. Configuration : There are no information about timming configuration on datasheet of Panel then i use the configuration from driver "bananapi,lhr050h41" of  "ilitek ili9881c"; Display timings : static const struct drm_display_mode lhr050h41_default_mode = { .clock = 62000, .hdisplay = 720, .hsync_start = 720 + 10, .hsync_end = 720 + 10 + 20, .htotal = 720 + 10 + 20 + 30, .vdisplay = 1280, .vsync_start = 1280 + 10, .vsync_end = 1280 + 10 + 10, .vtotal = 1280 + 10 + 10 + 20, .width_mm = 62, .height_mm = 110, };   Devicetree : &lcdif { status = "okay"; assigned-clock-rates = <310000000>, <62000000>, <400000000>, <133333333>; // assigned-clock-rates = <372000000>, <62000000>, <400000000>, <133333333>; // assigned-clock-rates = <248000000>, <62000000>, <400000000>, <133333333>; }; &dsi { status = "okay"; #address-cells = <1>; #size-cells = <0>; panel@0 { compatible = "bananapi,lhr050h41", "ilitek,ili9881c"; reg = <0>; power-supply = <&reg_vdd_3v3>; reset-gpios = <&ioexpander_1 1 GPIO_ACTIVE_LOW>; backlight = <&disp_backlight>; width-mm = <62>; height-mm = <110>; port { panel_to_dsi: endpoint { remote-endpoint = <&dsi_to_panel>; }; }; }; ports { port@1 { reg = <1>; dsi_to_panel: endpoint { remote-endpoint = <&panel_to_dsi>; }; }; }; }; &epxp { status = "okay"; }; &dphy { status = "okay"; }; Clock configuration : /* * Fvco = (Fref / rdiv) * (MFI + MFN / MFD) * Fout = Fvco / odiv * The (Fref / rdiv) should be in range 20MHz to 40MHz * The Fvco should be in range 2.5Ghz to 5Ghz */ static const struct imx_fracn_gppll_rate_table fracn_tbl[] = { PLL_FRACN_GP(1700000000U, 141, 0, 0, 1, 2), PLL_FRACN_GP(1400000000U, 175, 0, 0, 1, 3), PLL_FRACN_GP(1039500000U, 173, 25, 100, 1, 4), PLL_FRACN_GP(900000000U, 150, 0, 0, 1, 4), PLL_FRACN_GP(800000000U, 200, 0, 0, 1, 6), PLL_FRACN_GP(650000000U, 162, 50, 100, 0, 6), PLL_FRACN_GP(594000000U, 198, 0, 1, 0, 8), PLL_FRACN_GP(560000000U, 140, 0, 1, 0, 6), PLL_FRACN_GP(520800000U, 217, 0, 1, 1, 10), PLL_FRACN_GP(504000000U, 42, 0, 1, 1, 2), PLL_FRACN_GP(498000000U, 166, 0, 1, 0, 8), PLL_FRACN_GP(484000000U, 121, 0, 1, 0, 6), PLL_FRACN_GP(445333333U, 167, 0, 1, 0, 9), PLL_FRACN_GP(400000000U, 200, 0, 1, 0, 12), PLL_FRACN_GP(393216000U, 163, 84, 100, 0, 10), PLL_FRACN_GP(300000000U, 150, 0, 1, 0, 12), /* ILI9881C Panel */ PLL_FRACN_GP(372000000U, 186, 0, 1, 0, 12), PLL_FRACN_GP(310000000U, 155, 0, 1, 0, 12), PLL_FRACN_GP(248000000U, 124, 0, 1, 0, 12) }; From documentation of imx93: Clocks : tested with 3 clocks x4, x5, x6 cat /sys/kernel/debug/clk/clk_summary Weston :  mopdetest : sudo modetest -M imx-drm -D 0 -a -s 35@33:720x1280 -P 31@33:720x1280 Is my configuration wrong ? #i.MX93 #DSI #ILI9881C Re: Ilitek ILI9881C MIPI LCD Panel issue on i.MX93 can you please share your DTS file  Re: Ilitek ILI9881C MIPI LCD Panel issue on i.MX93 Hello, Please do accept my apologize for the delayed response, the logs provided show no issues, it just shows that the driver is running, from the same logs I see that the driver triggers a sleep thats the only "strange" thing I could see, I could suggest a couple of things to try out if you are willing to try. 1.- Please double check the voltage level of the display that it is correct and working as expected when the failure is seen, specifically the PWM. 2.- Please double check with the display vendor wheter the driver is working as spected, as this driver is not provided by us. Best regards/Saludos, Aldo. Re: Ilitek ILI9881C MIPI LCD Panel issue on i.MX93 Hello Aldo. Thank you for your response. I tested with different clocks, but the issue remains the same: the panel initially displays something, but then the screen becomes blurry and eventually becomes completely unreadable. Strange message in logs: I analyzed the dmesg logs and found an issue with dw-mipi-dsi-imx (see the dmesg log). The fset command doesn't provide the timing information (see the fset command output). New questions : Question 1: How can I resolve this issue? Question 2: Based on the log information below, is there any other issue? 1. Configuration I contacted the panel provider and obtained more information about the timing configuration : Here is my new configuration : linux-imx/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c for 720x1280x60 Hz static const struct drm_display_mode lhr050h41_default_mode = { .clock = 66340, .hdisplay = 720, .hsync_start = 720 + 4, // HACT + HSA .hsync_end = 720 + 4 + 60, // HACT + HSA + HBP .htotal = 720 + 4 + 60 + 60, // HACT + HSA + HBP + HFP .vdisplay = 1280, .vsync_start = 1280 + 4, // VACT + VSA .vsync_end = 1280 + 4 + 16, // VACT + VSA + VBP .vtotal = 1280 + 4 + 16 + 10, // VACT + VSA + VBP + VFP .width_mm = 62, .height_mm = 110, }; Devicetree : &lcdif { status = "okay"; assigned-clock-rates = <331700000>, <66340000>, <400000000>, <133333333>; // assigned-clock-rates = <256360000>, <66340000>, <400000000>, <133333333>; }; &dsi { status = "okay"; #address-cells = <1>; #size-cells = <0>; panel@0 { compatible = "bananapi,lhr050h41", "ilitek,ili9881c"; reg = <0>; power-supply = <&reg_vdd_3v3>; reset-gpios = <&ioexpander_1 1 GPIO_ACTIVE_LOW>; backlight = <&disp_backlight>; width-mm = <62>; height-mm = <110>; port { panel_to_dsi: endpoint { remote-endpoint = <&dsi_to_panel>; }; }; }; ports { port@1 { reg = <1>; dsi_to_panel: endpoint { remote-endpoint = <&panel_to_dsi>; }; }; }; }; &epxp { status = "okay"; }; &dphy { status = "okay"; }; linux-imx/drivers/clk/imx/clk-fracn-gppll.c /* * Fvco = (Fref / rdiv) * (MFI + MFN / MFD) * Fout = Fvco / odiv * The (Fref / rdiv) should be in range 20MHz to 40MHz * The Fvco should be in range 2.5Ghz to 5Ghz */ static const struct imx_fracn_gppll_rate_table fracn_tbl[] = { PLL_FRACN_GP(1700000000U, 141, 0, 0, 1, 2), PLL_FRACN_GP(1400000000U, 175, 0, 0, 1, 3), PLL_FRACN_GP(1039500000U, 173, 25, 100, 1, 4), PLL_FRACN_GP(900000000U, 150, 0, 0, 1, 4), PLL_FRACN_GP(800000000U, 200, 0, 0, 1, 6), PLL_FRACN_GP(650000000U, 162, 50, 100, 0, 6), PLL_FRACN_GP(594000000U, 198, 0, 1, 0, 8), PLL_FRACN_GP(560000000U, 140, 0, 1, 0, 6), PLL_FRACN_GP(520800000U, 217, 0, 1, 1, 10), PLL_FRACN_GP(504000000U, 42, 0, 1, 1, 2), PLL_FRACN_GP(498000000U, 166, 0, 1, 0, 8), PLL_FRACN_GP(484000000U, 121, 0, 1, 0, 6), PLL_FRACN_GP(445333333U, 167, 0, 1, 0, 9), PLL_FRACN_GP(400000000U, 200, 0, 1, 0, 12), PLL_FRACN_GP(393216000U, 163, 84, 100, 0, 10), PLL_FRACN_GP(300000000U, 150, 0, 1, 0, 12), PLL_FRACN_GP(331700000U, 165, 17, 20, 1, 12), // _rate, _mfi, _mfn, _mfd, _rdiv, _odiv PLL_FRACN_GP(256360000U, 128, 9, 50, 1, 12) }; Clock summery from commande: cat /sys/kernel/debug/clk/clk_summary 2. Log a. DMESG  I added some printk in PANEL driver code to check its flow (Log begin with PANEL:) ... [ 1.613373] pwm-backlight pwm-backlight: GPIO lookup for consumer enable [ 1.613387] pwm-backlight pwm-backlight: using device tree for GPIO lookup [ 1.613396] of_get_named_gpiod_flags: can't parse 'enable-gpios' property of node '/pwm-backlight[0]' [ 1.613407] of_get_named_gpiod_flags: can't parse 'enable-gpio' property of node '/pwm-backlight[0]' [ 1.613417] pwm-backlight pwm-backlight: using lookup tables for GPIO lookup [ 1.613422] pwm-backlight pwm-backlight: No GPIO consumer enable found [ 1.616645] imx-drm display-subsystem: bound imx-lcdifv3-crtc.0 (ops lcdifv3_crtc_ops) [ 1.624620] [drm:drm_bridge_attach] *ERROR* failed to attach bridge /soc@0/dsi@4ae10000 to encoder DSI-34: -517 [ 1.634715] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_bind] *ERROR* failed to attach bridge: -517 [ 1.644614] dw-mipi-dsi-imx 4ae10000.dsi: [drm:dw_mipi_dsi_imx_probe] *ERROR* failed to register component: -517 ... [ 1.805466] pca953x 4-0020: GPIO lookup for consumer reset [ 1.805476] pca953x 4-0020: using device tree for GPIO lookup [ 1.805484] of_get_named_gpiod_flags: can't parse 'reset-gpios' property of node '/soc@0/bus@42000000/i2c@426b0000/gpio@20[0]' [ 1.805501] of_get_named_gpiod_flags: can't parse 'reset-gpio' property of node '/soc@0/bus@42000000/i2c@426b0000/gpio@20[0]' [ 1.805515] pca953x 4-0020: using lookup tables for GPIO lookup [ 1.805519] pca953x 4-0020: No GPIO consumer reset found [ 1.805622] pca953x 4-0020: using no AI [ 1.809964] gpiochip_find_base: found new base at 488 [ 1.809995] gpio gpiochip5: Persistence not supported for GPIO 2 [ 1.810280] gpio-490 (reset): hogged as output/high [ 1.815318] gpio gpiochip5: (4-0020): added GPIO chardev (254:5) [ 1.815325] gpio gpiochip5: registered GPIOs 488 to 495 on 4-0020 [ 1.815517] pca953x 4-0021: GPIO lookup for consumer reset [ 1.815522] pca953x 4-0021: using device tree for GPIO lookup [ 1.815530] of_get_named_gpiod_flags: can't parse 'reset-gpios' property of node '/soc@0/bus@42000000/i2c@426b0000/gpio@21[0]' [ 1.815545] of_get_named_gpiod_flags: can't parse 'reset-gpio' property of node '/soc@0/bus@42000000/i2c@426b0000/gpio@21[0]' [ 1.815559] pca953x 4-0021: using lookup tables for GPIO lookup [ 1.815563] pca953x 4-0021: No GPIO consumer reset found [ 1.815660] pca953x 4-0021: using no AI [ 1.819619] gpiochip_find_base: found new base at 480 ... [ 1.837049] PANEL: ili9881c_dsi_probe [ 1.837165] ili9881c-dsi 4ae10000.dsi.0: GPIO lookup for consumer reset [ 1.840818] ili9881c-dsi 4ae10000.dsi.0: using device tree for GPIO lookup [ 1.840843] of_get_named_gpiod_flags: parsed 'reset-gpios' property of node '/soc@0/dsi@4ae10000/panel@0[0]' - status (0) [ 1.841045] PANEL: drm_panel_of_backlight [ 1.841053] PANEL: drm_panel_add [ 1.845060] PANEL: mipi_dsi_attach [ 1.849049] imx-drm display-subsystem: bound imx-lcdifv3-crtc.0 (ops lcdifv3_crtc_ops) [ 1.860484] imx-drm display-subsystem: bound 4ae10000.dsi (ops dw_mipi_dsi_imx_ops) [ 1.868486] [drm] Initialized imx-drm 1.0.0 20120507 for display-subsystem on minor 0 [ 1.876358] PANEL: ili9881c_get_modes [ 1.876360] PANEL: drm_mode_duplicate [ 1.880018] PANEL: drm_mode_set_name [ 1.883671] PANEL: mode->type = 0x48 [ 1.887239] PANEL: drm_mode_set_name [ 1.890801] PANEL: return 1 [ 1.937230] PANEL: ili9881c_prepare [ 1.937238] PANEL: regulator_enable -> Sleep 5ms [ 1.953133] ------------[ cut here ]------------ [ 1.953138] WARNING: CPU: 0 PID: 40 at drivers/gpio/gpiolib.c:3140 gpiod_set_value+0x5c/0xcc [ 1.953158] Modules linked in: [ 1.953165] CPU: 0 PID: 40 Comm: kworker/u4:1 Not tainted 6.1.36+gd997ba75bc0a #1 [ 1.953171] Hardware name: BOSCH MOP ENG i.MX93 Sirius board (DT) [ 1.953175] Workqueue: events_unbound deferred_probe_work_func [ 1.953185] pstate: 80400009 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 1.953190] pc : gpiod_set_value+0x5c/0xcc [ 1.953194] lr : ili9881c_prepare+0x74/0x1e8 [ 1.953202] sp : ffff80000a12b340 [ 1.953205] x29: ffff80000a12b340 x28: ffff0000050cc4b0 x27: 0000000000000000 [ 1.953212] x26: ffff800009396ad0 x25: ffff8000097619f0 x24: 0000000000000028 [ 1.953219] x23: 00000000ffff98ff x22: 00000000ffffff81 x21: 0000000000000000 [ 1.953225] x20: 0000000000000001 x19: ffff0000042cc430 x18: fffffffffffebf10 [ 1.953232] x17: 0000000017b99bc0 x16: 00000000000000c7 x15: 0000000000000030 [ 1.953238] x14: 0000000000000152 x13: 0000000000000000 x12: 0000000000000000 [ 1.953244] x11: 0000000000000001 x10: 0000000000000a60 x9 : ffff80000a12b240 [ 1.953251] x8 : ffff00002fd94000 x7 : ffff00002fd9ab40 x6 : 0000000008c2a66c [ 1.953257] x5 : 00000000410fd050 x4 : 0000000000000000 x3 : 0000000000000000 [ 1.953263] x2 : 0000000000000000 x1 : ffff000004bdad00 x0 : 0000000000000001 [ 1.953270] Call trace: [ 1.953273] gpiod_set_value+0x5c/0xcc [ 1.953278] ili9881c_prepare+0x74/0x1e8 [ 1.953282] drm_panel_prepare+0x28/0x40 [ 1.953290] panel_bridge_pre_enable+0x14/0x20 [ 1.953296] drm_atomic_bridge_chain_pre_enable+0x94/0xd0 [ 1.953304] drm_atomic_helper_commit_modeset_enables+0x170/0x26c [ 1.953310] lcdifv3_drm_atomic_commit_tail+0x30/0x70 [ 1.953317] commit_tail+0xa4/0x190 [ 1.953321] drm_atomic_helper_commit+0x164/0x180 [ 1.953327] drm_atomic_commit+0xa8/0xe0 [ 1.953332] drm_client_modeset_commit_atomic+0x210/0x270 [ 1.953338] drm_client_modeset_commit_locked+0x5c/0x18c [ 1.953342] drm_client_modeset_commit+0x30/0x60 [ 1.953346] drm_fb_helper_set_par+0xb8/0x110 [ 1.953351] fbcon_init+0x1fc/0x500 [ 1.953356] visual_init+0xb4/0x104 [ 1.953364] do_bind_con_driver.isra.0+0x1b8/0x390 [ 1.953368] do_take_over_console+0x1a4/0x200 [ 1.953372] do_fbcon_takeover+0x6c/0xe4 [ 1.953376] fbcon_fb_registered+0x1e0/0x1ec [ 1.953380] register_framebuffer+0x1ac/0x2f4 [ 1.953386] __drm_fb_helper_initial_config_and_unlock+0x358/0x540 [ 1.953391] drm_fbdev_client_hotplug+0x150/0x210 [ 1.953395] drm_fbdev_generic_setup+0xb4/0x194 [ 1.953399] imx_drm_bind+0x260/0x2e0 [ 1.953406] try_to_bring_up_aggregate_device+0x164/0x1d0 [ 1.953412] __component_add+0xa4/0x170 [ 1.953416] component_add+0x14/0x20 [ 1.953420] dw_mipi_dsi_imx_probe+0x118/0x254 [ 1.953424] platform_probe+0x68/0xc0 [ 1.953429] really_probe+0xbc/0x2dc [ 1.953433] __driver_probe_device+0x78/0x114 [ 1.953437] driver_probe_device+0x3c/0x15c [ 1.953441] __device_attach_driver+0xb8/0x134 [ 1.953445] bus_for_each_drv+0x7c/0xd4 [ 1.953451] __device_attach+0x9c/0x1a0 [ 1.953455] device_initial_probe+0x14/0x20 [ 1.953459] bus_probe_device+0x98/0xa0 [ 1.953463] deferred_probe_work_func+0x80/0xc0 [ 1.953467] process_one_work+0x1d4/0x330 [ 1.953474] worker_thread+0x220/0x430 [ 1.953478] kthread+0x108/0x10c [ 1.953483] ret_from_fork+0x10/0x20 [ 1.953489] ---[ end trace 0000000000000000 ]--- [ 1.953591] PANEL: gpiod_set_value 1 (reset)-> Sleep 20ms [ 1.981153] ------------[ cut here ]------------ [ 1.981156] WARNING: CPU: 0 PID: 40 at drivers/gpio/gpiolib.c:3140 gpiod_set_value+0x5c/0xcc [ 1.981167] Modules linked in: [ 1.981172] CPU: 0 PID: 40 Comm: kworker/u4:1 Tainted: G W 6.1.36+gd997ba75bc0a #1 [ 1.981176] Hardware name: BOSCH MOP ENG i.MX93 Sirius board (DT) [ 1.981179] Workqueue: events_unbound deferred_probe_work_func [ 1.981185] pstate: 80400009 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 1.981190] pc : gpiod_set_value+0x5c/0xcc [ 1.981195] lr : ili9881c_prepare+0x94/0x1e8 [ 1.981199] sp : ffff80000a12b340 [ 1.981201] x29: ffff80000a12b340 x28: ffff0000050cc4b0 x27: 0000000000000000 [ 1.981208] x26: ffff800009396ad0 x25: ffff8000097619f0 x24: 0000000000000028 [ 1.981215] x23: 00000000ffff98ff x22: 00000000ffffff81 x21: 0000000000000000 [ 1.981222] x20: 0000000000000000 x19: ffff0000042cc430 x18: fffffffffffecca0 [ 1.981228] x17: 0000000017b99bc0 x16: 00000000000000c7 x15: 0000000000000038 [ 1.981235] x14: 0000000000000022 x13: 0000000000000000 x12: 0000000000000000 [ 1.981241] x11: 0000000000000001 x10: 0000000000000a60 x9 : ffff80000a12b240 [ 1.981248] x8 : ffff00002fd94000 x7 : ffff00002fd9ab40 x6 : 00000000ffffffff [ 1.981254] x5 : 00000000410fd050 x4 : 0000000000000000 x3 : 0000000000000000 [ 1.981260] x2 : 0000000000000000 x1 : ffff000004bdad00 x0 : 0000000000000001 [ 1.981266] Call trace: [ 1.981268] gpiod_set_value+0x5c/0xcc [ 1.981273] ili9881c_prepare+0x94/0x1e8 [ 1.981278] drm_panel_prepare+0x28/0x40 [ 1.981284] panel_bridge_pre_enable+0x14/0x20 [ 1.981288] drm_atomic_bridge_chain_pre_enable+0x94/0xd0 [ 1.981295] drm_atomic_helper_commit_modeset_enables+0x170/0x26c [ 1.981301] lcdifv3_drm_atomic_commit_tail+0x30/0x70 [ 1.981306] commit_tail+0xa4/0x190 [ 1.981311] drm_atomic_helper_commit+0x164/0x180 [ 1.981316] drm_atomic_commit+0xa8/0xe0 [ 1.981321] drm_client_modeset_commit_atomic+0x210/0x270 [ 1.981327] drm_client_modeset_commit_locked+0x5c/0x18c [ 1.981331] drm_client_modeset_commit+0x30/0x60 [ 1.981336] drm_fb_helper_set_par+0xb8/0x110 [ 1.981340] fbcon_init+0x1fc/0x500 [ 1.981345] visual_init+0xb4/0x104 [ 1.981351] do_bind_con_driver.isra.0+0x1b8/0x390 [ 1.981355] do_take_over_console+0x1a4/0x200 [ 1.981359] do_fbcon_takeover+0x6c/0xe4 [ 1.981364] fbcon_fb_registered+0x1e0/0x1ec [ 1.981368] register_framebuffer+0x1ac/0x2f4 [ 1.981374] __drm_fb_helper_initial_config_and_unlock+0x358/0x540 [ 1.981379] drm_fbdev_client_hotplug+0x150/0x210 [ 1.981383] drm_fbdev_generic_setup+0xb4/0x194 [ 1.981388] imx_drm_bind+0x260/0x2e0 [ 1.981393] try_to_bring_up_aggregate_device+0x164/0x1d0 [ 1.981397] __component_add+0xa4/0x170 [ 1.981402] component_add+0x14/0x20 [ 1.981406] dw_mipi_dsi_imx_probe+0x118/0x254 [ 1.981409] platform_probe+0x68/0xc0 [ 1.981414] really_probe+0xbc/0x2dc [ 1.981418] __driver_probe_device+0x78/0x114 [ 1.981422] driver_probe_device+0x3c/0x15c [ 1.981426] __device_attach_driver+0xb8/0x134 [ 1.981430] bus_for_each_drv+0x7c/0xd4 [ 1.981436] __device_attach+0x9c/0x1a0 [ 1.981439] device_initial_probe+0x14/0x20 [ 1.981443] bus_probe_device+0x98/0xa0 [ 1.981447] deferred_probe_work_func+0x80/0xc0 [ 1.981451] process_one_work+0x1d4/0x330 [ 1.981456] worker_thread+0x220/0x430 [ 1.981461] kthread+0x108/0x10c [ 1.981464] ret_from_fork+0x10/0x20 [ 1.981470] ---[ end trace 0000000000000000 ]--- [ 1.981560] PANEL: gpiod_set_value 0 (reset)-> Sleep 20ms [ 2.193755] PANEL: ili9881c_switch_page [ 2.194765] PANEL: mipi_dsi_dcs_set_tear_on [ 2.195774] PANEL: mipi_dsi_dcs_exit_sleep_mode [ 2.196783] PANEL: ili9881c_prepare -> OK [ 2.196789] PANEL: ili9881c_enable + sleep 120ms [ 2.401176] PANEL: mipi_dsi_dcs_set_display_on [ 2.402191] PANEL: ili9881c_enable -> OK [ 2.452996] Console: switching to colour frame buffer device 90x80 ... [ 3.458019] mmc1: SDHCI controller on 42860000.mmc [42860000.mmc] using ADMA [ 3.490601] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Quota mode: none. [ 3.499240] VFS: Mounted root (ext4 filesystem) on device 179:2. [ 3.505721] devtmpfs: mounted [ 3.512373] Freeing unused kernel memory: 3200K [ 3.517072] Run /sbin/init as init process [ 3.521270] with arguments: [ 3.521272] /sbin/init [ 3.521275] with environment: [ 3.521277] HOME=/ [ 3.521279] TERM=linux [ 3.521281] dtb-module=sirius-imx93.dtb [ 3.642688] systemd[1]: systemd 253.1^ running in system mode (+PAM -AUDIT -SELINUX -APPARMOR +IMA -SMACK +SECCOMP -GCRYPT -GNUTLS -OPENSSL +ACL +BLKID -CURL -ELFUTILS -FIDO2 -IDN2 -IDN -IPTC +KMOD -LIBCRYPTSETUP +LIBFDISK -PCRE2 -PWQUALITY -P11KIT -QRENCODE -TPM2 -BZIP2 -LZ4 -XZ -ZLIB +ZSTD -BPF_FRAMEWORK +XKBCOMMON +UTMP +SYSVINIT default-hierarchy=hybrid) [ 3.674584] systemd[1]: Detected architecture arm64. ... b. WESTON weston ini :  cat /etc/xdg/weston/weston.ini [core] use-g2d=true repaint-window=16 #gbm-format=argb8888 idle-time=0 xwayland=true #enable-overlay-view=1 [shell] [libinput] touchscreen_calibrator=true [output] name=DSI-1 mode=720x1280@60 [screen-share] command=/usr/bin/weston --backend=rdp-backend.so --shell=fullscreen-shell.so --no-clients-resize Weston log Date: 2024-11-21 CET [11:38:49.372] weston 11.0.2 https://wayland.freedesktop.org Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/ Build: 10.0.0-661-ga3c5e63a+ [11:38:49.373] Command line: /usr/bin/weston --log=/run/user/0/weston.log --modules=systemd-notify.so [11:38:49.373] OS: Linux, 6.1.36+gd997ba75bc0a, #1 SMP PREEMPT Sun Nov 3 01:09:31 UTC 2024, aarch64 [11:38:49.373] Flight recorder: enabled [11:38:49.374] Using config file '/etc/xdg/weston/weston.ini' [11:38:49.375] Output repaint window is 16 ms maximum. [11:38:49.377] Loading module '/usr/lib/libweston-11/drm-backend.so' [11:38:49.383] initializing drm backend [11:38:49.383] Trying logind launcher... [11:38:49.397] logind: session control granted [11:38:49.405] using /dev/dri/card0 [11:38:49.405] DRM: supports atomic modesetting [11:38:49.405] DRM: does not support GBM modifiers [11:38:49.405] DRM: supports picture aspect ratio [11:38:49.406] Loading module '/usr/lib/libweston-11/g2d-renderer.so' [11:38:49.476] failed to query DRM device from EGL [11:38:49.500] event1 - gpio-keys: is tagged by udev as: Keyboard [11:38:49.500] event1 - gpio-keys: device is a keyboard [11:38:49.508] event2 - Goodix Capacitive TouchScreen: is tagged by udev as: Keyboard Touchscreen [11:38:49.509] event2 - Goodix Capacitive TouchScreen: device is a keyboard [11:38:49.509] event2 - Goodix Capacitive TouchScreen: device is a touch device [11:38:49.517] event0 - 44440000.bbnsm:pwrkey: is tagged by udev as: Keyboard [11:38:49.518] event0 - 44440000.bbnsm:pwrkey: device is a keyboard [11:38:49.552] libinput: configuring device "gpio-keys". [11:38:49.552] Touchscreen - Goodix Capacitive TouchScreen - /sys/devices/platform/soc@0/44000000.bus/44350000.i2c/i2c-1/1-005d/input/input2/event2 [11:38:49.552] libinput: configuring device "Goodix Capacitive TouchScreen". [11:38:49.552] input device event2 has no enabled output associated (none named), skipping calibration for now. [11:38:49.552] libinput: configuring device "44440000.bbnsm:pwrkey". [11:38:49.571] DRM: head 'DSI-1' updated, connector 35 is connected, EDID make 'unknown', model 'unknown', serial 'unknown' Supported EOTF modes: SDR [11:38:49.571] DRM: head 'DSI-1' found, connector 35 is connected, EDID make 'unknown', model 'unknown', serial 'unknown' Supported EOTF modes: SDR [11:38:49.571] Registered plugin API 'weston_drm_output_api_v1' of size 32 [11:38:49.571] Color manager: no-op [11:38:49.572] Loading module '/usr/lib/libgbm.so' [11:38:49.572] Failed to load module: /usr/lib/libgbm.so: cannot open shared object file: No such file or directory [11:38:49.572] Output 'DSI-1' attempts EOTF mode: SDR [11:38:49.572] Output 'DSI-1' using color profile: built-in default sRGB SDR profile [11:38:49.577] Initialized backlight for head 'DSI-1', device /sys/class/backlight/pwm-backlight [11:38:49.577] Output DSI-1 (crtc 33) video modes: [email protected], preferred, current, 62.0 MHz [11:38:49.577] associating input device event1 with output DSI-1 (none by udev) [11:38:49.577] associating input device event2 with output DSI-1 (none by udev) [11:38:49.578] associating input device event0 with output DSI-1 (none by udev) [11:38:49.578] Output 'DSI-1' enabled with head(s) DSI-1 [11:38:49.578] Compositor capabilities: arbitrary surface rotation: yes screen capture uses y-flip: yes cursor planes: yes arbitrary resolutions: no view mask clipping: yes explicit sync: yes color operations: no presentation clock: CLOCK_MONOTONIC, id 1 presentation clock resolution: 0.000000001 s [11:38:49.579] Loading module '/usr/lib/weston/desktop-shell.so' [11:38:49.581] Loading module '/usr/lib/libweston-11/xwayland.so' [11:38:49.648] Registered plugin API 'weston_xwayland_v1' of size 32 [11:38:49.648] Registered plugin API 'weston_xwayland_surface_v1' of size 16 [11:38:49.648] xserver listening on display :0 [11:38:49.649] Loading module '/usr/lib/weston/systemd-notify.so' [11:38:49.650] info: add 1 socket(s) provided by systemd [11:38:49.650] launching '/usr/libexec/weston-keyboard' [11:38:49.658] launching '/usr/libexec/weston-desktop-shell' c. Modetest fbset   Modetest Encoders: id crtc type possible crtcs possible clones 34 33 DSI 0x00000001 0x00000001 Connectors: id encoder status name size (mm) modes encoders 35 34 connected DSI-1 62x110 1 34 modes: index name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot #0 720x1280 60.22 720 730 750 780 1280 1290 1300 1320 62000 flags: ; type: preferred, driver props: 1 EDID: flags: immutable blob blobs: value: 2 DPMS: flags: enum enums: On=0 Standby=1 Suspend=2 Off=3 value: 0 5 link-status: flags: enum enums: Good=0 Bad=1 value: 0 6 non-desktop: flags: immutable range values: 0 1 value: 0 4 TILE: flags: immutable blob blobs: value: CRTCs: id fb pos size 33 36 (0,0) (720x1280) #0 720x1280 60.22 720 730 750 780 1280 1290 1300 1320 62000 flags: ; type: preferred, driver props: 24 VRR_ENABLED: flags: range values: 0 1 value: 0 Planes: id crtc fb CRTC x,y x,y gamma size possible crtcs 31 33 36 0,0 0,0 0 0x00000001 formats: XR24 AR24 RG16 XB24 AB24 AR15 XR15 props: 8 type: flags: immutable enum enums: Overlay=0 Primary=1 Cursor=2 value: 1 32 zpos: flags: immutable range values: 0 0 value: 0 Frame buffers: id size pitch modetest -M imx-drm -D 0 -a -s 35@33:720x1280 -P 31@33:720x1280 setting mode 720x1280-60.22Hz on connectors 35, crtc 33 failed to set gamma: Function not implemented testing 720x1280@XR24 on plane 31, crtc 33 ##################################################################################### STOP MODETEST ##################################################################################### [ 190.526189] PANEL: return 1 [ 358.517178] PANEL: ili9881c_disable [ 358.521022] ------------[ cut here ]------------ [ 358.529113] WARNING: CPU: 0 PID: 371 at drivers/gpio/gpiolib.c:3140 gpiod_set_value+0x5c/0xcc [ 358.537631] Modules linked in: crct10dif_ce polyval_ce polyval_generic layerscape_edac_mod at24 btnxpuart fuse [last unloaded: goodix_ts] [ 358.549975] CPU: 0 PID: 371 Comm: modetest Tainted: G W 6.1.36+gd997ba75bc0a #1 [ 358.558656] Hardware name: BOSCH MOP ENG i.MX93 Sirius board (DT) [ 358.564732] pstate: 80400009 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 358.571682] pc : gpiod_set_value+0x5c/0xcc [ 358.575764] lr : ili9881c_unprepare+0x30/0x50 [ 358.580115] sp : ffff80000b14b930 [ 358.583417] x29: ffff80000b14b930 x28: ffff800009396ad0 x27: ffff0000042cc888 [ 358.590541] x26: ffff0000042cca80 x25: ffff000008262a00 x24: ffff800009761948 [ 358.597665] x23: 0000000000000038 x22: ffff00000506e800 x21: ffff0000042cc8e0 [ 358.604789] x20: 0000000000000001 x19: ffff0000042cc430 x18: 0000000000000006 [ 358.611913] x17: 0000000000000000 x16: 0000000000000000 x15: ffff80000b14b490 [ 358.619037] x14: 000000000000032c x13: 000000000000032c x12: 0000000000000001 [ 358.626161] x11: 0000000000000001 x10: 0000000000000a60 x9 : ffff80000b14b6b0 [ 358.633285] x8 : ffff0000082b0ac0 x7 : ffff000005193200 x6 : 0000000000000001 [ 358.640409] x5 : 0000000000000000 x4 : ffff0000082b0000 x3 : ffff800009cd1b18 [ 358.647533] x2 : 0000000000000000 x1 : ffff000004bdad00 x0 : 0000000000000001 [ 358.654657] Call trace: [ 358.657093] gpiod_set_value+0x5c/0xcc [ 358.660837] ili9881c_unprepare+0x30/0x50 [ 358.664832] drm_panel_unprepare+0x28/0x40 [ 358.668922] panel_bridge_post_disable+0x14/0x20 [ 358.673524] dw_mipi_dsi_bridge_post_atomic_disable+0x38/0xf0 [ 358.679261] drm_atomic_bridge_chain_post_disable+0x54/0xd0 [ 358.684825] disable_outputs+0x11c/0x2d0 [ 358.688734] drm_atomic_helper_commit_modeset_disables+0x1c/0x50 [ 358.694723] lcdifv3_drm_atomic_commit_tail+0x24/0x70 [ 358.699758] commit_tail+0xa4/0x190 [ 358.703234] drm_atomic_helper_commit+0x164/0x180 [ 358.707922] drm_atomic_commit+0xa8/0xe0 [ 358.711831] drm_mode_atomic_ioctl+0x8d8/0xb50 [ 358.716259] drm_ioctl_kernel+0xc8/0x174 [ 358.720177] drm_ioctl+0x20c/0x420 [ 358.723565] __arm64_sys_ioctl+0xac/0xf0 [ 358.727483] invoke_syscall+0x48/0x114 [ 358.731227] el0_svc_common.constprop.0+0xcc/0xec [ 358.735916] do_el0_svc+0x2c/0xd0 [ 358.739217] el0_svc+0x2c/0x84 [ 358.742268] el0t_64_sync_handler+0xf4/0x120 [ 358.746523] el0t_64_sync+0x18c/0x190 [ 358.750173] ---[ end trace 0000000000000000 ]--- [ 358.755814] PANEL: ili9881c_unprepare [ 358.755873] VDD_3V3: Underflow of regulator enable count [ 358.764992] ------------[ cut here ]------------ [ 358.769604] WARNING: CPU: 1 PID: 371 at drivers/gpio/gpiolib.c:3140 gpiod_set_value+0x5c/0xcc [ 358.778123] Modules linked in: crct10dif_ce polyval_ce polyval_generic layerscape_edac_mod at24 btnxpuart fuse [last unloaded: goodix_ts] [ 358.790640] CPU: 1 PID: 371 Comm: modetest Tainted: G W 6.1.36+gd997ba75bc0a #1 [ 358.799321] Hardware name: BOSCH MOP ENG i.MX93 Sirius board (DT) [ 358.805398] pstate: 80400009 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 358.812347] pc : gpiod_set_value+0x5c/0xcc [ 358.816429] lr : ili9881c_unprepare+0x30/0x50 [ 358.820780] sp : ffff80000b14b950 [ 358.824082] x29: ffff80000b14b950 x28: ffff800009396ad0 x27: ffff0000042cc888 [ 358.831205] x26: ffff0000042cca80 x25: ffff000008262a00 x24: ffff800009761948 [ 358.838329] x23: 0000000000000038 x22: ffff00000506e800 x21: ffff0000042cc8e0 [ 358.845453] x20: 0000000000000001 x19: ffff0000042cc430 x18: 0000000000000006 [ 358.852577] x17: 0000000000000000 x16: 0000000000000000 x15: ffff80000b14b430 [ 358.859701] x14: 0000000000000272 x13: 0000000000000000 x12: 0000000000000000 [ 358.866825] x11: 0000000000000001 x10: 0000000000000a60 x9 : ffff80000b14b6c0 [ 358.873950] x8 : ffff0000082b0ac0 x7 : ffff00002fdaeb40 x6 : 0000000000000000 [ 358.881073] x5 : ffff00002fda7a18 x4 : ffff0000082b0000 x3 : ffff800009cd1b18 [ 358.888197] x2 : 0000000000000000 x1 : ffff000004bdad00 x0 : 0000000000000001 [ 358.895322] Call trace: [ 358.897757] gpiod_set_value+0x5c/0xcc [ 358.901493] ili9881c_unprepare+0x30/0x50 [ 358.905487] drm_panel_unprepare+0x28/0x40 [ 358.909578] panel_bridge_post_disable+0x14/0x20 [ 358.914189] drm_atomic_bridge_chain_post_disable+0x88/0xd0 [ 358.919753] disable_outputs+0x11c/0x2d0 [ 358.923661] drm_atomic_helper_commit_modeset_disables+0x1c/0x50 [ 358.929650] lcdifv3_drm_atomic_commit_tail+0x24/0x70 [ 358.934685] commit_tail+0xa4/0x190 [ 358.938161] drm_atomic_helper_commit+0x164/0x180 [ 358.942849] drm_atomic_commit+0xa8/0xe0 [ 358.946758] drm_mode_atomic_ioctl+0x8d8/0xb50 [ 358.951187] drm_ioctl_kernel+0xc8/0x174 [ 358.955104] drm_ioctl+0x20c/0x420 [ 358.958493] __arm64_sys_ioctl+0xac/0xf0 [ 358.962410] invoke_syscall+0x48/0x114 [ 358.966154] el0_svc_common.constprop.0+0xcc/0xec [ 358.970843] do_el0_svc+0x2c/0xd0 [ 358.974145] el0_svc+0x2c/0x84 [ 358.977196] el0t_64_sync_handler+0xf4/0x120 [ 358.981459] el0t_64_sync+0x18c/0x190 [ 358.985109] ---[ end trace 0000000000000000 ]--- [ 358.989859] PANEL: ili9881c_unprepare [ 359.053293] PANEL: ili9881c_prepare [ 359.056957] PANEL: regulator_enable -> Sleep 5ms [ 359.073199] ------------[ cut here ]------------ [ 359.082420] WARNING: CPU: 1 PID: 371 at drivers/gpio/gpiolib.c:3140 gpiod_set_value+0x5c/0xcc [ 359.090937] Modules linked in: crct10dif_ce polyval_ce polyval_generic layerscape_edac_mod at24 btnxpuart fuse [last unloaded: goodix_ts] [ 359.103273] CPU: 1 PID: 371 Comm: modetest Tainted: G W 6.1.36+gd997ba75bc0a #1 [ 359.111953] Hardware name: BOSCH MOP ENG i.MX93 Sirius board (DT) [ 359.118030] pstate: 80400009 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 359.124979] pc : gpiod_set_value+0x5c/0xcc [ 359.129061] lr : ili9881c_prepare+0x74/0x1e8 [ 359.133325] sp : ffff80000b14b8f0 [ 359.136627] x29: ffff80000b14b8f0 x28: ffff0000050366b0 x27: 0000000000000000 [ 359.143751] x26: ffff800009396ad0 x25: ffff8000097619f0 x24: 0000000000000028 [ 359.150876] x23: 00000000ffff98ff x22: 00000000ffffff81 x21: 0000000000000000 [ 359.157999] x20: 0000000000000001 x19: ffff0000042cc430 x18: 0000000000000000 [ 359.165123] x17: 0000000000000000 x16: 0000000000000008 x15: 0000000000000000 [ 359.172247] x14: 0000000000000074 x13: 0000000000000000 x12: 0000000000000000 [ 359.179371] x11: 0000000000000001 x10: 0000000000000a60 x9 : ffff80000b14b7f0 [ 359.186495] x8 : ffff00002fda8000 x7 : ffff000005192a00 x6 : 00000000000003e8 [ 359.193619] x5 : 00000000410fd050 x4 : 0000000000000000 x3 : 0000000000000000 [ 359.200743] x2 : 0000000000000000 x1 : ffff000004bdad00 x0 : 0000000000000001 [ 359.207868] Call trace: [ 359.210304] gpiod_set_value+0x5c/0xcc [ 359.214047] ili9881c_prepare+0x74/0x1e8 [ 359.217955] drm_panel_prepare+0x28/0x40 [ 359.221873] panel_bridge_pre_enable+0x14/0x20 [ 359.226301] drm_atomic_bridge_chain_pre_enable+0x94/0xd0 [ 359.231692] drm_atomic_helper_commit_modeset_enables+0x170/0x26c [ 359.237776] lcdifv3_drm_atomic_commit_tail+0x30/0x70 [ 359.242821] commit_tail+0xa4/0x190 [ 359.246295] drm_atomic_helper_commit+0x164/0x180 [ 359.250984] drm_atomic_commit+0xa8/0xe0 [ 359.254893] drm_client_modeset_commit_atomic+0x210/0x270 [ 359.260284] drm_client_modeset_commit_locked+0x5c/0x18c [ 359.265579] drm_client_modeset_commit+0x30/0x60 [ 359.270181] drm_fbdev_client_restore+0x6c/0xc0 [ 359.274705] drm_client_dev_restore+0x80/0xe0 [ 359.279047] drm_lastclose+0x74/0x8c [ 359.282617] drm_release+0x10c/0x124 [ 359.286179] __fput+0x70/0x250 [ 359.289230] ____fput+0x10/0x20 [ 359.292359] task_work_run+0x80/0xe0 [ 359.295929] do_notify_resume+0x1e0/0x1280 [ 359.300020] el0_svc+0x74/0x84 [ 359.303071] el0t_64_sync_handler+0xf4/0x120 [ 359.307335] el0t_64_sync+0x18c/0x190 [ 359.310984] ---[ end trace 0000000000000000 ]--- [ 359.316570] PANEL: gpiod_set_value 1 (reset)-> Sleep 20ms [ 359.341194] ------------[ cut here ]------------ [ 359.351199] WARNING: CPU: 0 PID: 371 at drivers/gpio/gpiolib.c:3140 gpiod_set_value+0x5c/0xcc [ 359.359717] Modules linked in: crct10dif_ce polyval_ce polyval_generic layerscape_edac_mod at24 btnxpuart fuse [last unloaded: goodix_ts] [ 359.372061] CPU: 0 PID: 371 Comm: modetest Tainted: G W 6.1.36+gd997ba75bc0a #1 [ 359.380741] Hardware name: BOSCH MOP ENG i.MX93 Sirius board (DT) [ 359.386819] pstate: 80400009 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 359.393767] pc : gpiod_set_value+0x5c/0xcc [ 359.397849] lr : ili9881c_prepare+0x94/0x1e8 [ 359.402113] sp : ffff80000b14b8f0 [ 359.405415] x29: ffff80000b14b8f0 x28: ffff0000050366b0 x27: 0000000000000000 [ 359.412539] x26: ffff800009396ad0 x25: ffff8000097619f0 x24: 0000000000000028 [ 359.419663] x23: 00000000ffff98ff x22: 00000000ffffff81 x21: 0000000000000000 [ 359.426787] x20: 0000000000000000 x19: ffff0000042cc430 x18: ffffffffffff7770 [ 359.433912] x17: 0000000000000000 x16: 0000000000000010 x15: 0000000000000038 [ 359.441035] x14: 00000000000003d6 x13: 0000000000000000 x12: 0000000000000000 [ 359.448159] x11: 0000000000000001 x10: 0000000000000a60 x9 : ffff80000b14b7f0 [ 359.455283] x8 : ffff00002fd94000 x7 : ffff000005193200 x6 : 0000000208023479 [ 359.462407] x5 : 00000000410fd050 x4 : 0000000000000000 x3 : 0000000000000000 [ 359.469531] x2 : 0000000000000000 x1 : ffff000004bdad00 x0 : 0000000000000001 [ 359.476656] Call trace: [ 359.479092] gpiod_set_value+0x5c/0xcc [ 359.482835] ili9881c_prepare+0x94/0x1e8 [ 359.486744] drm_panel_prepare+0x28/0x40 [ 359.490661] panel_bridge_pre_enable+0x14/0x20 [ 359.495098] drm_atomic_bridge_chain_pre_enable+0x94/0xd0 [ 359.500489] drm_atomic_helper_commit_modeset_enables+0x170/0x26c [ 359.506573] lcdifv3_drm_atomic_commit_tail+0x30/0x70 [ 359.511617] commit_tail+0xa4/0x190 [ 359.515092] drm_atomic_helper_commit+0x164/0x180 [ 359.519781] drm_atomic_commit+0xa8/0xe0 [ 359.523690] drm_client_modeset_commit_atomic+0x210/0x270 [ 359.529072] drm_client_modeset_commit_locked+0x5c/0x18c [ 359.534367] drm_client_modeset_commit+0x30/0x60 [ 359.538969] drm_fbdev_client_restore+0x6c/0xc0 [ 359.543484] drm_client_dev_restore+0x80/0xe0 [ 359.547826] drm_lastclose+0x74/0x8c [ 359.551388] drm_release+0x10c/0x124 [ 359.554950] __fput+0x70/0x250 [ 359.558001] ____fput+0x10/0x20 [ 359.561130] task_work_run+0x80/0xe0 [ 359.564700] do_notify_resume+0x1e0/0x1280 [ 359.568791] el0_svc+0x74/0x84 [ 359.571842] el0t_64_sync_handler+0xf4/0x120 [ 359.576097] el0t_64_sync+0x18c/0x190 [ 359.579747] ---[ end trace 0000000000000000 ]--- Re: Ilitek ILI9881C MIPI LCD Panel issue on i.MX93 Hello, I see that in your test you tried with different clocks, does the issue persist for the different clock values? Also, is there any strange message in logs? Best regards/saludos, Aldo.
查看全文
SWO on S32K344 with S32 Design Studio Hi is there any complete example how to make SWO running using S32 design studio? How to configure pinMUX, clocks, etc? I've tried multiple examples with J-link and PEMicro debuggers, but with no success. I've been using also retarget_itm.c library for ITM configuration (delivered by NXP).  Re: SWO on S32K344 with S32 Design Studio Hi @Julián_AragónM, Has this issue been resolved? I am encountering the same problem, where the MCU enters a hard fault after configuring the TPIU registers, and J-Link is also unable to write data to these registers. Could this be due to some safety protection? Is there any additional configuration I need to perform before writing to these TPIU registers? I would greatly appreciate any help or insights. Re: SWO on S32K344 with S32 Design Studio Hi @jakub-holoubek, I have sent you a private message through the community. Re: SWO on S32K344 with S32 Design Studio Hi @Julián_AragónM, ok thanks. 🙂 I'm aware of that retarget_itm library. However my suspicion is that there is some issue with TPIU related registers. Which are probably accessed by debugger itself: Cortex m7 TPIU registersCortex m7 TPIU registers In case I'm setting them from the code the MCU goes to hard fault. And same happens also in case I connect the debugger (tried J-Link, PEMicro, Lauterbach) and want to enable the SWO through debugger's settings - MCU goes into hard fault.  Re: SWO on S32K344 with S32 Design Studio Hi @jakub-holoubek, I apologize for the late reply. This may be an issue with the implementation of trace and our architecture. There is an internal discussion with the SW team now. I will try to update you if anything else comes up. As of now, you can create a new project in S32DS with prinft ITM, but the retarget_itm library does not work as expected. Best regards, Julián Re: SWO on S32K344 with S32 Design Studio Hi, @Julián_AragónM, yes, I'm using S32K3-T-BOX board. Those TRACE signals are valid for ETM interface. However I need to communicate using ITM through JTAG_TDO pin - so it is routed to JTAG connector. That pin is used for SWO communication in case the SWD protocol is used instead of JTAG - which is my case. Re: SWO on S32K344 with S32 Design Studio Hi @jakub-holoubek, Are you using the S32K344 evaluation board? By default, all TRACE signals are DISABLED. Best regards, Julián Re: SWO on S32K344 with S32 Design Studio Hi @Julián_AragónM, thanks for reply. I've checked that tutorials. One issue I've got is that MCU goes to the hard fault once I want to write/read some TPIU registers. For example this code: *((volatile unsigned *)(ITM_BASE + 0x400F0)) = 0x00000002; /* "Selected PIN Protocol Register": Select which protocol to use for trace output (2: SWO NRZ, 1: SWO Manchester encoding) */ *((volatile unsigned *)(ITM_BASE + 0x40010)) = SWOPrescaler; /* "Async Clock Prescaler Register". Scale the baud rate of the asynchronous output */ Once trying to set one of those registers the MCU goes to hard fault. I've found in reference manual of ARM M7 core, that TPIU is not configured in M7 cores - can you confirm that?  Or is there any other register I have to set before writing into TPIU related registers? Re: SWO on S32K344 with S32 Design Studio Hi @jakub-holoubek, I believe this is a question for SEGGER instead. There is no other example for configuring this with S32DS specifically, but you can use the following posts as guidance:  Tutorial: Using Single Wire Output SWO with ARM Cortex-M and Eclipse | MCU on Eclipse. PEmicro Forums Topic: Problem with ITM-printf in S32DS using Multilink ACP Rev.B Solved: SWV (ITM --> SWO) on S32k324 not working - NXP Community Also, SEGGER has a dedicated page in their knowledge base for their J-Link SWO Viewer: J-Link SWO Viewer - SEGGER Knowledge Base & UM08001 J-Link / J-Trace User Guide - SEGGER Knowledge Base. Best regards, Julián Re: SWO on S32K344 with S32 Design Studio For example in this article: Single Wire Output (SWO) support within S32 Design Studio, enabled by PEmicro's GDB Server It would be nice have more details, including sources. 
查看全文
i.MX 12.1 的配置工具:Ubuntu 无法定位 python 你好 我正在使用 i.MX ubuntu 12.1 版的配置工具计算内存时序。我发现创建新项目后,代码预览不起作用,因为找不到 python。swtool.log 显示以下错误之一"Python 路径不存在:/opt/nxp/i.MX_CFG_v12.1/bin/python39"因为安装后只有"/opt/nxp/i.MX_CFG_v12.1/bin/python38" 可用,而 python 的版本是 3.10.0a2+。 请您更正一下。谢谢。 祝你们圣诞快乐 Re: Config Tools for i.MX 12.1: Ubuntu cannot locat python 在尝试生成 `lpddr4_config.c` 时,我还遇到了与 Python 有关的错误 使用 i.MX 配置工具版本 25.06 的 U-Boot 文件。看起来,自 `python3.13` 起,该工具没有提供 正确的 Python 版本。被链接到 `bin` 目录中的 `python3.12`。 在使用 Python 3.13 作为系统宽 python 的 Debian 13 上,我通过替换 `python3.13` 成功生成了配置文件。链接 系统 python 的符号链接。可以使用以下 bash 命令完成: `(cd i.MX_CFG_25.06/bin/python3/bin)&& rm python3.13&& ln -s /usr/bin/python3.13 python3.13)` 此外,`tools`二进制文件必须直接从 `bin` 目录中执行,例如 `(cd i.mx_CFG_25.06/bin &&./tools) Re: Config Tools for i.MX 12.1: Ubuntu cannot locat python 我刚刚注意到的一件事——如果我保存配置, " 错误 DDRC 由于用于配置 DDR 的值错误而无法生成代码!" 消息消失了,但是当我尝试在我的板上运行测试时,我会收到关于缺少 memtool 的消息。 Re: Config Tools for i.MX 12.1: Ubuntu cannot locat python 如果我忽略该信息并尝试运行测试,则会出现以下失败信息: /opt/nxp/i.MX_CFG_v12.1/bin/python38/bin/python:查找 "memtool.s "模块规范时出错(模块未找到错误:没有名为 "memtool "的模块)。 Re: Config Tools for i.MX 12.1: Ubuntu cannot locat python 谢谢,我已经修复了 tools.ini 文件。 代码包附带的文件夹名为 python38,但是 ini 文件设置为 python39。 这消除了 python 错误,但我又收到了另一个错误: "错误 DDRC 由于用于配置 DDR 的值错误,导致代码生成失败!" 我已将所有值设置为 MX8M Mini evk 的默认值,但仍出现此错误。 每次尝试调整数值时,我都会收到一条信息,提示"不支持指定的数值" 。 当我使用基于 Windows 的工具时,同样的值也能正常工作。 唐 Re: Config Tools for i.MX 12.1: Ubuntu cannot locat python 你好 你可以在 tool.ini 中设置自己的路径,即 -Dpython.dir=python39(/opt/nxp/i.MX_CFG_v12.1/bin)它也应该可以工作。但据我了解,故障(也许是复制粘贴)是可以解决的。 新年快乐 Re: Config Tools for i.MX 12.1: Ubuntu cannot locat python 我也有同样的问题。 有什么新进展吗?
查看全文
关于 i.MX RT1060 功能和 SDK 支持的技术说明 亲爱的恩智浦团队 我们目前正在评估恩智浦 i.MX RT1060,项目涉及以太网通信、显示集成、USB 外围设备、工业协议和音频输出。我们查看了文档和 SDK 产品,希望您能澄清以下技术问题: 1.LVDS 显示器支持: i.MX RT1060 能否直接与 LVDS 显示器连接,或者是否需要外部 RGB 转 LVDS 桥接 IC(如 SN65DSI83)?此外,是否有支持 LVDS 显示器的 SDK 示例? 2.摄像头输入: i.MX RT1060 本机是否支持 USB-UVC 摄像头?如果没有,是否有变通方法或 SDK 级解决方案,或者 CSI 接口是唯一的选择? 3.以太网 MQTT: MCUXpresso SDK 是否包含任何演示以太网 MQTT 的示例? 4.Modbus RTU (RS485): 使用类似 SP3485 的 RS485 收发器通过 UART 实现 Modbus RTU(主/从)的推荐方法是什么? 5.音频输出: 对于扬声器输出,是使用 MQS 还是 SAI 与外部编解码器(如 SGTL5000)一起使用更好?哪种方法更稳健、支持度更高?有 SDK 示例吗? 6.XIP 支持(QSPI): 是否支持通过 FLEXSPI2_A 接口从外部 QSPI 闪存就地执行 (XIP)?您能推荐适合这种用途的 QSPI 闪存芯片吗? 7。外设多路复用: 在 196 引脚 MIMXRT1062CVL5B 代码包,软件包上,可在没有引脚冲突的情况下同时使用的最大外围设备(例如 2x CAN、6x UART、3x SPI、3x I²C、ADC、PWM)是多少? 8。OCPP 支持: 是否有任何参考软件堆栈或 SDK 示例可用于在 i.MX RT1060 上实现 OCPP(开放充电点协议)? 9.开发工具: 在 i.MX RT1060 开发中最推荐使用哪种调试器(如 J-Link、P&E Micro)和集成开发环境(如 MCUXpresso、IAR、Keil)? 10。USB 摄像头 SDK: 如果支持 USB-UVC 摄像头,是否有演示视频/图像捕获和显示渲染的示例项目? 11.USB 主机堆栈支持: SDK 是否支持带有 HID、UVC 和大容量存储类驱动程序的 USB 主机模式?是否有随时可测试的示例项目? 12.替代 MCU 建议: 如果 i.MX RT1060 不能满足上述所有要求(以太网、LVDS、RS485、CAN、音频、MQTT),您能否推荐一款具有类似或更好的外设集成度以及兼容 SDK 和 IDE 的恩智浦替代 MCU? 如果您能就上述问题提供指导,帮助我们选择最适合我们应用的 MCU,我们将不胜感激。 期待您的回复。 提前谢谢您。 致以最崇高的敬意 Pandiyan T. Re: Technical Clarification on i.MX RT1060 Capabilities and SDK Support 你好@Panidiyan_T、 感谢您提供的最新信息。 如果您不介意,请为您的新问题创建一个新案例。 感谢您的理解与合作。 顺祝商祺! MayLiu Re: Technical Clarification on i.MX RT1060 Capabilities and SDK Support 你好,MayLiu、 感谢您的详细答复。 根据你的建议,我们计划继续开发i.MX RT1170 MCU,从EVKB评估板开始。 请澄清有关 RT1170 的以下几点: USB UVC 摄像机支持 i.MX RT1170 是否支持符合 UVC 标准的 USB 摄像机? 如果是,是否有任何 SDK 示例可用于捕获和显示相机输入? 如果没有,您能否提供有关如何使用USB主机堆栈实现UVC支持的任何指导、应用笔记或参考? LVDS 显示集成 我们计划使用RGB 转 LVDS 桥接 IC(如 SN65DSI83)进行显示。 在 i.MX RT1170 EVKB 上使用此类桥接 IC 配置RGB LCDIF 接口时,是否有任何 SDK 示例或指南? 以太网 MQTT MCUXpresso SDK 中是否有专门针对 RT1170 的以太网 MQTT 通信示例项目? 如果您能分享任何参考设计、SDK 路径或应用笔记,我们将不胜感激。 再次感谢您的支持。 致以最诚挚的问候, PandiyanT Re: Technical Clarification on i.MX RT1060 Capabilities and SDK Support 你好@Panidiyan_T、 感谢您对恩智浦半导体产品的关注并有机会为您服务。 答 1: i.MX RT1060 本身不支持 LVDS 接口,需要外接 RGB 转 LVDS 桥接芯片。有关详细信息,请参阅 RT1060RM 文档中的第 35 章 - 增强型 LCD 接口 (eLCDIF)。 答 2: 恩智浦 SDK 库不包括 USB-UVC 示例。我建议参考以下应用笔记。RT1060 和 RT1050 属于同一个系列,具有相似的架构。 开发基于 i.MX RT1050 的简单 UVC 设备 答 3: 是,恩智浦 SDK 包含一个演示以太网 MQTT 的示例。 https://github.com/nxp-mcuxpresso/mcux-sdk-examples/tree/main/evkbmimxrt1060/lwip_examples/lwip_mqtt/freertos 答 4: 恩智浦 SDK 演示不包括相关示例。我们对由此造成的不便深表歉意。 答案 5: 我建议使用 SAI,请注意必须连接外部编解码器。 问题 6. XIP 支持(QSPI): 通过 FLEXSPI2_A 接口,外部 QSPI 闪存是否支持就地执行 (XIP)?您能推荐适合这种用途的 QSPI 闪存芯片吗? 答案 6:i.MXRT1060 仅支持通过 FlexSPI1 启动的或非闪存。详情请参阅以下链接 痞子衡嵌入式:恩智浦i.MX RT1xxx系列MCU启动那些事(11.B)- FlexSPI NOR连接方式大全(RT1060/1064(SIP)) - 痞子衡 - 博客园 答 7: 我认为不能同时启用所有外设,因为有些引脚是共享的。 如果您配置了最大可能的外设,RT1060 能够支持这些外设。 答 8: 很抱歉,我们还没有 RT 的直接 OCPP(开放式充电点协议)示例,但我认为这是软件工程师的工作。 答 9: RT1060 芯片支持以下调试器和集成开发环境,请根据需要选择。 调试器:SEGGER J-Link , P&E Multilink , MCU-Link IDE: MCUXpresso IDE ,Keil MDK ,IAR。 答案 10: 请参考答案 2 答案11:恩智浦SDK支持USB主机模式;但是,其他一些驱动程序需要手动集成,没有完整的示例可供参考。 有关 SDK 的更多信息,请参阅以下链接。 https://github.com/nxp-mcuxpresso/mcux-sdk-examples/tree/main/evkbmimxrt1060 答 12: RT1064 芯片具有 4MB 片上闪存,保持了与 RT1060 相同的内核规格,同时无需外部闪存配置。 如果想增强性能,我建议考虑升级后的 RT1170 系列,它的功能比前几代产品要先进得多。 希望它能帮到你。 如果您还有疑问,请告诉我。 祝你愉快 敬上 MayLiu
查看全文
符号なしRTD - SW32K1_S32M24x_RTD_4.4_3.0.0_QLP02 /01 こんにちは、 SW32K1_S32M24x_RTD_4.4_3.0.0_QLP0 2 で問題が発生しましたNXP Web ページからダウンロードした SW を Tresos ツールで実行します。 プラグインは署名されていません。01バージョンにも署名されていません。 C\NXP\AUTOSAR\SW32K1_S32M24x_RTD_4.4_3.0.0_QLP02\eclipse\plugins\BaseNXP_TS_T40D2M30I0R0/config/BaseNXP.xdmには署名が必要です。 私もお客様もこの問題に気づいています。 問題を調査していただけますか? よろしくお願いいたします。 ピーター RTD Re: Unsigned RTD - SW32K1_S32M24x_RTD_4.4_3.0.0_QLP02 /01 こんにちは、ダン。 この問題はいつ修正されるかご存知ですか?私のお客様も、「このモジュールのライセンスがありません」という同じエラー メッセージに遭遇しました。 よろしくお願いいたします ロビン Re: Unsigned RTD - SW32K1_S32M24x_RTD_4.4_3.0.0_QLP02 /01 こんにちは@petervlnaさん、 会議で議論されたように、この問題はデフォルトのインストール パスを維持することで修正されます。そしておそらく、EB Tresos にはこのパスの変更に関するチェック条件があります。 よろしくお願いいたします。 ダン Re: Unsigned RTD - SW32K1_S32M24x_RTD_4.4_3.0.0_QLP02 /01 こんにちは、 お客様からのフィードバックは次のとおりです: RTD3.0.0 のみをインストールするクリアなマシンにすべてのパッケージのインストールを再試行します。リンクフォルダにはRTD 3.0.0がありますライセンスコードは以下のように表示されます。   また、管理者権限で EB を開こうとしましたが、3.0.0 も開けません。 3.0.0以降のすべてのモジュール同じ問題「ライセンスなし」があります。   プラグインは署名されているとのことですが、この問題の原因は何でしょうか? 奇妙なことに、署名されていないプラグインに関するお客様からの報告と同じ動作も見られます。これ以外にも他の RTD は正常に動作します。 私が見たものは次のとおりです。 同じセットアップで S32K3 RTD を問題なく開くことができ、MPC57xx プロジェクトも同様です... SW32K1_S32M24x_RTD_4.4_3.0.0_QLP02 / 01 RTD を除き、署名の問題は報告されていません。 よろしくお願いいたします。 ピーター Re: Unsigned RTD - SW32K1_S32M24x_RTD_4.4_3.0.0_QLP02 /01 こんにちは@petervlnaさん、 P02の最新ドライバダウンロードで試してみました。 管理者権限で EB Tresos を閉じて再度開いてみていただけますか? 問題が解決しない場合は、「C:\EB\tresos\links」内のSW32K1_S32M24x_RTD_4.4_3.0.0_QLP02.linkファイルにパッケージへのパスが含まれているかどうかを確認してください(リンクファイルの内容:パス=C:/NXP/SW32K1_S32M24x_RTD_4.4_3.0.0_QLP02) 「links」フォルダに複数のS32K1リンクファイルが含まれている場合は、SW32K1_S32M24x_RTD_4.4_3.0.0_QLP02.linkと異なるS32K1リンクファイルをすべて削除してください。 その後、EB Tresos を再度開いて再試行してください。 よろしくお願いいたします。 ダン Re: Unsigned RTD - SW32K1_S32M24x_RTD_4.4_3.0.0_QLP02 /01 こんにちは、 あなたが示したものと同じライセンスを所有しています。 私はtresos 28.2を使用しています。 ドライバは新しくインストールされましたが、署名の問題はまだ存在しています。 読み込み中 ドライバ構成を開こうとすると、エラーが発生します。 P02 の最新のドライバをダウンロードして試しましたか、それとも以前にインストールしたものを実行しただけですか? なぜなら、お客様も私も今この問題に気づいているからです。 よろしくお願いいたします。 ピーター Re: Unsigned RTD - SW32K1_S32M24x_RTD_4.4_3.0.0_QLP02 /01 こんにちは@petervlnaさん、 EB 29.0.0 であなたの懸念を確認しましたが、説明どおりの問題は発生しませんでした。NXP Web サイトで最新の EB Tresos ライセンスを取得しましたか? はいの場合は、ライセンスをダブルクリックして、署名があるかどうかを確認してください。 ライセンスが上記の画像と同じで問題が発生した場合は、ドライバで変更された構成ファイルがある可能性があります。パッケージをアンインストールし、その後再インストールして再試行してください。 よろしくお願いいたします。 ダン
查看全文
LPCXPRESSO LPC2103 ISPプログラミング こんにちは。LPCXPRESSO を使用して LPC2103 用の小さなコード プロジェクトを作成しました。UART0 インターフェース経由で ISP をプログラムしたいです。しかし、LPCEXPRESSO のどの出力ファイルを UUENCODE してからプログラムする必要がありますか? クル オイステイン Re: LPCXPRESSO LPC2103 ISP programmig こんにちは@oykrさん、 プロジェクトをビルディングすると、デバッグ フォルダーが作成されます。その中には.axfファイルがありますプロジェクトのバイナリを生成するために使用できるファイルです。 このバイナリを使用して、MCU をプログラムできます。 よろしくお願いします、 パブロ
查看全文
i.MX6SX SABRE-SDボード上のMercury DAC用オーディオコマンド支援の依頼 こんにちは 私は現在、Mercury および Radion チューナー チップを統合した i.MX6SX SABRE-SD ボードを使用しています。両方のチューナー チップが正常に起動したことをお知らせします。しかし、オーディオ出力に問題が発生しており、現在は機能していません。 回路図を確認すると、Mercury DAC が X7 出力にコネクテッドされていることに気付きました。さらに進むには、この DAC を介してオーディオ出力を有効にしてトラブルシューティングするために必要な適切なオーディオ コマンドまたは構成手順を共有していただければ幸いです。 このマターに関してあなたのご助力は非常に貴重であり、深く感謝いたします。 どうぞよろしくお願いいたします。 よろしくお願いします、 ジョセフ・クリストファー Re: Request for Audio Command Assistance for Mercury DAC on i.MX6SX SABRE-SD Board こんにちは、 これらの製品はMass Marketではないため、当社ではこれらの部品番号の情報にアクセスできないため、お近くの FAE にお問い合わせすることをお勧めします。 よろしくお願いいたします。 Re: Request for Audio Command Assistance for Mercury DAC on i.MX6SX SABRE-SD Board こんにちは@JorgeCas ご返答ありがとうございます。 このメッセージに回路図を添付しましたので、機会があればご覧ください。 よろしくお願いします、 ジョセフ・クリストファー Re: Request for Audio Command Assistance for Mercury DAC on i.MX6SX SABRE-SD Board こんにちは、 回路図の接続を共有していただけますか? よろしくお願いいたします。
查看全文
NXP S32K118Q048 EVB LIN Stack Hi, I’m working with an NXP S32K118 EVB and trying to load a new LDF file into my LIN configuration. The stack worked fine with previous LDFs, but with the new file, I get terminal errors stating some nodes are missing configurable frames under Node Attributes. I also get a delay time too short error. The same LDF works fine in CANoe without issues. I have attached an example of error that I see in the terminal. Issue: %error Error: xxxxx.ldf line: 111 "NodeName" Frame sporadic_frame_name- Missing frame in LDF Configurable frames in Node Attributes. Level: Error Type: Tool problem Tool: Peripherals Origin: Peripherals Resource: Sources Information: %error Error: xxxxx.ldf line: 111 "NodeName" Frame sporadic_frame_name- Missing frame in LDF Configurable frames in Node Attributes.  I want to know what could be possibly causing these and how to fix them. Is it an issue in Design studio, an inherent limitation in the NXP LIN stack or  a problem in the file? Bear in mind, that the LIN stack is comptible with the RTD since I got one of the LIN stack examples working. Any help would be appreciated. regards, Re: NXP S32K118Q048 EVB LIN Stack Hi @yousefdessouki123, Can you share the LDF? Which revision of the S32k1xx LIN Stack do you use? Thank you, BR, Daniel
查看全文
NXP S32K118Q048 EVB LIN Stack Hi, I’m working with an NXP S32K118 EVB and trying to load a new LDF file into my LIN configuration. The stack worked fine with previous LDFs, but with the new file, I get terminal errors stating some nodes are missing configurable frames under Node Attributes. I also get a delay time too short error. The same LDF works fine in CANoe without issues. I have attached an example of error that I see in the terminal. Issue: %error Error: xxxxx.ldf line: 111 "NodeName" Frame sporadic_frame_name- Missing frame in LDF Configurable frames in Node Attributes. Level: Error Type: Tool problem Tool: Peripherals Origin: Peripherals Resource: Sources Information: %error Error: xxxxx.ldf line: 111 "NodeName" Frame sporadic_frame_name- Missing frame in LDF Configurable frames in Node Attributes.  I want to know what could be possibly causing these and how to fix them. Is it an issue in Design studio, an inherent limitation in the NXP LIN stack or  a problem in the file? Bear in mind, that the LIN stack is comptible with the RTD since I got one of the LIN stack examples working. Any help would be appreciated. regards, Re: NXP S32K118Q048 EVB LIN Stack Hi @yousefdessouki123, Can you share the LDF? Which revision of the S32k1xx LIN Stack do you use? Thank you, BR, Daniel
查看全文
MMG3014NT1 Date code questions Hello, We have obtained a batch of MMG3014NT1 parts from the market. Without labels, the production year of the parts cannot be confirmed. May I ask if there are any relevant documents that can confirm the year of the parts? markinbgmarkinbg Thank you.
查看全文
MMG3014NT1 Date code questions Hello, We have obtained a batch of MMG3014NT1 parts from the market. Without labels, the production year of the parts cannot be confirmed. May I ask if there are any relevant documents that can confirm the year of the parts? markinbgmarkinbg Thank you.
查看全文
VR5510チップは通常モードで再起動します お返事ありがとうございます。さて、2つの質問があります。 1. このレジスタは図のように構成されているでしょうか?選択した PMIC モデルは mvr5510amdales です。このモデルは工場出荷前に焼き尽くされており、再度焼き付けることはできません。 2. 提供された画像に従って設定する必要がある場合、使用前に「KITVR5510SKTEVM バーンインボード」を使用して空のチップを書き込む必要がありますか。 ご協力に改めて感謝申し上げます。 Re: The VR5510 chip restarts in normal mode こんにちは@LONGGANGSU 、 詳細をありがとうございます。MVR5510AMDALES に工場でプログラムされた OTP メモリがある場合、通常は再プログラムできません。設定を空のチップに書き込むには、はい、続行するには KITVR5510SKTEVM ボードが必要です。念のため、データシートまたはベンダーに具体的な部品番号と OTP ステータスを確認してください。 よろしくお願いします、 ジェームズ・クロス Re: The VR5510 chip restarts in normal mode わかりました、ありがとう。 Re: The VR5510 chip restarts in normal mode 1. このレジスタは図のように構成されているでしょうか?選択した PMIC モデルは mvr5510amdales です。このモデルは工場出荷前に焼き尽くされており、再度焼き付けることはできません。 【gw】のこのSBCはOTP化されており、OTPのレジスタ内容は再度変更できません 2. 提供された画像に従って設定する必要がある場合、「KITVR5510SKTEVMバーンインボード」を使用して空のディスクを書き込む必要がありますか? 【gw】 自分の OTP が必要な場合は、A0 バージョンの空チップを選択できます。
查看全文
i.MX8M Plus CAN FD setsockopt() が C コードで失敗する ソケットを開き、canfd フレームを有効にして、インターフェースにバインドするための正しい機能コマンドは何ですか。ソケットは、ビット レート スイッチング フレームを受信する必要があります。 ip link set can0 up type can bitrate 500000 dbitrate 2000000 fd on //これはCANインターフェースを有効にするために使用するコマンドです 現在使用しているのは: ソケット( PF_CAN 、 SOCK_RAW 、 CAN_RAW ); setsockopt ( sock 、 SOL_CAN_RAW 、 CAN_RAW_FD_FRAMES 、 & enable_canfd 、 sizeof ( enable_canfd )); setsockopt でエラー コード 22 (EINVAL) が表示されます。 正しい議論は何ですか? ソケット(); setsockopt(); Re: i.MX8M Plus CAN FD setsockopt() fails in C code こんにちは CAN-FD は i.MX 8M Plus のコンシューマー バージョンではサポートされておらず、インダストリアル バージョンでのみ利用できます。 残念ながら、8MP EVK にはコンシューマー バージョンがインストールされているため、i.MX 8M Plus EVK は CAN-FD 機能をサポートしていません。 よろしくお願いします。 ダニエル
查看全文
OM27462CDK 说明 我已经收到了用于 PN7426 NFC 应用程序开发的 OM27462CDK 开发板。你能帮我理解开发板背面突出显示的部分吗。请让我知道从使用开发板检测 NFC 卡开始的 “最佳应用示例”。 谢谢 Sreevishakh Re: OM27462CDK Clarification 嗨,丹尼尔 非常感谢你的澄清。 祝您愉快 顺祝商祺! Sree Vishakh Re: OM27462CDK Clarification 你好@sreevishakh,日安! PN7462 评估板提供了通过接触界面集成外部 SAM 的可能性,以便使用存储在该模块中的密钥进行身份验证。 " pn7462au_ex_phexdoorAccessec " 示例演示了此功能;你可以在 PN7462 系列快速入门指南的第 9.15 节中找到该应用程序的概述,在 PN7462AU 门 禁用户手册中 详细说明 如何使用该示例。 为了与 NFC 移动设备通信,集成了 P2P(点对点)功能,支持执行数据交换的被动 A 106 模式。" pn7462au_ex_ex_phexmain " 示例 " P2P 模式 " 以及 " pn7462au_ex_phexdoorAccess " 和 " pn7462au_exdoorAccess 和 pn7462au_ex_ex_phex_phexnfccID " 示例中也探讨了这个功能。 你可以在 PN7462AU PC CCID 阅读器用户 手册中找到有关使用最后一个示例的详细说明。 致以最诚挚的问候, Daniel Re: OM27462CDK Clarification 你好,丹尼尔-古铁雷斯、 我还有一个疑问:PN7462 开发板是否能够检测和交换来自启用 NFC 的安卓手机而不是 NFC 卡的数据。如果是这样,可以从任何示例应用程序开始。我的最终计划是用手机代替 NFC 卡。 顺祝商祺! Sreevishakh Re: OM27462CDK Clarification 你好,丹尼尔-古铁雷斯、 非常感谢你的及时回复。我能够运行 phexMain 示例代码。我知道 PN7462 板有一个 SAM [安全访问模块]。是否有任何文档可以了解有关 SAM 的更多信息以及如何集成 SAM 功能和示例应用程序代码? 顺祝商祺! Sreevishakh Re: OM27462CDK Clarification 你好@sreevishakh,日安! 感谢您对我们的产品感兴趣。 开发板背面突出显示的部分是触点插槽接口(智能卡 5145300-2),允许与 ISO7816 和 EMVCo 接触式智能卡进行通信。 为了开始探索 PN7462 的这一功能和其他功能,我建议您查看 “phexMain” 示例,该示例是 " PN7462AU 固件和软件示例 " 代码包中包含的许多子示例的根源。本示例允许演示支持 A 型、B 型、Felica、ISO15693、ISO18000P3m3 协议的免接触式操作以及支持 ISO7816 的接触式操作。 有关该示例的不同可用功能及其设置过程的更多详细信息,请参阅 PN7462 系列快速入门指南的第 9.2 节。 致以最诚挚的问候, Daniel
查看全文
Using ENGCLK as 33 MHz Clock Source for External peripherals Hi @davidtosenovjan, In our MPC5674F-based design, the system clock is configured at 264 MHz. We require an additional 33 MHz clock for external peripherals but DCLK_OUT is already used elsewhere in the design. We are considering using the ENGCLK pin for this purpose. Can ENGCLK be configured to output a 33 MHz clock suitable for external peripherals? Based on the reference manual, if we switch to an external 16 MHz crystal using the ECSS bit, is it possible to derive 33 MHz from ENGCLK? Thanks  Narendra.C MPC5674F  Re: Using ENGCLK as 33 MHz Clock Source for External peripherals hi @davidtosenovjan , Thanks for confirming. Could you please share the manual or document where this block diagram is available? Thanks Narendra.C MPC5674F  Re: Using ENGCLK as 33 MHz Clock Source for External peripherals Yes, you can use it as you stated.
查看全文
S32DSライセンスがありません NXPパートナー様 S32DS for ARM v1.2 ライセンスがありません 私たちは、プラットフォームMAC57D54でモーターメーターを開発し、S32DSをARMとして使用してM4コアソフトウェアを完成させました。長い時間がかかりました。現在、いくつかのパラメータを変更したいのですが、S32DS V1.2で「ライセンスがありません」という警告が表示されます。 S32DS v1.2 for Arm を再び使用するにはどうすればよいですか? Re: S32DS licence missing 正しく説明していないかもしれませんが、 私の免許証を免除してもらえますか? 5549-1FBC-B3CA-CB63 Re: S32DS licence missing こんにちは、ジリ エラーメッセージは表示されませんでした。 また、以下のサイトのような状況で新しいライセンス コードを取得CANか。 https://community.nxp.com/t5/S32-Design-Studio/S32-Design-Studio-for-ARM-v2-2-LICENSCE-estend/mp/2103287?profile.language=ja Re: S32DS licence missing こんにちは、 もう一度お試しください。古いライセンスはすべて削除しました。何かエラーメッセージは出ますか? Re: S32DS licence missing 古いアクティベーションコードを入力しましたが機能しません。 Re: S32DS licence missing こんにちは、 S32DS ライセンスが延長されました。古いアクティベーションキーを使用してください。
查看全文
PCF85063A PCF85063A这款芯片,配合stm32使用的软件demo资料有吗?我需要的是如何使用该芯片的软件驱动实例,我再移植到我自己的平台上。麻烦给一个驱动的实例资料包到我邮箱,谢谢! Re: PCF85063A 是的!我的问题已经解决了。非常感谢! Re: PCF85063A 您好, 对于与 STM32 一起使用的 PCF85063A RTC,有一个基本的软件驱动程序示例。 您可以在 GitHub 上找到它: https://github.com/zild-jhan/PCF85063A-STM32 BRs, Tomas
查看全文
LS1048ardb SERDES 匹配 DPL 文件 你好 我是恩智浦 Layerscape 硬件的新手,正在使用 LS1048ardb 平台。我想提一下 DPMAC2 以太网设备(我认为这是基本以太网的普遍用法 “eth0”),但是通过阅读恩智浦论坛的各种帖子,我需要一个与 SERDES 相匹配的 DPL 文件。如果没有 DPL 文件,我就会得到预期的 uboot 错误: "fsl-mc:DPL 未部署,DPAA2 以太网不工作" 我在恩智浦论坛上找到了几个生成 "空 "DPL 文件的帖子,使用该 dtb 后,我得到了这个错误: "fsl-mc:部署数据路径布局 ...警告:固件返回错误 (GSR: 0x3f)" 在恩智浦技术支持论坛的一些回复中(针对 ls1088ardb),我通过提供 SERDES 值,恩智浦工程师可以生成一个适当的 DPL 文件。 以下是我从 mii/mdio 和 SERDES 值中收集到的一些信息,希望对您有所帮助: = > mii 设备 MI I 设备:'FSL_MDIO0' '' FSL_MDIO1 ' 当前设备:' FSL_MDIO0 '= > mii 信息 PHY 0x01:OUI = 0x80028,型号 = 0x23,Rev = 0x01,1000BaseT,FDX => mdio 列表 FSL_MDIO0: 1 - TI DP83867<--> DPMAC2@sgmii FSL_MDIO1: 看似相关的Uboot启动数据: 使用 SERDES1 协议:18 (0x12) 使用 SERDES2 协议:13 (0xd) 网:DPMAC2@sgmii [PRIME] fsl-mc:启动管理复杂...成功 fsl-mc:管理综合体已启动(版本:10.12.0,启动状态:0x1)启用 1000BT 全双工/半双工广告 若能得到任何帮助,我将不胜感激。 Re: LS1048ardb SERDES Matched DPL File 您好@brian-wood 感谢您分享您的发现,您已经在 DTS 中添加了下一项,对吗? >>> &davinci_mdio { phy0:ethernet-phy@0 { //PHY0已定义并传给 phy-handle reg =<0>; ti,rx-internal-delay = ; ti,fifo-depth = ; }; }; & cpsw_port1 { phy-mode ="rgmii-rxid" ; phy-handle =<& phy0>; }; < < < " 我想这与 FSL MC 如何创建网络有关)" 其实不然,它与以太网内存映射有关,但我们无法修改。 遗憾的是,没有一种简单的方法,8( ,你可以省略 DPL,但这不是一个好主意,因为 DPL 的目的不是描述硬件属性,而是描述 MC 应创建的逻辑对象的初始拓扑结构和属性。 BR LFGP Re: LS1048ardb SERDES Matched DPL File 你好,LFGP、 我想感谢您在解决这个问题时提供的建议。我发现了问题;我们使用的是 TI83867 phy,我需要将 “ ti,fifo-depth = < DP83867_PHYCR_FIFO _DEPTH_4_B_NIB >;” 添加到我的 ph y 设备树节点。我现在有以太网了,但还有一个后续问题。 一切就绪后,我看到了一个 "eth0",但同时也看到了一个 "mac2"(我想这与 FSL MC 的联网方式有关)。是否有一种简单的配置更改方法,可以让一切都变成 "eth0"?还是只有 "Mac2"? 我没有修改 DPC 文件的权限,所以如果我可以修改 DPL 文件或其他文件,那将会很有帮助。 感谢您的帮助。 Re: LS1048ardb SERDES Matched DPL File 亲爱的@brian-wood, 'PHYAD:0" 意味着 PHY 没有被识别。 请使用下一个链接查看 LS1088 RDB 的 DTS 和 DTSi。 https://github.com/torvalds/linux/blob/master/arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts https://github.com/torvalds/linux/blob/master/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi 还请 AN5125 介绍 DTS https://www.nxp.com/docs/en/application-note/AN5125.pdf 如果你的自定义板使用 SERDES 来获取 SGMII 或 RGMII,而没有外部 PHY,那么你的 DTS 将使用 PCS 节点来设置 macX Re: LS1048ardb SERDES Matched DPL File 你好,LFGP、 我决定试试我的 DPL 文件,同时将上游 6.14 Linux 内核切换到与 LSDK1812(几年前他们建立这个平台时使用的)相匹配的恩智浦 4.14 内核,这样我就能在 eth0 上调用 DPMAC2 了。 🙂 但我遇到了一个问题,FSL 管理综合体似乎将 eth0 连接到了 PHY 0,而不是 PHY 1(我相信我在 DTS 中的设置是正确的)。作为一项健全性检查(因为我对使用设备树还很陌生),我使用 PHY 1 的所有设置是否正确: &emdio1 { status ="okay" ; mcp_debug_phy: emdio1_phy@1 { 兼容 ="ethernet-phy-ieee802.3-c22" ; 中断 =<0 2 0x4> ; reg =<0x1> ; phy-connection-type ="sgmii" ; }; }; &dpmac2 { phy-handle =<& mcp_debug_phy> ; phy-connection-type ="sgmii" ; }; 但当我给 eth0 分配了一个 IP 地址后尝试 "ping "时,却没有出现任何错误或 rx/tx 计数增加(使用 ifconfig 进行检查)。当我使用 "ethtool eth0 "时,发现它显示连接到 PHYAD 0: # ethtool eth0 eth0 的设置: 支持的端口:[ ] 支持的链接模式:未报告 支持暂停帧使用:无 支持自动协商:不支持 支持 FEC 模式:未报告 广告链接模式:未报告 广告暂停帧使用:无 广告支持自动协商:无 广告支持的 FEC 模式:未报告 速度:未知! 双工: 端口:双绞线 PHYAD:0 收发器:内部 自动协商:关闭 MDI-X:Unknown Link detected: no # 我没有更改 "fsl-ls1088a.dtsi "的默认设置、但如果希望使用 PHY 1,这样做对吗? /* TODO: WRIOP (CCSR?) */ emdio1: mdio@0x8B96000 { /* WRIOP0: 0x8B8_0000, * E-MDIO1: 0x1_6000*/ compatible ="fsl,fman-memac-mdio"; reg =<0x0 0x8B96000 0x0 0x1000>; device_type ="mdio"; little-endian; /* 强制驱动程序进入 LE 模式 */ /* 在 QDS 上不需要,但在 RDB 上需要 */ #address-cells =<1>; #size-cells =<0> ; }; DPL 中是否有什么需要调整的地方,以便连接正确的 PHY? 非常感谢你们的帮助。 Re: LS1048ardb SERDES Matched DPL File 亲爱的@brian-wood,希望这条信息能让你感觉良好。 我需要澄清一下你的自定义板。 你在定制板中使用 LS1048A 吗?或者你正在使用的 Layerscape 设备是什么? 您的设计是基于 LS1048ARDB 吗?恩智浦没有 LS1048ARDB。 另一方面,您可以在 DPAA 参考手册中找到 DPL 设置。 BR LFGP Re: LS1048ardb SERDES Matched DPL File 嗨,LFGP, 快速检查一下,这个 ls1048ardb 平台使用的是 2018.09 版本的 uboot 和 10.12.0 版本的 fsl_mc,我可以在这个平台上使用 6.14 Linux 内核吗?我想知道,我在使用 FSL 管理综合体调用 DPL 节点时遇到的恩智浦/FSL 内核驱动程序错误是否是由于 fsl_mc 支持的内容不匹配(并导致 mc_send_command() "不支持的操作 "失败)? 我已经阅读了前面提到的文档链接,但无法链接到eth0,因为我处于部分状态(由于在Linux内核启动期间启用 DPL 文件时出现 “不支持的操作” 失败)。启动后运行 “ls-listni、restool 等...” 时,我确实看到了同样的 “不支持的操作”,这使我觉得我的 fsl_mc、restool 和 Linux 内核 6.14 版本不匹配。 下面是更多的 uboot 信息,希望对您有所帮助: U-Boot 2018.09 gpu_bl_01Feb2021 tf/cpsw-15234-bl-u-boot a996f0a3(2021 年 2 月 1 日-18:04:24 -0700) SoC:LS1048A Rev1.0 (0x87032110) 时钟配置:CPU0 (A53): 1200 MHz CPU1 (A53): 120 0 MHz CPU2 (A53): 1200 MHz CPU3 (A53): 1200 MHz 总线:500 MHz DDR:1600 MHz RESET 配置字 (RCW):00000000: 30004014 00000030 00000000 000030 00000000 000010:00000000 0000 0000 0020000 0020000 00000000 000020:02e12980 00000080 00000000 0000000 00000030:00fff054 00000000 00000000 00000000 00000040: 00000000 00000000 0000000 00000040:00000000 00000000 00009:00000000 0000000 00000000 000070:33330002 00009555 I2C:就绪 动态随机存取存储器(DRAM):根据训练值初始化 DDR 控制器 内存初始化正常,检查 ERR_D ETECT 寄存器后在 DDRC 上没有错误 ERR_DETECT=0 3.9 GiB DDR 3.9 GiB(DDR4,64 位,CL=12,ECC 开 启) 警告:请在 cpo_sample = 0x4b board >/ ddr.c 将优化 cpo **boot_all_cores env var=true... 继续唤醒二级内核从 fbd4b000 开始 所有 (4) 个内核都已启动。 使用 SERDES1 协议:18 (0x12) 使用 SERDES2 协议:13 (0xd) MMC: FSL_SDHC: 0 从闪存加载环境...OK In: serial Out: serial Err: serial Model:Boeing Dual MCP Green V0.2_1 (NXP Layerscape 1048a) Net:DPMAC2@sgmii [PRIME] Warning:DPMAC2@sgmii (eth0) using random MAC address - 16:af:d1:f3:8a:cf crc32+ fsl-mc:启动管理复杂程序...成功 fsl-mc:管理综合体已启动(版本:10.12.0,启动状态:0x1) 启用 1000BT 全双工/半双工广告按任意键停止自动启动:0 Re: LS1048ardb SERDES Matched DPL File 亲爱的@brian-wood、 LS1088A 和 LS1048A 添加新 DPNI 的程序相同,请查看我上一篇文章中的链接。 Re: LS1048ardb SERDES Matched DPL File 感谢你的回复,我已经通读了恩智浦关于这款基于LS1048ardB的定制板的许多文档(我猜有四个GPP内核与LS1088ardB略有不同)。这是一个大约 5 年前开发的平台,我继承了它并将其用于简单的 dpmac2 以太网概念验证。 我添加了一些驱动程序调试代码,可以看到这些 dmesg(从最后一次成功的 fsl_mc 调用到 "不支持的操作 "故障),并认为可能是我的 DPL 文件中的某些设置不正确导致了故障(见所附 DPL dts): [ 14.200954] FSL_MC_DPRC DPRC.1:BJW:(mc_send_command)FSL MC 响应:0,状态:命令成功完成 (0x0) [ 14.211772] FSL_MC_DPRC DPRC.1:BJW:(dpni_set_pools)FSL MC 调用 mc_send_command() [ 14.226219] fsl_mc_dprc dprc.1:BJW:(mc_send_command)FSL MC 响应:0,状态:不支持的操作 (0xb) [ 14.236254] FSL_DPAA2_ETH DPNI.1:dpni_set_pools() 失败 [ 14.241672] fsl_dpaa2_eth dpni.1:BJW:(dpaa2_eth_bind_dpni)错误:-524 我的 DPL 文件是根据我从恩智浦文档(如https://docs.nxp.com/bundle/GUID-487B2E69-BB19-42CB-AC38-7EF18C0FE3AE/page/GUID-C254A494-0853-4C94-8AD0-7D9C2739B5D3.html)中看到和读到的示例编写的。 我不太确定我可能需要提供哪些信息来帮助根本原因出现 DPMAC2 @sgmii 以太网问题(我能够启动这个平台并使用以太网进行 uboot/tftp),但无法在 Linux 中启动并运行。因此,如果还需要其他信息,我很乐意提供。 Re: LS1048ardb SERDES Matched DPL File 亲爱的@brian-wood, 我想你是指 LS1088ARDB, 如果你想配置 DPMAC2,请按照下一个链接中显示的步骤进行 https://community.nxp.com/t5/Layerscape-Knowledge-Base/LS1088ARDB-LS1088ARDB-PB-How-to-create-a-DPAA2-network-interface/ta-p/1128669
查看全文
EdgeLock 2GO S32K311 は Edgelock 2Go 対応デバイスですか? Re: Edgelock2Go ハイ https://www.nxp.com/products/security-and-authentication/authentication/edgelock-2go:EDGELOCK-2GO S32K3 はサポート対象製品にリストされていません。 EdgeLock 2GO の同僚に相談したところ、これが計画だが日付はまだ決まっていないと言われました。 よろしくお願いします、 ロビン --------------------------------------------------------------------------------- 注記: - この投稿があなたの質問への回答である場合は、「解決策として承認」ボタンをクリックしてください。ありがとう! - Threadは最後の投稿から7週間フォローされます。それ以降の返信は無視されます。 後ほど関連する質問がある場合は、新しいThreadを開いて、閉じたThreadを参照してください。 ---------------------------------------------------------------------------------
查看全文
S32K3 中 100us ADC 采样 亲爱的社区 我目前正在使用S32K3 MCU与EB Tresos 28.2和RTD 4.4.2进行 ADC 数据采集项目。今后一定会更新)。我的目标是每100 微秒对ADC1 通道 S12CH35(用于电机电流测量)进行一次采样,而 ADC1 上的其他通道则以1 毫秒的间隔进行采样。 根据先前的建议(例如,在同一 ADC 实例中针对不同的转换类型利用软件和硬件组合触发信号 S32K344 对 ADC 实例同时使用硬件普通触发信号和硬件注入触发信号),我实现了以下配置: 1 毫秒采样使用软件触发信号 (SW)。 100 µs 采样采用通过 BCTU 和 EMIOS_0_21 进行硬件触发信号。 虽然我成功地从寄存器中检索了采样数据,但我面临着一个关键挑战: 如果 不依赖定期函数调用,就没有访问100微秒采样数据的有效途径 。尽管我尝试使用 PIT 计时器 (每 100 µs 触发信号一次)来读取数据,但这种方法会导致 CPU 负载过大 ,不适合持续运行 。 代码截图: Adc_SetupResultBuffer(AdcGroup_ADC2, ADC2_GroupBuffer); Adc_EnableCTUTrigger(AdcGroup_ADC2, AdcHwTrigger_1); Adc_ReadGroup(AdcGroup_ADC2, ADC2_ResultGroupBuffer); /* Read data fromm Register */ iha_adc_rawval.group1.v_bat_mV = ((AdcBasePtr1->ICDR[4U] & 0xFFFFU) >> 3U) 有什么办法可以解决上述问题? 顺祝商祺! 东勋 Re: 100us ADC Sampling in S32K3 你好@dongxun、 为了在 S32K3 上实现高效的 100 µs ADC 采样而不增加 CPU 负担,我建议使用 DMA 将转换结果直接从 BCTU_ADC_DATA_REG 传输到内存缓冲区。 恩智浦社区 示例 S32K312 PIT BCTU ADC DMA with RTD 3.0.0。如果您使用的是 RTD 4.4.2,配置步骤应该类似,只是某些寄存器名称或宏可能略有不同。 还有另一个示例已解决:S32K312 - 使用 DMA 读取多个 ADC 转换 - NXP Community. 顺祝商祺! 帕维尔
查看全文