Multi Source Translation Content

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

Multi Source Translation Content

讨论

排序依据:
RT1170 パーシステント アクロス リセット RAM? RT1170 には、リセット後も内容を保持する (小さな) 内部 RAM 領域がありますか? 日時:RT1170パーシステントクロスリセットRAM? はい、しかし、ハードウェアのリセットの結果として内部RAMブロックの電源がオフになっていますか?(RT1170に十分に精通していないことをお詫びします-内部RAMブロックには個別の電源イネーブルがありますか?
查看全文
How to load Linux Image into Flash NOR QSPI using custom board based on iMX93 Hello everyone, I'm tryng to flash into my custom iMX93 board with UUU the .wic. I'm using this built-in command: uuu.exe -b qspi core-image-minimal-imx93-11x11-lpddr4x-evk.rootfs-20250328061745.wic But it doesn't work.   The only thing that works is the bootloader. Indeed, when I use the following command: uuu.exe -b qspi imx-boot-imx93-11x11-lpddr4x-evk-sd.bin-flash_singleboot the bootloader starts, even if I reset the board with the boot mode configuration "FlexSPI Serial NOR", so I think it is correctly flashed into memory. What am I doing wrong with the .wic download? What am I supposed to do in order to flash the .wic file into QSPI-flash? Do I need to change something into the source files of the bootloader or it should be working as it comes from the nxp site? Thanks in advance, Best regards, Bob Re: How to load Linux Image into Flash NOR QSPI using custom board based on iMX93 Thanks, it helped me a lot. Bob Re: How to load Linux Image into Flash NOR QSPI using custom board based on iMX93 Hello, I'm using Flash-NOR QSPI. Re: How to load Linux Image into Flash NOR QSPI using custom board based on iMX93 Hello @saxejeh , thank you, I will try it following the patch for imx93 and I'll let you know. Best regards, Bob Re: How to load Linux Image into Flash NOR QSPI using custom board based on iMX93 Hello, The following command burns boot image into FlexSPI NAND: uuu -b spi_nand To generate boot image for FlexSPI NAND boot on i.MX 93, run the following command: make SOC=iMX93 flash_singleboot_spinand Note: Two binaries are generated: • flash.bin is the boot image burned into the SPI NAND. • flash_fw.bin is the NAND UUU FW image used by the UUU tool. Regards Re: How to load Linux Image into Flash NOR QSPI using custom board based on iMX93 I followed this document and it works. https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/all-bootloader-device-tree-Linux-kernel-rootfs-in-spi-nor-demo/ta-p/1663994
查看全文
VSCodeで動作しないコンポーネントを管理しますか? みなさん Visual Studio Code での SDK コンポーネントの管理で問題が発生しています。「コンポーネントの管理」をクリックしても、何も起こりません。 この機能にアクセスするには、プロジェクトを右クリックし、[構成] → [コンポーネントの管理] を選択します。 インストールしたすべてのツールを示すスクリーンショットを添付しました。ご覧のとおり、SDKはリポジトリに適切に追加されています。 セットアップに欠けているものはありますか?他の誰かがこの問題に遭遇し、解決策を見つけましたか? どんな助けでも大歓迎です! Re:VSCodeで動作していないコンポーネントを管理しますか? ご返信ありがとうございます。VSCodeで直接作成されたプロジェクトで機能します-私はあなたの指示に従って新しいSDKの例を作成しました、そしてそれは示されているように機能しました。 しかし、私のメインプロジェクトはもともとMCUXpresso IDEで開発されていましたが、現在はVSCodeに移行しようとしています。この機能を MCUXpresso IDE で最初に作成されたプロジェクトで機能させる方法はありますか?
查看全文
iMX8MP-EVK Unable to launch jailhouse mode with Yocto Harpoon image Dear Forum, Why struggling with the Yocto Harpoon on an iMX8MN custom board, I followed the instruction in the Harpoon User Guide  to bitbake a reference Yocto Harpoon image (imx-image-core) for the iMX8MP-EVK that I have. However, after stopping at the u-Boot prompt, running the following commands : u-boot=> setenv jh_root_dtb imx8mp-evk-harpoon.dtb u-boot=> run jh_mmcboot I did not see any information about launching of the jailhouse mode within the main debug console : [ 3.445096] platform regulatory.0: Falling back to sysfs fallback for: regulatory.db [ 3.449382] ALSA device list: [ 3.460120] No soundcards found. [ 3.463714] Waiting for root device /dev/mmcblk2p2... [ 13.542494] platform sound-bt-sco: deferred probe pending [ 60.417495] imx-sdma 30bd0000.dma-controller: Direct firmware load for imx/sdma/sdma-imx7d.bin failed with error -2 [ 60.427957] imx-sdma 30bd0000.dma-controller: Falling back to sysfs fallback for: imx/sdma/sdma-imx7d.bin [ 64.485494] cfg80211: failed to load regulatory.db [ 64.485494] cfg80211: failed to load regulatory.db [ 121.829456] imx-sdma 30e10000.dma-controller: external firmware not found, using ROM firmware [ 121.829501] imx-sdma 30bd0000.dma-controller: external firmware not found, using ROM firmware However, from what I saw from your partner's video, they seemed to launch the jailhouse cell manually within the root console. I am not sure if they ran commands in the u-Boot as I did. Could you help please ? Best Regards, Khang i.MX 8M | i.MX 8M Mini | i.MX 8M Nano Re: iMX8MP-EVK Unable to launch jailhouse mode with Yocto Harpoon image Hi again, I just found out that the Yocto Harpoon image should be flashed to and executed from the micro-SD card rather than the eMMC. Sorry to bother you.
查看全文
Manage components not working on VSCode? Hello everyone, I'm experiencing an issue with managing SDK components in Visual Studio Code. When I click on "Manage components," nothing happens at all. I access this feature by right-clicking on the project, then selecting Configure → Manage Components. I've attached a screenshot showing all the tools I have installed. And as you can see, the SDK has been properly added to my repository. Is there something I'm missing in my setup? Has anyone else encountered this issue and found a solution? Any help would be greatly appreciated! Re: Manage components not working on VSCode? Hi @jBahae, I have replicated this issue. Indeed, when trying to manage components from a project that was converted to VS Code using the MCUXpresso IDE Project Converter, it won't work. I believe this is a bug and I already reported it to the VS Code team for their review. In the meantime, I recommend you manage the necessary components using the option in MCUXpresso, before importing the project to VS Code. This seems to be the only current workaround. Sorry for the inconvenience this may cause. BR, Edwin. Re: Manage components not working on VSCode? Thank you for your reply. It works for projects created directly in VSCode - I created a new SDK example following your instructions and it worked as demonstrated. However, my main project was originally developed in MCUXpresso IDE, and I'm now trying to migrate it to VSCode. Is there a way to make this functionality work for projects that were initially created in MCUXpresso IDE? Re: Manage components not working on VSCode? Hi @jBahae, The manage component option will prompt a component search on the top search bar of VS Code: It might be slow, but after a while of loading the available components, these should display as such: Do you see the top search bar loading? If so, please be patient as it will take a while to load all of the components. BR, Edwin.
查看全文
管理 VSCode 上不起作用的组件? 大家好, 我在 Visual Studio Code 中管理 SDK 组件时遇到问题。当我点击“管理组件”时,什么也没有发生。 我通过右键单击项目,然后选择配置→管理组件来访问此功能。 我附上了显示我已安装的所有工具的屏幕截图。正如您所见,SDK 已正确添加到我的存储库。 我的设置中是否缺少了什么?还有其他人遇到过这个问题并找到解决方案吗? 任何帮助都将不胜感激! 回复:管理 VSCode 上不起作用的组件? 感谢你的回复。它适用于直接在 VSCode 中创建的项目 - 我按照您的说明创建了一个新的 SDK 示例,并且它按照演示的方式工作。 但是,我的主要项目最初是在 MCUXpresso IDE 中开发的,现在我正尝试将其迁移到 VSCode。有没有办法让此功能适用于最初在 MCUXpresso IDE 中创建的项目?
查看全文
On IMX8MP LVDS display with 6.1 kernel is not working which is working on 5.15 kernel Hi Team, we are able to bring-up the LVDS display on 5.15 kernel on imx8mp custom board, but when we are porting from 5.15 to 6.1 kernel LVDS display is not working. Below are the panel modifcations added: With the same below modfications display is working in 5.15 kernel. So need supoort to bringup the display. drivers/gpu/drm/panel/panel-simple.c | 97 ++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index b73669808347..605dce99d1ab 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -2128,6 +2128,94 @@ static const struct panel_desc hitachi_tx23d38vm0caa = { }, }; +static const struct display_timing auo_g156han04_0_timings = { + .pixelclock = { 141000000, 141000000, 141000000 }, + .hactive = { 1920, 1920, 1920 }, + .hfront_porch = { 60, 60, 60 }, + .hback_porch = { 60, 60, 60 }, + .hsync_len = { 64, 64, 64 }, + .vactive = { 1080, 1080, 1080 }, + .vfront_porch = { 12, 12, 12 }, + .vback_porch = { 12, 12, 12 }, + .vsync_len = { 12, 12, 12 }, +}; + +static const struct panel_desc auo_g156han04_0 = { + .timings = &auo_g156han04_0_timings, + .num_timings = 1, + .bpc = 8, + .size = { + .width = 344, + .height = 194, + }, + .delay = { + .prepare = 10, + .enable = 50, + .disable = 50, + .unprepare = 200, + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X24, +}; + +static const struct display_timing lxd_m773a_timings = { + .pixelclock = { 60000000, 60000000, 60000000 }, + .hactive = { 1024, 1024, 1024 }, + .hfront_porch = { 40, 40, 40 }, + .hback_porch = { 40, 40, 40 }, + .hsync_len = { 20, 20, 20 }, + .vactive = { 600, 600, 600 }, + .vfront_porch = { 20, 20, 20 }, + .vback_porch = { 20, 20, 20 }, + .vsync_len = { 10, 10, 10 }, +}; + +static const struct panel_desc lxd_m773a = { + .timings = &lxd_m773a_timings, + .num_timings = 1, + .bpc = 8, + .size = { + .width = 154, + .height = 85, + }, + .delay = { + .prepare = 10, + .enable = 50, + .disable = 50, + .unprepare = 200, + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X24, +}; + +static const struct display_timing lxd_m776a_timings = { + .pixelclock = { 60000000, 60000000, 60000000 }, + .hactive = { 1024, 1024, 1024 }, + .hfront_porch = { 40, 40, 40 }, + .hback_porch = { 40, 40, 40 }, + .hsync_len = { 20, 20, 20 }, + .vactive = { 600, 600, 600 }, + .vfront_porch = { 20, 20, 20 }, + .vback_porch = { 20, 20, 20 }, + .vsync_len = { 10, 10, 10 }, +}; + +static const struct panel_desc lxd_m776a = { + .timings = &lxd_m776a_timings, + .num_timings = 1, + .bpc = 8, + .size = { + .width = 222, + .height = 125, + }, + .delay = { + .prepare = 10, + .enable = 50, + .disable = 50, + .unprepare = 200, + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X24, +}; + + static const struct drm_display_mode innolux_at043tn24_mode = { .clock = 9000, .hdisplay = 480, @@ -4201,6 +4289,15 @@ static const struct of_device_id platform_of_match[] = { .compatible = "hit,tx23d38vm0caa", .data = &hitachi_tx23d38vm0caa }, { + .compatible = "lxd,m773a", + .data = &lxd_m773a, + }, { + .compatible = "lxd,m776a", + .data = &lxd_m776a, + }, { + .compatible = "auo,g156han04_0", + .data = &auo_g156han04_0, + }, { .compatible = "innolux,at043tn24", .data = &innolux_at043tn24, }, { -- 2.34.1 Here is the DTS file used: / { lvds0_panel { status = "okay"; compatible = "lxd,m776a"; backlight = <&lvds_backlight>; enable-gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>; port { panel_lvds_in: endpoint { remote-endpoint = <&lvds_out>; }; }; }; lvds_backlight { enable-gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>; }; // gpio3_IO23 on lec-imx8mp is display mux reg_mipi_lvds_select: regulator-mipi-lvds { compatible = "regulator-fixed"; regulator-name = "mipi_lvds_select_vbus"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_disp_select>; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; gpio = <&gpio3 23 GPIO_ACTIVE_HIGH>; enable-active-low; regulator-always-on; }; }; &ldb { status = "okay"; //fsl,dual-channel; lvds-channel@0 { fsl,data-mapping = "spwg"; fsl,data-width = <24>; status = "okay"; /delete-node/ port@1; port@1 { reg = <1>; lvds_out: endpoint { remote-endpoint = <&panel_lvds_in>; }; }; }; }; &ldb_phy { status = "okay"; }; &i2c3 { touchscreen@41 { compatible = "ilitek,ili251x"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_touch_en &pinctrl_touch_rst>; reg = <0x41>; interrupt-parent = <&gpio1>; interrupts = <0 IRQ_TYPE_EDGE_FALLING>; reset-gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>; touchscreen-inverted-x; touchscreen-inverted-y; }; }; @[email protected], @[email protected] Re: On IMX8MP LVDS display with 6.1 kernel is not working which is working on 5.15 kernel after adding the below flags in the panel_desc then display is working as expected .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, .bus_flags = DRM_BUS_FLAG_DE_HIGH, .connector_type = DRM_MODE_CONNECTOR_LVDS, Re: On IMX8MP LVDS display with 6.1 kernel is not working which is working on 5.15 kernel do you mind dumping the clock to check? could you get the correct clock for your lvds panel, I checked the ldb driver, I don't find anything change would affect your display Re: On IMX8MP LVDS display with 6.1 kernel is not working which is working on 5.15 kernel We didn't do any bsp changes except the panel detail structures are added in 5.15 kernel. So did the same modifications in the 6.1 kernel as well Re: On IMX8MP LVDS display with 6.1 kernel is not working which is working on 5.15 kernel did you change any source code in the 5.15? did you just use the default lvds driver? as I known, current bsp couldn't support 60Mhz lvds display(single channel) as default, you need change the source code, if you change the 5.15 bsp, did you change corresponding to the 6.1? Re: On IMX8MP LVDS display with 6.1 kernel is not working which is working on 5.15 kernel There are no error messages, but display is not coming as expected Is there any clock related changes we need to add in 6.1 Kernel?? or any other suggestions. Re: On IMX8MP LVDS display with 6.1 kernel is not working which is working on 5.15 kernel hi @joanxie  The Display backlight is initializing but on the display output is coming like below So unable to figure out what modifications went wrong  Re: On IMX8MP LVDS display with 6.1 kernel is not working which is working on 5.15 kernel what do you mean "not working"?do you get anything error messages?
查看全文
optee test failed when HSE enabled based on SDK BSP41 on RDB3 v1.1 board Hi, Recently, I tested optee feature, and found that when hse enabled, the optee will fail, messages as following: NOTICE: Reset status: Power-On Reset NOTICE: BL2: v2.10.0 (release):bsp41.0-2.10 NOTICE: BL2: Built : 09:32:10, May 27 2024 NOTICE: BL2: Booting BL31 I/TC: I/TC: Non-secure external DT found I/TC: OP-TEE version: bsp41.0-4.0-dev (gcc version 11.4.0 (GCC)) #1 Thu May 23 14:46:51 UTC 2024 aarch64 I/TC: WARNING: This OP-TEE configuration might be insecure! I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html I/TC: Primary CPU initializing E/TC:0 0 crypto_driver_init:1224 Firmware not initialised E/TC:0 0 crypto_driver_init:1336 HSE Crypto Driver init failed with err 0xffff0007 E/TC:0 0 call_initcalls:43 Initcall __text_start + 0x00075b28 failed I/TC: WARNING: Using fixed value for stack canary I/TC: Primary CPU switching to normal world boot I/TC: WARNING: Using fixed value for stack canary ... Auto Linux BSP 41.0 s32g399ardb3 ttyLF0 s32g399ardb3 login: root root@s32g399ardb3:~# root@s32g399ardb3:~# root@s32g399ardb3:~# xtest -l 15 Run test suite Iith WARNING (i sEE re t npiguration)started ovo get monotTnE instanee for REE ##,#u#i#### ################################## # # regression # ###################################################### * regression_1E/LD: e ie_f tes8s sys_open_ta_bin(d96a5b40-c3e5-21e3-8794-1002a5d5c61b) E/TC:? 0 ldelf_init_with_ldelf:152 ldelf failed with res: 0xffff0001 /usr/src/debug/optee-test/4.0.0-r0/git/host/xtest/regression_1000.c:299: res has an unexpected value: 0xffff0001 = E/ED_ERiOR_ACCf:486 sys_o ex_eatbdn(d96a5b40-cSUCCESS3 7r4-1002a5d510s iled with res: 0xffff0001 /usr/src/debug/optee-test/4.0.0-r0/git/host/xtest/regression_1000.c:338: res has an unexpected value: 0xffff0001 = TEEC_ERROR_ACCESS_DENIED, expected 0x0 = TEEC_SUCCESS /usr/src/debug/optee-test/4.0.0-r0/git/host/xtest/regression_1000.c:350: TEEC_InvokeCommand( &session, 1, &op, &ret_orig) has an unexpected value: 0xffff0006 = TEEC_ERROR_BAD_PARAMETERS Segmentation fault root@s32g399ardb3:~# root@s32g399ardb3:~# uname -a Linux s32g399ardb3 6.6.25-rt29-g8c8864ffb5db #1 SMP PREEMPT Mon May 27 16:30:16 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux root@s32g399ardb3:~#   And the hse firmware is v0.2.51.0 for S32G3 v1.1 version, and the following line: DISTRO_FEATURES:append = " hse optee" is added into the conf/local.conf of the bsp41 project. The whole test log is attached. Would you please help to check the issue? Thanks, Zhantao Re: optee test failed when HSE enabled based on SDK BSP41 on RDB3 v1.1 board Hello. I have the same message from secure boot step after formatting the key store with hse-secboot utility. And the BOOT_SEQ bit in the IVT, at offset 0x48, is unchanged (00e4). That means the board is still in insecure mode. How to switch in secure mode ? Thanks. Jerome Re: optee test failed when HSE enabled based on SDK BSP41 on RDB3 v1.1 board OK, got it. Thanks, Zhantao Re: optee test failed when HSE enabled based on SDK BSP41 on RDB3 v1.1 board Hi, @hittzt  Thanks for the feedback. In general, I often reference the log of "I/TC: HSE is successfully initialized", where HSE is initialized. From the functional test in kernel, seems there are no issues for this feature. BR Chenyin Re: optee test failed when HSE enabled based on SDK BSP41 on RDB3 v1.1 board Hi @chenyin_h, Thanks for your helpful reply. Now I know how to enable the optee with hse existed. But in 2nd time bootup, there still have messges like: E/TC:0 0 hse_copy_and_extract:145 HSE Export Key service request failed E/TC:0 0 hse_retrieve_huk:192 Copy and Export Step failed E/TC:0 0 hse_retrieve_huk:203 HW Unique Key request failed with err 0xffff0007 I/TC: Could not retrieve HSE HUK. Using default HUK I/TC: HSE is successfully initialized I/TC: Primary CPU switching to normal world boot Is this the right status? Thanks, Zhantao Re: optee test failed when HSE enabled based on SDK BSP41 on RDB3 v1.1 board Hello, @hittzt  Thanks for the reply. I was using firmware 0.2.51 as told by the BSP41 release notes. Briefly speaking, enable the OP-TEE Crypto Driver upon booting a freshly built FIP Image, the HSE OP-TEE Driver fails during its first initialization. This happens because the Key Catalog is not yet formatted at that point. The only way to format the catalog is to build the hse-secboot example, and run it in the Linux user space. Reset the board once the operation is complete, there should be no errors displayed by the HSE OP-TEE Driver during any subsequent initializations and the driver should function properly. Hope it helps. Best Regards Chenyin Re: optee test failed when HSE enabled based on SDK BSP41 on RDB3 v1.1 board Hi @chenyin_h, Thanks for your reply. And I checked the log you attached, it seems that, you boot the board 2 times and in 1st time, there are following info in BL31 stage: NOTICE: BL2: Booting BL31 I/TC: I/TC: Non-secure external DT found I/TC: OP-TEE version: bsp41.0-4.0-dev (gcc version 11.4.0 (GCC)) #1 Thu May 23 14:46:51 UTC 2024 aarch64 I/TC: WARNING: This OP-TEE configuration might be insecure! I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html I/TC: Primary CPU initializing E/TC:0 0 crypto_driver_init:1224 Firmware not initialised E/TC:0 0 crypto_driver_init:1336 HSE Crypto Driver init failed with err 0xffff0007 E/TC:0 0 call_initcalls:43 Initcall __text_start + 0x00075b28 failed I/TC: WARNING: Using fixed value for stack canary I/TC: Primary CPU switching to normal world boot I/TC: WARNING: Using fixed value for stack canary And in 2nd time, the board boots up normally. So I want to know if there are any difference between the 1st and 2nd boot? And which HSE firmware version you used for test? Thanks, Zhantao Re: optee test failed when HSE enabled based on SDK BSP41 on RDB3 v1.1 board Hello, @hittzt  Thanks for the question. I checked it with the same configuration with my local RDB3(1.1 silicon). Seems no such issues from side, would you please double check your test, my log is attached for your reference. Best Regards Chenyin
查看全文
MIMXRT1170-EVK: FreeRTOS 汎用 cm7 実行時エラーの例 linkServer を使用して MIMXRT1170-EVK で FreeRTOS Generic の例を実行しようとすると、次のランタイムエラーが発生します プログラムは信号SIGINT、割り込みを受信しました。 vApplicationIdleHook () を ./ソース/freertos_generic.c:386 386 xFreeStackSpace = xPortGetFreeHeapSize(); この点からハングしているように見えます。なぜそれがハングアップしているように見えるかについての何か提案はありますか?感謝 Re: MIMXRT1170-EVK: FreeRTOS 汎用 cm7 実行時エラーの例 解決済み、間違ったシリアルポート
查看全文
SPI-1 CSピンが約S32K312機能しません こんにちはNXP:私はSPI1インターフェースで通信しようとし、クロック/ MOSIピンは必要なデータを出力できますが、CSピンは常に高いです。手伝ってくれませんか?ピンとSPIドライバーの間の設定が間違っているのはどこにあるのか、ありがとう。環境の説明:MCU:S32K312 / 100pin S32DS製品:3.5.0.202207261815RTD S32KXX:RTD5.0.0.202407261948SW32K3_FreeRTOS_11.1.0_5.0.0_CD1_D2409_例プロジェクト添付ファイルの説明: 20250407-SPI1_CS_issue.png 20250407-FreeRTOS_S32K312_SPI_test.7z BR Nelson Re:SPI-1 CSピンが約動作しませんS32K312 CS ピンにプルアップ レジスター 4.7K があるボードに問題があることがわかりましたので、この問題について話し合うためにハードウェア エンジニアリングに通知します。Robin_Shenありがとうございました。
查看全文
Are there any simple examples on how to use smw security middleware? I attempted to write a program to just do a hash-2 512.  This results in the smw_hash() function calling exit(1).  We also would like to do AES 256 with this library which will require key generation and storage. Are there any example programs I could look at?  I realize there is a test program, which does work, but it is much more complicated than what I would like to do. Here is a trace of what I see, just calling smw_hash: #0 __GI__exit (status=status@entry=1) at /usr/src/debug/glibc/2.39+git/sysdeps/unix/sysv/linux/_exit.c:27 #1 0x0000fffff7d8e0e0 in __run_exit_handlers (status=status@entry=1, listp=0xfffff7ef0660 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@entry=true) at exit.c:131 #2 0x0000fffff7d8e1f0 in __GI_exit (status=status@entry=1) at exit.c:138 #3 0x0000fffff7f90e88 in config_db_mutex_lock () at /usr/src/debug/smw/git/core/config/database.c:66 #4 0x0000fffff7f916fc in smw_config_select_subsystem (operation_id=OPERATION_ID_HASH, args=0xfffffffff958, subsystem_id=subsystem_id@entry=0xfffffffff94c) at /usr/src/debug/smw/git/core/config/database.c:560 #5 0x0000fffff7f7beb8 in smw_utils_execute_common (operation_id=operation_id@entry=OPERATION_ID_HASH, args=args@entry=0xfffffffff958, subsystem_id= , op_step=op_step@entry=SMW_OP_STEP_ONESHOT, implicit=implicit@entry=false) at /usr/src/debug/smw/git/core/utils/exec.c:38 #6 0x0000fffff7f7bf04 in smw_utils_execute_operation (operation_id=operation_id@entry=OPERATION_ID_HASH, args=args@entry=0xfffffffff958, subsystem_id= ) at /usr/src/debug/smw/git/core/utils/exec.c:89 #7 0x0000fffff7f88728 in smw_hash (args=args@entry=0xfffffffff9b8) at /usr/src/debug/smw/git/core/crypto/hash.c:115 #8 0x0000aaaaaaaa0a84 in main () at simplehash.c:38 This appears to be the cause of the EXIT: SMW_DBG_ASSERT(ctx); In my code, I did this prior to calling smw_hash, and it is not getting an error: memset(&ctx_args, 0, sizeof(ctx_args)); ctx_args.subsystem_name = SMW_SUBSYSTEM_NAME_ELE; // Allocate context smw_result = smw_allocate_context(&ctx_args); if (smw_result != SMW_STATUS_OK) { printf("Failed to allocate context: %d\n", smw_result); return -1; }  I am using IMX91 with  FRDM board, and am building with imx-6.6.36-2.1.0.xml. FRDM-Training Re: Are there any simple examples on how to use smw security middleware? Hello, There is no library to play with this Middleware, and the current just support smw_hash at 64KB. Sorry in this case you can search some solution on the web or wait until next release to see if developers add more space to smw_hash. Regards Re: Are there any simple examples on how to use smw security middleware? I found out that if I called smw_osal_lib_init() first, I could get the smw_hash() to work. However smw_hash() would not work with files much over 64K Bytes. If I want to hash 100MB, how do I do this? I don't think any of the test examples hash large files?
查看全文
有没有简单的例子介绍如何使用 smw 安全中间件? 我尝试编写一个程序来执行 hash-2 512。这导致 smw_hash() 函数调用 exit(1)。我们还想用这个库来实现 AES 256,这将需要密钥生成和存储。 有没有我可以看看的示例程序?我知道有一个测试程序,它确实可以工作,但它比我想要做的要复杂得多。 这是我所看到的痕迹,只是调用 smw_hash: #0 __GI__exit (status=status@entry=1) at /usr/src/debug/glibc/2.39+git/sysdeps/unix/sysv/linux/_exit.c:27 #1 0x0000fffff7d8e0e0 in __run_exit_handlers (status=status@entry=1, listp=0xfffff7ef0660 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@entry=true) at exit.c:131 #2 0x0000fffff7d8e1f0 in __GI_exit (status=status@entry=1) at exit.c:138 #3 0x0000fffff7f90e88 in config_db_mutex_lock () at /usr/src/debug/smw/git/core/config/database.c:66 #4 0x0000fffff7f916fc in smw_config_select_subsystem (operation_id=OPERATION_ID_HASH, args=0xfffffffff958, subsystem_id=subsystem_id@entry=0xfffffffff94c) at /usr/src/debug/smw/git/core/config/database.c:560 #5 0x0000fffff7f7beb8 in smw_utils_execute_common (operation_id=operation_id@entry=OPERATION_ID_HASH, args=args@entry=0xfffffffff958, subsystem_id= , op_step=op_step@entry=SMW_OP_STEP_ONESHOT, implicit=implicit@entry=false) at /usr/src/debug/smw/git/core/utils/exec.c:38 #6 0x0000fffff7f7bf04 in smw_utils_execute_operation (operation_id=operation_id@entry=OPERATION_ID_HASH, args=args@entry=0xfffffffff958, subsystem_id= ) at /usr/src/debug/smw/git/core/utils/exec.c:89 #7 0x0000fffff7f88728 in smw_hash (args=args@entry=0xfffffffff9b8) at /usr/src/debug/smw/git/core/crypto/hash.c:115 #8 0x0000aaaaaaaa0a84 in main () at simplehash.c:38 这似乎是 EXIT 的原因: SMW_DBG_ASSERT(ctx); 在我的代码中,我在调用 smw_hash 之前执行了此操作,并且没有出现错误: memset(&ctx_args, 0, sizeof(ctx_args)); ctx_args.subsystem_name = SMW_SUBSYSTEM_NAME_ELE; // Allocate context smw_result = smw_allocate_context(&ctx_args); if (smw_result != SMW_STATUS_OK) { printf("Failed to allocate context: %d\n", smw_result); return -1; } 我正在使用带有 FRDM 板的 IMX91,并使用 imx-6.6.36-2.1.0.xml 进行构建。 FRDM 培训 回复:有没有关于如何使用 smw 安全中间件的简单示例? 我发现如果我先调用 smw_osal_lib_init(),我就可以让 smw_hash() 工作。但是 smw_hash() 不适用于超过 64K 字节的文件。如果我想对 100MB 进行哈希处理,我该怎么做?我认为没有任何测试示例可以对大文件进行哈希处理?
查看全文
Migrating console from LPUART1 to LPUART8 in imx93 Hi team,                 I need to migrate console from lpuart1(default) to lpuart8 in iMX93-11x11EVK  board and test from pins 32&33 in J1001. The change done in below files: Enabled LPUART8 node in u-boot & linux-imx(kernel). Added node in imx93-11x11-evk-uboot.dtsi file. Added lines related to uart8 in imx93_evk.c(const uart_pads) changed default base address in platform_def.h file. Please guide me any more changes need be done apart from above. Thanks  Robbi. Re: Migrating console from LPUART1 to LPUART8 in imx93 Is this correct approach for SD changes making DAT3 as cd. Re: Migrating console from LPUART1 to LPUART8 in imx93 Thanks @Manuel_Salas ,                                It is working now. And I need solution for the issue as our custom-board is having SD-CARD with slight difference from EVK. we removed GPIO for card detection. So by default DATA3 is used a card detection?. The modifications done only in u-boot-imx: &usdhc2 { pinctrl-names = "default", "state_100mhz", "state_200mhz"; pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>; pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_gpio>; pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_gpio>; //cd-gpios = <&gpio3 06 GPIO_ACTIVE_LOW>; vmmc-supply = <&reg_usdhc2_vmmc>; bus-width = <4>; broken-cd; status = "okay"; no-sdio; no-mmc; }; Removed cd-gpios by comment & added broken-cd. But after boot SPL was unable to boot from SD. Please go through the log.txt file.     Thanks  Robbi Re: Migrating console from LPUART1 to LPUART8 in imx93 Hello @Robbi  I hope you are doing very well. Please try the attached patches. Then, you should be able to run ATF and U-boot on the LPUART8. Best regards, Salas.
查看全文
P2020: PCIe PME Link Down Detection (LDD) Interrupt Hello, I'm using the P2020 PCIe controller as a host. I try to get an interrupt if a connected device resets itself so that I can re-initialize it. As far as I understand theLDD flag in the PEX_PME_MES_DR, that should be more or less exactly what I search: It detects if the link goes down. In my test case, I can also see that the LDD flag is set in that register. But I don't seem to get an interrupt. The PEX_PME_MES_DISR[LDDD] is set to 0. I don't really need a message but I don't really care if one is sent either. The PEX_PME_MES_IER[LDDIE] is set to 1. I would have expected that with this some interrupt is generated. I would have expected that the PCI Express interrupt is triggered (PIC Internal Interrupt number 8 to 10 for PEX3 to 1). But I don't receive that. So I checked all of the other interrupt configuration registers and there doesn't seem to be any active flag set (A bit in the *IVPR*). What is necessary that the interrupt is generated? Is this kind of interrupt signaled as a MSI so that I need MSI support for it? Is there some other mask or gate for that interrupt that I might have missed? With kind regards Christian Mauderer QorIQ P2 Devices Re: P2020: PCIe PME Link Down Detection (LDD) Interrupt I found a problem with the interrupt configuration. So the problem is solved now.
查看全文
IMX93 - Poky - Error on U-Boot configuration fspi Hello NXP experts, I am following "UG10164, i.MX Yocto Project User's Guide,  Rev. LF6.12.3_1.0.0 — 31 March 2025". I have to configure u-boot with uboot_config_imx93evk="sd fspi" as showed in chapter "5.5 U-Boot configuration". As suggested i runned the command: echo "UBOOT_CONFIG = \"sd fspi\"" >> conf/local.conf and after i runned bitbake core-image-minimal. An error is raised during the bitbake: ERROR: Nothing PROVIDES 'virtual/bootloader' (but /home/imx-yocto-bsp/sources/poky/meta/recipes-core/images/core-image-minimal.bb DEPENDS on or otherwise requires it) u-boot-qoriq PROVIDES virtual/bootloader but was skipped: incompatible with machine imx93-11x11-lpddr4x-evk (not in COMPATIBLE_MACHINE) u-boot PROVIDES virtual/bootloader but was skipped: The selected UBOOT_CONFIG key ['sd', 'fspi'] has no match in dict_keys(['sd', 'ecc', 'ld']). u-boot-fslc PROVIDES virtual/bootloader but was skipped: The selected UBOOT_CONFIG key ['sd', 'fspi'] has no match in dict_keys(['sd', 'ecc', 'ld']). u-boot-imx PROVIDES virtual/bootloader but was skipped: The selected UBOOT_CONFIG key ['sd', 'fspi'] has no match in dict_keys(['sd', 'ecc', 'ld']). edk2-firmware PROVIDES virtual/bootloader but was skipped: incompatible with machine imx93-11x11-lpddr4x-evk (not in COMPATIBLE_MACHINE) u-boot-variscite PROVIDES virtual/bootloader but was skipped: incompatible with machine imx93-11x11-lpddr4x-evk (not in COMPATIBLE_MACHINE) u-boot-toradex PROVIDES virtual/bootloader but was skipped: incompatible with machine imx93-11x11-lpddr4x-evk (not in COMPATIBLE_MACHINE) u-boot-imx PROVIDES virtual/bootloader but was skipped: The selected UBOOT_CONFIG key ['sd', 'fspi'] has no match in dict_keys(['sd', 'ecc', 'ld']). u-boot-kontron PROVIDES virtual/bootloader but was skipped: incompatible with machine imx93-11x11-lpddr4x-evk (not in COMPATIBLE_MACHINE) u-boot-qoriq PROVIDES virtual/bootloader but was skipped: incompatible with machine imx93-11x11-lpddr4x-evk (not in COMPATIBLE_MACHINE) u-boot-boundary PROVIDES virtual/bootloader but was skipped: incompatible with machine imx93-11x11-lpddr4x-evk (not in COMPATIBLE_MACHINE) edk2-firmware PROVIDES virtual/bootloader but was skipped: incompatible with machine imx93-11x11-lpddr4x-evk (not in COMPATIBLE_MACHINE) ERROR: Required build target 'core-image-minimal' has no buildable providers. Missing or unbuildable dependency chain was: ['core-image-minimal', 'virtual/bootloader']. This is my local.conf file: MACHINE ??= 'imx93-11x11-lpddr4x-evk' DISTRO ?= 'fsl-imx-wayland' EXTRA_IMAGE_FEATURES ?= "debug-tweaks" USER_CLASSES ?= "buildstats" PATCHRESOLVE = "noop" BB_DISKMON_DIRS ??= "\ STOPTASKS,${TMPDIR},1G,100K \ STOPTASKS,${DL_DIR},1G,100K \ STOPTASKS,${SSTATE_DIR},1G,100K \ STOPTASKS,/tmp,100M,100K \ HALT,${TMPDIR},100M,1K \ HALT,${DL_DIR},100M,1K \ HALT,${SSTATE_DIR},100M,1K \ HALT,/tmp,10M,1K" PACKAGECONFIG:append:pn-qemu-system-native = " sdl" CONF_VERSION = "2" DL_DIR ?= "${BSPDIR}/downloads/" ACCEPT_FSL_EULA = "1" # Switch to Debian packaging and include package-management in the image PACKAGE_CLASSES = "package_deb" EXTRA_IMAGE_FEATURES += "package-management" UBOOT_CONFIG = "sd fspi" What am I missing? Regards, Alessandro Yocto Project Re: IMX93 - Poky - Error on U-Boot configuration fspi thanks for the support! Re: IMX93 - Poky - Error on U-Boot configuration fspi HI @il_ciancio! By default is not possible you should do some modifications and we can't validate the image due to the evk board doesn't have fspi installed. Best Regards! Chavira Re: IMX93 - Poky - Error on U-Boot configuration fspi Ciao @Chavira. I have a question, maybe I am misunderstanding something. I am working with a custom board without eMMC or SD card and It has only a SPI NOR FLASH, the goal is to boot starting from data inside the SPI memory on target IMX93. There is also this ticket:  all(bootloader, device tree, Linux kernel, rootfs) all(bootloader, device tree, Linux kernel, rootfs) in spi nor demo imx8qxpc0 mek - NXP Community It is made a custom UUU script in order to flash data in SPI memory: uboot; dtb; kernel; rootfs; the flash goes well because it is checked raw data read from spi memory. After the boot, It is read data from SPI and putted in ram (like a bridge), some env vars are setted and after with the command booti: booti ${loadaddr} ${initrd_addr} ${fdt_addr} the kernel should boot. Why did you write "then use the rootfs flashed in eMMC or SD card."? Is it mandatory that rootfs must be in sd/emmc? I hope that I am clear. Thanks a lot! Re: IMX93 - Poky - Error on U-Boot configuration fspi Hi @il_ciancio! You can't flash the rootfs in the flash memory. You can boot from fspi and then use the rootfs flashed in eMMC or SD card. Best Regards! Chavira Re: IMX93 - Poky - Error on U-Boot configuration fspi Hi @Chavira , congratulation, great job! Now the bitabake is finished and i have u-boot*fspi files in my deploy directory. Just for clarification, which are the kernel/rootfs image "compatible" with fspi? It is always the *.wic file? thanks a lot and again great work! Re: IMX93 - Poky - Error on U-Boot configuration fspi Hi @il_ciancio! I found the problem! For some reason the fspi configuration is not included. You have to add the next lines in the imx93-11x11-lpddr4x-evk.conf file. UBOOT_CONFIG[fspi] = "${UBOOT_CONFIG_BASENAME}_defconfig" IMXBOOT_TARGETS_FSPI = "flash_singleboot_flexspi" IMXBOOT_TARGETS = "${@bb.utils.contains('UBOOT_CONFIG', 'fspi', '${IMXBOOT_TARGETS_FSPI}', 'flash_singleboot', d)}" after that you can maintain the line UBOOT_CONFIG = "sd fspi"  in local.conf file to deploy both images. Best Regards! Chavira Re: IMX93 - Poky - Error on U-Boot configuration fspi Hi @Chavira, with UBOOT_CONFIG ??= "sd fspi" the bitbake is finished, but in the output folder there is *.wic file but there isn't a Flex-SPI u-boot binary image. Is there something else? How is the result of your build? Re: IMX93 - Poky - Error on U-Boot configuration fspi Hi @il_ciancio! Thank you for contacting NXP Support! I am compiling now. Try changing UBOOT_CONFIG = "sd fspi" to UBOOT_CONFIG ??= "sd fspi" in the local.conf file. Best Regards! Chavira
查看全文
smwセキュリティミドルウェアの使用方法に関する簡単な例はありますか? 私はただhash-2 512を行うプログラムを書こうと試みました。この結果、smw_hash() 関数は exit(1) を呼び出します。また、このライブラリでAES 256を実行したいと考えていますが、これにはキーの生成と保存が必要です。 私が見ることができるサンプルプログラムはありますか?テストプログラムがあり、それは確かに機能しますが、私がやりたいことよりもはるかに複雑です。 以下は、私が見ているものの痕跡で、ただsmw_hashと呼んでいます。 #0 __GI__exit (status=status@entry=1) at /usr/src/debug/glibc/2.39+git/sysdeps/unix/sysv/linux/_exit.c:27 #1 0x0000fffff7d8e0e0 in __run_exit_handlers (status=status@entry=1, listp=0xfffff7ef0660 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@entry=true) at exit.c:131 #2 0x0000fffff7d8e1f0 in __GI_exit (status=status@entry=1) at exit.c:138 #3 0x0000fffff7f90e88 in config_db_mutex_lock () at /usr/src/debug/smw/git/core/config/database.c:66 #4 0x0000fffff7f916fc in smw_config_select_subsystem (operation_id=OPERATION_ID_HASH, args=0xfffffffff958, subsystem_id=subsystem_id@entry=0xfffffffff94c) at /usr/src/debug/smw/git/core/config/database.c:560 #5 0x0000fffff7f7beb8 in smw_utils_execute_common (operation_id=operation_id@entry=OPERATION_ID_HASH, args=args@entry=0xfffffffff958, subsystem_id= , op_step=op_step@entry=SMW_OP_STEP_ONESHOT, implicit=implicit@entry=false) at /usr/src/debug/smw/git/core/utils/exec.c:38 #6 0x0000fffff7f7bf04 in smw_utils_execute_operation (operation_id=operation_id@entry=OPERATION_ID_HASH, args=args@entry=0xfffffffff958, subsystem_id= ) at /usr/src/debug/smw/git/core/utils/exec.c:89 #7 0x0000fffff7f88728 in smw_hash (args=args@entry=0xfffffffff9b8) at /usr/src/debug/smw/git/core/crypto/hash.c:115 #8 0x0000aaaaaaaa0a84 in main () at simplehash.c:38 これがEXITの原因のようです。 SMW_DBG_ASSERT(CTX); 私のコードでは、smw_hashを呼び出す前にこれを行いましたが、エラーは発生しません。 memset(&ctx_args, 0, sizeof(ctx_args)); ctx_args.subsystem_name = SMW_SUBSYSTEM_NAME_ELE; // Allocate context smw_result = smw_allocate_context(&ctx_args); if (smw_result != SMW_STATUS_OK) { printf("Failed to allocate context: %d\n", smw_result); return -1; } 私はFRDMボードでIMX91を使用しており、imx-6.36-2.1.0.xmlでビルドしています。 FRDMトレーニング Re: smw セキュリティミドルウェアの使用方法に関する簡単な例はありますか? 最初にsmw_osal_lib_init()を呼び出すと、smw_hash()を機能させることができることがわかりました。ただし、smw_hash() は 64K バイトを超えるファイルでは機能しません。100MBをハッシュ化したい場合、どうすればいいですか?テスト例のどれも大きなファイルをハッシュしていないと思いますか?
查看全文
SPI-1 CS引脚在S32K312上无法工作 你好,NXP:我尝试通过 SPI1 接口进行通信,并且时钟/MOSI 引脚可以输出我需要的数据,但 CS 引脚始终处于高位。您能帮帮我吗?引脚和 SPI 驱动程序之间的设置哪里错误,谢谢。环境描述:MCU:S32K312/100pin S32DS 产品:3.5.0.202207261815RTD S32KXX:RTD5.0.0.202407261948SW32K3_FreeRTOS_11.1.0_5.0.0_CD1_D2409_示例项目附件说明:20250407-SPI1_CS_issue.png 20250407-FreeRTOS_S32K312_SPI_test.7z BR Nelson 回复:S32K312的SPI-1 CS引脚无法工作 我发现我们的电路板存在一个问题,其 CS 引脚上的上拉电阻为 4.7K,我将通知硬件工程部门讨论这个问题。再次感谢Robin_Shen 。
查看全文
MIMXRT1170-EVK: FreeRTOS Generic cm7 example run-time error I am receiving the following run-time error while trying to run the FreeRTOS Generic example on an MIMXRT1170-EVK with the linkServer Program received signal SIGINT, Interrupt. vApplicationIdleHook () at ../source/freertos_generic.c:386 386 xFreeStackSpace = xPortGetFreeHeapSize(); appears to hang from this point.  Any suggestions on why it appears to hang?  Thanks Re: MIMXRT1170-EVK: FreeRTOS Generic cm7 example run-time error solved, wrong serial port
查看全文
SPI-1 CS pin can't work about S32K312 Hi NXP: Im try to communicate by SPI1 interface and Clock/MOSI pins can output what I need data, but CS pin always high.Could you please help me? where is wrong setting beween pins and SPI driver,thanks. environment description: MCU:S32K312/100pin S32DS Product:3.5.0.202207261815 RTD S32KXX:RTD5.0.0.202407261948 SW32K3_FreeRTOS_11.1.0_5.0.0_CD1_D2409_Example Project attachment description: 20250407-SPI1_CS_issue.png 20250407-FreeRTOS_S32K312_SPI_test.7z BR Nelson Re: SPI-1 CS pin can't work about S32K312 I found issue about our board which has pull-up resister 4.7K located at CS pin, and I will inform hardware engineering for discussing this issue. many thanks again for Robin_Shen. Re: SPI-1 CS pin can't work about S32K312 Hi Nelson, I downloaded your program to S32K312EVB-Q172, and I can observe that the chip select signal is pulled low at PTB17 pin. Since your S32K312 package is 100 HDQFP, please check whether PTB17 pin63 is correctly connected to the logic analyzer. Best Regards, Robin ------------------------------------------------------------------------------- Note: - If this post answers your question, please click the "ACCEPT AS SOLUTION" button. Thank you! - We are following threads for 7 weeks after the last post, later replies are ignored Please open a new thread and refer to the closed one, if you have a related question at a later point in time. ------------------------------------------------------------------------------- Re: SPI-1 CS pin can't work about S32K312 Hi NXP: Im try to communicate by SPI1 interface and Clock/MOSI pins can output what I need data, but CS pin always high.Could you please help me? where is wrong setting beween pins and SPI driver,thanks. environment description: MCU:S32K312/100pin S32DS Product:3.5.0.202207261815 RTD S32KXX:RTD5.0.0.202407261948 SW32K3_FreeRTOS_11.1.0_5.0.0_CD1_D2409_Example Project attachment description: 20250407-SPI1_CS_issue.png 20250407-FreeRTOS_S32K312_SPI_test.7z BR Nelson
查看全文
MIMXRT1170-EVK:FreeRTOS 通用 cm7 示例运行时错误 当我尝试在 MIMXRT1170-EVK 上使用 linkServer 运行 FreeRTOS 通用示例时,我收到以下运行时错误 程序收到信号SIGINT,中断。 vApplicationIdleHook()位于../source/freertos_generic.c:386 386 xFreeStackSpace = xPortGetFreeHeapSize(); 似乎从这一点开始就悬而未决。关于它为什么会挂起,有什么建议吗?谢谢 回复:MIMXRT1170-EVK:FreeRTOS 通用 cm7 示例运行时错误 已解决,串口错误
查看全文