Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
i.MX95 Reboot Loop After DDR Training Complete on Yocto Scarthgap B0 Hello NXP Community, We are working with an established board implementation based on the NXP i.MX95. The board design has been in use for approximately two years. We are using Yocto Scarthgap (LF6.6.52 release line) and are encountering an early-boot reset loop when moving our builds to newer silicon batches. We would like to verify the baseline support for the production-grade silicon.Please note that wrynose builds boot fine without any such issues. 1. Hardware & Software Environment SoC: NXP i.MX95 Build System: Yocto Project (Scarthgap release line, LF6.6.52 baseline) Silicon Comparison (Laser Markings): Working Hardware: Laser marking shows p1mx9596... (engineering sample / prototype batch). Boots and runs successfully on our Scarthgap build. Failing Hardware: Laser marking shows m1mx9596 dvzxnac... (mass-production batch). Yocto environment: Manifest: imx-6.6.52-2.2.2.xml Please note that both p1mx9596 and m1mx9596 can boot successfully with our Wrynose builds. 2. Observed Behavior When flashing an image built on Scarthgap onto the m1mx9596 hardware, execution proceeds normally through ROM and DDR OEI training, but resets immediately upon training completion(completes sucessfully): ** DDR OEI: sku_cfg:0x2 ** DDR OEI: (Build 114, Commit ca91ce79, Sep 16 2026 08:10:18) DDR OEI: SOC MIMX95(B0), Board mx95lp5 DDR OEI: IMEM + DMEM load in 3480 us DDR OEI: TRAINING complete in 2551111 us DDR OEI: done, err = 0x0 ** DDR OEI: sku_cfg:0x2 ** DDR OEI: (Build 114, Commit ca91ce79, Sep 16 2026 08:10:18) DDR OEI: SOC MIMX95(B0), Board mx95lp5 DDR OEI: IMEM + DMEM load in 3480 us DDR OEI: TRAINING complete in 2551473 us DDR OEI: done, err = 0x0 ** DDR OEI: sku_cfg:0x2 ** However, no U-Boot SPL logs are ever printed. The system resets immediately after DDR training. But the same image booted on the p1mx9596 laser marked soc it boots properly. 3. Our Core Questions Does the baseline Scarthgap (LF6.6.52) package natively support the m1mx95 line (m1mx9596 laser markings)? If not, guidance on the changes required would be very helpful. Thank you for any clarification or guidance! Linux Suspected Software Defect Re: i.MX95 Reboot Loop After DDR Training Complete on Yocto Scarthgap B0 Hi, Thank you for your interest in NXP Semiconductor products, You need to upgrade the BSP for the newer silicon version, you have to consider at least moving to Linux 6.12.34, which was the first release on B0 for packages 19x19 and 15x15 in both EVK and FRDM boards. Of course, my advice is to upgrade to latest BSP. Regards Re: i.MX95 Reboot Loop After DDR Training Complete on Yocto Scarthgap B0 Hi JosephAtNXP, Thanks for the information.We were able to boot scarthgap on lec-imx95 B0 after some investigation on the flash.bin and its components. For reference- While building flash.bin ,using the mx95b0-ahab-container.img from wrynose build instead of scarthgap's fixed the issue and can boot on the latest MIMX95 socs. thanks
View full article
在 Yocto Scarthgap B0 上完成 DDR 训练后,i.MX95 出现重启循环 NXP社区的各位朋友,大家好! 我们正在使用基于 NXP i.MX95 的成熟电路板实现方案。该电路板设计已使用了大约两年。我们正在使用 Yocto Scarthgap(LF6.6.52 版本),当将我们的构建迁移到较新的芯片批次时,遇到了早期启动重置循环的问题。我们希望验证产品级芯片的基本支持情况。请注意,Wrynose 版本的程序可以正常启动,没有任何此类问题。 1. 硬件和软件环境 SoC:NXP i.MX95 版本系统:Yocto Project(Scarthgap 版本系列,LF6.6.52 基线) 硅材料对比(激光打标): 工作硬件:激光打标显示 p1mx9596...(工程样品/原型批次)。在我们的 Scarthgap 版本上启动和运行正常。 硬件故障:激光标记显示 m1mx9596 dvzxnac...(批量生产批次)。 Yocto环境: 清单文件:imx-6.6.52-2.2.2.xml 请注意,p1mx9596 和 m1mx9596 均可使用我们的 Wrynose 版本成功启动。 2. 观察到的行为 将基于 Scarthgap 版本的镜像烧录到 m1mx9596 硬件上时,ROM 和 DDR OEI 训练过程正常进行,但训练完成后立即重置(训练成功完成): ** DDR OEI: sku_cfg:0x2 ** DDR OEI: (Build 114, Commit ca91ce79, Sep 16 2026 08:10:18) DDR OEI: SOC MIMX95(B0), Board mx95lp5 DDR OEI: IMEM + DMEM load in 3480 us DDR OEI: TRAINING complete in 2551111 us DDR OEI: done, err = 0x0 ** DDR OEI: sku_cfg:0x2 ** DDR OEI: (Build 114, Commit ca91ce79, Sep 16 2026 08:10:18) DDR OEI: SOC MIMX95(B0), Board mx95lp5 DDR OEI: IMEM + DMEM load in 3480 us DDR OEI: TRAINING complete in 2551473 us DDR OEI: done, err = 0x0 ** DDR OEI: sku_cfg:0x2 ** 但是,U-Boot SPL 日志从未被打印出来。DDR训练结束后,系统立即RESET。 但是同样的镜像文件在带有激光标记的p1mx9596 SoC芯片上可以正常启动。 3. 我们的核心问题 基线 Scarthgap 是否 (LF6.6.52)该软件包是否原生支持m1mx95系列(m1mx9596激光打标)? 如果不行,提供所需更改的指导将非常有帮助。 感谢您的解答和指导! Linux 疑似软件缺陷 Re: i.MX95 Reboot Loop After DDR Training Complete on Yocto Scarthgap B0 您好, 感谢您对恩智浦半导体产品的关注, 您需要升级电路板支持包。以适应新的硅版本,您至少应该考虑升级到 Linux 6.12.34,这是 B0 上 EVK 和 FRDM 板中 19x19 和 15x15 封装的第一个版本。当然,我的建议是升级到最新的电路板支持包。 此致 Re: i.MX95 Reboot Loop After DDR Training Complete on Yocto Scarthgap B0 您好JosephAtNXP , 感谢您提供的信息。经过对 flash.bin 及其元器件的一些研究,我们成功在 lec-imx95 B0 上启动了 scarthgap。 供参考 - 在构建 flash.bin 时,使用 wrynose 版本的 mx95b0-ahab-container.img 而不是 scarthgap 的,解决了该问题,并且可以在最新的 MIMX95 SoC 上启动。 谢谢
View full article
MIMXRT1180-EVKとMicron MT35Xにおけるflexspi_octal_polling_transferタイムアウト(7001)に関する問い合わせ こんにちは、NXPテクニカルサポートチームの皆さん、 私はflexspi_octal_polling_transfer例をMIMXRT1180-EVK(MCUXpresso SDK 2026.09.00)でテストしており、オンボードにはMicron MT35XU512A OSPIフラッシュが搭載されています。 サンプルを実行すると、flexspi_nor_get_vendor_id() が kStatus_FLEXSPI_SequenceExecutionTimeout (7001) で一貫して失敗します。 コードをレビューした結果: オンボードのMicron MT35Xは、デフォルトの1-1-1シングルSPI(SDR)モードで起動します。 この例では、LUTシーケンスインデックス3(NOR_CMD_LUT_SEQ_IDX_READID_OPI)を使用して即時読み取りIDを試みます。これは、 8-8-8 OPI DDR (16ダミーサイクルを備えた8PAD DDR)専用に構成されています。 このモードの不一致により、フラッシュはDQSを切り替えず、FLEXSPI_TransferBlocking()でタイムアウトが発生します。 さらに、8進モードに入るために必要なLUTコマンド(シーケンスインデックス2の1ビット書き込みイネーブルなど)は、現在customLUTOctalMode(hardware_init.c)に実装されていません。 以下の点についてアドバイスいただけますか: このEVK上でMicron MT35Xを1-1-1 SPIモードから8-8-8 OPI DDRモードに移行するための公式パッチまたはリファレンスコードはありますか? 既存のSDKの例で、Micron MT35Xの検証済みLUTシーケンスと初期化ルーチンが含まれているものはありますか? 再開まで今しばらくお待ちください。 Re: Inquiry regarding flexspi_octal_polling_transfer timeout (7001) on MIMXRT1180-EVK with Micron MT こんにちは、 @Bill_lee さん。 NXP MIMXRTシリーズにご関心をお寄せいただきありがとうございます! まず、ReadMeに記載されているハードウェアの改修が正しく実施されていることを確認してください。内蔵のオクタルフラッシュメモリは、デフォルトでオクタルモードに設定されているはずです。 よろしくお願いします、 ギャビン
View full article
RW612: FlexSPI port mixing (CACHE64 write buffer), PMU gates CM33 clock, PSRAM FSEL lost after reset We build a communication stick on the RW612 (u-blox IRIS-W10 module, CHIP_INFO 0x7002). Code runs XIP from an external 16 MB QSPI NOR on FlexSPI port A1, and a 2 MB QSPI PSRAM (APS1604M-3SQR, no DQS) sits on port B1 of the same controller. Firmware: MCUXpresso SDK 25.06.00 + FreeRTOS, and Zephyr 4.5.0-rc1. We see three issues and would like the root cause and the recommended settings. The full report with measurements, what we ruled out, register addresses and code excerpts is attached. 1) Data mixing between the FlexSPI ports with the CACHE64_CTRL0 write buffer enabled With the PSRAM accessed through the code-bus window and code running XIP from port A, a PSRAM access sometimes returns a word of flash and an instruction fetch sometimes returns a wrong word (BusFault/UsageFault in our heap code and in the ENET interrupt). A/B on images with identical code addresses: buffer on, 9 faults in about 115 min; buffer off, 0 faults in about 195 min (p about 1e-4). The SDK SystemInit() enables this buffer under XIP. - Is there an erratum or restriction for CACHE64_CTRL0 CCR.ENWRBUF with PSRAM on port B and XIP on port A? Is the SDK default safe? - Is the system-bus window (0x28000000/0x38000000 with CACHE64_CTRL1, as suggested in Zephyr GitHub issue 99943) mandatory for PSRAM next to XIP? Is the CTRL1 write buffer safe? Which AHB RX buffer / prefetch setup do you recommend (buffer 7)? - What is the mechanism of the mixing in both directions? 2) The PMU gates the CM33 clock (gate_cpu_clk), the core resumes only when a debugger attaches The board freezes with no reset and no fault record, with no WFI in the image (FreeRTOS); the moment a debugger connects (even a bare Cortex-M33 attach) it runs again. SysTick/ENET counters read before a halt and DWT_PCSR samples show the core not advancing. Only an armed WWDT0 on LPOSC with reset enabled has prevented it (0 failures in 70 min vs 6-7 per 20 min without). On Zephyr the same class shows as a core that stays in WFI with an enabled OS timer interrupt pending; an idle loop without WFI avoids it. - When does the PMU gate the CPU clock without WFI and with SCR = 0? Why does a debug connection release it, and why does an armed WWDT reset prevent it? What does SYSCTL2 SOURCE_CLK_GATE CPU_CLK_EN actually control? - What wake-up / PMU configuration does plain WFI need on RW612? Is a busy idle without WFI an acceptable long-term strategy? 3) MCI_IO_MUX FSEL bit 3 (QUAD_SPI_PSRAM, 0x40004020) clear after a deeper reset After a WWDT reset following a hang, the QUAD_SPI_PSRAM function select bit was clear, the PSRAM pads floated, and every read returned 0x1797523E until our code applied the pin group again. Zephyr does not apply this pin group itself. - Which reset types reset MCI_IO_MUX FSEL and the pad pulls? Does the ROM touch FSEL? Is Zephyr support for PSRAM next to XIP (pins, LUT separation, cache policy) planned? Open item: ENET receive errors on Zephyr (ENET_GetRxFrameSize status 4001, BABR / CRC errors) with KSZ8081 over RMII at 100 Mbit/s full duplex - is this a known issue? Our current workarounds (CTRL0 write buffer off with PSRAM, system-bus window, WWDT0 on LPOSC with reset, idle without WFI, re-applying the PSRAM pin group at every boot) are in the attached report. Thank you for any guidance. Product: WiFi RW6XX Re: RW612: FlexSPI port mixing (CACHE64 write buffer), PMU gates CM33 clock, PSRAM FSEL lost after r Dear @dimush , Based on our overall analysis, we should first resolve the data corruption/mixing issue between Flash and PSRAM. We need to ensure that the following configuration is correct: FlexSPI Port A -> QSPI NOR Flash -> code-bus/cache0 -> XIP FlexSPI Port B -> PSRAM -> system-bus/cache1 -> heap/data We also recommend: CACHE64_CTRL0.ENWRBUF = 0 CACHE64_CTRL1.ENWRBUF = 0        // During troubleshooting PSRAM prefetch = disabled            // During troubleshooting [Note] Flash and PSRAM should use their respective correct AHB mapping paths. The RW612 Flash cache and PSRAM cache are mapped to the code bus and system bus, respectively. Only after modifying the FlexSPI LUT, reconfiguring a port, switching memory aliases, or modifying memory through an IP command is it necessary to wait until FlexSPI is idle and clear the corresponding AHB RX/TX buffers and CPU cache. The cache should not be cleared before every normal PSRAM heap access. During troubleshooting, the PSRAM non-cacheable system-bus alias can also be used to further isolate the cache mechanism. Thanks, Best Regards, Weidong Re: RW612: FlexSPI port mixing (CACHE64 write buffer), PMU gates CM33 clock, PSRAM FSEL lost after r Thank you, Weidong. Our Zephyr build already uses this layout: XIP from port A through the code bus / CACHE64_CTRL0 (ENWRBUF = 0), PSRAM on port B through the system bus 0x38000000 / CACHE64_CTRL1, no cache maintenance in the normal heap path. Since we moved to it, we have not seen the data mixing of issue 1. We will now also run with CACHE64_CTRL1.ENWRBUF = 0 and PSRAM prefetch disabled, A/B against our current image, and report the result. The remaining problem is issue 2: about once per 18-20 board-hours the whole core stops. The SysTick-driven timer and the work queue stop together within about 1 s after the last watchdog feed, and only the WWDT0 reset recovers it. This happens with idle without WFI and with the system-bus PSRAM window already in place. Could you comment on when the PMU gates the CM33 clock without WFI, and on issue 3 (MCI_IO_MUX FSEL bit 3 cleared after a WWDT reset)? Re: RW612: FlexSPI port mixing (CACHE64 write buffer), PMU gates CM33 clock, PSRAM FSEL lost after r Dear @dimush , Thanks for your update. Regarding Issue 2, please use the following reference flow to verify your PM2 entry and wake-up configuration. After making any necessary adjustments, please check whether the issue can still be reproduced. First, establish a PM1 baseline: PMU remains in PM0 SCR.SLEEPDEEP = 0 Execute WFI In PM1, any enabled and valid interrupt source should wake the CM33. Before entering PM2, the wake-up source must be configured at all required levels: Enable and configure the peripheral timer or GPIO interrupt; Enable the corresponding NVIC interrupt; Enable the corresponding PM2 wake-up source in the PMU wake-up mask; Ensure that the clock required by the wake-up source remains active in PM2; Clear any stale peripheral interrupt status; Program the next valid timer match/compare event. A pending NVIC interrupt alone does not prove that the source is configured as a PM2 wake-up source. PM2 supports wake-up sources such as timers, GPIO, FlexSPI, USB, DMA, and Ethernet. The documented PM2 transition is: PM0 -> PM2:     Set PMU pwr_mode = 2'b01 Execute WFI In PM2, the CM33 clock is gated while the CPU state is retained. The AON domain and the selected PM2 wake-up source remain active. The following code is intended only to illustrate the sequence and is not meant to be copied directly: configure_wakeup_source(); enable_peripheral_interrupt(); enable_nvic_interrupt(); enable_pmu_pm2_wakeup_source(); clear_peripheral_interrupt_status(); program_next_timer_event(); /* Keep CPU_CLK_EN enabled before entering PM2 */ set_pmu_power_mode(PM2); __DSB(); __ISB(); __WFI(); __ISB(); For the production implementation, please use the power-management API provided by the corresponding MCUXpresso SDK version instead of directly programming the PMU registers. The SDK API names may vary between SDK versions. Please also verify that SYSCTL2.SOURCE_CLK_GATE.CPU_CLK_EN remains enabled before entering PM2. This bit should not be cleared to emulate PM2; CPU clock gating should be performed by the PMU power-mode transition. Please record the following values immediately before entering PM2: PMU pwr_mode SCB->SCR SYSCTL2.SOURCE_CLK_GATE CPU_CLK_EN PM2 wake-up mask NVIC enable/pending status Timer enable/status registers Finally, please test the FreeRTOS no-WFI configuration separately: No WFI SCR.SLEEPDEEP = 0 PMU pwr_mode remains PM0 CPU_CLK_EN = 1 If the CM33 still stops under these conditions, the behavior should not be considered a normal PM2 transition. It should then be investigated as an unexpected clock-gate operation or a possible RW612 PMU/clock-gating silicon issue. Regarding Issue 3, after a WWDT reset, the RW612 restarts through the Boot ROM boot flow: Boot ROM -> FlexSPI NOR/FCB -> Application Image If the application image contains the PSRAM pin-mux configuration code, that code should be executed again and take effect. Therefore, please verify that the application code includes the required PSRAM pin-mux configuration. Thanks, Best Regards, Weidong Re: RW612: FlexSPI port mixing (CACHE64 write buffer), PMU gates CM33 clock, PSRAM FSEL lost after r Thank you, Weidong. We ran the FreeRTOS no-WFI test you asked for on our fast reproducer board. Conditions, set explicitly after BoardInit and re-checked every second: no WFI anywhere in the image (verified by disassembly; tickless idle off), SCB->SCR = 0 (SLEEPDEEP = 0, SLEEPONEXIT = 0), PMU PWR_MODE = PM0 (PWR_MODE_STATUS = 0), SYSCTL2.SOURCE_CLK_GATE = 0x700100D2 (CPU_CLK_EN = 1), WWDT disabled. Note: ROM/bootloader left SOURCE_CLK_GATE = 0x300000C6, i.e. CPU_CLK_EN = 0, with the core running. Result: the CM33 stopped 3 times within about 7 minutes (first stop after about 6 minutes of uptime). SysTick and the OS timer gap check show that the core did not advance until our debugger attached: 12.4 s for the first stop, then whenever we attached. Each time the interrupted thread was the lwIP RX task, PC 0x20002344 (code in SRAM). Register snapshot 1 s before the stop: PWR_MODE 0, PWR_MODE_STATUS 0, WAKEUP_LEVEL 0x3, WAKEUP_MASK 0x20, WAKEUP_STATUS 0, PM2 masks 0x0/0x200/0x800000, SCR 0, ICSR 0x00400000, SOURCE_CLK_GATE 0x700100D2, NVIC ISER 0x00010400/0x00040000/0/0x00080000, ISPR3 0x120, SysTick CTRL 0x10007, CLKCTL0 PSCCTL0..2 0x02410E07/0x0E020001/0x8, CLKCTL1 PSCCTL0..2 0x08000D00/0x00010003/0x8000004D. After the attach DHCSR = 0x01100001 (running). By your criterion this is an unexpected clock-gate, not a PM2 transition. Two more observations: with WWDT0 armed on LPOSC the stop did not occur on FreeRTOS earlier (0 in 70 min). On Zephyr, a build whose idle loop reads the OS timer on every pass ran 91 board-hours without a stop (about 4 expected), and we are isolating that now. We can attach the full register dumps. What would you suggest as the next step, and is there a known erratum for this? Re: RW612: FlexSPI port mixing (CACHE64 write buffer), PMU gates CM33 clock, PSRAM FSEL lost after r Dear @dimush , Thanks for you update. Continuing the investigation at the lowest register and IP-command levels may lead us in the wrong direction. We should take a different approach: assume that the RW612 and the u-blox W10 module are functioning correctly, and restart the investigation from the SDK level. You mentioned that you are using a W10 module. I have previously debugged the u-blox W10 EVK. Please confirm whether your module uses the FM25Q128A QSPI NOR Flash. We can then verify: The FCB Flash timing configuration; The runtime LUT configuration. In addition, the PSRAM on the W10 is customer-added. Please provide its part number and specifications. We also need to verify its LUT configuration.   Thanks, Regards, weidong Re: RW612: FlexSPI port mixing (CACHE64 write buffer), PMU gates CM33 clock, PSRAM FSEL lost after r Thank you, Weidong. Here is the configuration; the full FCB, the runtime registers and the LUT words read back from a running board are in the attached RW612_FlexSPI_config_dongle_c0.txt. Flash: yes, it is the FM25Q128A - Fidelix, JEDEC ID F8 42 18, 16 MB, on port A1, XIP (our first report wrongly said "Fudan"). The FCB at 0x08000400 is the u-blox IRIS-W1 "Fidelex 8/16 MB" flash_config.c (FRDM-RW612 based): readSampleClkSrc 1 (DQS-pad loopback), CS hold/setup 3/3, sflashPadType 4, serialClkFreq 7 (133 MHz enum; FRDM-RW612 has 5 = 100 MHz), QE set via WRSR 01h with 0x0200, read sequence EBh 1-4-4 with mode byte 0x00 and 4 dummy cycles (LUT 0x0A1804EB 0x32041E00 0x00002604). The ROM cannot read this part's SFDP, so the full FCB is used. Runtime: the bootloader sets the FlexSPI root to 130 MHz; the Zephyr application keeps the controller setup under XIP, the runtime read LUT is identical to the FCB, and our PSRAM init sets the root divider to /3. With MCR0.SERCLKDIV = 1 the serial clock is about 43 MHz on both ports (measured: 43 MHz on the PSRAM SCLK). MCR0 0xFFFF1110, MCR2 0x200009F7, AHBCR 0x00200078, FLSHA1CR1 0x63. PSRAM: AP Memory APS1604M-3SQR, 16 Mbit, 2.7-3.6 V (3.3 V supply), QSPI SDR, no DQS pin (RDQS pulled down), 109 MHz max at 3.3 V, tCEM 8 us. Port B1: 2 MB, CS hold/setup 3/3, dataValidTime 1, write mask off. LUT read EBh 1-4-4 with 6 dummy cycles (0x0A1804EB 0x26043206), write 38h 1-4-4 (0x0A180438 0x00002200), reset 66h/99h. It is accessed only through the system bus at 0x39000000 with CACHE64_CTRL1; XIP uses the code bus with CACHE64_CTRL0.ENWRBUF = 0. Measured with a scope on the PSRAM in this configuration: SCK 43 MHz and CE# low pulses up to 19 us (APS1604M tCEM is 8 us). Port B sampling matches the FRDM-RW612 reference (DQS-pad loopback for both ports, RX_CLK_SRC_DIFF = 0). On the core stop: on Zephyr it also happened with your troubleshooting settings (CTRL1 write buffer off, prefetch off). Our two current builds - one with a trace hook and no idle hook, one whose idle loop reads the OS timer - ran about 50 board-hours without a stop (about 2 expected). Re: RW612: FlexSPI port mixing (CACHE64 write buffer), PMU gates CM33 clock, PSRAM FSEL lost after r Dear @dimush , Thanks for your update. The attachment contains the FCB configuration files, flash_config.c/.h, runtime LUT, and mflash_drv.c/.h. Please keep a backup of your original files before replacing them with the files I shared. One of my customers previously encountered a BLE FW related issue on a custom board, so I investigated and tuned the LUT for FM25Q128A. The attached files are from that verified configuration and may be useful for comparison. To narrow down the debugging scope, I suggest temporarily putting Zephyr aside and reproducing the issue using a FreeRTOS SDK example. I am concerned that upstream Zephyr may not fully support all RW612 features or configurations. In addition, could you let me know whether the three issues you mentioned can also be reproduced on the FRDM-RW612 board? Thanks, Best Regards, Weidong Re: RW612: FlexSPI port mixing (CACHE64 write buffer), PMU gates CM33 clock, PSRAM FSEL lost after r Thank you, Weidong, for the FM25Q128A files. We compared them and ran the tests you suggested, including on an FRDM-RW612. FCB/LUT comparison: your flash_config.c is identical to the FCB on our boards except deviceModeType (yours kDeviceConfigCmdType_QuadEnable, ours Generic); serialClkFreq 7, readSampleClkSrc 1, CS 3/3, QE via WRSR 01h 0x0200 and the EBh read sequence are the same. Your mflash_drv.c differs from the driver in our (frozen) FreeRTOS firmware in three places: EBh mode byte 0x00 (ours 0xF0), quad page program 33h 1-4-4 (ours 32h 1-1-4), and WRSR with 2 bytes (ours 4). Our product firmware is Zephyr, which uses its own NOR driver; only the FCB is shared. FRDM-RW612, SDK 25.06.00 lwip_ping FreeRTOS example, FRDM board files unchanged, Ethernet load from a PC (about 4000 ENET RX interrupts/s through lwip_rx: TCP ~8.7 Mbit/s, UDP, ping 1400 B): - Issue 2 (no WFI anywhere - checked in the disassembly, SCR = 0, PM0, CPU_CLK_EN = 1, WWDT off): 0 core stops in 111 minutes. On our board the same configuration stopped 3 times in about 7 minutes. - Issue 1 (PSRAM through the code-bus window, non-cacheable, CACHE64_CTRL0 write buffer on vs off): 0 mismatches in 36 minutes each (about 4e9 PSRAM words written in the write-buffer-on run). On our board: 9 faults in about 115 minutes with the buffer on. So neither issue reproduces on the FRDM-RW612 with the SDK example. The FRDM run has no mbedTLS/ELS/PKC, TRNG or HTTPS load, and other flash/PSRAM parts. Four things we had to change to get the SDK example running on the FRDM-RW612: 1. app.h uses MDIO address 2 for the KSZ8081; the PHY on this board answers at address 1 ("Cannot initialize PHY", then a hang). 2. The OS timer is not clocked by the example; the first OSTIMER read hangs the bus. 3. BOARD_InitPsRam() called from XIP hangs the core: FLEXSPI_SetFlashConfig() sets MCR0.MDIS while code runs from the same FlexSPI. We had to run it from SRAM with interrupts masked. 4. With the SDK FlexSPI setup (AHB alignment not set, 130 MHz root), 2 KB PSRAM read-backs went wrong exactly at 1 KB page boundaries (data from 1 KB lower), independent of the CTRL0 write buffer. AHBCR alignment 512 B plus clearing the AHB RX buffers after writes removed it. Our board, issue 1 / PSRAM integrity: with prefetch on and 256 B AHB RX buffers, CE# low on the APS1604M lasted up to 19 us at SCK 43 MHz (measured; tCEM is 8 us). We changed SCK to 65 MHz (root /2, SERCLKDIV /2), gave the system-bus master (master 1, the PSRAM window at 0x39000000) its own AHB RX buffer of 64 B without prefetch (XIP keeps buffer 6, 256 B with prefetch) and set CSINTERVAL 3 on port B: CE# low is now at most 1.4 us (measured). A board left at 43 MHz had TLS heap corruption in PSRAM after 76 hours (the third such event); the boards at 65 MHz have run about 80 board-hours without it so far. Our board, issue 2 on Zephyr: without changes the core stops about once per 22 board-hours. Two builds ran about 150 board-hours together without a stop (about 7 expected): one with Zephyr tracing hooks on every context switch and interrupt, and one whose idle loop only adds a read of the OS timer counter on every pass (no WFI in either). That points to the core clock being gated when the idle loop leaves the peripheral bus quiet, in PM0 without WFI. This completes our investigation for now: with SCK 65 MHz and the separate short PSRAM AHB buffer the PSRAM is clean, and the idle-loop timer read keeps the core running. Thank you very much for your support and for the verified FM25Q128A configuration.
View full article
frdm-mcxn947 baremetal ctimer0 configuration error resulting in debug failure Having gotten my hands on this board I decided to try to work through a small project from scratch using the manuals (and ultimately ai when I've become stuck, albeit with no luck in finding a solution as yet.)  So, the problem is this. I seem to be as far as I can tell, doing all the correct steps with the correct addresses and the correct field values to initialise and start ctimer0 as desired, but I'm crashing and getting errors when I attempt to run. I've made a number of changes and several of those changes resulted in the same outcome on different lines of the code but it's pretty much isolated to the configuration of ctimer0. I'm just not sure what I'm missing. I'm getting this error when it fails. 15: Target error from Register access 15: Target error from Register access Wire ACK Fault in DAP access Debugging context: pushInterrupt LinkServer Debug I'll attach both the stripped down version and the full version (with notes) of the code below.  Clock|Timers Development Board MCXN Re: frdm-mcxn947 baremetal ctimer0 configuration error resulting in debug failure Hello If you are developing from scratch specially the CTIMER functions this post will help you with the sequences to activate it Developing Code for MCXN Family from Scratch, and help you with Initialize the NVIC since I see that NVIC enable functions are commented in your code. Also, the SDK for the FRDM-MCXN947 have multiple examples for using the CTIMER, including the interrupt example that you can take as a base and modify. Available in Dashboard | MCUXpresso SDK Builder Best Regards Re: frdm-mcxn947 baremetal ctimer0 configuration error resulting in debug failure Apologies for the delay in my response I was a little ill. Thank you, I'm going to check it out again this weekend and hopefully I'll get it going. 
View full article
About i.MX RT1060 USB Serial Downloader Mode Hi, I would like to use USB Serial Downloader Mode on an i.MX RT1062-based board. Is the USB_OTG1_ID pin always required for USB Serial Downloader Mode operation? If it is required, should the pin be held at a high level? I would like to confirm this because the ID pin is not listed in Table 1, "Boot Pins," in the document "Implement Second Bootloader on i.MX RT10xx Series". Best regards, Tomokazu i.MXRT 106x Re: About i.MX RT1060 USB Serial Downloader Mode Hi Pablo, Thank you for your reply. Could you please explain how the internal pull-up resistor on the USB_OTG1_ID pin is configured? When the device enters Serial Downloader Mode, is the internal pull-up on USB_OTG1_ID automatically enabled, or does it need to be configured by the user? Best regards, Tomokazu Re: About i.MX RT1060 USB Serial Downloader Mode Hi @Tomokazu, For USB Serial Downloader Mode, USB_OTG1 must operate in device mode. The USB_OTG1_ID pin is used for OTG role detection, so it should be at a high level for device-mode operation. If the internal pull-up on USB_OTG1_ID is enabled, an external pull-up is not required. Otherwise, please add an external pull-up resistor. You may find the following community post useful, as it describes a case where an i.MX RT1060 device was unable to connect through Serial Downloader mode. Solved: Re: iMXRT: No Connection with Serial Downloader - NXP Community Best Regards, Pablo Re: About i.MX RT1060 USB Serial Downloader Mode Hi @Tomokazu, USB Serial Downloader mode runs before the application code is executed, so the application cannot configure the pins during this phase. You can refer to Figure 9-18 Serial Downloader Boot Flow in the i.MX RT1060 Processor Reference Manual for details on the boot sequence. I would recommend following the reference schematic, which uses an external pull-up resistor on the USB_OTG1_ID pin. Best Regards, Pablo Re: About i.MX RT1060 USB Serial Downloader Mode Hello, Thank you for your reply. I understand that the internal pull-up of the ID pin cannot be enabled during boot. We will therefore use an external pull-up resistor. Best regards,
View full article
frdm-mcxn947 ベアメタル ctimer0 設定エラーによりデバッグが失敗しました このボードを手に入れてから、マニュアルを使って(そして最終的にはAIも使って)小さなプロジェクトを一から始めてみることにしました。まだ解決策は見つかっていませんが。 So、問題はこうです。私の知る限り、正しいステップ、正しいアドレス、正しいフィールド値でctimer0を初期化・起動できるようにしているのですが、実行しようとするとクラッシュしエラーが出ます。いくつかの変更を加えましたが、そのうちのいくつかはコードの異なる行で同じ結果をもたらしました。しかし、問題はほぼctimer0の設定に限定されています。 何が足りないのか、よくわからないんです。失敗すると、このエラーが表示されます。 15: レジスタアクセスからのターゲットエラー 15: レジスタアクセスからのターゲットエラー DAPアクセスにおけるワイヤーACK故障 デバッグコンテキスト:pushInterrupt LinkServer Debug 以下に、簡略版と完全版(注釈付き)の両方のコードを添付します。 クロック|タイマー 開発ボード MCX N Re: frdm-mcxn947 baremetal ctimer0 configuration error resulting in debug failure Hello もしCTIMER関数を一から開発しているなら、この投稿は起動シーケンスの説明や MCXNファミリ向けのコード開発、NVICの初期化についても役立ちます。NVIC有効機能がコードにコメントされているのを見たので。 また、FRDM-MCXN947のSDKにはCTIMERの使用例が複数あり、割り込み例もベースとして取り入れて修正できます。ダッシュボードで利用可能 |MCUXpresso SDK Builder よろしくお願いいたします。 Re: frdm-mcxn947 baremetal ctimer0 configuration error resulting in debug failure 返信が遅れて申し訳ありません。少し体調を崩していました。ありがとうございます。今週末にもう一度確認してみます。うまくいけば動くようになると思います。
View full article
Inquiry regarding flexspi_octal_polling_transfer timeout (7001) on MIMXRT1180-EVK with Micron MT35X Hi, NXP Technical Support Team, I am testing the flexspi_octal_polling_transfer example on the MIMXRT1180-EVK (MCUXpresso SDK 2026.09.00), which features an onboard Micron MT35XU512A OSPI flash. When running the example, flexspi_nor_get_vendor_id() consistently fails with kStatus_FLEXSPI_SequenceExecutionTimeout (7001). Upon reviewing the code: The onboard Micron MT35X powers up in default 1-1-1 Single SPI (SDR) mode. The example attempts an immediate Read ID using LUT sequence index 3 (NOR_CMD_LUT_SEQ_IDX_READID_OPI), which is configured strictly for 8-8-8 OPI DDR (8PAD DDR with 16 dummy cycles). Because of this mode mismatch, the flash does not toggle DQS, triggering a timeout in FLEXSPI_TransferBlocking(). Furthermore, the LUT commands required for entering Octal mode (such as 1-bit Write Enable in sequence index 2) are currently unpopulated in customLUTOctalMode (hardware_init.c). Could you please advise on: Any official patch or reference code to transition the Micron MT35X from 1-1-1 SPI mode to 8-8-8 OPI DDR mode on this EVK? Which existing SDK example includes the validated LUT sequence and initialization routine for Micron MT35X? Thank you for your support. Re: Inquiry regarding flexspi_octal_polling_transfer timeout (7001) on MIMXRT1180-EVK with Micron MT Hi @Bill_lee , Thanks for your interest in NXP MIMXRT series! Please first verify that the hardware rework described in the ReadMe has been correctly implemented. The onboard Octal Flash should default to Octal Mode. Best regards, Gavin
View full article
FRDM-A-S32K344:使用板载 I2C 设备的 LPI2C 主示例项目 大家好, 我正在使用 FRDM-A-S32K344 (S32K344MINI-EVB) 板,具体操作如下: S32DS 3.5.8 RTD 4.0.0 (R21-11) 我已成功导入并版本了I2c_Ip_Example_S32K344_Q172项目,并查看了现有配置。 在查阅了电路板用户手册后,我注意到默认的 LPI2C 总线连接到几个板载 I²C 设备,包括FXLS8964 加速度计、 P3T1750 温度传感器。 我想评估LPI2C 在主模式下的性能,并与板载从设备之一(最好是 FXLS8964 或 P3T1750)进行通信。 请问您能否提供以下信息: LPI2C 主控模式的推荐配置。 是否有适用于 FRDM-A-S32K344 的示例项目? 使用 I2c_Ip 驱动程序从板载传感器读取数据的指南。 任何示例项目、应用笔记或参考实现都将不胜感激。 感谢您的支持。 此致, 维尔 Re: FRDM-A-S32K344: LPI2C Master Example Project Using Onboard I2C Devices 你好@ Veereshh 我建议安装 S32 DS V3.6.x 和 RTD 7.0.1。 如果您仍然希望使用 RTD 4.0.0,您可以参考 S32 DS V3.6.x 的示例项目,或者直接 请使用最新版本的RTD开发您的应用程序。 Re: FRDM-A-S32K344: LPI2C Master Example Project Using Onboard I2C Devices 嗨@Senlent , 谢谢你的解释。 由于我目前使用的是S32 DS v3.5 ,并且已经从 RTD 示例中导入了I2c_Ip_Example_S32K344_Q172项目(I2C 从模式运行正常),我正在考虑以下方法: 手动下载应用程序代码中心示例“使用 MCAL 驱动程序在 FRDM-A-S32K344 上使用 LPI2C 和 GPIO 进行运动和温度传感” 。 重复使用应用程序源文件(例如 accelerometer_sensor、motion_detector、temperature_sensor 文件和应用程序代码)。 将它们集成到我现有的 RTD 示例项目中,并根据需要调整配置。 对于 S32DS v3.5.8 来说,这听起来像是一个合理的方案吗? 或者,考虑到应用程序代码中心示例与我当前环境之间的 RTD 版本差异,您是否会推荐不同的迁移路径? 感谢您的指导。 此致, 维尔 Re: FRDM-A-S32K344: LPI2C Master Example Project Using Onboard I2C Devices 你好@ Veereshh 您使用的 S32 DS 版本太旧了;您应该安装最新版本,因为旧版本不包含“代码中心”选项。 Re: FRDM-A-S32K344: LPI2C Master Example Project Using Onboard I2C Devices 嗨@Senlent , 谢谢你的建议。 我查看了应用程序代码中心示例“使用 MCAL 驱动程序在 FRDM-A-S32K344 上使用 LPI2C 和 GPIO 进行运动和温度传感” ,并开始按照实现步骤进行操作。 但是,我注意到我的S32 Design Studio v3.5.8在打开工作区后,仪表板中没有显示“从应用程序代码中心导入项目”选项,而您分享的屏幕截图中却有该选项。 这会不会是因为我的S32DS版本比较旧? 如果是这样,在使用 S32DS v3.5.8 时,是否有其他方法可以导入或下载应用程序代码中心示例项目? 如果可以,请问如何在 S32DS v3.5.8 中手动导入项目? 感谢您的支持。 此致, 维尔 Re: FRDM-A-S32K344: LPI2C Master Example Project Using Onboard I2C Devices 你好@ Veereshh 您可以从“从应用程序代码中心导入项目”中找到很多示例。 但是需要注意的是,这些演示中使用的 RTD 版本是最新版本。
View full article
FRDM-A-S32K344: LPI2C Master Example Project Using Onboard I2C Devices Hello Community, I am working with the FRDM-A-S32K344 (S32K344MINI-EVB) board using: S32DS 3.5.8 RTD 4.0.0 (R21-11) I successfully imported and built the I2c_Ip_Example_S32K344_Q172 project and reviewed the existing configuration. After reviewing the board user manual, I noticed that the default LPI2C bus is connected to several onboard I²C devices, including the FXLS8964 accelerometer, P3T1750 temperature sensor. I would like to evaluate LPI2C in Master mode and communicate with one of the onboard slave devices (preferably the FXLS8964 or P3T1750). Could you please provide: Recommended configuration for LPI2C Master mode. Any available example project for FRDM-A-S32K344. Guidance on reading data from the onboard sensors using the I2c_Ip driver. Any example project, application note, or reference implementation would be greatly appreciated. Thank you for your support. Best Regards, Veer Re: FRDM-A-S32K344: LPI2C Master Example Project Using Onboard I2C Devices Hi@Veereshh I suggest installing S32 DS V3.6.x and RTD 7.0.1. If you still wish to use RTD 4.0.0, you can refer to the example projects for S32 DS V3.6.x or simply use the latest version of RTD to develop your application. Re: FRDM-A-S32K344: LPI2C Master Example Project Using Onboard I2C Devices Hi @Senlent , Thank you for the clarification. Since I am currently using S32 DS v3.5 and already have the I2c_Ip_Example_S32K344_Q172 project imported from the RTD examples (I2C Slave mode working successfully), I am considering the following approach: Download the Application Code Hub example "Motion and Temperature Sensing using LPI2C and GPIO on FRDM-A-S32K344 with MCAL Drivers" manually. Reuse the application source files (such as accelerometer_sensor, motion_detector, temperature_sensor files, and the application code). Integrate them into my existing RTD example project and adapt the configuration as required. Does this sound like a reasonable approach for S32DS v3.5.8? Or would you recommend a different migration path considering the RTD version differences between the Application Code Hub example and my current environment? Thank you for your guidance. Best Regards, Veer Re: FRDM-A-S32K344: LPI2C Master Example Project Using Onboard I2C Devices Hi@Veereshh The version of S32 DS you are using is too old; you should install the latest version, as older versions do not include the "Code Hub" option. Re: FRDM-A-S32K344: LPI2C Master Example Project Using Onboard I2C Devices Hi @Senlent , Thank you for your suggestion. I reviewed the Application Code Hub example "Motion and Temperature Sensing using LPI2C and GPIO on FRDM-A-S32K344 with MCAL Drivers" and started following the implementation steps. However, I noticed that my S32 Design Studio v3.5.8 does not show the "Import Project from Application Code Hub" option in the Dashboard after opening the workspace, while it is available in the screenshot you shared.  Could this be because my S32DS version is older? If so, is there an alternative way to import or download the Application Code Hub example projects when using S32DS v3.5.8? If yes, could you please provide the steps to import the project manually in S32DS v3.5.8? Thank you for your support. Best Regards, Veer Re: FRDM-A-S32K344: LPI2C Master Example Project Using Onboard I2C Devices Hi@Veereshh You can find a lot of demo from "Import Project from Application Code Hub" However, it should be noted that the RTD version used in these demos is the latest one.
View full article
FRDM-A-S32K344:オンボードI2Cデバイスを使用したLPI2Cマスターのサンプルプロジェクト コミュニティの皆様、こんにちは。 私はFRDM-A-S32K344(S32K344MINI-EVB)ボードを使用して作業しています。 S32DS 3.5.8 RTD 4.0.0 (R21-11) I2c_Ip_Example_S32K344_Q172プロジェクトのインポートとビルドに成功し、既存の設定を確認しました。 基板のユーザーマニュアルを確認したところ、デフォルトのLPI2Cバスは FXLS8964加速度センサや P3T1750温度センサを含む複数のオンボードI²Cデバイスに接続されていることに気が付きました。 LPI2Cをマスターモードで評価し、オンボードのスレーブデバイス(できればFXLS8964またはP3T1750)のいずれかと通信したいと考えています。 以下の情報を提供していただけますか: LPI2Cマスターモードの推奨構成。 FRDM-A-S32K344用の利用可能なサンプルプロジェクトはありますか? I2c_Ipドライバを使ってオンボードセンサからデータを読み取るためのガイダンス。 プロジェクトの例、アプリケーションノート、または参考実装があれば大変ありがたいです。 ご支援ありがとうございます。 よろしくお願いします、 ヴィール Re: FRDM-A-S32K344: LPI2C Master Example Project Using Onboard I2C Devices こんにちは、@ Veereshh S32 DS V3.6.xとRTD 7.0.1をインストールすることをお勧めします。 それでもRTD 4.0.0を使用したい場合は、S32 DS V3.6.xの例プロジェクトを参照するか、単に参照してください RTDの最新バージョンを使ってアプリケーションを開発しましょう。 Re: FRDM-A-S32K344: LPI2C Master Example Project Using Onboard I2C Devices こんにちは、 @Senlent さん。 ご説明いただきありがとうございます。 現在S32 DS v3.5を使用しており、RTDサンプルからI2c_Ip_Example_S32K344_Q172プロジェクトを既にインポート済み(I2Cスレーブモードは正常に動作)なので、以下の方法を検討しています。 Application Code Hubの例 「FRDM-A-S32K344 with MCALドライバを用いたLPI2CおよびGPIOを使った動作と温度センシング」 を手動でダウンロードしてください。 アプリケーションのソースファイル(accelerometer_sensor、motion_detector、temperature_sensorファイル、アプリケーションコードなど)を再利用します。 それらを既存のRTDサンプルプロジェクトに統合し、必要に応じて構成を調整してください。 これはS32DS v3.5.8にとって妥当なアプローチと言えるでしょうか? それとも、アプリケーション Code Hubの例と現在の環境のRTDバージョンの違いを考慮して、別の移行経路をおすすめしますか? ご指導ありがとうございました。 よろしくお願いします、 ヴィール Re: FRDM-A-S32K344: LPI2C Master Example Project Using Onboard I2C Devices こんにちは、@ Veereshh お使いのS32 DSのバージョンは古すぎます。最新バージョンをインストールしてください。古いバージョンには「コードハブ」オプションが含まれていません。 Re: FRDM-A-S32K344: LPI2C Master Example Project Using Onboard I2C Devices こんにちは、 @Senlent さん。 ご提案ありがとうございます。 Application Code Hub の例 「FRDM-A-S32K344 with MCALドライバを用いたLPI2CとGPIOを使ったモーションおよび温度センシング」 を確認し、実装ステップを踏み始めました。 しかし、私の S32 Design Studio v3.5.8 では、ワークスペースを開いたダッシュボードに 「Application Code Hubからプロジェクトをインポートする」 オプションが表示されず、あなたが共有したスクリーンショットでは表示されていることに気づきました。 これは私のS32DS版が古いからかもしれません。 もしそうなら、S32DS v3.5.8を使ってアプリケーションコードハブのサンプルプロジェクトをインポートまたはダウンロードする代替方法はありますか? もしそうなら、S32DS v3.5.8でプロジェクトを手動でインポートする手順を教えていただけますか? 再開まで今しばらくお待ちください。 よろしくお願いします、 ヴィール Re: FRDM-A-S32K344: LPI2C Master Example Project Using Onboard I2C Devices こんにちは、@ Veereshh 「Import Project from Application Code Hub」から多くのデモが見つかります。 ただし、これらのデモで使用されているRTDバージョンは最新版であることに留意すべきである。
View full article
[RTD600 IP] Pad keeping - Run vs Standby domain pins Pad Keeping As explained in the S32K3xx Low Power Management Application Note (AN), the S32K3 family is capable of retaining the output value of some selected pads when device is power-gated in Standby mode. All pins will retain their last set states in run mode during standby mode, and all pins will be placed to its default states after reset event by default. Which means that during the time between wakeup and Port reinitialization, the pins are uncontrollable and driven by default reset values. When pad keeping is enabled, HW ensures that the pin can retain its states from wakeup until the user unlocks it. The S32K3 family provides two pin groups: Run domain & Standby domain, however, the differences between them are not explicitly mentioned in the low power management application. Run domain pins are active only while the MCU is running, while Standby domain pins can also remain functional during Standby Referring to Chapter 41.12 Pad Keeping from S32K3XXRM (Rev. 12), all of the active pins in Standby are: Pin Function in Standby GPIO_4 CMP0_OUT GPIO_5 RESET_b GPIO_9 CMP2_OUT GPIO_11 CMP0_RRT GPIO_12 CLKOUT_STANDBY; CMP1_OUT GPIO_69 CMP2_RRT GPIO_110 CMP0_RRT GPIO_131 CMP0_OUT GPIO_138 CLKOUT_STANDBY GPIO_143 CMP1_RRT GPIO_158 CMP1_OUT GPIO_159 CMP1_RRT GPIO_174 CMP0_OUT GPIO_175 CMP0_RRT GPIO_196 CMP2_OUT GPIO_197 CMP2_RRT (As specified in the RM, see the IOMUX attached to it for details on different derivatives.) Configuration for Pad Keeping for both groups require the same global configuration, but standby domain pins require an additional step.  You could consider DCM.DCMRWF1[STANDBY_IO_CONFIG] field as a global enable for all pad keeping purposes during Standby mode. Additionally, for Standby domain pins, the corresponding MSCRn[PKE] field in SIUL2 must be set. Note: MSCRn[PKE] only needs to be set for Standby domain pins, and does not have effect on Run domain pins. Run domain pins Before entering standby: Configure SIUL2 output for desired pad (HIGH/LOW). Write 0 to DCM.DCMRWF1[STANDBY_IO_CONFIG] (enable global pad keeping). Complete Standby Entry Sequence described in RM. Standby domain pins Before entering standby: Configure SIUL2 output for desired pad (HIGH/LOW). Write 1 to SIUL2.MSCRn[PKE] (enable individual pad keeping). Write 0 to DCM.DCMRWF1[STANDBY_IO_CONFIG] (enable global pad keeping). Complete Standby Entry Sequence described in RM. For both Run and Standby domain pins After standby exit (wake-up event): Write 1 to DCM.DCMRWF1[STANDBY_IO_CONFIG] field on Standby mode exit to disable pad keeping. Note: After enabling Pad Keeping, user must write 1 to DCM.DCMRWF1[STANDBY_IO_CONFIG] to disable it before calling Port_Init() / Siul2_Port_Ip_Init(), otherwise pin initialization may fail. Example routine - Pad keeping  /* ------------------------------------------------------------------------- * Test HW : FRDM-A-S32K344 * MCU : S32K344_172HDQFP * IDE : S32DS 3.6.10 * RTD : S32K3_RTD_7_0_1_D2602_ASR_REL_4_9_REV_0000_20260206 * Debugger : P&E Micro * Target : Internal_FLASH * -------------------------------------------------------------------------*/ The attached example configures PTD13 (GPIO109) & PTD14 (GPIO110). PTD13 is a run domain pin, while PTD14 is a standby domain pin.  The macro PKE_CONFIG can be enabled to configure both SIUL2.MSCRn[PKE] & DCM.DCMRWF1[STANDBY_IO_CONFIG] directly through registers. Otherwise, configuration can be done through Siul2_Ip_Port and Power_Ip drivers: Enable SIUL2.MSCRn[PKE]: Enable DCM.DCMRWF1[STANDBY_IO_CONFIG]: After configuring Pad Keeping, the routine waits for USR_SW0 to be pressed, then sets both PTD13 & PTD14 HIGH and enters Standby. MCU can be waken up with USR_SW1. Green LED reflects MCU status (RUN = HIGH, STANDBY = LOW). Note: A small delay is added at to visualize time between standby exit (wake-up) and port initialization. Measurements Using the attached routine, the following measurements were done: 1. Pad Keeping enabled for both PTD13 & PTD14. 2. Pad Keeping enabled for PTD13 and disabled for PTD14. 3. Pad Keeping disabled for both PTD13 & PTD14.   This example is provided as is with no guarantees and no support.
View full article
S32k342: Bctudmabuffer がデータで更新されていません。 こんにちは、 ADC0に10チャネル対応にPIT、BCTU、DMA(Ch6)を設定しました。 レジスタ値LISTCHRとFIFO1DR、MSR(10進数)を確認しました MSR:32768、 TRGCFG[23] :268477184 MCR: 67305600 FIFO1DR: 781516942 LISTCHR[0] : 2162725 LISTCHR[1] : 65576 LISTCHR[2] : 6 LISTCHR[3] : 327687 LISTCHR[4] : 2147909636 FIFCR: 16777216 FIFOERR: 151060480 FIF0SR: 0 FIFOCNTR: 15 Autosar MCALのDMAチャプニング6を設定し、例コードを使った https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-PIT-BTCU-parallel-ADC-FIFO-DMA-DS3-... 質問は、bctudma バッファで DMA ウォーターマーク通知とデータを取得できないことです。 何が不足しているのか、ご教示ください。 ありがとう Re: S32k342: Bctudmabuffer is not updating with data. 私はAUTOSAR MCALを使っています。 転送設定も設定する必要がありますか? また、転送 API を呼び出す必要があります。Mcl_SetDmaChannelTransferList と Mcl_SetDmaCHannelCommand を MCL_DMA_CH_START_REQUEST とともに呼び出します。 Re: S32k342: Bctudmabuffer is not updating with data. 現在、私はパスを使用しており、これに関する共有設定を持っています。 PIT_CH0 → TRGMUX → BCTU_Trg23 → ADC0/Adc1 → DMA 私にさせてください。 最後に使う道を紹介します: PIT_CH0 - TRGMUX - BCTU_Trg23 ADC0(5チャネル) - FIFO1 - eDMA PIT_CH1 - TRGMUX - BCTU_Trg47 - ADC1(5チャネル) - FIFO2 - eDMA この設定についても教えてください。 Re: S32k342: Bctudmabuffer is not updating with data. 私はRTD 3.0.0を使用しています。 Re: S32k342: Bctudmabuffer is not updating with data. Bctu 設定: ADC: DMA: また、BCT、PIT、EDMAなどの周辺時計も対応可能ですDMAMUX_0 Re: S32k342: Bctudmabuffer is not updating with data. こんにちは、 詳細を教えていただきありがとうございます。 レジスタの値だけでは、何が不足しているかを判断するのは難しい。ADC変換がBCTU FIFOに達しているように見えるため、問題はBCTU→DMA要求パス、DMAチャネル構成、またはDMAMUXの設定に関連している可能性があります。 以下のいずれかを教えていただけますか: 問題を再現する簡略化されたテストプロジェクト、または S32構成ツールの設定画面のスクリーンショット: ADC BCTU DMA/eDMA DMAMUX PIT また、ご利用のRTDバージョンをお知らせください。 構成や簡略化されたプロジェクトを使えば、作業中の例と比較して、欠落や誤った設定をより効率的に特定できます。 BR、ペトル Re: S32k342: Bctudmabuffer is not updating with data. こんにちは、 転送設定やそれに対応するコードは必要ありません。転送設定はドライバで行います。 Rmコンポーネントを通してDMAMUXの設定と初期化も行いましたか?こんなものを用意しておくべきです… 希望するチャネルを選択しています。次に、コード内で Rm init を呼び出します。 #include "CDD_Rm.h" /* HLD RMドライバ経由でDMAMUXを初期化してください */ Rm_Init(&Rm_Config); BR、ペトル Re: S32k342: Bctudmabuffer is not updating with data. はい、やっています。 また、Rm_Initも実行しています。 Re: S32k342: Bctudmabuffer is not updating with data. 以前に共有したすべての設定です。 Adc: Adc 0 と 1 の両方で、呼び出し API Adc_EnableCtuControlMode を使用して制御モードを使用します。 Adc_CtuEnableHwTrigger も呼び出す必要がありますか?私はまだ呼び出していません。 Re: S32k342: Bctudmabuffer is not updating with data. こんにちは、 詳細を教えていただきありがとうございます。 これまでの情報からは根本原因を特定するのは難しいです。レジスタダンプだけでは、問題がBCTU、DMA、DMAMUX、またはソフトウェア構成にあるかどうかを特定するには不十分です。 確認すべき追加事項がいくつかあります。 DMA割り込みは有効になっており、正しく設定されていますか? ADC BCTUの制御モードとトリガーモードのどちらを使用していますか? DMAウォーターマーク通知は、BCTU制御モードを使用している場合にのみ利用可能ですのでご注意ください。トリガーモードを使用している場合、DMAウォーターマーク通知は表示されません。 問題を分析するために、以下の内容を教えていただけますか: 問題を再現する簡略化されたスタンドアロンプロジェクト、または 関連するS32設定ツールの設定(ADC、BCTU、DMA/DMAMUX、PIT)のスクリーンショットと関連コード一式を添付してください。 理想的には、完全に簡略化されたプロジェクトがあれば、構成を確認し、動作中の参照例と比較することがより効率的に行えるでしょう。 BR、ペトル Re: S32k342: Bctudmabuffer is not updating with data. こんにちは、 提供されたスクリーンショットからは、明らかな問題は見当たりません。 プロジェクトと使用したコードを共有していただいたので、意図したトリガーシナリオをテストするために、いくつか作成してみましょう。 BR、ペトル Re: S32k342: Bctudmabuffer is not updating with data. 設定を確認してください。 Re: S32k342: Bctudmabuffer is not updating with data. はい、お願いします。コードを共有するのは難しいので、s32k342 用のテストプロジェクトを作成してください。 ありがとうございます。 Re: S32k342: Bctudmabuffer is not updating with data. こんにちは、 最後に、ご指定の構成に合わせてADC HLDのデモを行いました。 トリガーパス: PIT0_CH0 -> TRGMUX -> BCTU Trigger 23 -> ADC0(5チャネル) -> BCTU FIFO1 -> eDMA(ch0) PIT1_CH1 -> TRGMUX -> BCTU Trigger 47 -> ADC1(5チャネル) -> BCTU FIFO2 -> eDMA(第16チャンネル) ここに掲載されています:https://community.nxp.com/t5/S32K-Knowledge-Base/Example-FRDM-A-S32K344-PIT-ADC-BTCU-ControlMode-FIFO-DMA-HLD/ta-p/2420432 お役に立てば幸いです。 BR、ペトル Re: S32k342: Bctudmabuffer is not updating with data. 感謝、 確認して、改めてご連絡いたします。 Re: S32k342: Bctudmabuffer is not updating with data. サンプルコードを確認しましたが、動作しません。 Re: S32k342: Bctudmabuffer is not updating with data. こんにちは、 データが更新されたのを確認しました BR、ペトル Re: S32k342: Bctudmabuffer is not updating with data. 返事いただけますか? Re: S32k342: Bctudmabuffer is not updating with data. こんにちは、 BCTUリストに記載されているチャネルはBCTU制御モードでのみ使用され、ADCユニットのグループで定義されたチャネルは通常または注入変換に使用されます。AdcHwUnitのグループとチャネルは、この例で使われていなくても単純に省略することはできません。 ポート内でADCチャネルを定義する必要はありません。ADCパスは常に有効なので、ポート設定は不要です。一般的に、ADCチャネルはポート設定を必要としません。 バッファのずれに関してですが、当初はラウターバッハでテストしたところ、バッファは予想通り正しく表示されました。 S32DS内部では、コードの実行が停止するとデータの順序が乱れる。デバッグモード中にPITが継続的に実行されるように設定されていたことが原因だと分かりました。デバッグ中にPITをフリーズできるように設定を変更してください。 バッファの定義も間違っていました。正しくはuint16_tとして宣言する必要がありました。 すると、S32DSでもバッファが正しく表示されるようになります。 BR、ペトル     Re: S32k342: Bctudmabuffer is not updating with data. あなたと同じチャネルを設定しましたが、BCTUDMAバッファが更新されているのが確認できます。 それでも、Adc0/1チャネルのアライメントはどうやってしたのか、なぜADC0のVREFL/HデータがADC1のVREFL/Hチャネルと一致しないのかは理解できません。P0も同じですか?また、ポートで設定する必要のない内部チャネルもありますが、P7やP0のように外部チャネルがあるのに、なぜポート内で設定されなかったのでしょうか?チャネル(10)を設定したいのですが、BCTUでどうやってアライメントすればいいですか?また、設定にはないp7とp0としてポート設定も必要ですか? なぜADC0/1の全チャネルをADC構成アレイに含めていないのですか?なぜADC0/1ごとにチャネルが1つだけなのですか?
View full article
機械図面の依頼:RK055HDMIPI4MA0ディスプレイ基板の外形、取り付け穴、FPCコネクタ 私はMIMXRT1170-EVKB Rev C3をリファレンス・デザインとして、カスタム i.MX RT1176ボードを設計しています。RK055HDMIPI4MA0 5.5インチMIPI DSIディスプレイキットを使用し、キットのPCBにある4つの取り付け穴を通して、私のボードに直接取り付けます。したがって、私の基板の外形と取り付け穴は、そのプリント基板と一致させる必要があります。 このPCBの機械図は見つかりませんでした。RK055HDMIPI4MA0製品ページ、MIMXRT1170-EVKBユーザーガイドとデザインファイル、そしてガラスモジュールのみを扱うRocktech RK055MHD091A0-CTGパネルデータシートを確認しました。 RK055HDMIPI4MA0 PCBの機械図面(DXFまたはPDF形式)、またはSTEPモデルを送っていただけますか?以下を示すものです。 1.プリント基板の外形寸法と厚さ。 2. 取り付け穴の位置がPCBのエッジに対してどのように位置するか、完成した穴の直径、穴がメッキされているか、推奨されるネジやスタンドオフ。 3. PCB背面のFPCコネクタ:部品番号、位置、ピン1の位置、接点側、ケーブル開口部の向き。 4. 付属FPCケーブル:部品番号、長さ、接点タイプ、同側または反対側。 5.プリント基板の裏面にある最も背の高い部品、およびその周辺の立ち入り禁止区域。 もし旧型のRK055HDMIPI4M基板が機械的に異なる構造になっているのであれば、その図面も提供していただけるとありがたいです。 参考までに、これまでに私がまとめた内容は以下の通りです: - MIMXRT1170-EVKBレイアウトでは、LCD取り付け穴SS1からSS4は147.253×72.905mmの3.53mmのメッキ穴パターンを形成し、長さ16.1mmのM3スタンドオフが装着されています。 - ディスプレイPCBのサイズを約155 x 83.5 mmで測定しました。 - EVKBでは、ディスプレイコネクターがJ48の片側に約8mmあり、オフセットに対応するためには50mmケーブルが最短です。基板上の2つのコネクタを一直線に並べたいです。 ご協力ありがとうございます。 ニック Re: Mechanical drawing request: RK055HDMIPI4MA0 display PCB outline, mounting holes and FPC connecto こんにちは、 @nicnewdigate さん、 NXP製品にご関心をお寄せいただき、ありがとうございます。残念ながら、 このPCBの機械図面は公開されていないため、共有できません。ご迷惑をおかけして申し訳ございませんが、ご理解いただけますようお願い申し上げます。
View full article
s32k312 自检 您好,NXP团队, 我正在使用 S32K312 SAR ADC,我想更详细地了解 ADC 自检功能,特别是算法 S、算法 C 和 RTD 自检 API。 我已经查阅了 S32K3 参考手册和相关文档,但我仍然想了解在这些自检算法执行期间,ADC 硬件内部实际发生了什么。 1. 算法 S – 供给自测 根据文档,我的理解是算法 S 包含三个步骤,并检查内部 ADC 相关电压,例如带隙/参考/电源电压。 请您更详细地解释一下算法 S 的每个步骤内部发生了什么? 例如: 在 S0、S1 和 S2 期间,SAR ADC 连接的是什么内部信号? 每个步骤中测量的是哪个供应量/参考量? ADC 执行这些测试时是否使用与正常 ADC 转换相同的 SAR 转换路径? 算法 S 过程中是否也用到了采样电容/CDAC? 具体来说,与自检模拟看门狗阈值进行比较的是什么? 预期值/阈值是否源自工厂校准信息? 我想了解完整的信号路径: 内部测试电压 → 采样网络 → SAR/CDAC → 比较器 → 转换结果 → 自检看门狗比较 2. 算法 C – 电容式自测试 我对理解算法 C 特别感兴趣。 文档中提到算法 C 包含多个步骤(C0–C11),并执行电容式自检。 请问您能否解释一下在这些步骤中,ADC硬件实际执行了哪些操作? 我目前的理解是,SAR ADC 包含一个电容式 DAC/CDAC,算法 C 在内部使用不同的电容组合来检测采样/转换电容网络中的错误。 这种理解是否正确? 更具体地说: C0、C1、C2……C11 之间发生了哪些变化? 是单个电容还是二进制加权电容组进行切换/测试? 算法 C 中是否使用了外部模拟输入,还是测试完全在内部进行? 电容器组上施加的电压/电荷是多少? 算法 C 的每个步骤返回的 ADC 结果在物理上代表什么? 文档中提到与先前校准值相比存在“偏移/误差”。这个校准后的参考值存储在哪里? 如何确定预期结果? 为什么理想的算法 C 的结果预期接近于零? 算法 C 可以检测哪些类型的硬件故障?例如: 电容不匹配, 电容开路/短路 交换机故障 泄漏, 比较器误差 电荷重新分配错误。 如果可以,能否提供一个简化的内部模块级解释,说明采样电容/CDAC、比较器和SAR逻辑如何参与算法C? 3. 普通转换与算法C的区别 对于正常的ADC转换,我大致理解其工作原理如下: 输入采样 → 采样/CDAC 网络中存储的电荷 → SAR 逐次逼近 → 转换结果 在算法 C 中,正常的外部输入采样阶段是否被内部生成的电容测试条件所取代? 换句话说,算法 C 主要测试模拟 SAR 转换路径本身,而不是测量外部 ADC 通道吗? 4. RTD 自检 API 我正在使用 S32K3 RTD ADC 驱动程序,并且想了解调用 RTD 自检 API 时究竟发生了什么,例如: Adc_Sar_Ip_SelfTest() 请问您能否解释一下该函数执行的内部软件序列? 请问这些操作中哪些是由 RTD API 实际执行的,哪些需要由应用程序配置? 我特别想知道: API 启动自检后,算法 S 和算法 C 是否作为硬件序列自动运行。 究竟是 RTD API 本身评估结果,还是 ADC 硬件模拟看门狗执行实际的 PASS/FAIL 比较。 RTD 函数返回的什么值/状态表明自检失败? 5. 自检模拟看门狗阈值 您能否也解释一下自检模拟看门狗阈值是如何确定的? 上限/下限阈值是: NXP推荐的固定值 设备特定的出厂校准值, 由 Tresos/RTD 配置生成, 或者这些值需要应用程序开发人员手动配置? 具体来说,对于算法 C,如何确定每个 C0–C11 步骤的允许正/负误差限值? 6. 自检计时 最后,我想了解一下完整自测的时间安排。 如果算法 S 包含 3 个步骤,算法 C 包含 12 个步骤: S0 → S1 → S2 → C0 → C1 → ... → C11 每个步骤内部是否都执行完整的ADC操作,类似于: 预采样+采样+SAR转换+评估/监督比较? 如果是这样,是否有任何文档或公式可以用来计算以下程序的预期执行时间: 算法 S, 算法C, 完整的S+C自测题是什么? 我的主要目标是了解 S32K312 SAR ADC 自检的硬件操作,而不仅仅是如何调用 RTD 函数。 如果可以,请提供任何针对 S32K3 的应用笔记、详细的 ADC 自检文档或 RTD 源文件/文档,以解释这些序列。 谢谢! Re: Selftest in s32k312 你好, 我已经查阅了 S32K3 参考手册和相关文档,但我仍然想了解在这些自检算法执行期间,ADC 硬件内部实际发生了什么。 为此,我编写了一篇ST应用笔记,其中对此进行了详细解释。测试与 S32K 相同,继承了 MPC56xx 设备的模块。 您的大部分问题都可以在书中找到答案,但是这本书没有公开版本。如果您在NXP.com上提交工单,我可以通过工单分享给您。 我不会在公共社区详细解释自测的工作原理。 基本答案如下: 在 S0、S1 和 S2 期间,SAR ADC 连接的是什么内部信号? ADC内部带隙电压(S0 - step0)–(Vbandgap / Vref) ADC供电电压(S1 - step1)–(VDDA / Vbandgap) ADC参考电压(S2 - step2)–(Vref' / Vref) C0、C1、C2……C11 之间发生了哪些变化? 电容式自检算法 C 包括一系列 11 次(或若干次)测试转换(步骤),通过设置 构成采样电容器/电容式数模转换器的电容元件。该算法是 旨在突出显示采样电容矩阵中的故障。每一步都考虑两个要素 采样电容矩阵。每个步骤都包括一系列预采样、采样和 评估阶段已执行。 顺祝商祺! Peter
View full article
如何访问和测试 S32E288 上的 32 MB 嵌入式 NVM 您好,NXP团队, 我正在使用 S32E288 设备,该设备运行在 S32E288-975EVB 上。 在RTU0 Cortex-R52上应用。 S32E2产品简介如下: - 0/16/32/64 MB 嵌入式非易失性存储器 - 512 KB 数据闪存,带 ECC 纠错功能 - QuadSPI NOR 闪存接口 我们的团队想用棋盘格图案测试NVM区域,但找不到关于s32e27RM的任何信息,请问在哪里可以找到这些信息?我们使用的是s32E288板,如何访问嵌入式NVM? 我需要的是针对32MB嵌入式NVM的具体说明,而不是…… 512 KB C55 数据闪存,而不是 EVB 上安装的外部 或非 闪存。 请问您能否澄清以下问题? 1. 32MB嵌入式NVM是集成在内部的串行闪存芯片吗? S32E288 封装/SiP? 2. 哪个控制器和控制器实例提供软件访问 到这个嵌入式非易失性存储器? 它是通过 QuadSPI0、QuadSPI1、HSE 固件还是其他方式访问的 专用的接口? 3. 32 MB 嵌入式 NVM 的 RTU0 CPU 可见地址范围是什么? 是否存在内存映射读取孔径,还是必须执行所有读取操作? 使用 QuadSPI IP 命令吗? 4. 0x00000000 到 0x01FFFFFF 仅仅是闪存设备偏移量吗?还是它们 嵌入式非易失性存储器(NVM)的有效Cortex-R52系统地址是什么? 5. 哪个 QuadSPI 片选或闪存地址分配条目对应 到嵌入式非易失性存储器?它如何与外部NOR区分开来 S32E288-975EVB 的闪光灯功能是什么? 6. 应该使用哪个RTD驱动程序和示例来读取、擦除、编程? 并验证RTU0中的嵌入式NVM? 请提供确切的驱动程序/元器件名称以及合适的示例。 7. RTU0 是否有权限直接擦除/编程嵌入式 NVM? 或者这些操作必须通过 HSE/系统管理器固件来请求? 8. 功能安全手册指出 SiP 串行闪存不支持 XIP。 这是否意味着内存映射读取也无法使用,还是仅此而已 不支持指令执行? 9. 对于非破坏性读写测试,推荐的方法是什么? 这个嵌入式非易失性存储器(NVM)有一个未使用的扇区? 是否存在用于启动映像、IVT、HSE 或 OTA 的受保护/保留区域 哪些元数据不能删除? 我的目标是做到: 读取、写入和验证 NVM 区域 请分享S32E2参考手册的相关章节,即地址映射部分。 RTD 示例及所需的访问/保护配置。 设备:S32E288 板:S32E288-975EVB 核心:RTU0 Cortex-R52 / RTU1 参考手册:S32E2 RM Rev. 5 RTD:S32ZE AUTOSAR R21-11 RTD Re: How to access and test the 32 MB embedded NVM on S32E288 你好, @NeelimaRagipindi 感谢您的帖子。 我刚刚注意到您通过我们的支持门户网站提出了类似的问题,我将在那里一并回复您。 BR 陈银
View full article
FRDM-MCXW72: AN14889 感度試験 こんにちは、 AN14889の手順に従って感度テストを実行しています FRDM-MCXW72だが成功しなかった 以下のシーケンスを使ってチャネル0(2402 MHz)でテストを実行します。 確認してもらえますか? コネクティビティテストインターフェースショートカット ------------------------------------------ -Tx手術は[t]を押してください -処方操作は[r]を押してください -[z]を押してモード(GENFSK、BLE)とレートを上げる -[x]を押してモード(GENFSK、BLE)とレートを下げる - [c] キーを押すと、固定ホワイトニングとチャネルごとのホワイトニング(BLEのみ)を切り替えます -[q]を押してチャネルアップ -[w]を押してチャネルダウン -パワーアップは[a]を押してください -パワーダウンは[s]を押してください -[n]を押してペイロードを増やしてください -[m]を押してペイロードを減らしてください -[d]を押してXTALトリム値を上げます -[f]を押してXTALトリム値を下げてください これらのキーはアプリケーション全体で変更に使えます 試験パラメータ ________________________________ | | | Select the Test to perform | |________________________________| -[1] 連続テスト -[2] パケットエラー率テスト -[3] 射程テストを押して -[4] RTC XTALを調整 -[5] PLL分子のオフセットを調整 -[!]MCUをリセット モードRX、レートBLE 1Mbps、Whiten Chan、チャネル42、Power 8、ペイロード6、XtalTrim 10> -------------------------------------------------------------- [t] Tx [z] モード/レート+ [c] 固定/Ch whit。[q] Ch+ [a] Pw+ [r] Rx [x] モード/レート- [w] Ch- [s] Pw- [n] Pyld+ [d] XtalTrim+ [m] Pyld- [f] XtalTrim- -------------------------------------------------------------- ____________________ __ | | | PER Rx Test Menu | |__ ____________________| -スペースキーを押してパケットの受信を開始/停止します パケットの受信を停止するには、いずれかのボタンを押してください。 -[p]を押して前のメニューへ モードRX、レートBLE 1Mbps、Whiten Chan、チャネル42、Power 8、ペイロード6、XtalTrim 10> PERテストRx実行中 PERテスト処方中止 PER中の平均Rssi: 0 dBm 送信されたパケットのうち、0個を受信しました。 Per Rxテストメニューに戻るには[ENTER]を押してください BLEテスターを使用して標準のBLEテストパケットを送信しましたが、ボードはパケットを受信しません。 アプリケーションノートには感度テストの設定は明記されていません。 一方で、hci_bbアプリケーションと標準的なHCIコマンドを使うと、テスターがHCI_LE_RECEIVER_TESTを送信したり、テストを実行しHCI_LE_ENHANCED_RECEIVER_TESTなくしたときだけ、基板がPHYでランダムに止まってしまいます。 トランスミッタのテストコマンドは完璧に動作します。 何かアドバイスをいただけますか? 私はSDK_26_06_00_FRDM-MCXW72を使用しています。 ありがとう、 マルコ 開発ボード Re: FRDM-MCXW72: AN14889 Sensitivity test こんにちは、お元気でお過ごしでしょうか。 接続テストアプリケーションの一部の機能、例えばパケットエラー率やレンジテストは2台のデバイス使用を必要とします。プラットフォームのうち1つはRXモードに設定されなければなりません(以下の通りです) TXでは「r」を押して、TXでは「t」を押してもう一方のキーを押します。 板から板までの状況でPERテストを試してみていただけますか?一方の基板を送信機として、もう一方の基板を受信機として使用します。これはまず、制御された環境下での接続テストの適用を検証し、処方の設定が正しいかどうかを特定するためです。 PERテストを実行するためのステップやパケット設定についてはこちらで詳しくご覧いただけます:PERテストを実行する手順 |接続テストCLI — MCUXpresso SDKドキュメント AN14889で説明するRFテストフローは、感度テストのカスタムパケットやフレームフォーマットを指定しておらず、代わりに標準Bluetooth Low Energy仕様に依存しています。 感度やPER測定を含むBLE RF PHYテストは、 Bluetooth Core Specification Vol. 6 Part F で定義されているDirect Test Mode(DTM)を用いて実施することも可能です。この節では、LEテストパケットおよびRF検証に使用される標準化テスト手順を定義します。 基盤となるパケット構造(前文、アクセスアドレス、PDU、CRC)は Bluetoothコア仕様書第6巻パートBで定義されています。DTMで使用されるLEテストパケットも同じ構造に従い、テスト用のペイロードパターンとパラメータが制御されています。 感度やPERなどの測定の具体的なテスト条件や限界も Bluetooth RF-PHYテストスイートで定義されています。 よろしくお願いします、 ソフィア。
View full article
Build errors, Missing .axf file, and RedlinkServerException during debug launch Hello NXP Support Team, I am encountering multiple issues while trying to build and debug my project in MCUXpresso IDE. Environment Details: MCUXpresso IDE Version:  v11.8.0 Host OS: Windows Target Board / MCU: MKM34z256vll7 Debug Probe:CMSIS-DAP  Symptoms Observed: Build Errors / Missing .axf/.elf File: When attempting to build the Release configuration, build errors occur. Because of these errors, the .axf/.elf output file is not generated, resulting in the "Program file does not exist" debug launch error. RedlinkServerException: When attempting to debug or connect, I receive a RedlinkServerException: Cannot write to server not open, indicating a communication failure with LinkServer. Probe Discovery Issue: The IDE occasionally fails to properly discover or communicate with the debug probe. Troubleshooting Steps Already Tried: Verified that build errors must be resolved, but need guidance on resolving the specific compilation/linker errors preventing the .axf file generation. Restarted MCUXpresso IDE and power-cycled the debug probe / development board. Re: Build errors, Missing .axf file, and RedlinkServerException during debug launch Hello @Maheswari123 , Thanks for your post.  1. Release build failure / missing .axf or .elf file The .axf/.elf executable can only be generated after the project has been compiled and linked successfully. Therefore, please first identify the actual compiler/linker error that is preventing the Release build from completing. Please Clean the project and rebuild the Release configuration, then provide the complete build output from the Console, especially the first error together with the messages around it. With the actual compiler/linker error, we can determine whether the issue is related to source/include paths, linker configuration, undefined references, or something else. You can also try opening an SDK demo to see if you can successfully build it. This can help determine whether the issue lies with the tool or with your custom code. 2. CMSIS-DAP / LinkServer communication issue For RedlinkServerException and intermittent probe discovery, please check whether Windows recognizes the CMSIS-DAP probe and whether firewall or security software is blocking communication with Redlink Server. After ending any debug sessions, you can try Clean Up Debug and then search for the probe again. In addition, please let us know the exact CMSIS-DAP probe being used (for example, MCU-Link, OpenSDA CMSIS-DAP, or another probe). If the issue persists, please also provide the complete LinkServer console/log output related to the error. Looking forward to your reply. BR Celeste
View full article
版本错误,缺少 .axf 文件文件,以及调试启动期间的 RedlinkServerException 您好,NXP支持团队, 我在 MCUXpresso IDE 中构建和调试项目时遇到了多个问题。 环境详情: MCUXpresso IDE 版本:v11.8.0 主机操作系统:Windows 目标板/MCU:MKM34z256vll7 调试探针:CMSIS-DAP 观察到的症状: 构建错误/缺少 .axf/.elf 文件:尝试构建 版本 配置时,出现构建错误。由于这些错误,无法生成 .axf/.elf 输出文件,导致出现“程序文件不存在”调试用上市,不用发布错误。 RedlinkServerException:尝试调试或连接时,我收到 RedlinkServerException:无法写入未打开的服务器,表明与 LinkServer 的通信失败。 探针发现问题: IDE 有时无法正确发现调试探针或与其通信。 已尝试过的故障排除步骤: 已确认构建错误必须解决,但需要指导以解决阻止生成 .axf 文件的具体编译/链接器错误。文件生成。 重启了 MCUXpresso IDE 并对调试探针/开发板进行了断电重启。 Re: Build errors, Missing .axf file, and RedlinkServerException during debug launch 你好@Maheswari123 , 感谢你的帖子。 1. 版本版本失败/缺少 .axf 文件或 .elf文件 只有在项目编译和链接成功之后,才能生成 .axf/.elf 可执行文件。 因此,请首先确定导致发布版本构建无法完成的实际编译器/链接器错误。请清理项目并重新构建版本配置,然后提供控制台的完整构建输出,特别是第一个错误及其周围的消息。通过实际的编译器/链接器错误,我们可以确定问题是与源/包含路径、链接器配置、未定义的引用还是其他原因有关。 您也可以尝试打开一个 SDK 演示程序,看看是否可以成功构建。这有助于确定问题是出在工具本身还是出在您自己的自定义代码上。 2. CMSIS-DAP/LinkServer 通信问题 对于 RedlinkServerException 和间歇性探测发现,请检查 Windows 是否识别 CMSIS-DAP 探测,以及防火墙或网络安全软件是否阻止了与 Redlink 服务器的通信。结束所有调试会话后,您可以尝试清理调试,然后再次搜索探针。 此外,请与我们联系所使用的确切 CMSIS-DAP 探针(例如,MCU-Link、OpenSDA CMSIS-DAP 或其他探针)。如果问题仍然存在,请同时提供与该错误相关的完整 LinkServer 控制台/日志输出。 期待你的答复。 BR 塞莱斯特
View full article
S32E288で32MB組み込みNVMにアクセスしてテストする方法 NXPチームの皆様、こんにちは。 私はS32E288-975EVBでS32E288デバイスを使い、 RTU0 Cortex-R52でのアプリケーション。 S32E2の製品概要は以下の通りです: - 0/16/32/64 MB 組み込みNVM - ECC対応512KBデータフラッシュ - QuadSPI NORフラッシュインターフェース 私たちのチームはチェッカーボードパターンでNVM領域をテストしたいと考えましたが、s32e27RMのRMに関する情報はどこで入手できるのか、組み込みNVMにはどうやってアクセスすればよいのか、私たちはs32E288ボードを使っています... 32 MB 組み込み NVM について具体的に説明が必要です。 512KBのC55データフラッシュであり、EVBに搭載されている外部NORフラッシュではありません。 以下の点を明確にしていただけますか? 1. 32MBの組み込みNVMは、 S32E288パッケージ/SiP? 2. どのコントローラとコントローラインスタンスがソフトウェアアクセスを提供するか この埋め込みNVMに? QuadSPI0、QuadSPI1、HSEファームウェア、または他の方法でアクセスしますか? 専用インターフェース? 3. 32MBの組み込みNVMのRTU0のCPUから見えるアドレス範囲は何ですか? メモリマップド読み取りアパーチャはありますか、それともすべての読み取りは実行する必要がありますか QuadSPI IPコマンドを使用していますか? 4. フラッシュデバイスのオフセットのみを0x01FFFFFF 0x00000000のか、それとも 組み込みNVM用の有効なCortex-R52システムアドレスはありますか? 5. どの QuadSPI チップセレクトまたはフラッシュアドレス割り当てエントリが対応しますか 組み込みNVMへ?外部のNORとどう区別できるのか S32E288-975EVBのフラッシュ? 6. どのRTDドライバと例を読み込み、消去し、プログラムすべきか、 そしてRTU0から埋め込みNVMを検証するのも良いでしょう? 正確なドライバ名やコンポーネント名と適切な例を教えてください。 7. RTU0は埋め込みNVMを直接消去・プログラムする権限を持っているか? それともこれらの操作はHSE/System マネージャのファームウェアを通じてリクエストする必要がありますか? 8. セーフティマニュアルには、SiPシリアルフラッシュはXIPをサポートしていないと記載されています。 これはメモリマップされた読み込みも利用できない、それとも利用可能なものだけを意味するのでしょうか 命令実行がサポートされていないのですか? 9. 非破壊的な読み書きテストの推奨方法とは何か この埋め込みNVMの未使用セクターの一つ? ブートイメージ、IVT、HSE、OTA用の保護・予約エリアはありますか? 消してはいけないメタデータ? 私の目標は、以下のことを実行することです。 NVM領域の読み取り、書き込み、検証 関連するS32E2リファレンスマニュアルのセクション、住所マッピングを共有してください。 RTDの例と、必要なアクセス/保護設定。 装置:S32E288 ボード:S32E288-975EVB コア:RTU0 Cortex-R52 / RTU1 参考マニュアル:S32E2 RM Rev. 5 RTD:S32ZE AUTOSAR R21-11 RTD Re: How to access and test the 32 MB embedded NVM on S32E288 こんにちは、 @NeelimaRagipindi 投稿ありがとうございます。 先ほど、お客様が弊社のサポートポータルを通じて同様の問題を報告されていることに気づきましたので、そちらからもまとめてご回答させていただきます。 BR チェイン
View full article