Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
NXP Matlab Simulinkとの連携 SimulinkモデルをMINI-EVBにフラッシュしようS32K312。モデルの入出力にCANインターフェースを使用しています。なぜ自分のトレースがSimulinkシミュレーションモデルで得られているものと一致しないのか理解したいです。SimulinkでのモデルとNXPハードウェアでのモデルには違いがあります。おそらくタイムステップやその他の要因が原因かもしれませんが、何が間違っているのか確認するためにサポートが必要です。
View full article
用户指南中提到的PID参数的含义以及如何计算它们? <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 我正在使用MagniV开发板进行BLDC控制……我还参考了NXP关于速度和电流回路的PI控制代码……PI控制回路参数的计算是用Freemaster工具完成的……请问有没有类似的工具可以用于PID回路参数的计算?另外,请解释一下代码附带的用户指南中提到的NXP PID函数中使用的PID参数的含义。 Re: PID parameters significance mentioned in User guide and how to calculate them ? 用于另一个流程: 1. 电机功率95W,电压12V,电阻R约为1.2Ω,电感L约为2.5mH 2. 这表明开关频率为 160Hz,即 1000 rad/s(1000/3.1416/2=160Hz)。 3. 这表明 Z_final 为 1。 所以:s = 1/(R+2*pi*L*freq) = 1/(1.2+2*3.14156*2.5e-3*160)= 1/(1.2+2.5) 这里有一个跳跃: 1.Kp = 2*3.1416*2.5e-3*160-R= 5-1.2= 3.8 2. Ki = w^2*L = 2500 3. 因为 Vol,curr 是标准化的,所以:Kp = 3.8 * 8/12 = 3.8 * 0.667 = 2.5 现阶段,人工智能表示 L 可能错了。 ---------------- 让我尝试计算一下正确的电机参数。 如果引擎的 cos(theta)=0.85 >>> import numpy as np >>> np.acos(0.85) np.float64(0.5548110329800715) >>> np.sin(0.555) np.float64(0.5269433002033014) 那么 sin(θ)=0.5。 所以:当发动机处于 STD 功率输出时,Curr_R 和 Curr_L 相等。 所以:R = 12*0.707/(8*0.707)= 1.5欧姆,没错。 L:9000rpm 对应的频率是 150Hz,所以我认为误差出在带宽上,带宽应该高于 1500Hz,可能是 3000Hz。 如果 freq_std=1500,则 L 应为 12*0.85/(2*pi*1.5e3)= 10mH ~5mH 所以:Ki = 14e3*10e-3 = 140 或 70。 Kp = 2*pi*1.5e3*L-R = 94-1.5= ... 还是错了…… Re: PID parameters significance mentioned in User guide and how to calculate them ? 你好呀。 我对 pid ctrl 完全不了解。 这是我找到的第一篇帖子。 以下是我在这个论坛上的一些心得和知识。 S32K344 - FOC 与 FreeRTOS 集成 这是起始行。 安装完电动汽车电路板后,我得到了 PMSM_appconfig.h 文件。进程 ID 参数、初始化参数为: #define CLOOP_D_KP (0.368399F) #define CLOOP_D_KI (0.0298853F) #define CLOOP_Q_KP (0.371817F) #define CLOOP_Q_KI (0.0298853F) 这是 FOC 控制器,所以这里有两个 PI 参数。 所以Kp是最重要的。 这是我的计算结果: PID(err_of_vol) = Curr。 电压范围为12V 电机功率为 95W,因此输出电流为:95/12=8A。 所以:Kp = 8/12 = 0.67...但是电机可以支持向前和向后滚动,所以 Vol 必须分成 2 部分。 所以:如果您使用 +12V 来支持所有回滚操作,则 kp 值应为 8*2/12=1.33 如果你使用类似反转 DC+ DC- 的方法,它应该只是 0.67。 如果你调整它,它总是从一个较小的值开始。例如,其中20%。所以最终,0.37 比 20%*1.33 更大。0.27 Ki 大约是 Kp 的 10%,所以 Ki = 1/12 * Kp 但这似乎完全错误。 我听说过千文(一款人工智能聊天应用)的事。 1. NXP 应该在第一阶段就实现 Curr & Vol 的标准化。 2. 计算基于零点和控制空间的极点。 我稍后会想办法弄明白。 它说,电机的 PID 参数将首先尝试测量电机的 L、R,然后进行计算。 Re: PID parameters significance mentioned in User guide and how to calculate them ? <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 你好, 我们在网络上的电机控制示例中使用了 PI 控制器。在您编写代码时,Mcat 会帮助计算所用 PI 控制器的参数(对于级联控制结构中的 PMSM,对于六步结构中的 BLDC)。目前,网上还没有使用 PID 控制器结构的示例,也没有可以帮助设置它的工具,但当然,我们的 AMCLIB 库也提供了此功能,作为客户控制结构的构建模块。 希望对您有所帮助。 顺祝商祺! 戴安娜
View full article
FRDM-IMX93 ASCII Board File Hello, I have pulled the FRDM-IMX93 Design Files from this link: https://www.nxp.com/design/design-center/development-boards-and-designs/frdm-i-mx-93-development-board:FRDM-IMX93 However I do not have Allegro or Extracta.exe to import them to Altium. Can you please supply the LAY-94611_B.brd in ACII format so I can import that into Altium? Thanks, Re: FRDM-IMX93 ASCII Board File Hello, I´m also in need for this file to understand the board better and help development. can you send it to me? Re: FRDM-IMX93 ASCII Board File HI @Cwootton! Thank you for reaching out to NXP Support! I will be sending the required files to you via email shortly. Best regards, Chavira
View full article
Subject: MPC5605 memory-read issue at 0x00100010 Hello, We have an issue with an ECU using MPC5605. During an EOL memory-dump operation, our toolbox reads memory using a direct CPU byte access: *((uint8_t *)address) From the CAN log: ```text Read 8 bytes from 0x00100008 -> successful Read 8 bytes from 0x00100010 -> ECU stops responding and resets ``` We checked the MPC5606BK Reference Manual, `16234_MPC5606BRM`, Rev. 2: - Table 3-1, page 49, shows `0x00100000 - 0x001FFFFF` as **Reserved**. - Pages 871-872 describe the flash-memory map and flash-emulation mapping. Could you please clarify: 1. Is `0x00100010` a valid/readable address for MPC5605? 2. If it is a reserved address, what happens when software reads it directly? Can it cause an exception or reset? 3. Which reference manual section should we use for the exact MPC5605 memory map? We are also collecting the full MPC5605 part number and silicon revision from the ECU hardware. Best regards, kasirajan C Development Board Re: Subject: MPC5605 memory-read issue at 0x00100010 Hello, Address 0x00100010 belongs to the range 0x00100000-0x001FFFFF, which is marked as Reserved in the MPC560xB memory map. Reserved regions must not be accessed by application software. Accessing such locations may generate a bus-related exception or other device-specific fault response, which can result in loss of communication or a reset if the exception is not handled. Chapter 3 Memory Map petervlna_0-1789455244473.pngpetervlna_0-1789455244473.png Best regards, Peter Re: Subject: MPC5605 memory-read issue at 0x00100010 Thanks for your reply
View full article
SC16IS740 最大晶体频率 尊敬的恩智浦技术支持团队: 我们使用 SC16IS740,电源电压为 3.3V。 请问能否确认可以直接连接在 XTAL1 和 XTAL2 之间的外部晶振(晶体振荡器)的最大频率是多少? 数据手册中提到: 适用于外部时钟,晶振(晶体振荡器)最大频率为 24 MHz。 感谢您的支持。 此致, 阿比舍克 Re: SC16IS740 Maximum Crystal Frequency 你好 AbishekDevan 再会! 是的,你说得对;使用外部晶体的极限是 24 MHz。 祝你今天过得愉快,一切顺利。
View full article
BAM ROMダンプリクエスト - MPC5604B(またはMPC560xBファミリ) 検閲されていないMPC5604B(またはMPC560xB/C評価ボード)をお持ちで、BAMマスクROM(16KB、0xFFFFC000-0xFFFFFFFF)をダンプして共有してくれる方はいらっしゃいますか?自分のチップでMCUの個人的な研究プロジェクトの参考資料として必要です。 よろしくお願いします! Re: BAM ROM dump request - MPC5604B (or MPC560xB family) こんにちは、 こちらにはそのようなEVBはありませんが、チップをサンプリングして自分でダンプを行うことができます。 工場出荷時のサンプルはすべて検閲を受けていません。 https://www.nxp.com/support/sample-and-buy/order-samples:ORDER_SAMPLES?partnum=SPC5604BAVLQ6 こうすることで複数の無料のチップを試すことができます。 よろしくお願いいたします。 ピーター
View full article
i.MX95 - UUU 工具刷写偶尔会失败 各位专家: 我正在使用 i.MX95 EVK,并将 imx-启动 和(内核 + 根文件系统)刷入 emmc。我在UUU脚本中使用了emmc_all选项进行刷写。 有时,我发现使用此选项进行刷机时会出现失败。以下是失败代码片段。 0x200000002:13-294A7876CE324A4D>Okay (0.403s) 2:13-294A7876CE324A4D>Start Cmd:FB: ucmd if env exists emmc_ack; then ; else setenv emmc_ack 0; fi; 2:13-294A7876CE324A4D>Okay (0.008s) 2:13-294A7876CE324A4D>Start Cmd:FB: ucmd sleep 1 2:13-294A7876CE324A4D>Okay (1.007s) 2:13-294A7876CE324A4D>Start Cmd:FB: ucmd mmc partconf ${emmc_dev} ${emmc_ack} 1 0 2:13-294A7876CE324A4D>Fail (0.187s) 请问是否有人遇到过类似的故障,以及是否有解决办法可以缓解这个问题? 提前感谢! BR, 阿伦·库马尔 Re: i.MX95 - UUU tool flashing fails occasionally 你好, 请问您能否分享一下您使用的完整命令?另外,请告知您测试时使用的是 EVK 还是 FRDM 开发板,以及 BSP 版本和 UUU 版本。 问候。
View full article
i.MX95 - UUU tool flashing fails occasionally Dear Experts, I am using i.MX95 EVK and flashing the imx-boot and the (kernel + rootfs) in emmc. I used emmc_all option in UUU script for flashing. Sometimes, I observed failures in flashing with that option. Please find below the failure snippets 0x200000002:13-294A7876CE324A4D>Okay (0.403s) 2:13-294A7876CE324A4D>Start Cmd:FB: ucmd if env exists emmc_ack; then ; else setenv emmc_ack 0; fi; 2:13-294A7876CE324A4D>Okay (0.008s) 2:13-294A7876CE324A4D>Start Cmd:FB: ucmd sleep 1 2:13-294A7876CE324A4D>Okay (1.007s) 2:13-294A7876CE324A4D>Start Cmd:FB: ucmd mmc partconf ${emmc_dev} ${emmc_ack} 1 0 2:13-294A7876CE324A4D>Fail (0.187s) Please let me know if anyone has faced similar failures and if there are solutions available to mitigate this problem Thanks in Advance ! BR, Arun Kumar Re: i.MX95 - UUU tool flashing fails occasionally Hello,  Can you please share the complete command you are using?, also let me know if you are testing with an EVK of FRDM board and the BSP version and UUU version. Regards.  
View full article
BAM ROM 转储请求 - MPC5604B(或 MPC560xB 系列) 有没有人拥有未审查的 MPC5604B(或任何 MPC560xB/C 评估板)并愿意导出 BAM 掩码 ROM(位于 0xFFFFC000-0xFFFFFFFF 的 16 KB)并分享?我需要它作为我个人MCU芯片研究项目的参考资料。 谢谢您! Re: BAM ROM dump request - MPC5604B (or MPC560xB family) 你好, 我这里没有这样的 EVB,但你可以自己对芯片进行取样并进行数据转储。 所有样品出厂时均未经过任何审查。 https://www.nxp.com/support/sample-and-buy/order-samples:ORDER_SAMPLES?partnum=SPC5604BAVLQ6 这样你就可以免费品尝多种芯片了。 顺祝商祺! Peter
View full article
BAM ROM dump request - MPC5604B (or MPC560xB family) Anyone with an uncensored MPC5604B (or any MPC560xB/C evaluation board) willing to dump the BAM mask ROM (16 KB at 0xFFFFC000-0xFFFFFFFF) and share? Need it as a reference for a personal MCU study project on my own chip. Thanks! Re: BAM ROM dump request - MPC5604B (or MPC560xB family) Hello, I do not have such EVB here, but you can simply sample the chip and do the dump yourself. All samples are uncensored out of the factory. https://www.nxp.com/support/sample-and-buy/order-samples:ORDER_SAMPLES?partnum=SPC5604BAVLQ6 This way you can sample multiple free chips. Best regards, Peter
View full article
S32K322 LCU/Emios I would like to understand the encoder implementation and principle differences between the S32K144 and S32K322. With the S32K144, the initial angle is communicated through the PWM and then provided to the count to the ABI interface for further processing. We also have a fault-detection mechanism to detect A, B, and I signal/wire disconnections using the quadrature decoder functionality through FTM. However, with the S32K322, the same logic is not working as expected, particularly because we are currently unable to detect the direction correctly. For example, when the I-pulse wire is disconnected, the absolute count becomes zero. This results in incorrect switching, after which the absolute count gradually varies and eventually reaches 4095 pulses. In the S32K144, even when the I-pulse is disconnected, the A and B signals with a single output are still able to provide the proper count, allowing us to detect the fault. Could you please provide examples or clarify the expected behavior for the following cases? A-pulse wire disconnected B-pulse wire disconnected I-pulse wire disconnected A and B pulse wires disconnected A, B, and I pulse wires disconnected It would also be helpful if you could explain how the encoder count and direction are expected to behave in each of these scenarios for both the S32K144 and S32K322. Regards, Thiru S32K3 S32K1 BRUSHLESS-DC-MOTOR-CONTROL  Re: S32K322 LCU/Emios Hi, The S32K322 does not include the FTM peripheral that is present on the S32K144. On the S32K3 family, the quadrature encoder functionality is built around the cooperation of the LCU, TRGMUX, and eMIOS modules. This is a fundamentally different architecture from the FTM-based quadrature decoder available on S32K144. On S32K322, PHA and PHB are decoded by the LCU into separate CW and CCW pulse streams, which are counted by two eMIOS channels. The application obtains the incremental position from the difference between these counters. A useful starting point for the S32K3 quadrature decoder design is Application Note AN13767, specifically Section 4.2.5, which describes the LUT truth table used for direction detection, TRGMUX routing, and eMIOS edge-counter configuration. Additional information can be found on the S32K344 motor-control kit page and in the related community discussion: AN13767: Application Note AN13767 S32K344 Motor Control Kit: S32K344 BLDC/PMSM Development Kit Community discussion: Quadrature decoder on S32K344 Based on the LCU LUT implementation, if either the A or B signal is disconnected, the remaining channel can still generate transitions that produce CW or CCW pulses at the LCU output. As a result, the corresponding eMIOS counter continues counting and direction information may still be available. However, the pulse rate is reduced, resulting in approximately four times fewer counts per revolution compared to normal operation. If both A and B signals are disconnected, no valid quadrature transitions are present at the LCU inputs. Consequently, neither CW nor CCW pulses are generated and the eMIOS counters remain unchanged. Regarding the index (I) signal, the NXP motor-control kit implementation does not use the index signal. Position and direction are derived solely from the A and B quadrature signals, while the position offset is calibrated during rotor alignment. Furthermore, the index signal is not connected to the MCU in this implementation. Therefore, the behavior observed when disconnecting the I signal appears to be application-specific. BR, Petr Re: S32K322 LCU/Emios I could not fully understand the LCU LUT logic described in the application note. I have the following questions: 1. Detection of A/B signal disconnection: I understand that detecting A or B signal disconnection based only on the absolute count may not be reliable, since the absolute count can remain at 0 or 4095 when either the A or B signal is disconnected. At the same time, defining a fixed threshold based on the CW/CCW counter also seems difficult because the rotor can rotate forward and backward, causing the counter to roll over. The CW/CCW counter can therefore exceed 4095 and continue up to 65535 (uint16), depending on the rollover condition. In this scenario, what would be the recommended logic or threshold for detecting A/B signal disconnection? Could you please suggest a suitable diagnostic approach for this scenario, considering the counter rollover condition?
View full article
i.MX 8M Plus (GC7000UL) 仅通过 Mesa etnaviv 报告 OpenGL ES 2.0——是否有可能升级到 ES 3.0/3.1? 系统信息: - 主板:i.MX 8M Plus - GPU:GC7000UL - 驱动程序栈:Mesa `etnaviv`(开源) - `eglinfo -B` 报告:仅支持 OpenGL ES 2.0 - 应用:Chromium/CEF 133,使用 ANGLE,请求 ES 3.0 上下文 问题: 根据数据手册,GC7000UL 支持 ES 3.1/3.0,该板卡上的etnaviv仅支持 ES 2.0,但支持 Vulkan 和 OpenCL 1.2。Chromium/CEF 的ANGLE 后端无法获取ES3上下文,回退到 ES2 路径,而 ES2 路径又回退到软件渲染。我希望实现真正的 GPU 硬件加速,而不仅仅是 ES2 的变通方案。 - 如果可能的话,我希望继续使用开源的 Mesa/etnaviv 协议栈,而不是专有的 Galcore 驱动程序。 - 如果升级 `CEF` 版本可以解锁此 GPU 上的硬件加速,则愿意升级该版本。 如果需要,我很乐意分享更多版本细节。谢谢! IMX8MPLUS 图形与显示 HW-开源 i.MX 8M | i.MX 8M Mini | i.MX 8M Nano Re: i.MX 8M Plus (GC7000UL) only reports OpenGL ES 2.0 via Mesa etnaviv — path to ES 3.0/3.1? 嗨@mineshp NXP 的支持服务不涵盖开源 GPU 驱动程序的问题。感谢您的理解。 此致, 志明
View full article
MTRCKTSPS5744P 应用软件安装 你好, 我在安装可以从这里下载的软件时遇到了这个问题。 MPC5744P 三相永磁同步电机开发套件 | 恩智浦半导体 错误提示为“文件未找到”。该软件尝试从服务器获取文件,但失败了。 谢谢! Re: MTRCKTSPS5744P Application Software Installation 你好, 我刚刚下载好了,没有任何问题。 不过我记得你需要先手动安装 AMMCLIB,因为安装链接好像坏了。 https://www.nxp.com/design/design-center/software/automotive-software-and-tools/automotive-math-and-motor-control-library-ammclib:AMMCLIB 关于这个问题,请参阅我之前发布的另一篇文章: https://community.nxp.com/t5/MPC5xxx/How-to-obtain-the-complete-source-code-of-MPC5744P-3-phase-PMSM/m-p/1737179 顺祝商祺! Peter
View full article
マイクロセーフティマニュアルへのアクセス こんにちは、 2026年12月6日時点で、私はS32K3のセキュアなリソースを閲覧できる状態になっているはずです。 S32K358のセーフティマニュアルを探しているのですが、まだ全く見つかりません。 ここ https://www.nxp.com/products/S32K3#myDocument の安全なドキュメントやMy NXPアカウントの「Secure Resources」>で試しましたが、見つかりませんでした。 どなたか助けていただけますか? ありがとう、 サイモン Re: Accessing Micro Safety Manual こんにちは、 @simon98さん お客様のアカウントおよび内部記録を確認しましたが、S32K3セーフティマニュアルの過去のリクエストは見つかりませんでした。この文書を取得するために、より高いアクセス権限を申請する手助けをいただけますか? BR、VaneB Re: Accessing Micro Safety Manual こんにちは、 @VaneB さん。 セーフティマニュアルのアクセスをどう申請すればよいか教えていただけますかS32K358? 安全な資源(2006年12月にキャンプされたもの)にアクセスできると思っていましたが... BR、 サイモン Re: Accessing Micro Safety Manual こんにちは、 @simon98さん 役立つかもしれない「 NXPのセキュアアクセス権初回ユーザー登録ガイド」をご覧ください。 Re: Accessing Micro Safety Manual こんにちは、 @VaneBさん すでに安全なリソースへのアクセスはできていますが、セーフティマニュアルは安全なリソースのセクションで見つかりませんでした。 私は自分のニーズを具体的に明記した、より上位の権限要求を申請しようと試みました。それは正しいですか? ありがとうございます サイモン Re: Accessing Micro Safety Manual こんにちは、 @VaneB さん。 上記で言及されていたガイドを確認しました。 S32自動車処理プラットフォームの権利をさらに高めて申請しようとしましたが、ページがすべてのアイテムについてまだ保留中であることを思い出させてくれました。 これがs32k358セーフティマニュアルにアクセスする正しい方法なのか、それとも他に見落としや見落としがあるのかをお聞きしたいです。アクセスするには何かをプロビッドする必要がありますか? ありがとうございます サイモン
View full article
Access to intA and intB of DMA descriptors when using SPI Hello, I am using the microcontroller LPC55S69 to communicate with a device via SPI, using DMA. The device is spitting data every 2ms, and i am saving it automatically in each descriptor. I have 4 descriptors, when descriptor 2 concludes saving the data, i want it to flag intA, and when descriptor 4 finished filling the data in the buffer i want it to flag intB. I have the following callback functions: void SPI_DMA_master_callback(SPI_Type *base, spi_dma_handle_t *masterHandle, status_t status, void *userData) void SPI_RxDMACallback(dma_handle_t *handle, void *param, bool transferDone, uint32_t tcds) void SPI_TxDMACallback(dma_handle_t *handle, void *param, bool transferDone, uint32_t tcds) To know the state of intA or intB, i should read the variable "tcds", however it never enters in the SPI_RxDMACallback() or SPI_TxDMACallback(), the code only gets into the function SPI_DMA_master_callback() after finishing all the descriptors. Is there a way to check when it occurs intA and intB? Thank you, Kans LPC55xx Re: Access to intA and intB of DMA descriptors when using SPI Hello, The reason your code only triggers SPI_DMA_master_callback() at the end of the entire chain is that MCUXpresso’s high-level spi_dma_handle_t driver overwrites the individual DMA callbacks and disables intermediate descriptor interrupts (INTA/INTB) by default. The high-level driver only notifies you when the final descriptor completes. Re: Access to intA and intB of DMA descriptors when using SPI Thank you for the response. Indeed i have noticed that, so i was trying to find a way to still have access to the descriptor interrupts (INTA/INTB) I have tried to use a custom Callback, and it seems to be working for now, to have access to intA and intB states: *defenitions* dma_callback g_nxp_rx_callback = NULL; void *g_nxp_rx_userData = NULL; void Custom_RxDmaCallback(dma_handle_t *handle, void *userData, bool transferDone, uint32_t tcds); *initialisation* g_nxp_rx_callback = FLEXCOMM0_RX_Handle.callback; g_nxp_rx_userData = FLEXCOMM0_RX_Handle.userData; DMA_SetCallback(&FLEXCOMM0_RX_Handle, Custom_RxDmaCallback, NULL); *callback* void Custom_RxDmaCallback(dma_handle_t *handle, void *userData, bool transferDone, uint32_t tcds) { // 1. Intercept intermediate descriptor interrupts if (tcds == kDMA_IntA) { // Descriptor middle finished: 1st buffer filled transferDone = false; } else if (tcds == kDMA_IntB) { // Descriptor final finished: 2nd buffer filled transferDone = true; } if (transferDone && g_nxp_rx_callback != NULL) { g_nxp_rx_callback(handle, g_nxp_rx_userData, transferDone, tcds); } } This way it also goes to the SPI callback function when the communication is finished, however (correct me if i am wrong), by going into the SPI callback function it changes the internal state of SPI from kSPI_Busy to kSPI_Idle, while in reality i am in an infinite loop of descriptors (after last descriptor goes straight to first descriptor), so maybe this could generate some conflicts?  Also avoiding to move from callback to callback.  So i decided to keep it simple: *initialisation* DMA_SetCallback(&FLEXCOMM0_RX_Handle, Custom_RxDmaCallback, NULL); *callback* void Custom_RxDmaCallback(dma_handle_t *handle, void *userData, bool transferDone, uint32_t tcds) { // 1. Intercept intermediate descriptor interrupts if (tcds == kDMA_IntA) { // Descriptor middle finished: 1st buffer filled } else if (tcds == kDMA_IntB) { // Descriptor final finished: 2nd buffer filled } }
View full article
S32K396 SELCTL 从 FIRC 更新到 PLL 我使用 S32K396-BGGA-DC1 开发板,尝试使用 16MHz 外部振荡器 (Y2) 进行时钟控制。 当我将 MC_CGM Mux 0 CSC 的 SELCTL 设置为 PLL,然后设置 CLK_SW = 1 时,遇到了问题。我收到一个调试错误(Trace32),并且运行的代码崩溃了。我尝试在不连接调试器的情况下运行程序,并在设置 CLK_SW = 1 后打开其中一个用户 LED。LED灯一直不亮,所以我推测是微型芯片卡在了同一个位置。 以下是我的时钟配置的伪代码: PLLCR.PLLPD = 1 设置 PLLDV.MFI、PLLDV.RDIV、PLLDV.ODIV2 和 PLLODIV[0].DIV PLLCR.PLLPD = 0 确认 PLLSR.LOCK = true(while 循环) PLLODIV[0].DE = 1 将闪存等待时间配置为 160MHz 和 RAM // 基于 A+ 模式配置 MUX[0].DIV_TRIG_CTRL.TCTL = 1 MUX[0].DIV_TRIG_CTRL.HHEN = 1 使用相应的时钟分频值配置 MUX[0].DC[0 - 7] MUX[0].DIV_TRIG = 1 等待 DIV_STAT = 0 MUX[0].CSC.SELCTL = 0x8 (PLL_PHI0_CLK) MUX[0].CSC.CLK_SW = 1           << 尝试写入 1 时在此处崩溃 我的操作步骤是不是漏掉了什么?我确保尺寸不超过各个分频器的限制,所以我觉得这不是问题所在。提前感谢您提供的任何指导! Re: S32K396 SELCTL update to PLL from FIRC 找到问题所在了,需要在设置 SELCTL 之前设置 SAFE_SW = 1。
View full article
Configuring imx93 M33 memory via BLK_CTRL_S_AONMIX register M33_CFG[TCM_SIZE] We are reviewing the imx933 and just found the  M33 only has 128KB available in its default config.  Per the imx93 RM we see that BLK_CTRL_S_AONMIX register M33_CFG should allow us to combine the 2x128KB block together by setting 01 for DOUBLE_CODE.  Are there any examples of this?  None of the linker scripts in the SDK (SDK_2_16_000_MCIMX93-EVK) use anything bigger than 128k and I cannot find any references to this in any SDK example/demo.  How do we utilize this?  Is it simply a matter of setting the register at init/reset and modifying the linker script?  HW-Open-Source Re: Configuring imx93 M33 memory via BLK_CTRL_S_AONMIX register M33_CFG[TCM_SIZE] Hello @Manuel_Salas I have read this discussion about using the TCM as code memory. I wanted to ask about the other option: would it be feasible to use the 256 KB TCM as additional data memory instead? This would involve changing m33_cfg[tcm_size] = 0b10. (DOUBLE_DATA_TCM) I patched the m33_prepare() function to change the register and zeroize the 0x20200000 region in order to clear the TCM and initialize it for ECC. U-Boot and the Linux kernel start without any warnings or errors. However, when I start the firmware using remoteproc, it causes the entire system to restart without any error messages. Do you have any advice on how to fix this? Best regards, Re: Configuring imx93 M33 memory via BLK_CTRL_S_AONMIX register M33_CFG[TCM_SIZE] Hi, We are using an NPU for an ML application, which requires Ethos. However, our low-level application runs on an M33 core. We are trying to integrate it into the existing ethous_rpmsg_app, but it already consumes a lot of memory. We need to increase the memory size from 128K to 256K. Please share the method to achieve this. Memory Consumption of Demo example m33_sdk_work/boards/mcimx93evk/demo_apps/ethosu_apps_rpmsg - Screenshot from 2025-03-13 16-48-10.png Re: Configuring imx93 M33 memory via BLK_CTRL_S_AONMIX register M33_CFG[TCM_SIZE] Hello @TRX_Ivan  I hope you are doing very well. There is an issue with TCM and M33 core because M33 SDK image has to be started from ROM code, which use system TCM to save stack. Unfortunately, there is not workaround to directly use 256KB code TCM. Best regards, Salas.
View full article
IW610G 802.15.4/SPI 完全無音 こんにちは、 私たちはIW610Gモジュール(Murata TYPE2LL)をカスタム組み込みLinuxボードに統合しており、SPI上で802.15.4/Threadを動作させるのに助けが必要です。WiFiとBLEは同じハードウェア/ファームウェア上で完全に動作しますが、802.15.4 RCPに問題があります。往復の手間を省くため、できるだけ詳細な情報を投稿します。 ハードウェア/ソフトウェアのセットアップ - ホスト:QCA9531 SoC(MIPS 24Kc)、OpenWrtベースのLinux 6.12、ath79ターゲット - IW610G(村田TYPE2LL):WLANおよびBLE用にUSB接続、標準IW610ホストインターフェースアーキテクチャに準拠した802.15.4用SPI接続 - ファームウェア:usbusbspi_iw610.bin.se、公開されているNXP-IMX/IMX-firmwareリポジトリから取得しました - otbr-agent/ot-daemonは-DOT_POSIX_RCP_SPI_BUS=ONおよび関連オプションで構築され、内蔵のスピネル+spi/トランスポートを使用しています(spidevベースでカスタムカーネルSPIドライバーはなく、NXPがSPI/802.15.4側向けにカーネル内ドライバーを出荷していないため、NXPの意図されたアーキテクチャに合致していると理解しています) 効果的な方法 - WiFi:USB、5GHzを経た完全なアソシエーション、スループット、安定性テストを行い、持続的な負荷下での実際のトラフィックと確認 - BLE:広告、スキャン、WiFiとの共存はすべてUSB経由で動作し、近くの実際のデバイスを検出することが確認されています うまくいかないもの - SPI上の802.15.4:ホストは正しくCSを主張し、適切に形成されたSpinel RESETフレームをクロックアウトし、RCPは常にゼロ充填ヘッダーで応答しません。これは一貫しています: - コントローラのハードウェアフロアから最大20 MHzまでのすべてのSPIクロックスピードにわたり - IND_RST_WL/IND_RST_NBでGPIOリセットパルスの有無(チップセレクト/リセットラインを個別および組み合わせてテスト) - 複数のウェイク/リセットGPIO(WL_WAKE_IN、NB_WAKE_IN)をまたぐ - 新たにクリーンにパワーシーケンスされたチップ上で確認された 私たちの側で既に除外したこと - 電気信号がクリーンで正確にタイミングが確認され、スコープで検証済み - SPIモード(CPOL=0/CPHA=0)およびタイミングをIW610のデータシート独自のSPIホストインターフェースタイミング図と照合 - ファームウェアの存在が確認され、正しく読み込まれ、最新であること(nxp-imx/imx-firmwareの最新のコミットと一致) FP92とFP99の不一致 ドライバの報告: wlan: version = USBIW610--18.99.8.p52--MM6X18543.p18-GPL-(FP92) 既存のThread(「IW610 802.15.4 problem」)を見つけました。そこでは別のユーザーがまったく同じ(FP92)タグでsduartspi_iw610.bin.seを使って全く同じ症状に遭遇していました。RN00104 は、USB-WLAN-USB-BLE-FP99-IW610 を IW610 over USB (USB 経由の WLAN、BLE over USB) の公式検証済み構成として文書化しています。 当社のバストポロジーと完全に一致するUSB。さらに掘り下げると: - 公開のnxp-imx/mwifiexリポジトリには、確認したすべてのブランチでMakefileにFPNUM="92"がハードコードされており、現在のHEADも含まれます - 公開のnxp-imx/mwifiex-iw612リポジトリには実際のFPNUM="99"がありますが、IW612専用(ソースにIW610の参照なし)およびSDIO専用(USBトランスポートコードは全く含まれていません) 私たちの質問 RN00104ドキュメントに記載されているUSB-WLAN-USB-BLE-FP99-IW610エントリに対応するFP99ドライバー+ファームウェア+設定バンドルはどこで入手できますか?この組み合わせは公開されたGitHubリポジトリ以外のチャネル(直接サポートリクエスト、NDA、モジュールベンダー配布)を通じて利用可能でしょうか?どれでも バージョン文字列マクロ以外に、FP92ビルドとFP99ビルドの実際の違いを示す情報があれば、これがそもそも正しい手がかりなのかどうかを理解するのに役立ちます。 前もって感謝します Re: IW610G 802.15.4/SPI completely silent こんにちは、 プライベートメッセージを送りました。 よろしくお願いいたします。 ダニエル。
View full article
BLK_CTRL_S_AONMIXレジスタM33_CFG[TCM_SIZE]を介してimx93 M33メモリを設定します。 imx933をレビューしているのですが、M33のデフォルト設定では利用可能なメモリが128KBしかないことが分かりました。imx93 RMによると、BLK_CTRL_S_AONMIXレジスタM33_CFGのDOUBLE_CODEを01に設定することで、2つの128KBブロックを結合できることがわかります。 この例はありますか?SDK内のリンカースクリプト(SDK_2_16_000_MCIMX93-EVK)は128kを超えるものを使っておらず、SDKの例やデモにもこの点の言及は見つかりません。 これをどのように活用すればよいでしょうか?単にレジスタをinit/resetに設定し、リンカースクリプトを修正するだけでしょうか? HW-Open-Source Re: Configuring imx93 M33 memory via BLK_CTRL_S_AONMIX register M33_CFG[TCM_SIZE] こんにちは、 @Manuel_Salas さん TCMをコードメモリとして使用することに関する議論を読みました。 別の選択肢についてお伺いしたいのですが、256KBのTCMを追加のデータメモリとして使用することは可能でしょうか? これには、m33_cfg[tcm_size] = 0b10 に変更することが含まれます。(DOUBLE_DATA_TCM) TCMをクリアしてECC用に初期化するために、m33_prepare()関数にパッチを適用し、レジスタを変更して0x20200000領域をゼロにしました。 U-BootとLinuxカーネルは警告やエラーなしに起動します。しかし、remoteprocを使用してファームウェアを起動すると、エラーメッセージが表示されることなくシステム全体が再起動してしまいます。 この問題を解決するためのアドバイスはありますか? よろしくお願いいたします。 Re: Configuring imx93 M33 memory via BLK_CTRL_S_AONMIX register M33_CFG[TCM_SIZE] こんにちは、 私たちはMLアプリケーション用にNPUを使っており、Ethosが必要です。しかし、私たちの低レベルアプリケーションはM33コア上で動作しています。既存のethous_rpmsg_appに統合しようとしていますが、既に多くのメモリを消費しています。メモリ容量を128Kから256Kに増やす必要があります。その方法を教えてください。 デモ例 m33_sdk_work/boards/mcimx93evk/demo_apps/ethosu_apps_rpmsg のメモリ消費量 - 2025-03-13 16-48-10 のスクリーンショット.png Re: Configuring imx93 M33 memory via BLK_CTRL_S_AONMIX register M33_CFG[TCM_SIZE] こんにちは、 @TRX_Ivan さん。 お元気でお過ごしのことと思います。 TCMとM33コアには問題があります。なぜならM33 SDKイメージはROMコードから起動しなければならず、システムはシステムTCMを使ってスタックを保存しているからです。 残念ながら、256KBのコードTCMを直接使用するための回避策はありません。 よろしくお願いいたします。 サラス。
View full article
S32K396 SELCTL アップデートからPLLへの変更(FIRCより) S32K396-BGGA-DC1開発ボードを使用して、16MHz外部発振器(Y2)をクロックとして使用しようとしています。 MC_CGM Mux 0 CSC の SELCTL を PLL に設定してから CLK_SW = 1 に設定すると問題が発生します。デバッグエラー(Trace32)が発生し、実行中のコードがクラッシュします。デバッガを接続せずに、設定CLK_SW = 1を超えた後にユーザーLEDの一つを点灯させてみました。LEDは点灯しないので、マイクロメーターが同じ場所で引っかかっているのだと思います。 以下は、私のクロック設定の擬似コードです。 PLLCR.PLLPD = 1 PLLDV.MFI、PLLDV.RDIV、PLLDV.ODIV2、およびPLLODIV[0].DIVを設定します。 PLLCR.PLLPD = 0 PLLSR.LOCK = true であることを確認します (while ループ) PLLODIV[0].DE = 1 フラッシュ待機時間を160MHzに設定し、RAMを… // A+モード設定に基づく MUX[0].DIV_TRIG_CTRL.TCTL = 1 MUX[0].DIV_TRIG_CTRL.HHEN = 1 MUX[0].DC[0 - 7]をそれぞれのクロック分周器値で設定します。 MUX[0].DIV_TRIG = 1 DIV_STAT = 0 になるまで待機する MUX[0].CSC.SELCTL = 0x8 (PLL_PHI0_CLK) MUX[0].CSC.CLK_SW = 1           << 1 に書き込もうとするとここでクラッシュします 私の手順に何か見落としがあるのでしょうか?個々の仕切りの制限以下に配置したので、それが問題ではないと思います。この件に関してご助言いただければ幸いです。よろしくお願いいたします。 Re: S32K396 SELCTL update to PLL from FIRC 問題の原因が分かりました。SELCTLを設定する前にSAFE_SW = 1を設定する必要がありました。
View full article