Multi Source Translation Content

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

Multi Source Translation Content

讨论

排序依据:
NX5P3090 FAULT pin voltage with Vin=0V Hello. I am using the NX5P3090 USB power switch and would like to pull the open-drain FAULT output to a 1.8V supply that can be present even if there is no input to the switch (Vin=0V). Will the presence of 1.8V at the FAULT pin (through a 47kohm pullup) when Vin=0V cause any undesirable behavior in the switch? I see that there is a 6V absolute limit on this pin but it isn't clear to me if this applies when Vin=0V. Thank you.  -Jason Re: NX5P3090 FAULT pin voltage with Vin=0V OK thank you.  -Jason Re: NX5P3090 FAULT pin voltage with Vin=0V Hi  1.8v pull up for this FAULT pin will be no problem without VIN.
查看全文
How can I allocate the whole Ethernet to the SRAM and my application to SDRAM? Hi, I'm trying to build an application that uses FreeRTOS, lwip stack, and mbedtls stack. I'm using the MIMXRT1064-EVK with version 2.15.000 of the SDK. I am assigning Heap, Stack, *(NonCacheable.init) and *(NonCacheable) to the SRAM_DTC. Also, my application requires a lot of working memory, so I allocated the Global data placement to the SDRAM. Naturally, the following settings have been completed to use the SDRAM. > add symbols : SKIP_SYSCLK_INIT and XIP_BOOT_HEADER_DCD_ENABLE=1 > modify ethernetif0_init() : SDK_ALIGN to AT_NONCACHEABLE_SECTION_ALIGN However, as mentioned in the post below, this setup is problematic because there are some troubles when the Ethernet tries to get some resources from the SDRAM. (the SDRAM as BOARD_SDRAM or NCACHE_REGION) https://community.nxp.com/t5/i-MX-Processors/iMXRT1024-Ethernet-MAC-not-transmitting-data/m-p/1770206/highlight/true#M216974 How can I allocate the whole Ethernet to the SRAM and my application to SDRAM? Also, is it okay to allocate the Ethernet resources to SRAM_OC? Thanks in advance. Re: How can I allocate the whole Ethernet to the SRAM and my application to SDRAM? To make Ethernet work with SDRAM, the following measures are required: The ENET_INT pin on the MIMXRT1064-EVK board is pulled up (R309) and down (R152). In this state, the GPIO1_Combined_0_15_IRQHandler() interrupt will occur at irregular intervals even if nothing is being done. If you remove R152, the sporadic GPIO1_Combined_0_15_IRQHandler() interrupts will no longer occur. And the GPIO1_Combined_0_15_IRQHandler() interrupt will only be raised if the Ethernet link is up or down. Re: How can I allocate the whole Ethernet to the SRAM and my application to SDRAM? > The variables in my communication application were assigned to SDRAM, but the communication stopped midway as before. The cause was that the stack size of my application task was insufficient. I was using event groups for event triggers in my application tasks. The data in the event group object was corrupted because the application's local array was redundantly allocated to the memory region referenced by the event group object. When the problem occurred, the Heap Usage (FreeRTOS) display showed that there was sufficient memory. Be careful with the stack size required by local variables. By modifying it, my application data related to IP communication was placed in SDRAM and it worked properly. Re: How can I allocate the whole Ethernet to the SRAM and my application to SDRAM? Thanks for your reply, Kerry when I commented out as per your instructions, it stopped at the Ethernet link up detection in the initial settings. Unfortunately, my problem could not be resolved. Re: How can I allocate the whole Ethernet to the SRAM and my application to SDRAM? Hi @atm2024 ,   As I know, if you put all the lwip to the SDRAM, some data need to use the none cache buffer, you can try to disable the cache on your side, whether it have any improvement or not?  in the  void BOARD_ConfigMPU(void) // SCB_EnableDCache(); // SCB_EnableICache(); Try it again.   If you still have question about it, please kindly let me know. Best Regards, Kerry Re: How can I allocate the whole Ethernet to the SRAM and my application to SDRAM? Thanks for the reply, Kerry The IDE I'm using is MXUXpresso IDE v11.9.0 [Build 2144]. This is the previous memory configuration. MCU settings > Memory detailsMCU settings > Memory details Managed Linker ScriptManaged Linker Script When the Global data placement was set to BOARD_SDRAM, the TLS communication stopped midway after repeating several times. So I set the Global data placement to SRAM_OC2. This is the current memory configuration. Managed Linker ScriptManaged Linker Script The Image built with this configuration has no SDRAM allocated. So I changed my application's send and receive buffers to global variables. And I specified __attribute__((section("SDRAM.bss"))) for those global variables. The variables in my communication application were assigned to SDRAM, but the communication stopped midway as before. Is it not possible to allocate not only the lwIP middleware but also my application data related to IP communication to SDRAM? I appreciate your help. Re: How can I allocate the whole Ethernet to the SRAM and my application to SDRAM? Hi @atm2024  Thank you for your interest in the NXP MIMXRT product, I would like to provide service for you. Now, which demo you are using in the SDK? This one? SDK_2_15_000_EVK-MIMXRT1064\boards\evkmimxrt1064\lwip_examples\lwip_httpssrv_mbedTLS\freertos You want to copy:Heap, Stack, *(NonCacheable.init) and *(NonCacheable) to the SRAM_DTC. This is easy, you just need to modify the related data aread to the DTCM. You want to generate your code in the SDRAM, and the data in the internal TCM or OCRAM. It's OK, but you need to make sure the current internal RAM is enough to put your related data. Please tell me which IDE you are using now? Then, I can help you to check the details. Please also tell me your current memory modification or configuration, that will also helps to me to check your situation. Please also tell me your test result. About your question: 1.How can I allocate the whole Ethernet to the SRAM and my application to SDRAM? =>Answer: change the app to internal SDRAM, I don't know which IDE you are using, if it is the mcuxpresso, you can check the linker to RAM. then in the memory, let the first memory as SDRAM. Then, to the stack, heap, *(NonCacheable.init) and *(NonCacheable), select the memory to the internal DTC, ITC. 2. Also, is it okay to allocate the Ethernet resources to SRAM_OC? =>Answer: If the OCRAM is large enough, then you can! Just need to check your code size, I am afraid it is not enough. Wish it helps you! Any updated information, please kindly let me know. Best Regards, Kerry
查看全文
i.MX Yocto Project User's Guide for Kirkstone yocto project release Dear Experts, I'm searching for the i.MX (i.MX6ULL) Yocto Project User's Guide for the Kirkstone release of the Yocto Project. Could someone kindly provide me with a link to download the aforementioned document? Thanks & regards, Ravikumar Re: i.MX Yocto Project User's Guide for Kirkstone yocto project release Hi @Chavira  Thanks for your information. Regards, Ravikumar  Re: i.MX Yocto Project User's Guide for Kirkstone yocto project release Hi @Embedded-world! Thank you for contacting NXP Support! You can download the documentation and pre-built images for our boards at the link below : https://www.nxp.com/design/design-center/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applications-processors:IMXLINUX Best Regards! Chavira
查看全文
如何在不连接开发板的情况下在 IDE 中运行“hello world”应用程序演示? 我是 NXP 主板的新手。 我安装了 MCUXpresso IDE,但现在我没有电路板。我安装了 SDK 并为主板创建了项目“hello world”。我建立了我的项目。如何在不连接开发板的情况下在 IDE 中运行“hello world”应用程序演示? 我可以在 IDE 中创建一个简单的 C/C++ 项目,构建并运行它吗? 回复:如何在不连接开发板的情况下在 IDE 中运行“hello world”应用程序演示? @Alex_Wang 我还有一个问题。我是否可以使用 MIMXRT1060-EVKB 在 tflm_cifar10 中运行 Opencv(我想在 Opencv 中使用一些调整大小的方法)。如果可以,请帮我配置它。谢谢。 回复:如何在不连接开发板的情况下在 IDE 中运行“hello world”应用程序演示? @Alex_Wang 更改内存映射后,错误不再发生。但模拟运行的时间更长,并没有输出任何东西。也许 Keil/MDK 中 MIMXRT-1060 EVKB 的模拟出了问题。 回复:如何在不连接开发板的情况下在 IDE 中运行“hello world”应用程序演示? @Alex_Wang 我遵循了您的指南,但是在使用模拟器调试时,出现了与“写入”权限相关的错误,如下所示。 *** 警告:使用 ARM Cortex-M4 模拟器。ARM Cortex-M7 特定功能未建模! 运行时代码大小限制:32K 加载“ram_0x1400_release\\hello_world.out” *** 错误 65:0xFFFFFFF4 处访问冲突:没有“写入”权限 我创建了 .ini文件来修复它在 0xFFFFFFF4 处的访问冲突 - Keil 论坛 - 支持论坛 - Arm 社区,但它不起作用。 你对我有什么建议吗?谢谢。 回复:如何在不连接开发板的情况下在 IDE 中运行“hello world”应用程序演示? @Alex_Wang 感谢您的快速回复。我将按照以下步骤检查它是否有效。 回复:如何在不连接开发板的情况下在 IDE 中运行“hello world”应用程序演示? @Alex_Wang 谢谢。您是否有关于在 Keil uvision 模拟器中运行 SDK 示例的教程? 据我了解,首先我需要下载适用于 Keil/MDK 的 MCUXpresso SDK,然后在 Keil(模拟器)中以调试模式运行。是吗? 回复:如何在不连接开发板的情况下在 IDE 中运行“hello world”应用程序演示? @Alex_Wang 我可能是看了MIMXRT1060-EVK 的教程,里面提到了 SW7。它使用 SW7 来设置启动模式。MIMXRT1060 -EVK 入门 | 恩智浦半导体 当然,谢谢。对于 MIMXRT1060-EVKB,我们需要使用 SW4。 回复:如何在不连接开发板的情况下在 IDE 中运行“hello world”应用程序演示? @Alex_Wang 感谢您提供详细信息。 回复:如何在不连接开发板的情况下在 IDE 中运行“hello world”应用程序演示? @Alex_Wang 谢谢。我们正在购买 Mimrt1060。我不记得该董事会的具体名称。我看到 mimrt1060 有两个版本:evk 和 evkb。MIMXRT1060-EVK / EVKB 之间有什么区别? 回复:如何在不连接开发板的情况下在 IDE 中运行“hello world”应用程序演示? @ErichStyger谢谢你的帮助。 @Alex_Wang谢谢。我还有一个问题。当我通过微型 USB 电缆将开发板连接到 PC 进行调试时(具体来说,我将运行 TF Lite 模型),我是否需要通过 DC IN 5V 为开发板供电?据我了解,调试时不需要通过 DC IN 5V 为电路板供电。它仅适用于电路板的独立工作。 回复:如何在不连接开发板的情况下在 IDE 中运行“hello world”应用程序演示? 是的,您可以这样做(但当然不能使用 NXP SDK,因为它适用于目标板/设备)。 您可以使用主机 GNU gcc 编译器/调试器(单独安装)并使用 IDE 构建和调试应用程序,就像任何其他 Eclipse 发行版一样。事实是,您不是在进行交叉开发,而是在进行原生开发。 对于“真正的嵌入式”开发,您需要一个开发板或模拟器,例如QUEMU( https://www.qemu.org/ )。
查看全文
nxpimage: how to accept input file on command line instead of config entry Hi, .bd file has the following entry: sources { elfFile = extern(0); } doing this nxpimage expects the name of the input file on the command line. How can I achieve the same behavior using .yaml files? regards Max Re: nxpimage: how to accept input file on command line instead of config entry Hi @mastupristi , The nxpimage -> hab application supports both bd files and YAML configuration files. The bd file support is primarily intended as a backward compatibility solution for customers transitioning from elftosb to spsdk. I recommend using YAML configurations, as this is the standard format across all spsdk applications. Unfortunately, passing the input image via the command line when using YAML configuration is not currently supported. However, we are exploring the possibility of allowing users to override any configuration parameter across all spsdk applications. If implemented, this would enable you to specify the elfFile as a command line parameter when using a YAML file. Please note that this feature has not yet been developed. Let me know if you need any further adjustments!
查看全文
HID(W):LIBUSB_ERROR_PIPE ----i.mx9352 A1 Hi, We am using i.mx9352 A1 model. we are unable to port the BSP file due to some error is coming as given below ======================================================= Success 0 Failure 1 1:2 1/ 1 [HID(W):LIBUSB_ERROR_PIPE ] SDPS: boot -f imx-boot-imx93evk-sd.bin-flash_singleboot ============================================================================= Could you provide solution for that error Thanks, Vivek Re: HID(W):LIBUSB_ERROR_PIPE ----i.mx9352 A1 Hi @Binh_Hoang  Kindly check the voltage as per Table 29 of NXP hardware design guide and check  the VDD_SOC_0V8 at SOC end. Thanks Re: HID(W):LIBUSB_ERROR_PIPE ----i.mx9352 A1 Hi @vivek5676, I'm facing the same issue. Could you please let me know which change is needed for this case? Please give me more details.  Thank you in advance, Binh Re: HID(W):LIBUSB_ERROR_PIPE ----i.mx9352 A1 My problem get resolved after changes done in hardware.  
查看全文
FXLS8967AF Datasheet error: SENS_CONFIG1 default value descriptions The current datasheet listed on the website is Rev 1.5 of Mar 11, 2022: https://www.nxp.com/products/sensors/accelerometers/2g-4g-8g-16g-low-power-12-bit-digital-accelerometer:FXLS8967AF Table 47 shows that the SENS_CONFIG1 register default value depends on the BT_MODE pin: This affects the FSR and ACTIVE fields. The Table 48 descriptions fail to mention this, and use inconsistent options for the 2 fields: The description of FSR uses the BT_MODE=VDD default value, 01; The description of ACTIVE uses the BT_MODE=GND default value, 0 Re: FXLS8967AF Datasheet error: SENS_CONFIG1 default value descriptions Hello andrewneil, I hope all is great with you. Thank you for using the NXP communities. Correct, I also think that Table 48 doesn't mention this. It is not clear. I just wanted to let you know that I have already shared your feedback with the corresponding team. Thank you very much for your comments. Regards, David
查看全文
Receive DMX512 on LPUART1 S32k146 Hi all, I'm trying to read DMX512 Messages with the LPUART1 (PTC8, PTC9) from the S32k146.  The data is generated by a Slesa-U9 and could be measured and decoded from the oszillator as UART. My problem is, that as GPIO I can receive the data, but as LPUART there is no data in the LPUART1->Data Register. So my question is, if there's any existing project for receiving DMX on a S32k microcontroller.  If not, can you please help me and find my mistake?  Best regards Sandra Re: Receive DMX512 on LPUART1 S32k146 Hi @12914A, Currently there are no DMX512 examples for the S32K1xx's devices. If no data is being received, make sure the LPUART module is being correctly configured for the DMX protocol, as start bits, parity, baud rate, stop bits, etc. You can find inside the AN5413: S32K1xx Series Cookbook an example application for UART over registers. This example performs a simple UART 9600 baud transfer to a COM port on a PC. You could try sending singular bytes to test communication. Best regards, Julián
查看全文
S32G274A FlexRay Nodes Not Coldstarting Hi there, I am trying to get 2x S32G274A boards to communicate with each other over their LLCE Flexray. I am using the LLCE Node1 and Node2 code from the examples and am able to get them to work with default network settings. However, when I change the setting to the settings of the FlexRay network I need to interface with, they don't get past their initialization and don't go into FR_POCSTATE_NORMAL_ACTIVE. Attached is the network settings I am trying to use. Further, their state reports that they are in FR_STARTUP_INTEGRATION_LISTEN, when I would expect them to be in one of the COLDSTART_* states. Much appreciate any help! David Network Settings I'm trying to Use: Re: S32G274A FlexRay Nodes Not Coldstarting Resolved. pKeySlotID can't be the same across nodes. Payload length of Individual Buffers and static slot paylength must match in configuration. Re: S32G274A FlexRay Nodes Not Coldstarting Hi, We might be misunderstanding the overall inquiry, if so, we do apologize. We understand that you are able to run the NXP example with the S32G no problem, but once you change the network settings, it fails, is this correct? Furthermore, we understand that if you adapt our network to the one already configured under Config Tools, you are able to run the example successfully, is this correct? If so, then we understand that there is a problem with the overall configuration, but not with the example itself nor S32G. Are you able to confirm that your network settings are working without the S32G?  As for sharing your settings, we understand that, if Config Tools is not generating an error, they are "correct". You need to pair correctly your nodes, since FlexRay is a more delicate communication protocol, in which your configurations need to be perfectly matched. Again, under the example and using only S32G we understand that you are seeing no problems. An additional note is that the FlexRay Host interface has the following compliance [Page 2628, S32G2 Reference Manual, Rev. 8, February 2024]: "The FlexRay communication controller implements the FlexRay Communications System Protocol Specification, Version 2.1 Rev A." Just to confirm that your other interface is also complaint. More information on regards of the available features (i.e. data rate) for the FlexRay controller under the S32G can be found under Chapter 56 FlexRay Communication Controller (FlexRay) [Page 2833, S32G2 Reference Manual, Rev. 8, February 2024] Please, let us know. Re: S32G274A FlexRay Nodes Not Coldstarting I should add, with the default network config, I can see bits on the bus directly after Fr_43_LLCE_StartCommunication(FrConf_FrController_FrController_0); when I start only 1 of the nodes. But with my new network config, this is not the case. Therefore, the FlexRay controller must not be starting its communication correctly even though it doesn't return an error.
查看全文
linux bsp download Hi,nxp team: When I referred to this document "TP-S32G-VNP-RDB3.pdf" to download the Linux BSP, I encountered the following problem, as shown in the figure below But I visited this site and my network is fine My environment is ubuntu22.04 LTS  S32G3  Re: linux bsp download Hi, @chenyin_h @GuilhermeS32G : Thank you for your suggestions. My problem has been solved. It was due to network fluctuations. I can use it after using a VPN. Re: linux bsp download Hello @jiajun_cheng , Although the Google Repo tool may be convenient for Downloading the sources, it is not strictly essential. Alternatively, you may try to manually clone the Git repos of the Yocto layers and checkout the correct commit id. I see that you are trying to download the BSP 38.0 sources. So, according to: https://github.com/nxp-auto-linux/auto_yocto_bsp/blob/release/bsp38.0/default.xml you can run the following commands: mkdir sources && cd sources git clone https://git.yoctoproject.org/meta-freescale/ && cd meta-freescale && git checkout 6f04cf1fce13c9852d4ec86b66a3858c42b7c7c9 && cd .. git clone https://git.openembedded.org/meta-python2 && cd meta-python2 && git checkout f02882e2aa9279ca7becca8d0cedbffe88b5a253 && cd .. git clone https://git.yoctoproject.org/meta-security && cd meta-security && git checkout d398cc6ea6716afd3a3a6e88ad8fbdc89510ef23 && cd .. git clone https://git.yoctoproject.org/meta-virtualization && cd meta-virtualization && git checkout b3b3dbc67504e8cd498d6db202ddcf5a9dd26a9d && cd .. git clone https://git.openembedded.org/meta-openembedded && cd meta-openembedded && git checkout bdad2a789e30703a825b876279665720d06d55dc && cd .. git clone https://git.yoctoproject.org/poky/ && cd poky && git checkout f53ab3a2ff206a130cdc843839dd0ea5ec4ad02f && cd .. git clone https://github.com/nxp-auto-linux/meta-alb/ && cd meta-alb && git checkout 814fa233f9d5e4502090b38bd4a64d15650328e1 && cd .. && cp meta-alb/nxp-setup-alb.sh . And this is equivalent to the repo functionality. Best regards, Guilherme Re: linux bsp download Hello, @jiajun_cheng  Thanks for your post. I did not met such issue on local host(20.04), and tody I find a Ubuntu22.04 host to further test on it, but cannot reproduce the issue. Seems it is a network connection issue, may I know if you could have another trial? BR Chenyin
查看全文
UInable to create simulator project in Gui Guider-1.8.1-GA I'm unable to create simulator project in Gui guider 1.8.1. I was trying with company network connected it says "Download is failed, please check your network". I even tried with my personal network(Mobile hotspot). it's still same. I have attached screenshot. Please help me with this. Re: UInable to create simulator project in Gui Guider-1.8.1-GA Hello Celeste, Yes you are right. It is an issue with firewall. Got it resolved with my IT Team. Thank you for your support. BRs Sangamesh   Re: UInable to create simulator project in Gui Guider-1.8.1-GA Hello @sangamesht , I tried it and didn't encounter the problem you mentioned. Please try several more times or check if it is caused by additional network configurations such as proxies. BRs, Celeste
查看全文
FS23: reset time question Hello, I would like to ask a question regarding the system reset time when the watchdog is not refreshed. The configured watchdog is: /* WdWindowReg */ ((uint16)0x0000U) | SBC_FS23_FS_WDW_PERIOD_64MS | SBC_FS23_FS_WDW_RECOVERY_64MS //| SBC_FS23_FS_WDW_EN_MASK | SBC_FS23_FS_WDW_REC_EN_MASK After the system exits the init phase normally, I measured the system restart waveform while not refreshing the watchdog in the task, and the waveform indicates that the reboot time is approximately 340ms. Could you please explain how to calculate the 340ms time in the current configuration? Later, I tried to disable WDW_REC_EN, but I found that the experimental phenomenon remained the same, and the reboot time was still around 340ms. Thanks! Re: FS23: reset time question Hello Gumu, please refer to the sections 19.2.1.2 and 19.2.2 in the full FS23 datasheet. By incorrect or none Watchdog refresh, Watchdog error counter is incremented by 2. By default the Watchdog error counter limit is set to 6. To reach the limit three incorrect or none watchdog refreshes are needed. Please check the WD_ERR_LIMIT[1:0] bits setting. Have you left them in default value 6? The green waveform in your scope is from the RSTB pin, right?  If you have left the WD_ERR_LIMIT[1:0] to 6, then three incorrect or none WD refreshes would be needed (3*64ms=192ms), if to 8 then four (4*64ms=256ms).   Then if the WD recovery is set to 64ms, this would add to the time above. Please check the WDW_REC_EN bit setting. Have you set it to 1? For the MCU fault recovery strategy please refer to the section 19.2.5.  Please check how have you set the FCCUx error impact configuration. Have you left it to default? If yes, please probe the FS0B pin. To compare it with the RSTB pin. When the WD_ERR_LIMIT[1:0] has reached it's maximum value, the FS0B should be pulled low and Error phase should start. Please refer to the Figure 45.  With Best Regards, Jozef
查看全文
IMX VPU Wrapper documentation I'm currently using an IMX.8MP with the vpu wrapper on Yocto Kirkstone 5.10.35+g5f6f502e525b. I can see the libfslvpuwrap.so.3.0.0 shared library in my usr/lib but I cannot see any associated header files in my usr/include directory. I'm on the vpu_wrapper github repository attempting the get the vpu_wrapper.h header file for my version, but I can't find any release/tagged version with 3.0.0, I'm also using IMX VPU Reference manual but it looks to be for a more recent release than I am using. Where can I find the appropriate IMX VPU reference manual for my release? vpu lib version : major.minor.rel=1.1.1 vpu fw version : major.minor.rel_rcode=1.1.1_r0 vpu wrapper version : major.minor.rel=3.0.0 i.MX 8 Family | i.MX 8QuadMax (8QM) | 8QuadPlus Re: IMX VPU Wrapper documentation Hello, You can find the 5.10.35 documentation at: https://www.nxp.com/webapp/sps/download/preDownload.jsp Regards
查看全文
从 S32G2 Linux 映像切换 GPIO 大家好, 我正在使用 fsl-auto-image,我想编写 ac 文件,该文件可用于切换我的 S32G-VNP 开发板上的 LED 引脚(使用 libgpiod)。任何资源都可以。我正在寻找一个基本的模板片段,我不需要整个代码,因为我对嵌入式 Linux 还很陌生。 我已经看过 NXP linux BSP 33 pdf 中的 GPIO 部分,但那些只显示需要从终端调用的库 API。 另外,这仅仅是代码吗,还是我还必须在 dts 中进行更改? @chenyin_h标记您是因为您总是能提供很多帮助。 最好的, 毗湿奴
查看全文
使用 systemd 启动 GStreamer。 使用 systemd 启动 GStreamer 时出现问题。 输入以下命令会产生错误消息,并且视频不会出现。 帮我找到解决办法。 root@imx8mpevk:~# systemctl 启动 myservice root@imx8mpevk:~# systemctl status myservice * myservice.service - 测试服务 已加载:已加载(/etc/systemd/system/myservice.service;已禁用;预设:已禁用) 活跃:自 2024 年 5 月 14 日星期二 02:12:25 UTC 以来 7 秒前处于活跃状态(正在运行) 主 PID:834(myservice.sh) 任务:2(限制:5574) 内存:5.1M CGroup:/system.slice/myservice.service |-834 /bin/bash /home/root/myservice.sh `-841 睡眠 10 5月14日 02:12:25 imx8mpevk systemd[1]: 已启动测试服务。 5月14日 02:12:25 imx8mpevk myservice.sh[834]: gst 启动!! 5月14日 02:12:25 imx8mpevk myservice.sh[835]: 将管道设置为暂停状态... 5月14日 02:12:25 imx8mpevk myservice.sh[835]: 无法将管道设置为暂停状态。 5月14日 02:12:25 imx8mpevk myservice.sh[835]: 将管道设置为 NULL ... 5月14日 02:12:25 imx8mpevk myservice.sh[835]: 释放管道... 相同的 shell 脚本在控制台中执行时工作正常,我可以看到视频。 root@imx8mpevk:~# ./myservice.sh 消费税开始!! 将管道设置为暂停状态... 管道是活的,不需要预滚...... 管道采用预卷... 将管道设置为播放... 新时钟:GstSystemClock [1033.191967] 绕过 CSC [1033.194381] 输入格式 YUV4 [1033.197096] 输出格式 YUYV 重新分配延迟... 0:00:00.8 / 99:99:99. 这是我的“myservice.service”和“myservice.sh”文件。 myservice.service [Unit] Description=GStreamer After=multi-user.target [Service] Type=simple User=root ExecStart=/home/root/myservice.sh RemainAfterExit=yes GuessMainPID=no myservice.sh #!/bin/bash export XDG_RUNTIME_DIR=/run/user/0/ echo gst start!! gst-launch-1.0 v4l2src device=/dev/video2 ! waylandsink 请帮忙!! 回复:使用 systemd 启动 GStreamer。 尽管没有人感兴趣,但我自己找到了一个解决方案,并在此进行了总结。 我的程序.服务 [单元] 描述=我的上次服务 之后=weston.service [服务] 用户=root 环境=“WAYLAND_DISPLAY = /运行/ wayland-0” 环境=“XDG_RUNTIME_DIR = /运行/用户/ $(id -u root)” ExecStart=/home/root/run.sh 失败时重启 标准输出=日志 标准错误=日志 [安装] WantedBy=多用户.目标 运行 echo 开始 GST!! gst-启动-1.0v4l2src设备=/dev/video2!韦兰辛克 注册服务 systemctl 守护进程重新加载 systemctl 启用 myprogram.service 这样,对我来说效果很好。当我重新启动时,相机屏幕自动出现。
查看全文
printf and RAM consumption issue 129 printf("%d %ld %u\n", 999, 9999, 99); 0xfe8a5b: 900063 LD D2,#99 0xfe8a5e: 0402 PSH D2 0xfe8a60: 90270F LD D2,#9999 0xfe8a63: 0402 PSH D2 0xfe8a65: 9003E7 LD D2,#999 0xfe8a68: 0402 PSH D2 0xfe8a6a: 98001217 LD X,#4631 0xfe8a6e: 0442 PSH X 0xfe8a70: BBFEF8F2 JSR 16709874 printf (0xfef8f2) 0xfe8a74: 0A69 LEA S,(9,S) CodeWarrior for MCU Version: 10.7 Build Id:160721 When compiled, the string "%d %ld %u\n" is located in flash. During startup, it will be copied from flash to RAM, so you can see a RAM address 4631 (0x1217) is set to X register. Is the copy operation required? If yes, there are many many printf functions in our code, they will consume many many RAM space. Re: printf and RAM consumption issue Hi, strings are considered as data by default. To avoid copydown you can place pragma below: #pragma readonly_strings on e.g. add a prefix file (e.g. myPrefix.h): #ifndef MYPREFIX_H_ #define MYPREFIX_H_ #pragma readonly_strings on #endif /* MYPREFIX_H_ */  to include it to every source file in your project you add the prefix file here: Now the object that represents strings (@148 in my example)is located at flash: Hope it helps, Stan Re: printf and RAM consumption issue Hi, It is copy down function. The evidences are listed below: 1. If we set a watchpoint at the RAM address (4631 (0x1217)), the program will stop there during DoCopyDown execution. 2. The string "%d %ld %u\n" is located at both RAM and flash: 3. The COPYDOWN section Re: printf and RAM consumption issue Hi, it is not copy down function. I understood your issue wrong. It is just saving parameters onto stack for passing them to the function. It is standard parameters passing. Copy down function is a part of startup code - it is different story. Of course, if you have repeating values and or strings you can create a set of outputs and send them all as a strings. prm file> * non-paged FLASHs */ ROM = READ_ONLY 0xFE0200 TO 0xFFFDFF; ROM_STRINGS = READ_ONLY 0xFE0000 TO 0xFE01FF; .... ... DEFAULT_RAM INTO RAM; ROM_STRINGS INTO ROM_STRINGS; .... main.c> #pragma CONST_SEG ROM_STRINGS  // part of the ROM stolen from entire ROM in the PRM file unsigned char const s1[]="string1"; unsigned char const s2[]="string2"; unsigned char const s3[]="string3"; unsigned char const s4[]="string4"; unsigned char const s5[]="string5"; #pragma CONST_SEG DEFAULT //************************************** void main(void) { for(;;) {   printf("s1 = %s\n", s1);   printf("s1 = %s\n", s2);    printf("s1 = %s\n", s3);  } } Best regard, Ladislav Re: printf and RAM consumption issue This code showcases a memory management process, illustrating how data is transferred from flash to RAM using printf. Interestingly, just like https://slope3dgame.com/ mastering the requires understanding optimal trajectories and resource allocation, effective memory handling ensures efficient performance in programming. The redundant copy operations could waste valuable RAM, just like time wasted in the game without sharp strategies. Re: printf and RAM consumption issue Hi, You may not know what I mean. The format string "%d %ld %u\n" should be a constant, and it has been placed in the flash. During the startup, I mean in the initialization, or to be exact, in the function DoCopyDown(), (in the startup code, file starts12z.c) this string content is copied to RAM again. In the disassembly window, we can see this string is copied to memory address 4631 (0x1217), so 4631 is loaded to X pointer register. Why not pass the flash address of this format string to printf, why we need the copy operation? Re: printf and RAM consumption issue Hi, everything depends on your variable definition. If it is RAM variable then it will be copied to the RAM and used as a RAM variable. If it is defined as a volatile constant and placed into EEPROM space or any rom or const segment then it will be used from this space. You can create your special space for text constants (or not) in the PRM file ( can be found in the Linker Files folder of your project ) and then use it for constants placement. Best regards, Ladislav Re: printf and RAM consumption issue I ran into the same concern on an embedded project using CodeWarrior (10.x) for an HCS12. Our fix was placing string literals in flash with a const qualifier and using a printf variant that reads from ROM, avoiding RAM copies. Otherwise, stack/RAM usage ballooned fast. If you can’t change printf, consider a tiny logger with format tokens. For stress-testing memory behavior, I oddly used Solar Smash as a playful metaphor app during breaks—it helped me think about “controlled destruction.”
查看全文
コンフィグ ツールを使用した MIMXRT1010-EVK ボードの SAI1 の設定 MIMXRT1010-EVKボードを購入し、例を少し使ってみました。今、私は自分のプロジェクトを作成したいと思っています。 私が理解しているように、Config Toolsを使用することが推奨される作業方法です。 オンボードオーディオDACに接続されているSAI1を使用したいです。 しかし、SAI1 の例では Peripheral ツールと Clock Config Tools を使用していない ことに気付きました。 Peripheral Config Tool を使用して SAI1 をセットアップしたいのですが。しかし、入力するフィールドが多く、接続されているDACの詳細がわかりません。では、この SAI1 を Peripheral Config Tool を使用してこのボードで使用する例はありますか。
查看全文
i.MX8x failed to convert H264 video to YUV video using mxc_v4l2_vpu_enc.out! MD5 check failed! Hi NXP, We used the mxc_v4l2_vpu_enc.out tool to decode successfully, but the MD5 check failed! mxc_v4l2_vpu_enc.out decode successfully: /unit_tests/V4L2_VPU/mxc_v4l2_vpu_enc.out \  parser --key 0 --name sp2_bt_b.h264 --fmt h264 \ decoder --key 1 --source 0 \  convert --key 2 --source 1 --fmt I420 \ ofile --key 3 --source 2 --name output.dec.yuv MD5 failed: The following videos all have the same problem: sp2_bt_b.zip SP1_BT_A.zip MR4_TANDBERG_C.zip MR5_TANDBERG_C.zip FM1_FT_E.zip CVFC1_Sony_C.zip h. 264 video source website: https://www.itu.int/wftp3/av-arch/jvt-site/draft_conformance/AVCv1/ Software version: Yocto Project LF5.15.32_2.0.0 Could you please help me see the cause of the problem?  Thank you very much! All log files are attached: i.MX 8 Family | i.MX 8QuadMax (8QM) | 8QuadPlus Re: i.MX8x failed to convert H264 video to YUV video using mxc_v4l2_vpu_enc.out! MD5 check failed! update: the next firmware would fix this issue, you can use MR5_TANDBERG_C with next firmware, would be release in the Q1 of 2025 Re: i.MX8x failed to convert H264 video to YUV video using mxc_v4l2_vpu_enc.out! MD5 check failed! Hi @joanxie , Ok, I see. Thank you for your reply! Re: i.MX8x failed to convert H264 video to YUV video using mxc_v4l2_vpu_enc.out! MD5 check failed! no solution for this yet even you upgrade to the latest bsp, you can consider current bsp couldn't support this Re: i.MX8x failed to convert H264 video to YUV video using mxc_v4l2_vpu_enc.out! MD5 check failed! Hi @joanxie,  Thank you for your reply!So is there a solution to this?  Re: i.MX8x failed to convert H264 video to YUV video using mxc_v4l2_vpu_enc.out! MD5 check failed! confirmed that this issue isn't related to the profile, this is current vpu firmware couldn't support this streaming, because recorder depth of this streaming is bigger than the max size which is calculated by the vpu firmware, so the result md5sum isn't correct, you can use MR3_TANDBERG_B Re: i.MX8x failed to convert H264 video to YUV video using mxc_v4l2_vpu_enc.out! MD5 check failed! Hi @joanxie  We use Linux 6.6.36_2.1.0 firmware. The conversion of CVFC1_Sony_C.zip was successful. However, the conversion of MR5_TANDBERG_C.zip, MR5_TANDBERG_C.zip, FM1_FT_E.zip still fails. But MR5_TANDBERG_C.zip, MR5_TANDBERG_C.zip, FM1_FT_E.zip are Baseline profile. Is SOC supported? /unit_tests/V4L2_VPU/mxc_v4l2_vpu_enc.out \  parser --key 0 --name CVFC1_Sony_C.jsv --fmt h264 \ decoder --key 1 --source 0 \  convert --key 2 --source 1 --fmt I420 \ ofile --key 3 --source 2 --name output.dec.yuv   Re: i.MX8x failed to convert H264 video to YUV video using mxc_v4l2_vpu_enc.out! MD5 check failed! ok, I know what you mean, I just send the command example to you for reference,  so could you open the  output.dec.yuv correctly? my understanding is that you can open this yuv file correctly, but the MD5 checksum is different, then you use ffmpeg to convert, the MD5 checksum is same, right? if yes, do you mind using decode unit test to test again? case 1: decode h264 stream to test.yuv ./mxc_v4l2_vpu_dec.out ifile decode.264 ifmt 1 ofmt 1 ofile test.yuv besides of testing by decode, do you mind upgrading the bsp to the latest version? must you use 5.15 bsp version?  Re: i.MX8x failed to convert H264 video to YUV video using mxc_v4l2_vpu_enc.out! MD5 check failed! Hi @joanxie  I have a feeling you misunderstood what I meant. I need to convert H.264 video to YUV video.  My test steps are as follows: 1. Download MR5_TANDBERG_C.zip and unzip it 2. cd MR5_TANDBERG_C directory 3.  convert H.264  to YUV: /unit_tests/V4L2_VPU/mxc_v4l2_vpu_enc.out \  parser --key 0 --name MR5_TANDBERG_C.264 --fmt h264 \ decoder --key 1 --source 0 \  convert --key 2 --source 1 --fmt I420 \ ofile --key 3 --source 2 --name output.dec.yuv 4. The md5sum command compares the MD5 checksum: The check value of the YUV video is the same after the correct conversion. However, the MD5 checksum is different now. We can use ffmpeg to achieve the conversion, the command: ffmpeg -i MR5_TANDBERG_C.264-pix_fmt yuv420p output.yuv So we want to find out why the VPU failed to convert this video. Thank you very much!  Re: i.MX8x failed to convert H264 video to YUV video using mxc_v4l2_vpu_enc.out! MD5 check failed! the below commands were tested by us, do you mind trying again? unit_tests/V4L2_VPU/mxc_v4l2_vpu_enc.out \ ifile --key 0 --name test.yuv --fmt I420 --size 1920 1080 \ convert --key 1 --source 0 --fmt nv12 \ encoder --key 2 --source 1 --size 1920 1080 --framerate 30 \ ofile --key 3 --source 2 --name test_.264 unit_tests/V4L2_VPU/mxc_v4l2_vpu_enc.out \ ifile --key 0 --name test.yuv --fmt I420 --size 1920 1080 \ convert --key 1 --source 0 --fmt nv12 \ encoder --key 2 --source 1 --crop 960 540 640 480 --size 640 480 --framerate 30 \ ofile --key 3 --source 2 --name test_crop.264 Re: i.MX8x failed to convert H264 video to YUV video using mxc_v4l2_vpu_enc.out! MD5 check failed! Hi @joanxie  Thank you for your reply!I have used i.MX8QXP and i.MX8QM to test the decoding. Their situation is the same. So I think they all have the same VPU. Re: i.MX8x failed to convert H264 video to YUV video using mxc_v4l2_vpu_enc.out! MD5 check failed! your title is imx8x, but refer to the log, you tested on the imx8qm,so what processor do you use? refer to the I.MX8QM reference manual, the VPU has two H.264 AVC Encoders which Constrained Baseline, Main and High profile @1080p30. let me install this bsp and reproduce this then tell you the result later Re: i.MX8x failed to convert H264 video to YUV video using mxc_v4l2_vpu_enc.out! MD5 check failed! Hi NXP, I found that the profile for SP1_BT_A.zip and sp2_bt_b.zip are Extended profile. Is this SOC not supported? But MR5_TANDBERG_C.zip, MR5_TANDBERG_C.zip, FM1_FT_E.zip are Baseline profile. Is SOC supported? And CVFC1_Sony_C.zip is the Constrained Baseline Profile, which is supported by this SOC. The configuration is shown in the following figure:
查看全文
How to get a refund from मोबिक्विक?4466 MobiK.wik contact number ,988ᗱ×77lO×ᕤᕤ will not refund or reverse a payment erroneously made by YOU. All sales of prepaid recharge on the Mobi.Kwi(+(+(+(+*+** DSC Re: How to get a refund from मोबिक्विक?4466 MobiK.wik contact number ,988ᗱ×77lO×ᕤᕤ will not refund or reverse a payment erroneously made by YOU. All sales of prepaid recharge on the Mobi.Kwi(+(+(+(+*+**,,,
查看全文
RT117x: reset all peripherals but not the core Hi, At particular times, in my FW I would need to reset all the peripherals but not the core. Actually I would need to get back to the state it is in as soon as the rom bootloader yields control to our FW and jumps to ResetISR (so some peripherals have to work, e.g. FlexSPI). Of course, I also have to disable the NVIC interrupts, but for that I was thinking of doing it with a for loop (but tell me if there is a better way) do you have any suggestions? best regards Max Re: RT117x: reset all peripherals but not the core Hi @mastupristi, I'm afraid there isn't a straightforward way of doing this. You would have to manually de-initialize all of the modules, which implies that ideally you already know exactly what modules were initialized in the first place. Is there a particular reason why doing a SW reset would not be compatible with what you are looking for? BR, Edwin.
查看全文