Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
RW612 FlexSPI PORTB1 アクセス RW612 チップセットを外部 XIP モードで使用しています。コードは FlexSPI PortA1 から実行され、PSRAM (APS6404L) を FlexSPI PortB1 に接続しています。SDKs (25.06 バージョン) が提供する構成を使用してポート B1 にアクセスしています。 PSRAM ID を読み取ろうとすると、PortB1 (CLCK/CS) で信号アクティビティが表示されません。 これらの信号が欠陥のある部品によって保持されていないことを確認するために、SPARM を取り外しました。 これは、APS6404 が DQS 信号を使用しないという事実に関係していますか? DQS を使用しないように PortB1 を構成するにはどうすればよいでしょうか? FlexSPI が PortA1 アクセス用に初期化された後は、FLEXSPI_Init 関数を呼び出すことができないことがわかっています。 ご協力とお時間をありがとうございました。 Re: RW612 FlexSPI PORTB1 access こんにちは、ローマン。 ご協力ありがとうございます。この問題は、バスの実行中に FlexSPI クロックを設定しようとしたことに関連していました。次の行をコメント アウトしました。 CLOCK_EnableClock( kCLOCK_Flexspi ); BOARD_SetFlexspiClock(FLEXSPI、5U、3U); FlexSPI ポート B1 は現在実行されており、AHB キャッシュを使用して PSRAM への書き込み/読み取りをCAN。 助けてくれてありがとう、本当に感謝してるよ。 Re: RW612 FlexSPI PORTB1 access こんにちは@khalidL 。 下の画像のように、MCU 設定で PSRAM メモリ セクションを定義しましたか? プロジェクトのアプリケーション コード ハブ投稿に記載されている手順を必ず実行し、問題が解決しない場合はお知らせください。 Re: RW612 FlexSPI PORTB1 access こんにちは、ローマン。 ご協力とご協力に感謝いたします。上記の例をプロジェクトに統合する過程で、次の問題が発生しました。メインから関数「 __RAMFUNC(SRAM) status_t BOARD_InitPsRam(void) 」を呼び出すと、コードがサイレントにクラッシュします。 リンカーファイル(main_data.ldt、main_txt.ldt および noinit_noload_section.ldt)board.cをコピーするファイル?BOARD_InitPsRam が RAM に正しくコピーされなかったためにコードがクラッシュしたのではないかと思います。 お時間を割いてご協力いただき、改めて感謝申し上げます。 Re: RW612 FlexSPI PORTB1 access この例は私のボードでは動作します。ご協力ありがとうございます。 Re: RW612 FlexSPI PORTB1 access こんにちは@khalidL 、お元気ですか。 アプリケーション コード ハブには、外部 NOR フラッシュからの XIPに関する例があります。共有されたリンクからサンプルをテストして、プロジェクト要件に適合するかどうかをお知らせください。 プロジェクトを MCUXpresso IDE にインポートするには、「アプリケーション コード ハブからインポート」オプションをクリックします。(このサンプルには SDK バージョン 2.16.00 が必要です) アプリケーション コード ハブ ウィンドウに入ったら、サンプルの名前 (外部 NOR フラッシュからの XIP およびマルチポート FlexSPI モジュールを使用した外部 pSRAM の構成) を検索し、それを選択して「Github リンク」をクリックし、「次へ >」ボタンが使用できるようになるまで待ちます。 「次へ > 」ボタンをクリックしたら、手順に従って Git リポジトリからプロジェクトをインポートします。最後に、プロジェクトがワークスペースで使用できるようになると、セットアップでフラッシュしてテストできるようになります。 これが役に立つかどうか教えてください。
View full article
S32G399 PCIe 无法发送 TLP 数据包 如图所示,请帮帮我。目前,我正在使用 S32G399A 芯片,并通过 PCIe 接口将其连接到 FPGA。在这种配置中,S32G399A 行动 RC,FPGA 行动 EP。我现在遇到的问题是可以访问FPGA的配置空间,但是bar0的内存空间无法触发信号TLP。 下图显示了"dmesg" 在操作系统中打印的信息。在"出境" 部分,显示的是 6OB 和 4IB。应如何配置出站和入站,以及应在何处配置? 另外,原地址 基地址 目标地址分别代表什么? Re: S32G399 PCIe cannot send TLP packets 你好,@龙岗素 是的,根据测试,在当前的电路板支持包驱动程序下,RC 会根据 EP 的 BAR 设置自动将该区域映射到 32 位/64 位地址空间。 BR 切宁 Re: S32G399 PCIe cannot send TLP packets 您是说 PCIe 位宽与 EP 有关吗?如果 EP 端是 64 位,那么是否无需对 RC 端进行任何修改? Re: S32G399 PCIe cannot send TLP packets 你好,@龙岗素 感谢您的回复。 S32G PCIe RC 支持 64 位地址访问 例如,我使用另一个 S32G 板作为 EP,修改了 EP 端的 BAR 的相应位,然后从 RC 端的输出启动 RC 后,映射的一个区域是 " 区域 0:4900000000(64 位,可预取)[size=1M] " 的内存,可以通过 64 位地址访问。 详细修改方法可查看自己的 PCIe EP 驱动程序/RM。 BR 切宁 Re: S32G399 PCIe cannot send TLP packets 请问,如何将 PCIe RC 模式配置为 64 位宽? 目前,我使用 32 位宽度与 FPGA 通信。 Re: S32G399 PCIe cannot send TLP packets 你好,@龙岗素 让我在这里继续支持它。 从显示的日志来看,有 6 个 OB 窗口和 4 个 IB 窗口。 1.OB 窗口和 IB 窗口的数量通常取决于硬件 IP,您认为这些窗口的数量是否足够? 关于 iatu 的配置,您可以查看驱动程序/pci/controller/dwc 下的驱动程序进行设置。 2。原始地址可以是来自内存功能域的请求中的地址,基本地址可以是主机地址空间中该区域的参考点,而目标地址是 PCIe 功能域中的起点。 BR 切宁 Re: S32G399 PCIe cannot send TLP packets @cehnyin_h Re: S32G399 PCIe cannot send TLP packets 您好,@LONGGANGSU 感谢您的回复。 我发现这个问题也是通过其他渠道提出的,请直接向那里求助。 BR 切宁 Re: S32G399 PCIe cannot send TLP packets 你好,@龙岗素 谢谢你的帖子。 1。看来你在用电路板支持包,哪个版本? 2。哪些串行器用于连接设备,使用 PCIe x1? 3.所提到的快照是指哪份文件? BR 切宁
View full article
NXP:蓝牙与信道探测天线 这些幻灯片是为马德里卡洛斯三世大学的欧洲天线学校准备的。内容: - 关于NXP和无线控制器 - 关于信道探测和NXP解决方案 - CS天线设计及功能测试 - CS天线阵列与CS定位
View full article
S32K Sound Mixer Hi all, Recently, we completed S32K Sound Mixer reference code and demo, and glad to share this demo at here. Some key feature of this demo:  - Demo HW based on S32K344/S32K148 + audio codec SGTL5000 + QSPI flash MX25L6433.  - Demo SW based on S32K3 RTD RTM 2.0.0 and S32K1 RTD RTM 1.0.0.  - Demo provided 2 kinds of sound mixing algorithm realization code, and corresponding audio materials and codec SGTL5000 driver.  - Demo showed how to programming QSPI flash and its AHB accessing via audio storage and playing process.  - Demo used mono audio as source for processing, and output stereo audio (I2S format) via SAI HW FIFO combine (Line_Mux) function with nearly no extra cost. HMI/Cluster apps need multiple audio sources (usually warning sounds) be played simultaneously, which brings sound mixing ability requirement. However, S32K1/3 lack of this HW/SW feature support. With the demand from local key customer, and considering potential customer requirements, we planned to enable a SW sound mixer with scheduled peripherals, to enhance the S32K family audio mixing ability. It shall be easy of using/porting on S32K1/3, and use QSPI flash (AHB mode read) to store the music. Attachment the Sound Mixer package includes 2 sound mixing examples based on S32K344 EVB and S32K148 T-Box RDB, and some slides to introduce this implementation and quick start guide.  Thanks and welcome any comment from you. Best Regards, Shuailin Li Re: S32K Sound Mixer Hi @zyc0211 , Please sign-in your NXP website account, and see below place: FYI. If you still can not obtain the RTD 2.0.0 driver, please contact corresponding NXP FAE/DFAE to get the resources. Regards, Shuailin 回复: S32K Sound Mixer Hello, where is the download connection for S32K3 RTD RTM2.0? The S32K3 RTD 4.4 I installed cannot open the project
View full article
实践研讨会:利用恩智浦汽车智能射频远程控制接口 (RCI) 进行开发 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> NXP 的 RF 产品 Lizard、MantraCS、MantraF 的 RCI 介绍。使用 RCI 固件和配置开发套件 (CDK) 可以轻松实现系统集成和开发。 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> NXP 的 RF 产品 Lizard、MantraCS、MantraF 的 RCI 介绍。使用 RCI 固件和配置开发套件 (CDK) 可以轻松实现系统集成和开发。
View full article
EUF-DES-T1741 可扩展多核 QorIQ Layerscape 处理器,基于 64 位软件环境,适用于企业、家庭和工业应用.pdf <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
View full article
通用更新工具 (UUU) <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 开始使用适用于 i.MX 系列的 UUU 工具。新型固件下载工具“通用更新工具”概述,该工具已取代原有制造工具。 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 开始使用适用于 i.MX 系列的 UUU 工具。新型固件下载工具“通用更新工具”概述,该工具已取代原有制造工具。 i.MX 应用处理器
View full article
LPI2C6 can't send 0 bit? Hello, I am trying to implement controls on a device connected to T5 and R5 on my MIMXRT1170 SoC. Initially, I tried to set it up like so:    lpi2c_master_config_t cfg;   LPI2C_MasterGetDefaultConfig(&cfg);   LPI2C_MasterInit(I2C_BASE, &cfg,                    srcClockHz);   status_t start_status = LPI2C_MasterStart(I2C_BASE, 0x15, kLPI2C_Write);   And I saw that it does not seem to work as expected on the scope. What I saw was the start sequence, followed by a 0, and then nothing. So I tried to replace the start command by directly writing into MTDR something like:     I2C_BASE->MTDR = 0x4FA;   This address has a bunch of ones, followed by alternating ones and zeroes. What I see on the scope is that after the first zero, the module gives up and does not transmit the remaining bits. Why would that happen? For your convenience, I'll attach the schematic: and I'll also add that we added a couple of 2.2k pullups. Re: LPI2C6 can't send 0 bit? Hi @alex0 , Thank you so much for your interest in our products and for using our community. regarding your question, for the LPI2C6 communication issue on pins T5 and R5, please check the below: 1: Pin configuration: Configure both SCL and SDA with SION enabled and open drain enabled . Confirm that T5/GPIO_LPSR_11 is muxed to LPI2C6_SCL and R5/GPIO_LPSR_10 to LPI2C6_SDA.  Also verify that the SCL and SDA input DAISY selections point to these pads, and check the pull-ups. 2: Debug interface: Confirm whether you are using SWD or JTAG. These pins(T5 and R5) also have JTAG functions.  if JTAG is in use, please check for a pin-mux or board-level connection conflict. 3: Clock configuration: Confirm that the LPI2C6 functional clock is enabled and that the srcClockHz value passed to LPI2C_MasterInit() matches its configured frequency. LPI2C timing depends on that functional clock. Please retry the transfer after these checks. If it still stops during the address byte, please share the SCL/SDA waveforms and the LPI2C6 MSR value captured after the failure.  Wish it helps you Best Regards May Liu Re: LPI2C6 can't send 0 bit? Minor correction, we are actually using JTAG, not SWD.  With JTAG disconnected and the configuration suggested by you (fast slew rate, normal drive strength, keeper select), we now get no clock.   Re: LPI2C6 can't send 0 bit? Hello May, thank you for your quick response! 1. Regarding the pin configuration, I noticed that it differs slightly from what we had, but SION and open drain were enabled. Regardless, we tried to modify it to match the screenshot exactly - and it still did not work.  2. Regarding JTAG - we are aware of this. We are using SWD, but it seems that the default configuration works as is with no pin configurations.  3. Clock works as expected. The I2C is configured to run at 100khz and it runs at exactly that. Below is how we configure the pads: IOMUXC_SetPinMux(IOMUXC_GPIO_LPSR_10_LPI2C6_SDA,1U); IOMUXC_SetPinMux(IOMUXC_GPIO_LPSR_11_LPI2C6_SCL, 1U); IOMUXC_SetPinConfig(IOMUXC_GPIO_LPSR_10_LPI2C6_SDA, 0x21U); IOMUXC_SetPinConfig(IOMUXC_GPIO_LPSR_11_LPI2C6_SCL, 0x21U); It is my understanding that IOMUXC_SetPinMux handles the input DAISY selections.  #define IOMUXC_GPIO_LPSR_10_LPI2C6_SDA 0x40C08028U, 0x2U, 0x40C08090U, 0x1U, 0x40C08068U #define IOMUXC_GPIO_LPSR_11_LPI2C6_SCL 0x40C0802CU, 0x2U, 0x40C0808CU, 0x1U, 0x40C0806CU This seems correct: The MSR value we get after this is: 0x02000801 Re: LPI2C6 can't send 0 bit? Hi @alex0 , Thanks for your updated information. I recommend switching to SWD for a comparison test and confirming that both the debugger and the RT1170 target board are connected and configured for SWD. Simply unplugging the JTAG probe may not isolate resistors or other circuitry that remain connected to the SDA/SCL nets on the board. I could not identify pull-up resistors on the SDA and SCL nets in the schematic you shared. Since you mentioned adding two 2.2 kΩ pull-ups, could you please confirm that one is connected to SDA and the other to SCL, and that both are pulled up to the appropriate I/O supply? Best regards, May Re: LPI2C6 can't send 0 bit? Hi Mary, I'm not sure I understand what you mean by "Simply unplugging the JTAG probe may not isolate resistors or other circuitry that remain connected to the SDA/SCL nets on the board." We flash the image, disconnect the JTAG probe from the board itself, and perform power on reset. Is there some additional configuration that is necessary on the software side to disable JTAG, or is this a hardware issue? The two resistors I mentioned are indeed connected as you described. They are not on the schematic, but are present on the I2C slave side. Re: LPI2C6 can't send 0 bit? Hi May, I'm happy to share the issue has been resolved. The issue stemmed from overlapping pin configurations. The pin mux was defined in the setup for the CM7, and was overwritten by the CM4. We can mark it as solved. Thank you for your time! Re: LPI2C6 can't send 0 bit? Hi @alex0 , 1: Sorry, my earlier wording was unclear. I did not mean that you need an additional software step to disable JTAG after disconnecting the probe and performing a power-on reset. My concern is whether any subsequent pin configuration might overwrite the LPI2C6 settings for GPIO_LPSR_10/11. Could you please read back the pin-mux, input-selection, and pad-control registers immediately before the transfer to confirm that the LPI2C6 configuration is still in effect? 2: Are the I²C master and slave on the same board? If not, please confirm that they share a common ground. 3: With the probe disconnected, please confirm via UART or GPIO that the application reaches the transfer, and record the transfer return status and LPI2C6 MSR immediately before and after it. If available, SWD debugging could help inspect the registers when the transfer stops. Best Regards, May
View full article
T2080NXE8MQB based custom board booting from SPI NOR Flash Dear Community I am currently facing issue regarding custom T2080 board bring-up. What basically I am doing is I have generated PBL (rcw) from QCVS according to my custom board. I have flashed that in the SPI NOR and set the DIP switches to boot from SPI NOR. But T2080 is unable to fetch from SPI NOR. same issue is coming in ccs console (core not responding) as of you. We haven't programmed the CPLD yet rcw(pbl) has been attached . Below is the ccs console error screen: Scanning for available TAPs connected via USB..... ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + + Available Remote Connections + + 1 - CodeWarriorTAP - 00:04:9f:07:e3:5a + 2 - CodeWarriorTAP - + 3 - EthernetTAP - + 4 - GigabitTAP - + + x - Exit Script without Changes + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Specify connection: 1 Configuring TAP Interface.... Configured Connection: cwtap : 00:04:9f:07:e3:5a TDO ----- | * Device 0 IDCODE: 118E701D Device: FSL T2080 rev 2.x | TDI ----- ################################################### # # configTAP - Redefine TAP interface # # scanboard - Scans the target system # and returns the JTAG IDCode # # ir - Loopback test # ################################################### CCSAPI connection #1 accepted from activation.acronis.com at Wed Sep 30 10:26:35 2026 (bin) 2 % delete all (bin) 3 % config cc cwtap (bin) 4 % ccs::config_chain t2080 (bin) 5 % display ccs::config_chain t2080 (bin) 6 % display ccs::config_chain t2080 (bin) 6 % display ccs::get_config_chain Chain Position 0: T2080 Chain Position 1: e6500 thread 0 Chain Position 2: e6500 thread 1 Chain Position 3: e6500 thread 0 Chain Position 4: e6500 thread 1 Chain Position 5: e6500 thread 0 Chain Position 6: e6500 thread 1 Chain Position 7: e6500 thread 0 Chain Position 8: e6500 thread 1 (bin) 7 % ccs::reset_to_debug T2080: Core not responding Re: T2080NXE8MQB based custom board booting from SPI NOR Flash Hi there is a typo of SPI being not used in a snap. It is used actually. The thing is that we dont have direct access to IFC NOR & NAND. we only have access to SPI NOR via SPI protocol. and i first flashed rcw in the SPI NOR and then set the settings of dip switches accordingly.  The error I posted earlier is after I have done above. Re: T2080NXE8MQB based custom board booting from SPI NOR Flash Hi, Yes— cfg_rcw_src is the DIP-switch strap that selects where the T2080 boot ROM obtains the RCW. It does not contain the RCW contents itself; the RCW must already be programmed in the selected boot device. According to your schematic: NOR flash boot: 0_0010_0111 NAND flash boot: 1_0001_1001 SD and SPI boot are marked not used.   Therefore, if your board boots from NOR flash, set cfg_rcw_src=0_0010_0111 . If it boots from NAND flash, use 1_0001_1001 . SW1 carries cfg_rcw_src0–7 ; SW2 switch 1 carries cfg_rcw_src8 . So, “hard-coded RCW” should more accurately mean that the RCW is fixed/programmed in the boot memory—not merely the DIP-switch setting. Regards Re: T2080NXE8MQB based custom board booting from SPI NOR Flash what do you mean exactly regarding Hard coded RCW. Did you mean the setting of dip switches (cfg_rcw_src). If yes then what setting would be in my case. I have attached the snap of dip switches from my schematics mentioning cfg_rcw_src. Re: T2080NXE8MQB based custom board booting from SPI NOR Flash Hello, The JTAG connection is working—the TAP identifies the T2080 correctly. The failure occurs when CodeWarrior tries to release/reset the e6500 cores, so “Core not responding” points first to reset, clock, power, or an invalid boot configuration, not to the USB-TAP connection.  Recommended bring-up sequence Do not start with SPI boot. Configure the board for a valid T2080 hard-coded RCW mode and confirm the SYSCLK/DDRCLK strap values match the actual clocks. NXP recommends using hard-coded RCW during initial board bring-up because it excludes external RCW-device access. With hard-coded RCW selected, run: delete all config cc cwtap ccs::config_chain t2080 ccs::reset_to_debug     If this still fails, inspect hardware rather than the PBL. Verify with an oscilloscope: PORESET_B HRESET_B COP_HRESET_B COP_SRST_B ASLEEP RESET_REQ_B SYSCLK and DDRCLK Confirm correct polarity, voltage levels, sequencing, and that HRESET_B is not being held active. Pay particular attention to the reset logic around the COP/JTAG header; incorrect reset ownership can prevent the debugger from placing the core in stop mode. Check all required rails and clocks, especially processor core voltage, OVDD , GVDD , SVDD , and reference clocks. A valid JTAG ID alone does not prove that the core power, PLL, or reset sequencing is correct. After hard-coded mode works, use CodeWarrior’s SRAM launch configuration to connect and load/override the RCW. NXP’s recommended flow is: validate hard-coded RCW, generate the custom RCW with QCVS, connect through SRAM, then program the RCW into flash. Only then debug SPI NOR boot: Confirm the DIP-strap encoding and sampling. Verify SPI NOR voltage, reset, chip-select, clock, and IO wiring. Read back the programmed flash and verify the image byte-for-byte. Confirm the PBL is generated for the correct T2080 revision and SPI boot format. Program it at the offset expected by the T2080 boot ROM; do not assume offset 0x0 without checking the boot mode/documentation. Use a logic analyzer to verify that the processor asserts SPI chip select and clocks during POR. Regards Re: T2080NXE8MQB based custom board booting from SPI NOR Flash Hi @Bio_TICFSL  We are only programming PORESET according to the timing diagram as shown in Figure 4-1 in T2080RM. We are setting PORESET 0-5s (delay) High (High-Z, pulled up) then 5-15s Low and then 15s onwards High (stays High). It is behaving accordingly.  But HRESET is always LOW from start. Shouldn't it respond on programming of PORESET only ? Or do we have to program HRESET signal too ?? Before programming CPLD, PORESET & HRESET signals are always high bcz these signals are pulled up in design.....
View full article
S32K389 AES_ACCEL 在加密 64KB 数据时会挂起/冻结 您好,NXP团队: 我正在使用S32K389并测试AES_ACCEL (ACE/MSC)模块。我在处理大型数据缓冲区时遇到了稳定性问题。 测试设置: 模式: AES-密码块链接(CBC) 案例 1(通过):加密4KB数据工作正常。 案例 2(失败):加密64KB数据会导致芯片在执行 AES 服务时立即崩溃/挂起。 观察到的行为: S32DS(S32 设计工作室)在执行 AES 服务期间冻结。 尝试通过调试器连接到 S32K389 完全失败。 问题: 对于每个 AES_ACCEL 事务的最大数据长度,是否存在任何已知的限制? 此致, 显龙 Re: S32K389 AES_ACCEL hangs/freezes when encrypting 64KB data 嗨@wuxianlong 让我查一下。我会尽快回复您。 此致, Lukas Re: S32K389 AES_ACCEL hangs/freezes when encrypting 64KB data 很抱歉耽搁了,我遇到了一些内部资源访问权限方面的问题,解决起来比预期要花更多时间。我会尽快回复。感谢您的耐心等待。 此致, Lukas Re: S32K389 AES_ACCEL hangs/freezes when encrypting 64KB data 嗨@wuxianlong CMAC生成验证服务存在以下限制: 我还在确认加密方面是否存在限制。我稍后会通知你。 此致, Lukas Re: S32K389 AES_ACCEL hangs/freezes when encrypting 64KB data 你好, @lukaszadrapa 非常感谢您的解释。加密和 CMAC 验证可能面临同样的局限性。 此致, 显龙 Re: S32K389 AES_ACCEL hangs/freezes when encrypting 64KB data 我了解到大小限制为 512KB - LEN 位域的大小为 19 位。 有趣的是,程序执行完全崩溃了。我预计 AES_ACCEL 在参数无效的情况下会返回一些错误代码。 那不是XRDC引起的吗?XRDC 是否已启用?您能否尝试将其禁用以进行测试? 此致, Lukas Re: S32K389 AES_ACCEL hangs/freezes when encrypting 64KB data 你好, @lukaszadrapa 使用 64KB 进行测试仍然失败。启用 AEC 错误检测后发现,IP 驱动程序宏将限制设置为(1 << 19) - 1​ 位 < 64 KB。 此致, 显龙
View full article
Automotive Comfort Control Using FRDM-A-S32K344 Microcontrollers 1. Overview This module demonstrates how to implement a vehicle comfort control system using GPIO, PWM, and stepper motor sequencing on NXP S32K3 microcontrollers. The application reads user inputs from push-buttons and translates them into two independent comfort functions: a DC motor that simulates a cabin cooling fan (regulated through PWM) and a stepper motor that simulates an electric window mechanism (driven through GPIO coil sequencing). Both actuators react in real time, mimicking how comfort body-control modules work in modern vehicles. This example is based on the Application Code Hub demonstration for: Vehicle Comfort Control for FRDM-A-S32K344 In this workshop, on-board push-buttons simulate the driver's comfort commands. When the student presses a button, the MCU reads the input through GPIO, decodes the requested action, and drives the associated actuator: a PWM duty cycle is generated for the DC Motor 2 Click (regulating the fan speed), or a full-step coil sequence is generated through GPIO outputs to the H-Bridge Click (moving the NEMA17 stepper motor up or down). Beyond the technical implementation, the course serves as a foundation for the Eat-Sleep-Code-Repeat learning initiative, encouraging a hands-on approach where students continuously learn, develop, test, and improve automotive embedded applications using real hardware and practical examples. 2. Learning Scope After completing this course, participants should be able to:   Understand a basic vehicle comfort control system and the ideas behind HVAC regulation and electric window control. Use on-board push-buttons as simulated driver comfort commands. Read digital inputs using the GPIO peripheral and understand debouncing considerations. Generate PWM signals to regulate DC motor speed (fan simulation). Implement a full-step drive sequence (A → B → C → D) to control a stepper motor. Configure the DC Motor 2 Click and H-Bridge Click boards over the mikroBUS interface. Recognize the actuation data flow: user input → MCU processing → PWM / GPIO actuation. Import, build, flash, and debug an ACH project in S32 Design Studio 3.6.5. Understand why comfort functions are relevant in modern automotive body electronics. 3. System Architecture The three elements capture exactly the basic idea of the system in the demo: Input: Push-buttons (on-board buttons simulate driver comfort commands) Processing: S32K3 MCU (reads GPIO, decodes the command, drives the correct actuator) Output: Dual actuation (DC motor via PWM for the fan, stepper motor via GPIO sequencing for the window) This matches the classic flow of an embedded body-control system: user input → processing → actuator. Functional Flow The system operates continuously as follows: The user presses a button that corresponds to a comfort action The GPIO peripheral reads the button state The application decodes the command (fan control or window movement) Depending on the command, the MCU generates either a PWM signal or a stepper coil sequence The DC motor changes speed, or the stepper motor rotates in the requested direction This loop runs continuously to ensure real-time comfort control. Vehicle Comfort Control Application Architecture 4. Key Concepts 4.1 GPIO (General-Purpose Input/Output) The push-buttons on the FRDM-A-S32K344 board are connected to GPIO input pins. The MCU polls (or reads on interrupt) the pin state and interprets a logic transition as a user command. GPIO is also used as output for the stepper motor coil control signals, driving the H-Bridge Click inputs. GPIO handling is the foundation of automotive user-interface processing — used for buttons, switches, ignition detection, and many others. 4.2 PWM — Pulse-Width Modulation and Fan Speed Control PWM switches a digital output on and off at a fixed frequency, varying the duty cycle (the fraction of time the signal is high). A DC motor interprets the average voltage produced by this PWM as a proportional rotational speed. In this demo, the S32K344 generates PWM on a mikroBUS pin that drives the DC Motor 2 Click, which in turn powers the 5 V fan motor. Increasing the duty cycle increases fan speed; decreasing it slows the fan down — a typical pattern used in cabin ventilation and HVAC systems. 4.3 DC Motor Direction and H-Bridge Concept The DC Motor 2 Click integrates an H-Bridge driver that can be configured for forward, reverse, brake, or coast modes. The MCU controls the direction pins and applies PWM on the enable input to regulate speed. This is exactly the same principle used in real automotive fan modules, where a low-side or full-bridge driver is switched at kilohertz frequency to obtain smooth speed control without dissipating power in a series resistor. 4.4 Stepper Motor Full-Step Sequencing A stepper motor like the NEMA17 rotates in fixed angular increments (typically 1.8° per step) when its coils are energized in the correct order. The MCU generates a repeating four-phase pattern (A → B → C → D) on four GPIO pins connected to the H-Bridge Click. Reversing the sequence (D → C → B → A) reverses the direction. The step frequency directly determines rotation speed, and counting the number of steps gives an open-loop position estimate — the exact behavior needed to simulate an electric window moving up or down. 4.5 Push-Buttons as Comfort Commands The on-board buttons are a simplified, safe stand-in for the physical HVAC and window switches found in a real vehicle. The student presses them by hand, the GPIO state changes, the MCU decodes the command, and the corresponding actuator reacts. This isolates the student from real body-electronics wiring while preserving the full software logic. 4.6 Data Flow at a Glance Button press → GPIO input → command decoding → selection of actuator (fan or window) → PWM duty cycle update or stepper coil sequence advance → motor response. This direct chain from the student's finger to the actuator shaft is the main educational value of the demo. 5. Hardware and Software Setup Required Hardware Component Image Purpose FRDM-A-S32K344 FRDM-A-S32K344FRDM-A-S32K344 MCU platform used to run the comfort control application and drive the connected peripherals. FRDM-K64 Click Shield FRDM K64 click shieldFRDM K64 click shield mikroBUS expansion board used to connect Click modules to the FRDM platform. DC Motor 2 Click DC Motor 2 ClickDC Motor 2 Click H-Bridge driver board used to control DC motor speed and direction via PWM. H-Bridge Click H-Bridge ClickH-Bridge Click Dual H-Bridge driver used to sequence the stepper motor coils. 5 V Fan Motor 5V Fan Motor5V Fan Motor Actuator used to simulate the vehicle cabin cooling fan controlled through PWM. Stepper Motor NEMA17 Stepper Motor Nema17Stepper Motor Nema17 Actuator used to simulate the electric window mechanism through step sequencing. USB-C  — Provides power and enables programming and debugging of the system. The example application demonstrates how these peripherals are connected to the MCU pins and used to simulate cabin cooling and electric window control. Vehicle Comfort Control Full Setup on FRDM-A-S32K344 Comfort Full SetupComfort Full Setup Software Environment S32 Design Studio IDE S32K3 Real-Time Drivers (RTD) S32K3 Automotive Software Package Application Code Hub project import Vehicle Comfort Control for FRDM-A-S32K344 6. Implementation Guide Step Action Sub-steps Expected Result 1 Import the Project Open S32 Design Studio Select “Import project from Application Code Hub” Search for the vehicle comfort control demo Use the GitHub link for automatic configuration Select main branch Import project Project successfully appears in workspace 2 Build the Application Right-click project Select “Update Code and Build Project” Confirm SDK component management Build completes with no errors and generates .elf file 3 Connect Hardware Connect USB cable and external 12 V supply Attach FRDM-K64 Click Shield, DC Motor 2 Click and H-Bridge Click Wire the 5 V fan motor and NEMA17 stepper motor Verify wiring before powering the system Board is powered and detected by IDE 4 Flash and Run Open Debug Configurations Select “debug_flash_pemicro” Start debugging Application runs continuously 5 Functional Validation Press the fan control buttons Observe DC motor speed change Press the window up/down buttons Observe stepper motor movement and direction Fan speed and window motion follow user commands in real time 7. Signal Behavior and Control Logic The Vehicle Comfort Control application drives two independent actuators from a single S32K344 MCU: a DC fan motor controlled through a PWM signal for cooling, and a stepper motor controlled through a 4-channel GPIO sequence for electric window movement. User inputs (SW2 and SW3) are read by the MCU, which then generates the appropriate signal type for each actuator. The two diagrams below describe the signal behavior and control logic for each subsystem. 7.1 Cooling System – Fan Speed Control (PWM) Figure: Fan speed control mapping. The MCU generates a PWM signal on the EMIOS channel to drive the DC fan motor through the DC MOTOR 2 Click board. Each SW2 press increments the duty cycle by one step (0 % → 33 % → 67 % → 100 %) and each SW3 press decrements it, so fan speed is directly proportional to duty cycle. Duty Counts represent the raw PWM compare values (period = 20000 counts). When the fan is fully stopped, the TB6593FNG driver is automatically put into low-power sleep mode to prevent wasted current through the windings. 7.2 Window System – Stepper Motor Full-Step Sequencing Direction Step # Coil A (PTA13) Coil B (PTD0) Coil C (PTA3) Coil D (PTC10) Active Pair UP (SW2 pressed) 1 ON OFF ON OFF AC 2 OFF ON ON OFF BC 3 OFF ON OFF ON BD 4 ON OFF OFF ON AD DOWN (SW3 pressed) 1 ON OFF OFF ON AD 2 OFF ON OFF ON BD 3 OFF ON ON OFF BC 4 ON ON OFF OFF AC Table: Stepper motor full-step sequencing for window control. The MCU drives the stepper motor through four GPIO lines connected to the H-Bridge Click board, using dual-coil activation (two coils energised per step) to maximise torque. Pressing SW2 executes the Up sequence AC → BC → BD → AD (window moves up), while SW3 executes the reversed Down sequence AD → BD → BC → AC (window moves down). Each press advances the motor by one full step with a 3 ms delay, and the coil pair remains energised as long as the button is held. When no button is pressed, all coils are de-energised to prevent motor winding overheating during idle periods. 8. Troubleshooting Issue Possible Actions Board Not Detected Check USB cable and drivers Verify debugger connection Restart IDE Fan Does Not Spin Verify PWM configuration and duty cycle Check DC Motor 2 Click wiring and enable pins Ensure the 5 V motor supply is present Stepper Not Moving Verify GPIO output configuration for coil pins Check H-Bridge Click wiring and coil order Confirm the step delay is not too short (motor stalls) Stepper Rotates Wrong Direction Invert the coil sequence in software (A→B→C→D vs D→C→B→A) Swap one coil pair on the H-Bridge output Buttons Not Responding Verify GPIO input configuration and pull-up/pull-down Add software debouncing Check that the correct button pins are mapped 9. Extending the Application The basic implementation can be extended in several ways: Feedback-Based Control Add temperature or Hall-effect sensors for closed-loop fan speed regulation Add end-stop switches or encoders for accurate window position tracking Automatic Comfort Modes Implement predefined climate or ventilation profiles Trigger comfort actions based on sensor thresholds CAN Communication Enable communication with other vehicle ECUs (e.g., HVAC master, door module) Receive comfort commands over the vehicle network Diagnostic Functions Add fault detection for stuck motors, over-current or open loads Expose diagnostic status via LEDs or debug UART Position Memory Store and restore window or fan positions in non-volatile memory Recall the last comfort state after each power-up State Machine Implementation A more advanced approach is to implement a state machine: Idle Active Fault 10. Safety Context This example reflects key automotive principles: Continuous monitoring of driver commands Immediate response to control signals Reliable actuator control for both speed and position In real systems: Redundancy is required for safety-relevant functions (e.g., anti-pinch on windows) Fault detection mechanisms are implemented (over-current, stall, over-temperature) Systems must comply with ISO 26262 (functional safety standard) where applicable Modern comfort modules also implement anti-pinch protection on power windows, ensuring the motor stops or reverses when an obstruction is detected — a safety-critical requirement for real vehicles. 11. Conclusion This module demonstrates how a simple embedded system can implement vehicle comfort control using GPIO inputs, PWM outputs, and stepper motor sequencing on the S32K344 platform. It shows how: Digital user inputs are acquired through GPIO Commands are decoded and processed in real time A DC motor is controlled using PWM for smooth speed regulation A stepper motor is controlled using a full-step coil sequence for precise positioning Result on FRDM-A-S32K344 Comfort ResultComfort Result The course provides a strong foundation for more advanced systems, including feedback-based control, CAN networking, diagnostics, and safety-oriented designs typical of automotive body-control modules. The course serves as a foundation for the Eat-Sleep-Code-Repeat learning initiative, encouraging a hands-on approach where students continuously learn, develop, test, and improve automotive embedded applications using real hardware and practical examples.
View full article
如何使用ADC0测量MCU的内部温度和电压 NXP支持团队的各位成员大家好。 我目前正在使用 S32K314、RTD 7.0.0 和 FreeRTOS 开发一个项目。我尝试使用 MCAL 的 ADC 模块测量连接到 MCU 的外部设备的电压、MCU 的内部温度(TEMPSENSE)、MCU 的内部电压(ANAMUX)以及带隙电压。查看测量结果,外部设备的电压和带隙电压似乎测量正确,但 MCU 的内部温度和内部电压值与预期不符。 预期值: MCU内部电压(VDD_HV_A): 8192(2.5V,14 位分辨率) 实际测量值: 约 6800–7100 (2.07–2.13V,14 位分辨率) MCU电源电压为5.0V。ADC硬件单元设置为ADC0,ADC测量目标配置如下: Ch8:MCU内部温度(TEMPSENSE) Ch9:MCU内部电压(ANAMUX) 第十章:带隙 MCU输入电压 = 5.0V ADC初始化代码: void AdcAdapter_Init ( void ) { Adc_Calibrate ( ADC0 , & calStatus ) ; Adc_SetupResultBuffer ( ADC0 , Group0Result ) ; IP_DCM_GPR -> DCMRWF1 = ( IP_DCM_GPR -> DCMRWF1 | DCM_GPR_DCMRWF1_SUPPLY_MON_EN ( 1 ) | DCM_GPR_DCMRWF1_VDD_HV_A_VLT_DVDR_EN ( 1 ) | DCM_GPR_DCMRWF1_VDD_HV_B_VLT_DVDR_EN ( 1 ) | DCM_GPR_DCMRWF1_VDD_1_5_VLT_DVDR_EN ( 1 ) ) ; IP_DCM_GPR -> DCMRWF1 = ( IP_DCM_GPR -> DCMRWF1 & ~ DCM_GPR_DCMRWF1_SUPPLY_MON_SEL_MASK ) | DCM_GPR_DCMRWF1_SUPPLY_MON_SEL ( 0U ) ; // VDD_HV_A_DIV Adc_StartGroupConversion ( ADC0 ) ; // AdcConversionStart } ADC数据采集(所有周期性任务) void AdcAdapter_RunCyclic ( void ) { Adc_StatusType ret = ADC_IDLE ; Std_ReturnType adcStatus ; uint16 temperature ; // 変換完了チェック ret = Adc_GetGroupStatus ( ADC0 ) ; if ( ( ret == ADC_COMPLETED ) || ( ret == ADC_STREAM_COMPLETED ) ) { // 結果を取得 Adc_ReadGroup ( ADC0 , Group0Result ) ; // 次の変換を開始 Adc_StartGroupConversion ( ADC0 ) ; } else { // エラーログ } /* Adc_TempSenseGetTemp Singed Q11.4 */ adcStatus = Adc_TempSenseGetTemp ( ADC0 , mcuTemperature ) ; if ( E_OK == adcStatus ) { temperature = Adc_TempSenseCalculateTemp ( ADC0 , mcuTemperature ) ; } else { // エラーログ } } 我认为可以使用 `Adc_ReadGroup` 更新 ADC0 组的 ADC 值,但需要使用 `Adc_TempSenseGetTemp` 和 `Adc_TempSenseCalculateTemp` 来检查 MCU 的内部温度。如果我遗漏了任何设置,请告知。 Re: How to Measure the Internal Temperature and Voltage of an MCU Using the ADC0 森伦特先生,您好! 感谢您的快速回复。 我已经审阅了您提供的示例代码,并且相信我已经将其融入到我的代码中。 我把您提供的表格理解为提供给 ADC 模块的每个时钟的寄存器设置表。但是,我无法确定它们对应于 MCAL 中的哪个 ADC 设置。 由于我无法提供源代码,因此我附上了一张ADC设置的图片。请告诉我应该更改哪些设置。 如果您还需要其他设置界面,请告诉我。 AdcHwUnit> Re: How to Measure the Internal Temperature and Voltage of an MCU Using the ADC0 嗨@辉彦 我没有从您提供的信息中看到完整的ADC配置,所以请您仔细检查ADC时钟是否符合数据手册的要求。 如果可以的话,你可以把你的测试项目分享给我,我会帮你检查一下。 对了,可以看看下面链接里的演示: https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K344-TempSenser-S32DS36-RTD600-500-400-p24/ta-p/2136187 Re: How to Measure the Internal Temperature and Voltage of an MCU Using the ADC0 森伦特先生,您好! 谢谢你的建议。 根据您的建议,我更改了设置,如下所示,将 TEMPSENSE 采样时间设置为 1.2 微秒。 160MHz = 0.00625微秒 1.2微秒/0.00625微秒= 192 我在 FreeRTOS 中创建了一个周期为 1 秒的任务,每秒获取一次 MCU 电压 (VDD_HV_A) 和 MCU 温度 (TEMPSENSE) 的 ADC 值(收集 30 秒的数据)。 对于 MCU 电压,我使用了带隙电压,并使用以下补偿公式将其转换为 mV。 (带隙电压几乎没有波动,测得的值约为 3975(约 1.2 V)。) Adc校正 = (1200(mV) * Adc_VCC_HV_A) / Adc_带隙 MCU电压= Adc校正 * 2(2为VDD_HV_A的分压比) 此外, McuTemp数据来自 `Adc_TempSenseGetTemp(ADC0, &mcuTemperature)`。 即使考虑到 +/- 5.0% 的 ADC 转换误差,我认为这种变化也太大了。有什么建议的解决方案吗?   Re: How to Measure the Internal Temperature and Voltage of an MCU Using the ADC0 嗨@辉彦 从你提供的配置截图和代码来看,我没有发现任何明显的错误。但是需要注意的是,温度传感器的采样时间必须大于 1.2µs;否则,会影响采样精度。因此,我建议您在测试前仔细核对采样时间。 Re: How to Measure the Internal Temperature and Voltage of an MCU Using the ADC0 ADC_Config>AdcHwUnit 的图像被压缩,导致分辨率降低,因此我重新上传了它。 <#1> <#2> <#3> Re: How to Measure the Internal Temperature and Voltage of an MCU Using the ADC0 嗨@辉彦 您可以直接读取温度通道的原始数据,观察是否存在波动。如果波动较大,您可以继续尝试增加采样时间。 Re: How to Measure the Internal Temperature and Voltage of an MCU Using the ADC0 森伦特先生,您好! 我对表 317 中的信息作了如下解释。 当 fmc = 160 MHz 时: ・将校准预分频器设置为4 ・将普通ADC转换的预分频器设置为2 ・将“ADC 高速”设置为“禁用” 应用这些设置后获得的数据如下表所示。 虽然平均值降低了波动,但我感觉 MCU 内部温度的波动仍然相当显著。 下表显示了从 ADC 值转换为 °C 的 MCU 温度数据。 (为了将ADC值转换为摄氏度,我将ADC值除以16。) 16 个点平均值出现 2.55 度的变化是极其大的。我知道MCU温度会根据处理负载而波动,但是温度瞬间变化这么大正常吗? 测量MCU内部温度时,取平均值是否是正确的方法? Re: How to Measure the Internal Temperature and Voltage of an MCU Using the ADC0 森伦特先生,您好! 感谢您附上文档。由于我目前正在测量通道 32-63,我知道这对应于采样持续时间 1。 感谢您的及时回复。问题已解决。 Re: How to Measure the Internal Temperature and Voltage of an MCU Using the ADC0 森伦特先生,您好! 谢谢你的回复。 如下图所示,在我增加采样持续时间 1/持续时间 2 的值后,这些值趋于稳定。我以为默认设置是采样持续时间 0,但是如何才能在采样持续时间 0、1 和 2 之间切换呢? (根据预分频设置,由于 ADC 时钟频率为 80 MHz,因此 1.2 μs 对应的持续时间为 96。)
View full article
Unifiのようなソフトウェアではなく、OpenWrtを使ったことを後悔していますか? 私の無知をお許しください。UnifiではなくOpenWrtを使ったことを後悔していますか?OpenWrtを使って、自宅の実験室用にルーターを設定しています。多くのことを学びつつありますが、時間がかかるので、Unifiのようなきれいな結果には絶対にならないでしょう。 OpenWrtで一番気に入っているのは、安価なデバイスでケーキを設定できて、1Gbpsのルーティングを代わりに行ってくれることです。また、自分のニーズに合わせてUnboundをカスタマイズできるのは素晴らしいです。 Re: Do you regret using OpenWrt instead of something like Unifi? こんにちは、 どのプロセッサを使っていますか? よろしくお願いします。
View full article
S32K144チップにはクロック構成の問題があり、クロックを変更するとタイミング周期が変わってしまう。 S32K144の開発中に、以下の問題に遭遇しました。 初期化タイマーの割り込みオーバーフロー期間は1秒に設定する必要があります。 前提として、私のクロック設定は8MHzです。 しかし、時計を20Mの時計に変えた後… タイマーのオーバーフロー期間が1秒ではなく、400ミリ秒になっていることに気づきました。 しかし、タイマーのクロック設定は依然として8MHzの内部クロックに設定されたままです。 PCC->PCCn[PCC_FTM1_INDEX] |= PCC_PCCn_PCS(0x01) /* クロックソース=1、8 MHz SIRCDIV1_CLK */ | PCC_PCCn_CGC_MASK; /* FTMレジスタのクロックを有効にする */ この問題の原因となっている設定上の問題が何なのか、私には分かりません。 Re: S32K144芯片的时钟配置问题,更改时钟后定时周期出现变化 ハイ 次の S32K1 RM の表 27-9 を参照してください。peripheral module clocking (continued),FTM具体選択哪个时钟源需要查看FTMn_SC[CLKS]和29.6.17 PCC FTM1 Register (PCC_FTM1)的PCS位。 プロセッサ エキスパートがコンフィギュレーションを生成し、ベアメタル モードでレジスタを直接操作しました。SDK サイトを使用した API が原因でベアメタル プログラムがクラッシュしたかどうかはわかりません。 さらに、ProcessorExpert 搭載 SDK の API を使用する場合は、ベアメタルの直接操作レジスタの構築リファレンス S32K144_Project_FTM サンプル ftm_periodic_interrupt_s32k144 を参照してください。 よろしくお願いいたします ロビン
View full article
GPIO_EMC_B2_18をFLEXSPI1_A_DQSとして設定し、クロック周波数を133 MHzに設定するにはどうすればいいですか? こんにちは、 i.MX RT1175のGPIO_EMC_B2_18をFLEXSPI1_A_DQSとして設定し、クロック周波数を133MHzに設定したい。 GPIO_EMC_B2_18起動時にFLEXSPI1_A_DQSに設定できないことは理解しています。 そのため、起動時に60MHzで動作させて、アプリケーション内で133MHzに変更しようとしていますが、うまくいきません。 私はevkbmimxrt1170_flexspi_nor_polling_transferプロジェクトを使用しており、`flexspi_nor_flash_ops.c`内の`flexspi_nor_flash_init()`の関連セクションを変更しました。 「`」 IOMUXC_SetPinMux(IOMUXC_GPIO_EMC_B2_18_FLEXSPI1_A_DQS, 1U); IOMUXC_SetPinConfig(IOMUXC_GPIO_EMC_B2_18_FLEXSPI1_A_DQS, 0x0AU); CLOCK_SetRootClockDiv(kCLOCK_Root_Flexspi1, 4); CLOCK_SetRootClockMux(kCLOCK_Root_Flexspi1, 5); config.rxSampleClock= kFLEXSPI_ReadSampleClkLoopbackFromDqsPad; 「`」 クロック周波数を133MHzに設定すると、システムがフリーズします。 「`」 CLOCK_SetRootClockDiv(kCLOCK_Root_Flexspi1, 5); CLOCK_SetRootClockMux(kCLOCK_Root_Flexspi1, 5); 「`」 クロック周波数を105MHzに設定すると動作します。 GPIO_EMC_B2_18をFLEXSPI1_A_DQSに設定し、クロック周波数を133 MHzに設定するにはどうすればいいですか? Re: How can I configure GPIO_EMC_B2_18 as FLEXSPI1_A_DQS and set the clock frequency to 133 MHz? こんにちは、@mayliu1 さん。 ご返信ありがとうございます。 セカンダリpingグループは100MHzでしか動作しないかもしれませんが、私はプライマリpingグループを使い、DQSだけをGPIO_EMC_B2_18に変更する予定です。理由は、USDHC2_CMD に GPIO_SD_B2_05 を使用しているためです。 ピン構成 FLEXSPI1_A_SS0_B GPIO_SD_B2_06 FLEXSPI1_A_SCLK GPIO_SD_B2_07 FLEXSPI1_A_DATA0 GPIO_SD_B2_08 FLEXSPI1_A_DATA1 GPIO_SD_B2_09 FLEXSPI1_A_DATA2 GPIO_SD_B2_10 FLEXSPI1_A_DATA3 GPIO_SD_B2_11 FLEXSPI1_A_DQS GPIO_SD_B2_05(ブーツ) アプリケーションでは、FLEXSPI1_A_DQSのみがGPIO_EMC_B2_18に変更されます。 FLEXSPI1_A_DQS GPIO_EMC_B2_18 テストとして、EVKのクロック周波数を60MHz(ブート時)から133MHzに変更しましたが、FLEXSPI1_A_DQSは変更せず、GPIO_SD_B2_05に設定したままにしました。すると、同じようにハングアップしました。 xip 設定が .readSampleClksrc=kFlexSPIReadSampleClk_LoopbackInternally に設定されているため、それをkFlexSPIReadSampleClk_LoopbackFromDqsPadに変更したところ、133MHzで動作させることができました。 次に、DQSをGPIO_EMC_B2_18に変更してみたところ、133MHzで動作させることができました。 このやり方は受け入れられるだろうか? また、起動時にはGPIO_SD_B2_05はフローティング状態ではありません。`kFlexSPIReadSampleClk_LoopbackFromDqsPad`に設定して60MHzで実行しても問題ありませんか? Re: How can I configure GPIO_EMC_B2_18 as FLEXSPI1_A_DQS and set the clock frequency to 133 MHz? こんにちは@Shuhei_Dさん 私たちの製品にご関心を寄せ、コミュニティをご利用いただき、本当にありがとうございます。 詳細については、以下の記事をご参照ください。 https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT-1176-FlexSPI-RW-frequency-DQS/mp/1871808 RT1170リファレンスマニュアルによると、セカンダリピングループを使用した場合、FlexSPIフラッシュの最大対応周波数は100 MHzです。 プロジェクトの構成を確認し、上記のリンクで説明されているシナリオに合致しているか確認していただけますか? お役に立てれば幸いです。 よろしくお願いいたします。 5月 Re: How can I configure GPIO_EMC_B2_18 as FLEXSPI1_A_DQS and set the clock frequency to 133 MHz? お返事ありがとうございます。 回路図を確認したところ、GPIO_EMC_B2_18がフローティング状態になっていることがわかりました。 Re: How can I configure GPIO_EMC_B2_18 as FLEXSPI1_A_DQS and set the clock frequency to 133 MHz? NORフラッシュの外付けを駆動するために、SPIのクロック周波数を60MHzから133MHzに変えたいようですね。しかし105MHzなら問題なさそうなので、SPI高周波数で信号の整合性をレイアウト側で確認する必要があるかもしれません。回路図を確認しますか? Re: How can I configure GPIO_EMC_B2_18 as FLEXSPI1_A_DQS and set the clock frequency to 133 MHz? こんにちは@Shuhei_Dさん ご辛抱いただきありがとうございます。 ご質問内容を再度確認しました。 プライマリDQS PINを使用し、セカンダリDQSオプションは使用しないでください。 あなたの場合、もし主DQSピンがすでに別の機能に使われている場合、以下の構成を適用できます。ただし、この設定は最大60MHzまでしかサポートされていないことにご注意ください。 お役に立てれば幸いです。 よろしくお願いいたします。 5月
View full article
寻求有关人工智能驱动的半导体供应链平台的行业洞察 您好,先生, 我是 Shaileshwar,目前是 NIT Warangal 电子与通信工程专业的大四本科生。 我的团队正在探索构建“半导体供应链 2.0”平台的想法——这是一个面向半导体公司的 AI 驱动的智能和协调系统。我们的愿景是提供整个生态系统的端到端可视性,将晶圆厂、OSAT(外包半导体组装测试)厂商、供应商、组装和测试合作伙伴以及物流供应商聚集在一个统一的平台上。 我们正在考虑的一些功能包括: • 人工智能驱动的全球风险情报(地缘政治事件、自然灾害、贸易限制、供应商中断) • 实时查看存货和生产状态 • 需求预测和产能规划 • 供应商风险评分和替代采购建议 • 瓶颈和延误的预测分析 • 半导体运营团队的决策支持仪表板 我们非常希望您能就以下问题提供一些见解:这些是否是行业中真正存在的痛点,以及哪些领域具有最高的创新价值。 感谢您抽出时间,期待您的指导。 问候, 沙伊莱什瓦尔 电子与通信工程学士学位 瓦朗加尔国立理工学院 机器学习
View full article
种植花园2:加快进度的十大秘诀 如果你想在 Roblox Grow a Garden 2 中赚取数百万谢克尔并快速发展,你肯定知道这其中的艰辛过程会非常艰辛。续作在很多方面都进行了改变,包括新的圆形花园地块、完全改进的变异系统、离线生长以及一些非常激烈的夜间突袭机制。 要想真正超越竞争对手,你必须通过单次收获作物、叠加装备增益和服务器机制的正确组合来最大限度地提高作物产量。以下是将你最初的小块土地发展成一个庞大、高利润的农业帝国的十大玩家秘诀的实用解析。 1. 滥用“断竹”策略 单次收获的作物无疑是游戏中快速积累早期财富的最佳途径,而竹子目前完全过于强大。种子大约价值 700 谢克尔,但一株品质优良的竹笋很容易就能卖到 5500 谢克尔以上——这还不包括罕见的变异。给自己一个机会:清除普通农作物,将你土地的每一寸都种上竹子,这样你的利润就会飙升。 2. 堆叠不同的洒水器 不要犯只买最高档洒水器而把其他的都扔掉的错误。你想把不同的变体组合在一起。如果你把普通、不普通、稀有和传奇的洒水器放在同一个位置,它们的生长倍率和幸运倍率实际上会叠加。这个便捷的技巧可以迫使你的作物长得更大,并更快地触发信号极端尺寸的增长(例如那些重达 15 公斤以上的巨型品种)。 3. 为你的鹿宠物队伍配备齐全 宠物对于整体效率至关重要,但如果你想要极致的成长速度,鹿形宠物是最佳选择。每只装备了鹿宠物的鹿都能使植物生长速度提高 10%。花点钱买宠物蛋,就能用一群鹿填满你的装备栏,从而大幅减少你的耕作停工时间。 4. 利用商家的优惠选项 清仓大量存货时,千万不要盲目点击“出售”。与出售物品的商人互动时,务必使用游戏内的“讨价还价”选项。成功地为你的优质水果和高级竹子讨价还价,可以大幅提高你每次收获的收益,使你付出同样的体力劳动,就能获得成倍增长的总收入。 5. 与 7 位好友一起玩,获得巨大优势 《Grow a Garden 2》通过严格的服务器倍率来大力奖励合作游戏。服务器中每有一位好友,你就能获得成长和幸运值的提升。与 7 位好友一起刷怪可获得高达 70% 的总财富和增长倍率,使得公开或组队刷怪远胜于单人刷怪。 6. 继续种植金果和彩虹果 如果你运气好,获得了传奇+或神话级的变异品种——比如彩虹或点金术变种——不要立即收获。让这些极其罕见的变种植物完好无损地留在你的花园里。将它们种下,你就可以安全地与其他高级玩家交易稀有种子包,或者留着它们以在游戏后期获得最大的利润。 7. 成为夜间窃贼(或防范他们) 在这个游戏中,取得进展并不一定需要完全和平。当游戏内时间进入夜晚时,你可以直接进入其他玩家的花园,偷走他们高价值的作物。如果你是一个没什么可失去的新手,那么掠夺富人的花园是快速致富的捷径。另一方面,如果你是被盯上的人,那就把自己锁在有围栏的花园里,或者用铲子砸死入侵者,夺回被盗的财物。 8. 刷公会奖励 尽早加入或组建游戏内的公会,并在经济条件允许的情况下进行。公会引入了专门的公会奖励系统,集体刷怪可以获得积分。这些积分可以直接兑换专属变异种子、强力装备升级和每周奖励包,这些奖励包是普通商店无法获得的。 9. 掌握线下增长机制 即使你完全离线,你的花园也会继续生长。在你下线结束一天的工作之前,确保你已最大限度地利用了你的地块,密集种植了成熟期最长、价值最高的种子,例如火龙果或鬼椒,并策略性地放置了你的喷灌器。下次重新加入时,您将看到巨额奖金记录。 10. 兑换有效促销代码 永远不要错过免费资源。开发商会定期发放促销代码,奖励免费种子、化妆品和蛋类物品。请务必查看最新的有效代码(例如 RDCAward 或 BEANORLEAVE10),并立即通过游戏菜单兑换,以获得零成本的先机。
View full article
S32K396 RTD 5.0.0FlexIO PWM – 如何根据“周期 [滴答数]”参数计算 PWM 周期? 您好,NXP团队, 我使用的是S32K396 ,RTD 版本为 5.0.0 ,以及FlexIO PWM 驱动器。 我的配置如下: FLEXIO0_CLK = 160 MHz 时钟预分频器 = FLEXIO_PWM_IP_CLK_DIV_16 频道 ID = CH_0 引脚 ID = PIN_1 生成的配置: 常量Flexio_Pwm_Ip _ChannelConfigType Flexio_Pwm_Ip _I0_Ch0 = { /* TimerId */ 0 U , /* PinId */ 1 U , #if (defined(FLEXIO_PWM_IP_HAS_PRESCALER) && (FLEXIO_PWM_IP_HAS_PRESCALER == STD_ON)) /*预分频器*/ FLEXIO_PWM_IP_CLK_DIV_16 , #endif /* 周期 */ 400 U , /* 占空比 */ 0 U , #if (defined(FLEXIO_PWM_IP_HAS_LOW_MODE) && (FLEXIO_PWM_IP_HAS_LOW_MODE == STD_ON)) /* 极性 */ FLEXIO_PWM_IP_ACTIVE_HIGH , #endif /* IrqMode */ FLEXIO_PWM_IP_IRQ_DISABLED , /* IPL 回调 */ { /* CbFunction */ NULL_PTR , /* CbParameter */ NULL_PTR } , /* HLD 回调 */ { /* CbFunction */ NULL_PTR , /* CbParameter */ 0 } } ;   我正在试图理解以下两者之间的确切关系: FLEXIO 时钟频率 预分频器 周期 [滴答] 占空比 [滴答] 输出 PWM 频率 我的测量数据是: 周期占空比测量频率占空比 200 100 20kHz 50% 300 100 13.3 kHz 33.3% 400 100 27.7 kHz 69.4% 500 100 16.3 kHz 40% 前两项测量结果似乎表明: Duty (%) = DutyTicks / PeriodTicks × 100 但是,我无法推导出 FlexIO PWM RTD 驱动器内部使用的确切 PWM 频率公式。 请问您能否澄清一下: FlexIO PWM 驱动器使用什么公式将周期(滴答数)转换为输出 PWM 频率? 如何根据配置的周期值对 TIMCMP 寄存器进行编程? 是否存在最大有效周期值(例如,由于 FlexIO 定时器的限制,周期不能为 255 次)? 如何计算所需的周期值以获得所需的 PWM 频率(例如 10 kHz)? FLEXIO0_CLK = 160 MHz 预分频器 = 16 是否有任何应用笔记或参考文档解释 FlexIO PWM 时序计算? 非常感谢您能对内部时序方程进行任何解释。 谢谢! Re: S32K396 RTD 5.0.0 FlexIO PWM – How is PWM Period Calculated from the "Period [ticks]" 嗨@Esakki , 1. 你的公式是正确的。 2. 对于周期 = 200 和占空比 = 100 个时钟周期,在双 8 位计数器 PWM 高电平模式 (TIMCTL[TIMOD]) 中: TIMCMP = 0x00006363 高字节 = 0x63 = 99 → 当输出为低电平时递减 低字节 = 0x63 = 99 → 当输出为高电平时递减 3. 是的,当 FLEXIO_PWM_IP_DEV_ERROR_DETECT = STD_ON 时,驱动程序应该阻止向任一字节写入大于 256 的值。 如果禁用此检查,该字段将溢出,这很可能是您所观察到的问题的根本原因。 4. 周期(以刻度为单位)- 工作量(以刻度为单位)≤ 256。 在这种模式下,使用给定的输入时钟无法达到 10 kHz 的频率。你需要增加预分频器的值。 5. 只有参考手册才包含这部分内容。 此致, 丹尼尔 Any support, information, and technology (“Materials”) provided by NXP are provided AS IS, without any warranty express or implied, and NXP disclaims all direct and indirect liability and damages in connection with the Material to the maximum extent permitted by the applicable law. NXP accepts no liability for any assistance with applications or product design. Materials may only be used in connection with NXP products. Any feedback provided to NXP regarding the Materials may be used by NXP without restriction.     Re: S32K396 RTD 5.0.0 FlexIO PWM – How is PWM Period Calculated from the "Period [ticks]" 嗨@Esakki , 您可以直接从驱动程序实现中推导出该方程式——请参阅Flexio_Pwm_Ip_UpdatePeriodDuty (): Flexio_Pwm_Ip_SetLowerValue(Base, Channel, (uint8)(DutyCycle - 1U)); Flexio_Pwm_Ip_SetUpperValue(Base, Channel, (uint8)(Period - DutyCycle - 1U)); 因此,到 TIMCMP 的映射关系为: 低 8 位 = 占空比 - 1 高 8 位 = 周期 - 占空比 - 1 来自Flexio_Pwm_Ip_GetPeriod (): 周期 = 上限 + 下限 + 2 周期 = (占空比 - 1) + (周期 - 占空比 - 1) + 2 f_pwm = Input_FlexIO_CLK(预调用)/ 周期 占空比(%) = 占空比 / 周期 × 100 示例(FLEXIO 时钟 = 160 MHz,预分频器 = 16 → 10 MHz 定时器时钟): 周期 = 200 个时钟周期 -- f_pwm = 10 MHz / 200 = 50 kHz 此致, 丹尼尔   Re: S32K396 RTD 5.0.0 FlexIO PWM – How is PWM Period Calculated from the "Period [ticks]" 你好,丹尼尔, 谢谢你的解释。 关于周期计算,我还有一个后续问题。 根据您的解释,我理解在双8位计数器PWM高电平模式下: TIMCMP[15:8] = 周期 - 工作量 - 1 TIMCMP[7:0] = 值 - 1 并且这两个字段的计数都限制为 256。 请问能否详细说明一下计算输出PWM频率的具体公式? FlexIO 输入时钟频率 预分频器 期间值 例如,如果: FlexIO 时钟频率 = 160 MHz 预分频器 = 256 周期 = 63 个刻度 预期的PWM频率应该是多少? 使用以下公式: PWM频率 = FlexIO时钟 / (预分频器 × 周期) 我预计频率约为 9.92 kHz。 但是,在测量 PWM 输出时,我观察到大约为 3.9 kHz。 同样地,对于: 预分频器 = 16 周期 = 200 我测得的频率约为 20 kHz,这相当于有效 PWM 时钟频率约为 64 MHz,而不是 160 MHz。 请问您能否解释一下: FlexIO PWM 双 8 位模式的精确 PWM 频率方程。 FlexIO PWM 驱动器内部是否应用了任何额外的分频器或定时器缩放。 应该检查哪个运行时寄存器或时钟源来确定 PWM 定时器实际使用的时钟。 感谢您的帮助。 Re: S32K396 RTD 5.0.0 FlexIO PWM – How is PWM Period Calculated from the "Period [ticks]" 你好,丹尼尔, 感谢您提供的详细解释和频率公式。 根据公式: f_pwm = FlexIO_Input_Clock(预分频后)/ 周期 我的配置如下: FlexIO 时钟频率 = 160 MHz 预分频器 = 256 周期 = 63 我预期: f_pwm = 160 MHz / (256 × 63) = 9.92 kHz 然而,用示波器测量时,PWM 频率约为 3.9 kHz。 同样地,对于: 预分频器 = 16 周期 = 200 我测得的频率约为 20 kHz,而如果 FlexIO 时钟频率为 160 MHz,则公式预测的频率为 50 kHz。 请问您能否提供以下建议: FlexIO PWM 驱动器使用的时钟源是否与配置的 FLEXIO0_CLK 不同? 内部是否应用了额外的分频器或时钟频率缩放? 验证 FlexIO PWM 定时器实际运行时时钟频率的推荐方法是什么? 我想了解为什么测得的 PWM 频率与使用配置的 160 MHz FlexIO 时钟计算出的频率不匹配。 感谢您的支持。 问候, 埃萨基 Re: S32K396 RTD 5.0.0 FlexIO PWM – How is PWM Period Calculated from the "Period [ticks]" 嗨@Esakki , 我无法重现这个问题。 f_timer = 160 MHz / 256 = 625 kHz T_pwm = 周期 / f_timer = 200 / 625000 = 320 微秒 税率 = 100 / 200 = 50% T_pwm = 周期 / f_timer = 63 / 625000 ≈ 100.8 微秒   税率 = 10 / 63 ≈ 15.87% 我用 Flexio_Pwm_Ip_Example_DS RTD 示例进行了测试。 Flexio_Pwm_Ip_UpdatePeriodDuty(INSTANCE_0, FLEXIO_PWM_IP_CHANNEL_1, 63U, 10U); 请创建一个简单的测试项目来重现这个问题,并在这里分享,以便我进行测试。 根据你分享的结果来看,你设置中的 FlexIO 输入时钟频率似乎是 64 MHz。 您可以使用 CLKOUT 输出系统时钟。 BR,丹尼尔
View full article
S32K344 的接收中断无法工作 您好,     我目前正在研究 S32K344 的 UART。我们使用该芯片的UART0/UART1/UART8,每个UART都连接到一个RS485芯片,并将A/B引脚引出至外部电路。我将UART1的RS485接口的A引脚连接到UART8的RS485接口的A引脚,并将UART1的RS485接口的B引脚连接到UART8的RS485接口的B引脚。 我将UART1 RS485的DE/RE设置为1,将UART8 RS485的DE/RE设置为0。我尝试将数据从 UART1 发送至 UART8,并在示波器上观察到 LPUART1_TX 和 LPUART8_RX 信号线上有波形。这意味着,数据已从UART1发送至UART8。但 UART8 中没有 rx 中断,因此 uart8 的 rx 处理程序无法运行。在调试过程中,我可以看到 UART8 CTRL 的 RE=1/RIE=1,但 STAT 的 RDRF=0。我将发送端口切换为UART8,接收端口切换为UART1,但现象依然如故。您能帮忙查一下问题出在哪里吗?我将该项目附上。谢谢。 通信& 控制(I3C | I2C | SPI | FlexCAN | 以太网 | FlexIO) S32K344's rx interrupt can't work 嗨,胡利安, 谢谢您的答复。是的,其他中断,例如 CAN、PIT 都没有问题。现在我已将回调函数中的所有代码注释掉(这意味着发送和接收中断都不会在回调中执行接收函数),但代码仍然无法脱离检查接收器状态的循环,也无法使 RDRF 标志被设置(参见 interrupt.png 中的红色矩形)。我没有使用 Rx FIFO,因此,当接收到数据时,RDRF 应该变为 1。但事实并非如此。我通过UART1发送字符'R'(ASCII=0x01010010)和'Q'(ASCII=0x01010001),并测量了UART1的TXD和UART8的RXD,波形看起来是正确的。还有其他可能导致此问题的原因吗? 我同时附上了我的 SDK 版本。 Re: S32K344's rx interrupt can't work 嗨,@Jimmybai, 我想其他中断应该都能正常工作吧?(PIT、CAN 等)。你是否在回调函数中设置了断点,以确认中断是否触发?  从你的代码中我可以看出你同时使用了 LPUART_UART_IP_SyncreCeive & LPUART_UART_IP_Asyncreceiv e lpuart_UART_IP_ Asyncreceive。SyncreCeive 使用轮询,而 AsyncreCeive 功能则支持接收并立即退出功能。应用程序必须获得接收状态才能知道何时完成接收。接收完成后(已定义的接收字节数), 您需要再次调用 AsyncreCeive 以开始 新的接收。 不过,在回调函数内部,不要再次调用 AsyncReceive,而应使用 Lpuart_Uart_Ip_SyncReceive 函数进行阻塞式接收。你永远不会重新布防 UART 的接收。 我们社区里有一些例子,你可以参考一下:  [RTD600 IP] S32K312-EVB Lpuart 中断回显 - NXP 社区 示例 S32K344 LPUART 接收/发送中断处理程序 FreeRTOS S32DS36 RTD600 - NXP 社区 致以最诚挚的问候, Julián Re: S32K344's rx interrupt can't work 我不知道为什么我的附件不见了。将其重新安装。 S32K344's LPUART rx interrupt can't work 嗨,朱利安, 我找到了根本原因。下面的代码中,异步接收代码应该放在异步发送代码之前。因为UART传输速度非常快,发送完成后,数据就已经发送到接收总线了。此时,当您开始接收器接收程序时,总线上的数据信号已经消失。所以,我们需要启用接收器,当数据信号到来时,接收器才能工作。我们只需要检查接收器的接收中断信号即可。感谢您帮忙分析我的代码。
View full article
在 KW47 中导入加密密钥 您好, 我想提前创建一个 blob,在刷新期间将blob与应用程序一起写入NVM区域,然后使用存储的密钥进行加密操作。 仅靠这些步骤就能实现吗?在 KW47 中使用 KEY_STORE_SET_KEY 设置密钥,创建一个将 KEY_STORE_EXPORT_KEY 设置为"ELE 的 blob 到 ELE blob" ,将该 blob 写入另一个 KW47 NVM,然后导入一个将 KEY_STORE_IMPORT_KEY 设置为"ELE 的 blob 到 ELE blob" 。 如果你做不到,请告诉我怎么做,我将不胜感激。   此外,是否有办法使用工具或类似方法创建 Blob? 我以为下面的方法也行得通,但似乎不支持 KW47: " nxpimage signed-msg tlv export"   如果有其他好办法,请告诉我。   致以最诚挚的问候, Katsuya Re: Importing encryption keys in KW47 你好, 希望你一切都好。 在 KW47 上,密钥块可以存储在主机 NVM 中,之后可以导入到 EdgeLock Enclave (ELE) 中进行加密操作。标准导出的数据块使用设备的唯一芯片密钥进行加密,因此它是设备特定的,不能在多个设备之间重复使用。 每个设备的标准工作流程如下:使用 KEY_STORE_INIT 初始化密钥库,使用 KEY_OBJECT_INIT 创建密钥对象,并使用 KEY_OBJECT_ALLOCATE_handle 分配空间。使用 KEY_STORE_GENERATE_KEY 在 ELE 中生成密钥,并使用 KEY_STORE_EXPORT_KEY 导出密钥,然后将生成的 blob 存储在应用程序 NVM 或闪存中。启动时,重新创建或初始化目标键对象,并使用 KEY_STORE_IMPORT_KEY 导入 blob。导入后,密钥对象中的关键数据、类型和属性将被恢复,从而可以将其用于允许的加密操作。 有关更多详细信息,请参阅KW47 网络安全参考手册,特别是第 10.4 章(ELE 到 ELE 安全区密钥交换)和第 10.3.3 章(ELE 到 ELE 导入/导出),其中包含可能有所帮助的其他信息。 此致, 安娜·索菲亚。
View full article