Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
imx-secure-enclave ライブラリを使用した AES 暗号化/復号化 私はhsm_do_cipherやhsm_cipher_one_goのようなものを使用して、AES 256で少量のデータ(32バイト)を暗号化しようとしています。 hsm_do_cipher試してみると、ハンドルが悪いというエラーが出ます。hsm_cipher_one_goを使用すると、不正なパラメータエラーが発生します。 私はこのコードを使用してテストを作成しようとしました: https://github.com/nxp-imx/imx-secure-enclave/blob/1130c8bb820881ad037ba3f060e7fa70635fae3c/test/hsm/hsm_test.c#L620 hsm_cipher_one_goから次のエラーが発生します。 SAB Error: SAB CMD [0x62] Resp [0x429] - MU sanity check failed / Invalid parameters. aesencrypt: aesencrypt.c:164: hsm_do_cipher failed, err=0x4 パラメータの何が問題なのかを判断する方法はありますか?別のプログラムでキーを作成してもエラーは見つかりません。ファイルは /etc/ele の下に作成されます。 これがcipher_argsを設定する私のコードです: memset(&cipher_args,0,sizeof cipher_args); cipher_args.key_identifier = KEYID; cipher_args.iv = SM2_IDENTIFIER; cipher_args.iv_size = sizeof(SM2_IDENTIFIER); cipher_args.flags = HSM_CIPHER_ONE_GO_FLAGS_ENCRYPT; cipher_args.cipher_algo = HSM_CIPHER_ONE_GO_ALGO_ECB; cipher_args.input = sp; cipher_args.input_size = slength; cipher_args.output = od; cipher_args.output_size = slength; FRDMトレーニング Re: imx-secure-enclave ライブラリを使用した AES 暗号化/復号化 私は使用できるコードを見つけました: https://github.com/nxp-imx/imx-secure-enclave/blob/1130c8bb820881ad037ba3f060e7fa70635fae3c/test/common/test_cipher.c#L295 8バイトの入力データにより、関数hsm_do_hash()が無効な引数メッセージで失敗することがわかりました。16バイトは機能します。 要件key_identifier明記されていればいいのですが、制限はありませんiv_size、制限もありませんinput_size。 Re: imx-secure-enclave ライブラリを使用した AES 暗号化/復号化 次のようにする必要があります。 if (se_get_soc_id() == SOC_IMX95) i.MX91でやりたいことをスキップするコードは次のとおりです。 https://github.com/nxp-imx/imx-secure-enclave/blob/1130c8bb820881ad037ba3f060e7fa70635fae3c/test/common/test_cipher.c#L329 Re: imx-secure-enclave ライブラリを使用した AES 暗号化/復号化 コピーしたテストの先頭にこれがあることがわかります。 f (se_get_soc_id() == SOC_IMX95) do_cipher_stream_opaquekey_test(key_store_hdl、key_mgmt_hdl); そのため、このテストが i.MX91 で実行できなくなる可能性があります。では、なぜimx95のフィルターが存在するのでしょうか?i.MX91でAES暗号化のキーストアを使用できますか?どこかに例はありますか?
View full article
无法使用 imx93 板的 A55 核心(Digi coreconnect 93)访问 UART 端口 尊敬的恩智浦支持团队, 我想在主板的 UART 端口连接一个传感器并通过 A55 核心进行访问。 我尝试过以下方法,但都没有效果。 从 UART1 到 UART8 的可用端口总数 – 8 个 UART 4端口作为 Xbee 接口可用,就像 ttyXBee 一样,所以我也尝试使用c 代码和直接使用命令行来传输数据,但它们都不起作用。 按照此网站上的 URAT 说明,我获得了端口ttyLP3 、 ttyLP5和ttyLP6端口。端口ttyLP3和ttyLP5在板上没有引脚排列。ttyLP6与控制台端口 ttyACM0(UART 到 USB)相连,因此我们无法使用它。 尝试配置UART7 (Mikroe 接口),但未创建 tty 节点,也许它错过了 dts 端的配置。(我不确定) UART1与蓝牙芯片相连,因此无法访问。 未找到有关UART2和UART8的详细信息。   您能指导我如何使用开发板的 A55 核心和 C 语言编程访问 UART 端口吗?
View full article
imx93ボード(Digi coreconnect 93)のA55コアを使用してUARTポートにアクセスできない NXPサポートチームの皆様へ ボードのUARTポートにセンサーを取り付けて、A55コア経由でアクセスしたいです。 私は以下のことを試しましたが、どちらもうまくいきませんでした。 UART1からUART8までの使用可能なポートの総数 — 8個 XbeeインターフェースとしてのUART4ポートはttyXBeeのように利用できるので、Cコードを使用して直接コマンドラインを使用してデータを転送しようとしましたが、どれもうまくいきませんでした。 この ウェブサイトからのURATの指示に従って、 ポートttyLP3、 ttyLP5 、 ttyLP6 ポートを取得しています。ポート ttyLP3 と ttyLP5 は、ボード上にピン配置がありません。ttyLP6 は ttyACM0 (UART to USB) のコンソールポートに接続されているため、使用できません。 UART7(Mikroeインターフェース)を設定しようとしましたが、ttyノードが作成されず、dts側からの設定が見落とされた可能性があります。(よくわかりません) UART1はBluetoothチップに接続されているため、アクセスできません。 UART2とUART8の詳細は見つかりませんでした。   ボードのA55コアとC言語プログラミングを使用してUARTポートにアクセスする方法を教えてください。
View full article
AES Encryption/Decryption using imx-secure-enclave library I am trying to use something like hsm_do_cipher or hsm_cipher_one_go to encrypt with AES 256 a small amount of data (32 bytes). When I tried hsm_do_cipher I get an error that the handle is bad.  If I use hsm_cipher_one_go I get a bad parameter error. I tried to use this code to create my test: https://github.com/nxp-imx/imx-secure-enclave/blob/1130c8bb820881ad037ba3f060e7fa70635fae3c/test/hsm/hsm_test.c#L620 I get this error from hsm_cipher_one_go: SAB Error: SAB CMD [0x62] Resp [0x429] - MU sanity check failed / Invalid parameters. aesencrypt: aesencrypt.c:164: hsm_do_cipher failed, err=0x4 Is there a way to determine what is wrong with my parameters?  I see no errors when I create my key in a separate program.  Files are created under /etc/ele. Here is my code setting up the cipher_args: memset(&cipher_args,0,sizeof cipher_args); cipher_args.key_identifier = KEYID; cipher_args.iv = SM2_IDENTIFIER; cipher_args.iv_size = sizeof(SM2_IDENTIFIER); cipher_args.flags = HSM_CIPHER_ONE_GO_FLAGS_ENCRYPT; cipher_args.cipher_algo = HSM_CIPHER_ONE_GO_ALGO_ECB; cipher_args.input = sp; cipher_args.input_size = slength; cipher_args.output = od; cipher_args.output_size = slength; FRDM-Training Re: AES Encryption/Decryption using imx-secure-enclave library I found code that I could use: https://github.com/nxp-imx/imx-secure-enclave/blob/1130c8bb820881ad037ba3f060e7fa70635fae3c/test/common/test_cipher.c#L295 I found that 8 bytes of input data will cause the function hsm_do_hash() to fail with an invalid argument message. 16 bytes does work. It would be nice if key_identifier requirements were spelled out, iv_size does not have limits, neither does input_size. Re: AES Encryption/Decryption using imx-secure-enclave library It should be: if (se_get_soc_id() == SOC_IMX95) Here is the code that skips what I want to do on an i.MX91: https://github.com/nxp-imx/imx-secure-enclave/blob/1130c8bb820881ad037ba3f060e7fa70635fae3c/test/common/test_cipher.c#L329 Re: AES Encryption/Decryption using imx-secure-enclave library I see that the test I copied has this at the start: f (se_get_soc_id() == SOC_IMX95) do_cipher_stream_opaquekey_test(key_store_hdl, key_mgmt_hdl); So this probably prevents this test from running on the i.MX91. So why is the filter on imx95 present? Can you use the keystore with AES encryption on an i.MX91? Is there an example anywhere?
View full article
使用 imx-secure-enclave 库进行 AES 加密/解密 我正在尝试使用 hsm_do_cipher 或 hsm_cipher_one_go 之类的工具来使用 AES 256 加密少量数据(32 字节)。 当我尝试 hsm_do_cipher 时,我收到一个错误,提示句柄不好。如果我使用 hsm_cipher_one_go,我会收到错误参数错误。 我尝试使用此代码来创建我的测试: https://github.com/nxp-imx/imx-secure-enclave/blob/1130c8bb820881ad037ba3f060e7fa70635fae3c/test/hsm/hsm_test.c#L620 我从 hsm_cipher_one_go 收到此错误: SAB Error: SAB CMD [0x62] Resp [0x429] - MU sanity check failed / Invalid parameters. aesencrypt: aesencrypt.c:164: hsm_do_cipher failed, err=0x4 有没有办法确定我的参数出了什么问题?当我在单独的程序中创建密钥时,没有看到任何错误。文件在 /etc/ele 下创建。 这是我设置 cipher_args 的代码: memset(&cipher_args,0,sizeof cipher_args); cipher_args.key_identifier = KEYID; cipher_args.iv = SM2_IDENTIFIER; cipher_args.iv_size = sizeof(SM2_IDENTIFIER); cipher_args.flags = HSM_CIPHER_ONE_GO_FLAGS_ENCRYPT; cipher_args.cipher_algo = HSM_CIPHER_ONE_GO_ALGO_ECB; cipher_args.input = sp; cipher_args.input_size = slength; cipher_args.output = od; cipher_args.output_size = slength; FRDM 培训 回复:使用 imx-secure-enclave 库进行 AES 加密/解密 我找到了可以使用的代码: https://github.com/nxp-imx/imx-secure-enclave/blob/1130c8bb820881ad037ba3f060e7fa70635fae3c/test/common/test_cipher.c#L295 我发现 8 个字节的输入数据会导致函数 hsm_do_hash() 失败并显示无效参数消息。16 个字节确实有效。 如果 key_identifier 要求明确说明就好了,iv_size 没有限制,input_size 也没有限制。 回复:使用 imx-secure-enclave 库进行 AES 加密/解密 应该是: 如果(se_get_soc_id()==SOC_IMX95) 以下是跳过我想在 i.MX91 上执行的操作的代码: https://github.com/nxp-imx/imx-secure-enclave/blob/1130c8bb820881ad037ba3f060e7fa70635fae3c/test/common/test_cipher.c#L329 回复:使用 imx-secure-enclave 库进行 AES 加密/解密 我看到我复制的测试在开头有这个: f(se_get_soc_id()==SOC_IMX95) 执行密码流不透明密钥测试(key_store_hdl,key_mgmt_hdl); 因此这可能会阻止该测试在 i.MX91 上运行。那么为什么 imx95 上存在过滤器?您可以在 i.MX91 上使用带有 AES 加密的密钥库吗?有例子吗?
View full article
FlexCAN asserts due to FreeRTOS nesting violation Hello, I have the following setup: S32DS v3.5.12 RTD (P03, AR v4.7.0, SW v2.0.0) FreeRTOS 10.5.1 v2.0.0 S32K148 MCU I use a project that depends on the following drivers FlexCAN FreeRTOS BaseNXP (selects OsifFreeRtosType) others (may not be relevant to the potential bug) When I debug the application I observe that it ends up in an assert statement through the following sequence of function calls: ISR(CAN0_ORED_0_15_MB_IRQHandler) RTD/src/FlexCAN_Ip_Irq.c at line 214 FlexCAN_IRQHandler( ... ) RTD/src/FlexCAN_Ip.c at line 2926 FlexCAN_IRQHandlerRxMB RTD/src/FlexCAN_Ip.c at line 1342 can_RX_TX_callback custom callback for to handle CAN RX/TX events, located inside the project folder calls FlexCAN_Ip_Receive FlexCAN_Ip_Receive RTD/src/FlexCAN_Ip.c at line 2046 FlexCAN_SetMsgBuffIntCmd RTD/src/FlexCAN_Ip_HwAccess.c at line 1053 SchM_Enter_Can_43_FLEXCAN_CAN_EXCLUSIVE_AREA_18 RTD/src/SchM_Can_43_FLEXCAN.c at line 1125 OsIf_SuspendAllInterrupts RTD/include/OsIf_Internal.h at line 274 SuspendAllInterrupts RTD/include/OsIf_Internal.h at line 247 taskENTER_CRITICAL FreeRTOS/Source/Include/task.h at line 210 portENTER_CRITICAL FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h at line 105 vPortEnterCritical FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c at line 425 configASSERT See also the debug session call sequence Now I found a similar ticket where one NXP tech-support employee labels this issue as a bug, which may be resolved in a future RTD package release. To be sure, can you confirm that this is a bug in the RTD driver present a workaround I have tried to replace the portENTER_CRITICAL call by portENTER_CRITICAL_FROM_ISR (same for the EXIT version) in the local RTD folder in the header file Osif_Internal.h and in the RTD installation folder (S32DS.3.5\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\BaseNXP_TS_T40D2M20I0R0\include\Osif_Internal.h) But then I get another build error (Description Resource Path Location Type too few arguments to function 'vPortSetBASEPRI' portmacro.h /__FreeRTOS_Toggle_Led_Example_S32K148__/FreeRTOS/Source/portable/GCC/ARM_CM4F line 102 C/C++ Problem) point out if this is resolved by the RTD P04 package or when you plan to release package which fixes this isse Best regards, M_SCH S32 SDK for S32K1 Re: FlexCAN asserts due to FreeRTOS nesting violation Hello, one more thing. My current implementation relies on the FlexCAN_Ip_Receive function using interrupts. Which of the following options would you recommend for a temporary fix: 1. Modify the Osif_Internal.h file (so that it matches the implementation of the RTD AR 4.4.0, SW 1.0.0): #define ResumeAllInterrupts() ASM_KEYWORD(" cpsie i") #define SuspendAllInterrupts() ASM_KEYWORD(" cpsid i")​ 2. Use FlexCAN_Ip_ReceiveBlocking - keep in mind that I have multiple message buffers to query. Best regards, M_SCH Re: FlexCAN asserts due to FreeRTOS nesting violation Hello Petr, thanks for the information! Best regards, M_SCH Re: FlexCAN asserts due to FreeRTOS nesting violation Hi, yes, this is RTD issue and will be fixed with next RTD release. It should be version 3.0.0, not sure of the release plan. Not able to comment more. BR, Petr
View full article
S32G2 load dtb I got dts both in ATF and in kernal.When the board boots,Which dtb it will actually use?Or it will load both? Thank u. Re: S32G2 load dtb Hi, Both DTB/DTS will be used. When booting, TF-A/uboot will use the TF-A DTS/DTB, when uboot passes the control to the kernel, the kernel will use its own DTB/DTS. There is no conflict between both. Both DTB/DTS should be configured accordingly, if not when uboot passes control to the kernel, devices might not be available to the kernel itself. Please, let us know. Re: S32G2 load dtb Sorry,I can not understand well and could you describe it more detailed.I can find the same device in DTS both in ATF and kernal. Do they conflict with each other? Re: S32G2 load dtb Hi, Both DTB's will be used at the end, but the one that is available under the root partition of the SD card should be the Kernel one. Please, let us know.
View full article
Cannot find the sample file "S32K144_PT2000_EXAMPLE" Hello, I am a newcomer to S32 and the NXP community. I am currently using the FRDMPKPT2000EVM evaluation board (EVB) and trying to use the example file "S32K144_ST2000_XAMPLE". But I couldn't find the corresponding file on the official website. I only found the file 'Basic-FRDMPKPT2000EVM.zip' and cannot open it according to the tutorial. Can someone help me solve it? Thank you in advance Solenoid Controller Re: Cannot find the sample file "S32K144_PT2000_EXAMPLE" Thank you very much,Jozef,this is exactly what I need. Re: Cannot find the sample file "S32K144_PT2000_EXAMPLE" Hi Minglong, I apologize for not working link in the KTFRDMPKPT2000EVM User Guide, I will report this issue. The link should bring you to the FRDMPKPT2000EVM product page. The S32K144_PT2000_EXAMPLE.zip is the file under the Software section. Please also find the file attached.  With Best Regards, Jozef Re: Cannot find the sample file "S32K144_PT2000_EXAMPLE" Hi Jozef, Thanks for replying.I would like to rephrase the issue I encountered. I am currently studying the article "KFRDMPKPT2000EVM Evaluation Board Rev. 1.0-7 December 2016 User Guide" and have completed the installation steps for S32 Design Studio as described in section 6.2.1.1. Then, in section 6.2.1.2,the article states that---To download the example file, do the following: 1. Go to the Tool Summary Page at http://www.nxp.com/FRDMPKPT2000EVM and click on the Jump Start icon. 2. Locate and download the zip file named S32K144_PT2000_EXAMPLE.zip. 3. Unzip this file into a folder on the computer that has the S32 Design Studio installed。 I just couldn't find the example file mentioned in the second point.I have already downloaded the first file in the first image you sent before, but importing this file into S32DS does not match the example image provided in the article. I apologize if I misunderstood something. With Best Regards. Re: Cannot find the sample file "S32K144_PT2000_EXAMPLE" Hello Minglong, please point me to the tutorial you are referring to. The software, including the examples can be found in the FRDMPKPT2000EVM product page and on the KITPT2000FRDM3C product page.  With Best Regards, Jozef
View full article
Regarding Boot Configuration Settings on MIMXRT1170 Dear NXP Support Team, I have a couple of questions regarding the boot configuration settings for our project: Can we use BOOT_CFG[0:11] as individual functions when booting from fuses? When using the "Boot from Fuses" settings, do the BOOT_CFG[0:11] pins need to be pulled down or set to any specific state? I have attached images for your reference. Please update me as soon as possible. Your assistance in clarifying these points would be greatly appreciated. I appreciate your support. Best regards, Sagar Re: Regarding Boot Configuration Settings on MIMXRT1170 Fuses cannot be re-written. It is suggested to use the fuse configuration once you are completely sure that the parameters are correct.  Even with the fuse configuration you are able to enter serial download mode if boot_mode pin is available.  The ROM will behave like this: Boot_Mode is configured in Boot From Fuses (b00) - BT_FUSE_SEL = 0, No application in boot device, BootROM enters serial downloader mode - BT_FUSE_SEL = 1, valid application in boot device, BootROM gets all boot device info from fuse Boot_Mode is configured in Internal Boot (b10) - BT_FUSE_SEL = 0, valid application in boot device, BootROM gets boot device info from boot_cfg pins. - BT_FUSE_SEL = 1, valid application in boot device, BootROM gets all boot device info from fuse Best regards, Omar Re: Regarding Boot Configuration Settings on MIMXRT1170 Hello @Omar_Anguiano , Thank you for the quick reply. I have another query: if we use Boot from Fuses, can we change it later if we want to? Is Serial Downloader and Internal Boot compulsory? If we set the fuses, can we change the fuse settings afterward? In the reference design file, it is mentioned that the Boot Mode selection header should be used only during the development phase. We use Boot Selection settings during the development phase, but after finalizing the production phase, we switch to Boot from Fuses. What happens if we want to change the bootloader and firmware again after setting Boot from Fuses? Thanks  Sagar Re: Regarding Boot Configuration Settings on MIMXRT1170 If using boot from fuses then the boot_cfg pins can be used for other purpose as the ROM will read the values from the fuses instead of the GPIOs. The state of the pins can be as a normal pin as the state of the GPIO will not be read on that mode. Best regards, Omar
View full article
S32K116 LSPI 请问一下: S32K116这款芯片在使用S32DS配置LSPI组件的情况下目前采用默认的配置方式为同步传输,导致CPU运行效率低,通信等待时间很长。请问如何实现LSPI组件的异步通信,是需要自己模拟异步通信还是可以通过配置实现? 当前LSPI是通过LSPI_Config组件,采用中断形式配置 感谢! Re: S32K116 LSPI 我找到这个实例工程了,非常感谢 Re: S32K116 LSPI 请问我该如何获取这个安装包,我在我的S32DS软件中查找可用的拓展更新时并没有发现这个RTD。我找到的类似的安装包是给EB Tresos软件安装的。感谢您的帮助
View full article
サンプル ファイル "S32K144_PT2000_EXAMPLE" が見つかりません こんにちは、私はS32とNXPコミュニティの新参者です。私は現在FRDMPKPT2000EVM評価ボード(EVB)を使用しており、サンプルファイル " S32K144_ST2000_XAMPLE " を使用しようとしています。しかし、公式サイトで対応するファイルが見つかりませんでした。ファイル「Basic-FRDMPKPT2000EVM.zip」しか見つかりませんでした。チュートリアルに従って開くことができません。 誰かが私がそれを解決するのを手伝ってくれますか?よろしくお願いいたします ソレノイドコントローラー Re:サンプルファイル「S32K144_PT2000_EXAMPLE」が見つかりません どうもありがとうございました、ヨゼフ、これはまさに私が必要としているものです。
View full article
找不到示例文件“S32K144_PT2000_EXAMPLE” 您好,我是 S32 和 NXP 社区的新人。我目前正在使用FRDMPKPT2000EVM评估板(EVB)并尝试使用示例文件“S32K144_ST2000_XAMPLE”。但是在官网上没找到相应的文件。我只找到文件“Basic-FRDMPKPT2000EVM.zip”并且无法按照教程打开它。 有人能帮我解决吗?先感谢您 电磁阀控制器 回复:找不到示例文件“S32K144_PT2000_EXAMPLE” 非常感谢,Jozef,这正是我需要的。
View full article
LS1043a and LS1046a botting from QSPI MRAM Hello, I am working on a custom board that will use either the LS1043A or the LS1046A, exactly which processor is TBD and I need some clarification on QSPI-boot hardware requirements. The current thinking is to boot from QSPI using a non-volatile serial MRAM module. My questions are: 1) Can I boot from a serial MRAM module connected to QSPI? Or does it have to be flash for QSPI-boot? 2) If I use the QSPI interface to boot but I set the RCW values in the PBI such that the QSPI interface is not used during normal operation, will I be able to use all IFC pins as IFC pins? Or, if I boot from QSPI are those pins permanently muxxed to QSPI during normal operation? 3) If it's possible to boot from QSPI using MRAM, are there any special procedures we need to follow in code to make that work? Thank you  Re: LS1043a and LS1046a botting from QSPI MRAM Hello, Q1) Flash is recommended as boot-source. Q2)Once you set the pins in the RCW you cannot change the mux without updating the RCW and re-boot. Q3)It should be possible, not recommended as boot source and it only have to meet the requirements for the QSPI boot in the RM.
View full article
iMxRT1040 Boot FlexSPI and DQS Hi, I have a problem with my configuration to fit all the required peripherals. I plan to use external Quad SPI NOR Flash with no Strobe. (as the EVK). I need to use : CCM.CLKO1 [J4] and CCM.CLKO2 [J1]. I need one FlexSPI (for ext Flash) and one uSDHC for SdCard. The 2 clocks outputs prevent me from using uSDHC1. Then, I have to use uSDHC2 for the SdCard that has the CMD signal on [M4]. The [M4] pin is shared with FLEXSPI.A_DQS. What's the best way to use SdCard and boot on FlexSPI ? Can I boot easily on FLEXSPI2.A ? or should I use FlexSPI1.A with internal loopback Strobe ? Thanks in advance, Re: iMxRT1040 Boot FlexSPI and DQS Hi @jfz_arturia , Thank you for your interest in the NXP MIMXRT product, I would  like to provide service for you. Question: Can I boot easily on FLEXSPI2.A ? Answer: No, You can't.  In IMXRT1040RM reference manual, You can see that NOR Flash can only be  boot on FlexSPI1 Question: or should I use FlexSPI1.A with internal loopback Strobe ? Answer:  You can use this mode, but the max Frequency of operation is limited to 60MHz if you use this mode . https://www.nxp.com/webapp/Download?colCode=IMXRT1040RM https://www.nxp.com/docs/en/data-sheet/IMXRT1040CEC.pdf Wish it helps you. If you still have question about it, please kindly let me know. Wish you a nice day! Best Regards MayLiu
View full article
如何在 NXP YOCTO 中 insmod 模块和 mknod 设备节点 我正在使用的 iMX93-11x11-evk 板,最近我检查了 rtc(pcf2131)模块(gpio28 和 gpio29 pinmux 作为 I2C3 SCL 和 SDA),发现没有 device_create 接口来创建设备节点。所以我认为存在某个地方可以执行这些命令: insmod/modprobe 和 mknod ,但我现在还没有找到,并且在互联网上也没有找到相应的文档/网络链接。 我在源目录中执行了 cmd:grep -irn“mknod”和 grep“insmod”,没有返回结果 因此请给我一些线索或参考文档/网络链接来帮助我。 回复:如何在 NXP YOCTO 中 insmod 模块和 mknod 设备节点 让我们探索如何处理 i.MX93-11x11-evk 板上的内核模块(驱动程序)和设备节点。我将提供有关使用 insmod、modprobe 和创建设备节点的指导。 内核模块(驱动程序): 内核模块扩展了 Linux 内核的功能。它们允许您添加对新硬件、文件系统或系统调用的支持。 insmod 和 modprobe 命令用于插入和管理内核模块。 使用 insmod: insmod 命令将模块插入正在运行的内核。 例子: 须藤 insmod /path/to/module.ko 将 /path/to/module.ko 替换为模块文件 (.ko) 的实际路径。 使用 modprobe: modprobe 比 insmod 更强大。它自动解决模块依赖关系。 例子: sudo modprobe 模块名称 将 module_name 替换为您的模块名称(不带 .ko扩大)。 创建设备节点(mknod): 设备节点是 /dev 目录中代表设备的特殊文件。 要创建设备节点,请使用 mknod 命令。 例子: sudo mknod /dev/mydevice c 123 0 这将创建一个名为 /dev/mydevice 的字符设备节点,其主设备号为 123,次设备号为 0。 文档和参考文献: 不幸的是,我找不到与 i.MX93-11x11-evk 板相关的具体文档或网络链接。 但是,您可以参考有关内核模块和设备节点的常规 Linux 文档: Linux内核模块编程指南 Linux设备驱动程序 此致, AARP 会员
View full article
PN7642 SPIA master mode Hello!  I am using PN7642. I would like to ask is it possible to use SPI that is connected to host interface pins ATX_A, ATX_B, ATX_C, ATX_D in master mode or it can be configured only to work in slave mode?  Thanks in advance!  Artem Re: PN7642 SPIA master mode Thank you! Re: PN7642 SPIA master mode Hello @artem_pn Hope you are doing well. Host Interface pins may be intended for SPI target functionality. SPI controller should have dedicated pins according to PN7642 Data Sheet, Section 8 pinning information. Regards, Eduardo.
View full article
How to insmod modules and mknod device nodes in NXP YOCTO iMX93-11x11-evk board I'm using, recently I checked the rtc(pcf2131) module(gpio28 & gpio29 pinmux as I2C3 SCL & SDA), found no device_create interface to create device node. So I think that there exists someplace to execute the commands: insmod/modprobe & mknod, but I've not found now yet, and no corresponding docs/weblinks found from internet. I excuted cmd: grep -irn "mknod" & grep "insmod" in the sources dir, no results returned So pls support me some clues or referenced docs/weblinks to help me out. Re: How to insmod modules and mknod device nodes in NXP YOCTO Let’s explore how to handle kernel modules (drivers) and device nodes on your i.MX93-11x11-evk board. I’ll provide guidance on using insmod, modprobe, and creating device nodes. Kernel Modules (Drivers): Kernel modules extend the functionality of the Linux kernel. They allow you to add support for new hardware, filesystems, or system calls. The insmod and modprobe commands are used to insert and manage kernel modules. Using insmod: The insmod command inserts a module into the running kernel. Example: sudo insmod /path/to/module.ko Replace /path/to/module.ko with the actual path to your module file (.ko). Using modprobe: modprobe is more powerful than insmod. It automatically resolves module dependencies. Example: sudo modprobe module_name Replace module_name with the name of your module (without the .ko extension). Creating Device Nodes (mknod): Device nodes are special files in the /dev directory that represent devices. To create a device node, use the mknod command. Example: sudo mknod /dev/mydevice c 123 0 This creates a character device node named /dev/mydevice with major number 123 and minor number 0. Documentation and References: Unfortunately, I couldn’t find specific documentation or weblinks related to the i.MX93-11x11-evk board. However, you can refer to general Linux documentation on kernel modules and device nodes: Linux Kernel Module Programming Guide Linux Device Drivers Best Regards, aarp-membership
View full article
NXP YOCTOでモジュールとデバイスノードをインモッドする方法 私が使用しているiMX93-11x11-evkボードは、最近、rtc(pcf2131)モジュール(gpio28 & gpio29 pinmux as I2C3 SCL & SDA)を確認しましたが、デバイスノードを作成するためのdevice_createインターフェイスが見つかりませんでした。ですから、コマンドを実行する場所がどこかに存在すると思います: insmod/modprobeとmknodですが、まだ見つかっておらず、インターネットから対応するドキュメント/ウェブリンクも見つかりませんでした。 ソースディレクトリでcmd: grep -irn "mknod" と grep "insmod" を実行しましたが、結果は返されませんでした それで、私を助けるための手がかりや参考になるドキュメント/ウェブリンクを教えてください。 Re: NXP YOCTOでモジュールとデバイスノードをインモッドする方法 i.MX93-11x11-EVKボードでカーネルモジュール(ドライバー)とデバイスノードを処理する方法を見てみましょう。insmod、modprobeの使い方、デバイスノードの作成に関するガイダンスを提供します。 カーネルモジュール(ドライバー): カーネルモジュールはLinuxカーネルの機能を拡張します。新しいハードウェア、ファイルシステム、またはシステムコールのサポートを追加できます。 insmodとmodprobeコマンドは、カーネルモジュールの挿入と管理に使用されます。 insmodの使用: insmodコマンドは、実行中のカーネルにモジュールを挿入します。 例: sudo insmod /path/to/module.ko /path/to/module.koを、モジュールファイル(.ko)への実際のパスに置き換えてください。 modprobeの使用: modprobeはinsmodよりも強力です。モジュールの依存関係を自動的に解決します。 例: sudo modprobe モジュール名 module_nameをあなたのモジュールの名前に置き換えてください(.koは除きます)拡張子)。 デバイスノードの作成(mknod): デバイスノードは、/devディレクトリにあるデバイスを表す特別なファイルです。 デバイスノードを作成するには、mknodコマンドを使います。 例: sudo mknod /dev/mydevice c 123 0 これにより、メジャー番号123、マイナー番号0の/dev/mydeviceという名前のキャラクターデバイスノードが作成されます。 ドキュメントと参考資料: 残念ながら、i.MX93-11x11-EVKボードに関連する特定のドキュメントやウェブリンクは見つかりませんでした。 ただし、カーネルモジュールとデバイスノードに関する一般的なLinuxドキュメントを参照できます。 Linuxカーネルモジュールプログラミングガイド、 Linuxデバイスドライバー、 よろしく、 aarpメンバーシップ
View full article
CAN FD bus off state S32k146 Hi, We need to implement a CAN FD communication with 1Mb/s as bitrate. Unfortunately it's not working. The data would be written correct in the RAM, but in Canoe there is no message incomming. I've attached the ESR1, the CAN_init and a function to send a message. Hope you can help me. Sandra Re: CAN FD bus off state S32k146 Hi Petr, thx for your reply. We tested the FlexCAN example, but with the same failures. We detect, that our controller has some issues with the soldering pads. Best regards Sandra Re: CAN FD bus off state S32k146 Hi, seems you are detecting bit errors during transmission which leads to entering bus off state and recovering and so on. A cause of bit error detection can be various, most often inactive CAN transceiver, incorrect bit rate setting, etc.  It would be great to measure TX/RX and CAN line with scope-analyzer to see real signal as well. For your code, seems you have wrong setting for CBT register. I can recommend to use below tool which helps you with calculation https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/MPC5xxx-S32Kxx-LPCxxxx-CAN-CAN-FD-bit-timing-calculation/ta-p/1119319 BR, Petr
View full article
S32k310 RTDs port on TCM memories Hi There, I would run some deterministic Functions on TCM, and by consecuence some RTDs (ADC, PWM,...). I noticed, in *Memmap.h files,  that mcal_* linker sections  are spread in few linker sections; for example some sections are cacheable other non  canheable and other unknown sections. I read the RTD IM and UM manuals but there is no info about TCM topic Is there some documentation to port RTDs memory section on I/D TCMs ? NB Also, in s321k310 there is 16kb of SRAM and 64k od DTCM, so an efficient  and accurate partiting of data memory  mapping is almost necessary in any case. Best Regards Fabio  Best Regards Fabio Re: S32k310 RTDs port on TCM memories Hi@FabioG Please refer to the attachment.
View full article