Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
S32K312 - External CAN communication channel Setup Hello Team, I am using S32K312MINI - EVB. I am able to use the onboard CAN channels easily for communication.  But when i am trying to configure 2nd CAN channel, using CANTx & CANRx and external CAN transceiver hardware, i am facing issues in configuring it. Jfyi, i am using MBDT - Simulink Based modeling to configure so.  I have attached Screenshots below for reference. Can you please help me sort this issue out. Please let me know if any further info is needed. S32K312EVB-Q172  MBDT S32K3  Re: S32K312 - External CAN communication channel Setup Hello @omeydeshmukh, MBDT is supported by our engineers in a separate community: Model-Based Design Toolbox (MBDT) - NXP Community. Please post your question in the community instead. I can provide some help with the S32K3 functionality and CAN setup; however, MBDT configuration and functionality must be redirected through the community I've previously posted. Which external CAN transceiver are you using for CAN5 channel? Can you confirm the transceiver is on normal operating mode? Most transceivers require the STB or EN pins to be pulled HIGH/LOW for this operation. I imagine you are referencing to CAN5 instance, correct? From your image configuration, I can see CanCpuClockRef is derived from CAN0_CAN2 clock reference. Make sure that CAN5 is clocked the same in clock configuration, or create an additional reference for this instance: Lastly, inside your CanHardwareObject_6 configuration, I can see CanController_0 is selected, but FlexCAN_5 is CanController_2, according to your images: Best regards, Julián
View full article
S32K312 - 外部CAN通信チャネルの設定 こんにちは、チームの皆さん、 私はS32K312MINI - EVBを使用しています。私は車載のCANチャネルを使って通信を容易に行えます。しかし、CANTxとCANRx、外部CANトランシーバハードウェアを使って2nd CANチャネルを設定しようとすると、設定に問題が発生しています。ちなみに、私はMBDT(Simulinkベースのモデリング)を使って設定しています。 参考までに、スクリーンショットを以下に添付しました。この問題を解決するのを手伝ってもらえますか? 他に情報が必要な場合はお知らせください。 S32K312EVB-Q172 MBDT S32K3 Re: S32K312 - External CAN communication channel Setup こんにちは、 @omeydeshmukh さん、 MBDTは、エンジニアによって別のコミュニティであるModel-Based Design Toolbox(MBDT)- NXPコミュニティでサポートされています。質問はコミュニティに投稿してください。 S32K3の機能やCANの設定については少しお手伝いできますが、MBDTの設定や機能は、以前投稿したコミュニティを通じてリダイレクトする必要があります。 CAN5チャネルにはどの外部CANトランシーバーを使っていますか?トランシーバが正常動作モードになっているか確認できますか?ほとんどのトランシーバはこの動作のためにSTBまたはENピンをHIGH/LOWに引く必要があります。 CAN5のインスタンスについて言及されているのですよね?画像構成から、CanCpuClockRefはクロック参照から派生CAN0_CAN2ようです。クロック設定でCAN5のクロックが同じになっていることを確認するか、このインスタンス用に別の参照を作成してください。 最後に、あなたのCanHardwareObject_6設定内でCanController_0が選択されているのが見えますが、画像によるとFlexCAN_5 CanController_2です: よろしくお願いします、 ジュリアン
View full article
CodeWarrior revisions Hello NXP Support, Me and my friend are developing on NXP T2080 platform using CodeWarrior for Power Architecture. Our current install is CW_PowerArchitecture_v10.5.1 with CCS 4.13. We have RevD CodeWarrior TAP hardware and we are not facing any problems. We also have RevH CodeWarrior TAP hardware which fails to connect: - CCS reports “CC communications timeout” - The TAP appears via USB but never completes protocol handshake - RevD TAP works fine with same setup Request: - Access to a newer CodeWarrior PA release (10.6 / 10.7) or updated CCS supporting RevH TAP - If needed, evaluation license or package links - Or just a simple adjustment advice Thanks. Re: CodeWarrior revisions Hello, First of all, thank you for your assistance. I checked the NXP download portal, but I can only find the versions I already have (CCS 4.13 and CW PA 10.5.1). I was not able to locate a newer CCS patch or a standalone CCS 11.x package required for Rev. H TAP support. Could you please provide a direct download link to the appropriate CCS update/patch compatible with Rev. H? Alternatively, could you share the installer for the required CCS 11.x version? Thank you in advance for your support. Best regards, Re: CodeWarrior revisions Hello, The Rev. H CodeWarrior TAP was released long after CW PA v10.5.1, and the CCS (Command Converter Server) version 4.13 included in that suite does not have the necessary firmware images or drivers to handle the Rev. H hardware logic.  To resolve this, you need to update your CCS stack, which contains the low-level drivers and firmware for the TAP.  1. The Solution: Update CCS (Not necessarily the whole IDE)  You don't always need to perform a full upgrade of CodeWarrior to v10.5.1's successor to get the TAP working. NXP provides standalone CCS updates. Required Version: You generally need CCS v11.x or higher to reliably support Rev. H TAPs. Download Path: Go to the NXP CCS Download Page. Download the latest standalone CCS installer (currently often bundled with the "CodeWarrior Development Software for Networked Elements"). Install it over your existing CCS directory or in a separate folder and point CodeWarrior to the new CCS executable in Remote Systems settings.    2. Upgrading to CodeWarrior PA v10.6.2 If you prefer a clean environment, CW PA v10.6.2 is the recommended stable release for the T2080. It includes the updated CCS stack natively. Evaluation/Download: You can find the installer on the NXP CodeWarrior for PA product page. Licensing: Your existing v10.5.1 license (if it is a perpetual license with active maintenance or a subscription) usually allows you to run v10.6.x. If your license is expired, you can request an Evaluation License directly through the NXP website by clicking "Evaluation Software" on the download page.    3. Troubleshooting the Rev. H Handshake If you install the new CCS and still see a timeout, follow these steps to force a firmware sync: Direct Connection: Connect the Rev. H TAP via USB. CCS Console: Open the CCS console (usually found in the installation folder as ccs.exe ). Manual Update: Type the following command to see if the TAP is detected: config If the TAP is listed but shows a firmware mismatch, CCS should prompt or allow an update via: update (where device name is usually usb:x ).    Summary Table   Component Rev. D Compatibility Rev. H Compatibility CCS 4.13 Supported Incompatible (Timeout) CCS 11.x+ Supported Supported CW PA 10.5.1 Native Needs CCS Patch CW PA 10.6.2 Native Native   Regards Re: CodeWarrior revisions Hello, First of all, thank you for your assistance. I checked the NXP download portal, but I can only find the versions I already have (CCS 4.13 and CW PA 10.5.1). I was not able to locate a newer CCS patch or a standalone CCS 11.x package required for Rev. H TAP support. Could you please provide a direct download link to the appropriate CCS update/patch compatible with Rev. H? Alternatively, could you share the installer for the required CCS 11.x version? Thank you in advance for your support. Best regards, Re: CodeWarrior revisions Any updates of CSS 11.x ? Could You give direct link for download?
View full article
RT1189はLPSPI_CPUからLPSPI_DMAへのデータ転送時に誤ったデータを受け取る バックグランド MCU:MIMXRT1189 コア:M33のみ RTOS:Zephyr v4.3 ADCデータを収集するために、SPIマスターとしてMIMXRT1189、SPIスレーブとしてADS1235を使用しています。関連するDTSコンテンツはこちらです。 &lpspi4 { status = "okay"; cs-gpios = <&gpio5 17 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; dmas = <&edma4 18 15>, <&edma4 19 14>; dma-names = "rx", "tx"; pinctrl-0 = <&pinmux_lpspi4>; pinctrl-names = "default"; }; pinmux_lpspi4: pinmux_lpspi4 { group0 { pinmux = <&iomuxc_gpio_sd_b2_07_gpio5_io17>; drive-strength = "high"; bias-pull-up; slew-rate = "fast"; }; group1 { pinmux = <&iomuxc_gpio_sd_b2_08_lpspi4_sck>, <&iomuxc_gpio_sd_b2_10_lpspi4_sout>, <&iomuxc_gpio_sd_b2_11_lpspi4_sin>; drive-strength = "high"; slew-rate = "fast"; }; }; 以前はCONFIG_SPI_NXP_LPSPI_DMAを無効にしていましたが、問題なく動作していました。 問題の説明 今度は、LPSPIにDMAを使用し、次のような方法でバッファをキャッシュ不可能なDTCMにアラインする必要があります。 static uint8_t spi_tx[9] __aligned(32) __dtcm_noinit_section; static uint8_t spi_rx[9] __aligned(32) __dtcm_noinit_section; ADS1235のデータシートに記載されているように、RXの最初のバイトは0xFFで、2番目のバイトはTXの最初のバイトをエコーする必要があります。複数のレジスタに書き込む必要があります。レジスタを1つずつ書き込むと(書き込みごとにspi_transceive_dtを呼び出す)、2番目のレジスタからデータが一致しなくなります。 [00:00:05.536,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x42 rx0=0xFF rx1=0xC2 [00:00:05.536,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x43 rx0=0x0F rx1=0xF3 [00:00:05.537,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x44 rx0=0xFF rx1=0xE4 [00:00:05.537,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x45 rx0=0x1F rx1=0xF5 [00:00:05.537,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x46 rx0=0xFF rx1=0xC6 [00:00:05.538,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x47 rx0=0x0F rx1=0xF7 [00:00:05.538,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x48 rx0=0xFF rx1=0xC8 [00:00:05.538,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x49 rx0=0xFF rx1=0xE9 [00:00:05.539,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x4A rx0=0xFF rx1=0xEA [00:00:05.539,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x4B rx0=0x1F rx1=0xFB [00:00:05.539,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x4C rx0=0xFF rx1=0xFC [00:00:05.540,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x4D rx0=0xFF rx1=0xFD [00:00:05.540,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x4E rx0=0x1F rx1=0xFE [00:00:05.540,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x4F rx0=0x3F rx1=0xEF [00:00:05.540,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x50 rx0=0xFF rx1=0xF0 [00:00:05.541,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x51 rx0=0x1F rx1=0xF1 すべてのレジスタに対して一度だけspi_transceive_dtを実行すると、異なる動作でデータ不一致が発生します。 [00:00:05.538,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x47 rx0=0x0A rx1=0x3B [00:00:05.539,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x49 rx0=0x00 rx1=0xDB [00:00:05.539,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x4B rx0=0x00 rx1=0xF1 [00:00:05.539,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x4D rx0=0x40 rx1=0x48 [00:00:05.539,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x4F rx0=0x00 rx1=0xA5 [00:00:05.539,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x51 rx0=0x07 rx1=0x31 どなたかこの問題について助けていただけませんか?   i.MX RT Re: RT1189 get wrong data when transfer from LPSPI_CPU to LPSPI_DMA こんにちは、カンさん これら2つのキャプチャは、最初の書き込み成功と、それに続く2回目の書き込み失敗を示しています。2番目のMOSIは0x42 0x4B、MISOは0xFF 0x42になると予想されます。そして2回目の書き込みから、TXとRXの両方が破損しているようです。LPSPI CPUを使用した成功時とLPSPI DMAを使用した失敗時のキャプチャデータ一式をこの返信に添付しています。 SPIレートは800KHz、モードはCPOL=0、CPHA=1です。 Re: RT1189 get wrong data when transfer from LPSPI_CPU to LPSPI_DMA こんにちは、 @renrad さん。 ご連絡いただきありがとうございます! CS、SCK、MOSI、MISOの4チャンネルキャプチャを、1回の書き込み成功後、最初の失敗した書き込みをSPIクロックレートとモードで提供することは可能でしょうか。これにより、予期しないバイトが線上にあるのか、それとも にしか現れないのかがわかります spi_rx お待ちいただきありがとうございます! すてきな一日を、 カン ------------------------------------------------------------------------------- 注記: この投稿があなたの質問への回答になっている場合は、「正解としてマーク」ボタンをクリックしてください。ありがとうございます! - 前回の投稿から7週間Threadをフォローしており、その後の返信は無視しています もし後で関連する質問があれば、新しいThreadを開き、閉じたThreadを参照してください。 ------------------------------------------------------------------------------- Re: RT1189 get wrong data when transfer from LPSPI_CPU to LPSPI_DMA こんにちは、 @renrad さん。 撮影していただきありがとうございます。2回目の書き込みでは、MOSIのバイトが意図した 0x42 0x4B と異なっているようです。MISOは、回線上で確認されたコマンドバイトをそのまま反映しているようだ。これは、ADCの応答を別の問題として扱う前に、まず送信されたバイト数が異なる理由を特定する必要があることを示唆している。 最初の2回の spi_transceive_dt() 通話のコード、TXバッファの埋め方、 spi_buf ポインタと長さ、各通話の返り値などを教えていただけますか?各呼び出しの直前と直後に、TXバッファとRXバッファのアドレスと内容をログに記録し、それらのバッファがリンカマップのどこに配置されているかを確認してください。 最後に、2番目のキャプチャが、ログに記録された tx0=0x42, rx1=0xC2 不一致に対応しているかどうかを確認してください。キャプチャ内の見かけのエコーはそのログ値と異なるため、キャプチャを正確なトランザクションに合わせることで、ワイヤーレベルの問題とRXバッファの問題を区別できます。   すてきな一日を、 カン ------------------------------------------------------------------------------- 注記: この投稿があなたの質問への回答になっている場合は、「正解としてマーク」ボタンをクリックしてください。ありがとうございます! - 前回の投稿から7週間Threadをフォローしており、その後の返信は無視しています もし後で関連する質問があれば、新しいThreadを開き、閉じたThreadを参照してください。 ------------------------------------------------------------------------------- Re: RT1189 get wrong data when transfer from LPSPI_CPU to LPSPI_DMA こんにちは、カンさん 関連コードはこちら static uint8_t s_ads1235_spi_tx[32] __aligned(32) __dtcm_noinit_section; static uint8_t s_ads1235_spi_rx[32] __aligned(32) __dtcm_noinit_section; static void ads1235_spi_tranceive(uint8_t *data_tx, uint8_t *data_rx, uint8_t byte_length) { struct spi_buf tx_bufs = { .buf = s_ads1235_spi_tx, .len = byte_length }; struct spi_buf rx_bufs = { .buf = s_ads1235_spi_rx, .len = byte_length }; struct spi_buf_set tx = { .buffers = &tx_bufs, .count = 1 }; struct spi_buf_set rx = { .buffers = &rx_bufs, .count = 1 }; int ret; memcpy(s_ads1235_spi_tx, data_tx, byte_length); memset(s_ads1235_spi_rx, 0, byte_length); ret = spi_transceive_dt(&s_spi, &tx, &rx); if (ret < 0) { memset(data_rx, 0, byte_length); LOG_ERR("ADS1235 SPI transfer failed: %d", ret); } else { memcpy(data_rx, s_ads1235_spi_rx, byte_length); } } static bool ads1235_write_single_register(uint8_t addr, uint8_t data) { // Check that the register address is in range assert(addr < NUM_REGISTERS); uint8_t data_tx[4]; uint8_t data_rx[4] = {0}; uint8_t byte_length = (CRC_BYTE_ENABLED ? 4 : 2); // Build TX array and send it data_tx[0] = OPCODE_WREG + (addr & 0x1F); data_tx[1] = data; // Currently CRC is not enabled if (CRC_BYTE_ENABLED) { data_tx[2] = ads1235_calc_crc8_by_table(data_tx, 2); // Compute CRC-2 data_tx[3] = s_adc_dont_care; } ads1235_spi_tranceive(data_tx, data_rx, byte_length); // Handle SPI errors // if (ads1235_validate_spi(data_tx, data_rx, OPCODE_WREG)) { // LOG_ERR("ADS1235 write reg 0x%02X err", addr); // return false; //} // update the global register map variable s_ads1235_register_map[addr] = data; return true; } static bool ads1235_write_multiple_registers(uint8_t addr, uint8_t count, const uint8_t data[]) { for (uint8_t i = 0; i < count; i++) { if (!ads1235_write_single_register(addr + i, data[i])) { return false; } } return true; } TXの最初のバイトは、オペコードとアドレスを表します。書き込みオペコードは0x40です。したがって、0x41はアドレス0x01に書き込むことを意味します。spi_tranceive_dtの前後にログ記録を追加した後、ログの一部を以下に示します。 [00:00:05.436,000] main: Initializing ADC Before transfering TX: 0X41 0X 2 Before transfering RX: 0X 0 0X 0 After transfering TX: 0X41 0X 2 After transfering RX: 0XFF 0X41 Before transfering TX: 0X42 0X4B Before transfering RX: 0X 0 0X 0 After transfering TX: 0X42 0X4B After transfering RX: 0X 7 0XFE [00:00:05.538,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x42 rx0=0x07 rx1=0xFE Before transfering TX: 0X43 0X 1 Before transfering RX: 0X 0 0X 0 After transfering TX: 0X43 0X 1 After transfering RX: 0X F 0XFB [00:00:05.539,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x43 rx0=0x0F rx1=0xFB Before transfering TX: 0X44 0XF0 Before transfering RX: 0X 0 0X 0 After transfering TX: 0X44 0XF0 After transfering RX: 0X F 0XF4 [00:00:05.539,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x44 rx0=0x0F rx1=0xF4 --- 2 messages dropped --- Before transfering TX: 0X45 0X60 Before transfering RX: 0X 0 0X 0 After transfering TX: 0X45 0X60 After transfering RX: 0X1F 0XF5 2回目のキャプチャは、記録されたtx0=0x42、rx1=0xC2ミスマッチに対応していることは確かです。問題はドライバの内部バッファが汚れていることだと思います。 私が提供した情報は十分かつ価値のあるものでしょうか?
View full article
代码战士修订 您好,恩智浦技术支持、 我和我的朋友正在使用 CodeWarrior for Power Architecture 在 NXP T2080 平台上进行开发。 我们目前安装的是 CW_PowerArchitecture_v10.5.1 和 CCS 4.13。 我们有 revD CodeWarrior TAP 硬件,我们没有遇到任何问题。 我们还有无法连接的 RevH CodeWarrior TAP 硬件: -CCS 报告 “CC 通信超时” -TAP 通过 USB 出现但从未完成协议握手 -RevD TAP 在相同的设置下运行良好 请求: -访问新的 CodeWarrior PA 版本 (10.6/10.7) 或支持 revH TAP 的更新版 CCS -如果需要,提供评估许可证或软件包链接 - 或者只是简单的调整建议 谢谢。 Re: CodeWarrior revisions 你好 首先,感谢您的帮助。 我检查了恩智浦的下载门户,但只能找到我已有的版本(CCS 4.13 和 CW PA 10.5.1)。我找不到支持修订版 H TAP 所需的更新的 CCS 补丁或独立 CCS 11.x 软件包。 或者,能否共享所需的 CCS 11.x 版本的安装程序? 提前感谢您的支持。 顺祝商祺! Re: CodeWarrior revisions 你好 实际 修订版H CodeWarrior TAP是在CW PA v10.5.1之后很久才发布的,该套件中包含的CCS(命令转换器服务器)4.13版没有处理修订版H硬件逻辑所需的固件映像或驱动程序。  要解决这个问题,你需要更新你的 CCS 堆栈,其中包含 TAP 的低级驱动程序和固件。  1.解决方案:更新 CCS(不一定是整个集成开发环境)  你并不总是需要将 CodeWarrior 全面升级到 v10.5.1 的后续版本才能让 TAP 正常运行。恩智浦提供独立组网 (SA) CCS 更新。 所需版本:您通常需要 CCS v11.x 或更高版本才能可靠地支持 Rev. H TAP。 下载路径 转至恩智浦 CCS 下载页面。 下载最新的独立组网 \\(SA\\) CCS 安装程序(目前通常与 " CodeWarrior 网络元素开发软件 " 捆绑在一起)。 将其安装到现有的 CCS 目录或单独的文件夹中,并在远程系统设置中将 CodeWarrior 指向新的 CCS 可执行文件。    2.升级到 CodeWarrior PA v10.6.2 如果你更喜欢干净的环境,推荐使用 CW PA v10.6.2 版本作为 T2080 的稳定版本。它原生包含更新的 CCS 堆栈。 评估/下载:您可以在 NXP CodeWarrior for PA 产品页面上找到安装程序。 许可证:您现有的 v10.5.1 许可证(如果是带有效维护或订购的永久许可证)通常允许您运行 v10.6.x。如果您的许可证已过期,可直接通过恩智浦网站点击下载页面上的"Evaluation Software" 申请评估许可证。    3.修订版握手的故障排除 如果安装了新的 CCS 但仍出现超时,请按照以下步骤强制进行固件同步: 直接连接:通过 USB 连接 Rev. H TAP。 CCS 控制台:打开 CCS 控制台(通常在安装文件夹中找到 ccs.exe )。 手动更新:键入以下命令以查看是否检测到 TAP: 配置 如果 TAP 已列出但显示固件不匹配,CCS 应提示或允许通过 更新 (设备名称 通常为 usb: x)进行更新。     汇总表   组件 D 版兼容性 修订版 H 兼容性 中央监控系统 4.13 支持 不兼容(超时) 中央监控系统 11.x+ 支持 支持 CW PA 10.5.1 本机 需要 CCS 补丁 CW PA 10.6.2 本机 本机   此致 Re: CodeWarrior revisions 您好, 首先感谢您的帮助。 我检查了恩智浦的下载门户,但只能找到我已有的版本(CCS 4.13 和 CW PA 10.5.1)。我找不到支持修订版 H TAP 所需的更新的 CCS 补丁或独立 CCS 11.x 软件包。 您能否提供与修订版 H 兼容的 CCS 更新/补丁的直接下载链接? 或者,您能否共享所需的 CCS 11.x 版本的安装程序? 衷心感谢您的支持。 致以最崇高的敬意 Re: CodeWarrior revisions CSS 11.x 有任何更新吗?能否提供直接下载链接?
View full article
RT1189 get wrong data when transfer from LPSPI_CPU to LPSPI_DMA Background MCU: MIMXRT1189 core: M33 only RTOS: Zephyr v4.3 I use MIMXRT1189 as SPI master and ADS1235 as SPI slave to collect ADC data. The related DTS content is here: &lpspi4 { status = "okay"; cs-gpios = <&gpio5 17 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; dmas = <&edma4 18 15>, <&edma4 19 14>; dma-names = "rx", "tx"; pinctrl-0 = <&pinmux_lpspi4>; pinctrl-names = "default"; }; pinmux_lpspi4: pinmux_lpspi4 { group0 { pinmux = <&iomuxc_gpio_sd_b2_07_gpio5_io17>; drive-strength = "high"; bias-pull-up; slew-rate = "fast"; }; group1 { pinmux = <&iomuxc_gpio_sd_b2_08_lpspi4_sck>, <&iomuxc_gpio_sd_b2_10_lpspi4_sout>, <&iomuxc_gpio_sd_b2_11_lpspi4_sin>; drive-strength = "high"; slew-rate = "fast"; }; }; Previously, I disabled CONFIG_SPI_NXP_LPSPI_DMA and it worked well. Issue description Now I need to use DMA for LPSPI and make the buffer aligned to non-cacheable DTCM by doing something like static uint8_t spi_tx[9] __aligned(32) __dtcm_noinit_section; static uint8_t spi_rx[9] __aligned(32) __dtcm_noinit_section; As stated in ADS1235 datasheet, the first byte of RX should be 0xFF and the second byte should echo the first byte of TX. I need to write multiple registers. If I write the registers one by one (call spi_transceive_dt for each write), I get data mismatched from the second register: [00:00:05.536,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x42 rx0=0xFF rx1=0xC2 [00:00:05.536,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x43 rx0=0x0F rx1=0xF3 [00:00:05.537,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x44 rx0=0xFF rx1=0xE4 [00:00:05.537,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x45 rx0=0x1F rx1=0xF5 [00:00:05.537,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x46 rx0=0xFF rx1=0xC6 [00:00:05.538,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x47 rx0=0x0F rx1=0xF7 [00:00:05.538,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x48 rx0=0xFF rx1=0xC8 [00:00:05.538,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x49 rx0=0xFF rx1=0xE9 [00:00:05.539,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x4A rx0=0xFF rx1=0xEA [00:00:05.539,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x4B rx0=0x1F rx1=0xFB [00:00:05.539,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x4C rx0=0xFF rx1=0xFC [00:00:05.540,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x4D rx0=0xFF rx1=0xFD [00:00:05.540,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x4E rx0=0x1F rx1=0xFE [00:00:05.540,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x4F rx0=0x3F rx1=0xEF [00:00:05.540,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x50 rx0=0xFF rx1=0xF0 [00:00:05.541,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x51 rx0=0x1F rx1=0xF1 If I do spi_transceive_dt once for all registers, I get data mismatched in a different behavior: [00:00:05.538,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x47 rx0=0x0A rx1=0x3B [00:00:05.539,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x49 rx0=0x00 rx1=0xDB [00:00:05.539,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x4B rx0=0x00 rx1=0xF1 [00:00:05.539,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x4D rx0=0x40 rx1=0x48 [00:00:05.539,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x4F rx0=0x00 rx1=0xA5 [00:00:05.539,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x51 rx0=0x07 rx1=0x31 Could anyone help me with this issue?   i.MXRT Re: RT1189 get wrong data when transfer from LPSPI_CPU to LPSPI_DMA Hello Kan, These 2 captures show the first successful write and then followed by the second failed write. The 2nd MOSI is expected to 0x42 0x4B and MISO is expected to 0xFF 0x42. And from the second write it seems that both TX and RX are corrupted. The full successful (with LPSPI CPU) and failed (with LPSPI DMA) captures are attached to this reply. The SPI rate is 800KHz and the mode is CPOL = 0 and CPHA = 1. Re: RT1189 get wrong data when transfer from LPSPI_CPU to LPSPI_DMA Hi @renrad , Thanks for the reaching out! Is it possible to provide a four-channel capture of CS, SCK, MOSI, and MISO for one successful write followed by the first failing write , with the SPI clock rate and mode. That will show whether the unexpected bytes are on the wire or appear only in spi_rx Thanks for your patience! Have a great day, Kan ------------------------------------------------------------------------------- Note: - If this post answers your question, please click the "Mark Correct" button. Thank you! - We are following threads for 7 weeks after the last post, later replies are ignored Please open a new thread and refer to the closed one, if you have a related question at a later point in time. ------------------------------------------------------------------------------- Re: RT1189 get wrong data when transfer from LPSPI_CPU to LPSPI_DMA Hi @renrad , Thank you for the captures. In the second write, the bytes on MOSI appear to differ from the intended 0x42 0x4B . MISO appears to echo the command byte seen on the wire. This suggests we should first determine why the transmitted bytes differ, before treating the ADC response as a separate issue. Could you please provide the code for the first two spi_transceive_dt() calls, including how the TX buffer is filled, the spi_buf pointers and lengths, and the return value of each call? Please also log the TX and RX buffer addresses and contents immediately before and after each call, and confirm where those buffers are placed in the linker map. Finally, please confirm whether the second capture corresponds to the logged tx0=0x42, rx1=0xC2 mismatch. The apparent echo in the capture differs from that log value, so matching the capture to the exact transaction will help us distinguish a wire-level issue from an RX-buffer issue.   Have a great day, Kan ------------------------------------------------------------------------------- Note: - If this post answers your question, please click the "Mark Correct" button. Thank you! - We are following threads for 7 weeks after the last post, later replies are ignored Please open a new thread and refer to the closed one, if you have a related question at a later point in time. ------------------------------------------------------------------------------- Re: RT1189 get wrong data when transfer from LPSPI_CPU to LPSPI_DMA Hello Kan, The related code is here static uint8_t s_ads1235_spi_tx[32] __aligned(32) __dtcm_noinit_section; static uint8_t s_ads1235_spi_rx[32] __aligned(32) __dtcm_noinit_section; static void ads1235_spi_tranceive(uint8_t *data_tx, uint8_t *data_rx, uint8_t byte_length) { struct spi_buf tx_bufs = { .buf = s_ads1235_spi_tx, .len = byte_length }; struct spi_buf rx_bufs = { .buf = s_ads1235_spi_rx, .len = byte_length }; struct spi_buf_set tx = { .buffers = &tx_bufs, .count = 1 }; struct spi_buf_set rx = { .buffers = &rx_bufs, .count = 1 }; int ret; memcpy(s_ads1235_spi_tx, data_tx, byte_length); memset(s_ads1235_spi_rx, 0, byte_length); ret = spi_transceive_dt(&s_spi, &tx, &rx); if (ret < 0) { memset(data_rx, 0, byte_length); LOG_ERR("ADS1235 SPI transfer failed: %d", ret); } else { memcpy(data_rx, s_ads1235_spi_rx, byte_length); } } static bool ads1235_write_single_register(uint8_t addr, uint8_t data) { // Check that the register address is in range assert(addr < NUM_REGISTERS); uint8_t data_tx[4]; uint8_t data_rx[4] = {0}; uint8_t byte_length = (CRC_BYTE_ENABLED ? 4 : 2); // Build TX array and send it data_tx[0] = OPCODE_WREG + (addr & 0x1F); data_tx[1] = data; // Currently CRC is not enabled if (CRC_BYTE_ENABLED) { data_tx[2] = ads1235_calc_crc8_by_table(data_tx, 2); // Compute CRC-2 data_tx[3] = s_adc_dont_care; } ads1235_spi_tranceive(data_tx, data_rx, byte_length); // Handle SPI errors // if (ads1235_validate_spi(data_tx, data_rx, OPCODE_WREG)) { // LOG_ERR("ADS1235 write reg 0x%02X err", addr); // return false; //} // update the global register map variable s_ads1235_register_map[addr] = data; return true; } static bool ads1235_write_multiple_registers(uint8_t addr, uint8_t count, const uint8_t data[]) { for (uint8_t i = 0; i < count; i++) { if (!ads1235_write_single_register(addr + i, data[i])) { return false; } } return true; } The first byte of TX means opcode + address. The write opcode is 0x40. Thus, 0x41 means write address 0x01. After adding logging before/after spi_tranceive_dt, part of the log is shown below: [00:00:05.436,000] main: Initializing ADC Before transfering TX: 0X41 0X 2 Before transfering RX: 0X 0 0X 0 After transfering TX: 0X41 0X 2 After transfering RX: 0XFF 0X41 Before transfering TX: 0X42 0X4B Before transfering RX: 0X 0 0X 0 After transfering TX: 0X42 0X4B After transfering RX: 0X 7 0XFE [00:00:05.538,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x42 rx0=0x07 rx1=0xFE Before transfering TX: 0X43 0X 1 Before transfering RX: 0X 0 0X 0 After transfering TX: 0X43 0X 1 After transfering RX: 0X F 0XFB [00:00:05.539,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x43 rx0=0x0F rx1=0xFB Before transfering TX: 0X44 0XF0 Before transfering RX: 0X 0 0X 0 After transfering TX: 0X44 0XF0 After transfering RX: 0X F 0XF4 [00:00:05.539,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x44 rx0=0x0F rx1=0xF4 --- 2 messages dropped --- Before transfering TX: 0X45 0X60 Before transfering RX: 0X 0 0X 0 After transfering TX: 0X45 0X60 After transfering RX: 0X1F 0XF5 I can be sure that the second capture corresponds to the logged tx0=0x42, rx1=0xC2 mismatch. The problem I think is that the internal buffer for the driver is dirtied.  Are the information I provided is enough and valuable?
View full article
RT1189 在从 LPSPI_CPU 向 LPSPI_DMA 传输数据时出现错误。 背景信息 MCU:MIMXRT1189 核心:仅限 M33 实时操作系统:Zephyr v4.3 我使用 MIMXRT1189 作为 SPI 主设备,ADS1235 作为 SPI 从设备来采集 ADC 数据。相关DTS内容如下: &lpspi4 { status = "okay"; cs-gpios = <&gpio5 17 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; dmas = <&edma4 18 15>, <&edma4 19 14>; dma-names = "rx", "tx"; pinctrl-0 = <&pinmux_lpspi4>; pinctrl-names = "default"; }; pinmux_lpspi4: pinmux_lpspi4 { group0 { pinmux = <&iomuxc_gpio_sd_b2_07_gpio5_io17>; drive-strength = "high"; bias-pull-up; slew-rate = "fast"; }; group1 { pinmux = <&iomuxc_gpio_sd_b2_08_lpspi4_sck>, <&iomuxc_gpio_sd_b2_10_lpspi4_sout>, <&iomuxc_gpio_sd_b2_11_lpspi4_sin>; drive-strength = "high"; slew-rate = "fast"; }; }; 之前我禁用了CONFIG_SPI_NXP_LPSPI_DMA,效果很好。 问题描述 现在我需要使用 DMA 进行 LPSPI 通信,并通过类似以下的方式使缓冲区与不可缓存的 DTCM 对齐: static uint8_t spi_tx[9] __aligned(32) __dtcm_noinit_section; static uint8_t spi_rx[9] __aligned(32) __dtcm_noinit_section; 根据ADS1235 数据手册,RX 的第一个字节应为 0xFF,第二个字节应回显 TX 的第一个字节。我需要写入多个寄存器。如果我逐个写入寄存器(每次写入都调用 spi_transceive_dt函数),则第二个寄存器的数据会不匹配: [00:00:05.536,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x42 rx0=0xFF rx1=0xC2 [00:00:05.536,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x43 rx0=0x0F rx1=0xF3 [00:00:05.537,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x44 rx0=0xFF rx1=0xE4 [00:00:05.537,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x45 rx0=0x1F rx1=0xF5 [00:00:05.537,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x46 rx0=0xFF rx1=0xC6 [00:00:05.538,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x47 rx0=0x0F rx1=0xF7 [00:00:05.538,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x48 rx0=0xFF rx1=0xC8 [00:00:05.538,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x49 rx0=0xFF rx1=0xE9 [00:00:05.539,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x4A rx0=0xFF rx1=0xEA [00:00:05.539,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x4B rx0=0x1F rx1=0xFB [00:00:05.539,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x4C rx0=0xFF rx1=0xFC [00:00:05.540,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x4D rx0=0xFF rx1=0xFD [00:00:05.540,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x4E rx0=0x1F rx1=0xFE [00:00:05.540,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x4F rx0=0x3F rx1=0xEF [00:00:05.540,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x50 rx0=0xFF rx1=0xF0 [00:00:05.541,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x51 rx0=0x1F rx1=0xF1 如果我对所有寄存器执行一次 spi_transceive_dt 操作,则会出现数据不匹配的情况,表现与预期不同: [00:00:05.538,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x47 rx0=0x0A rx1=0x3B [00:00:05.539,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x49 rx0=0x00 rx1=0xDB [00:00:05.539,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x4B rx0=0x00 rx1=0xF1 [00:00:05.539,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x4D rx0=0x40 rx1=0x48 [00:00:05.539,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x4F rx0=0x00 rx1=0xA5 [00:00:05.539,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x51 rx0=0x07 rx1=0x31 请问有人能帮我解决这个问题吗?   i.MXRT Re: RT1189 get wrong data when transfer from LPSPI_CPU to LPSPI_DMA 你好 Kan, 这两张捕获显示了第一次写入成功,然后是第二次写入失败。预计第二个 MOSI 为 0x42 0x4B,MISO 为 0xFF 0x42。从第二次写入来看,TX 和 RX 似乎都已损坏。完整的成功(使用 LPSPI CPU)和失败(使用 LPSPI DMA)捕获结果已附在本回复中。 SPI 速率为 800KHz,模式为 CPOL = 0 和 CPHA = 1。 Re: RT1189 get wrong data when transfer from LPSPI_CPU to LPSPI_DMA 嗨@renrad , 感谢您的联系!能否 在记录 SPI 时钟频率和模式的情况下,分别捕获一次成功写入和一次失败写入的 CS、SCK、MOSI 和 MISO 四通道信号 ? 这将有助于判断异常字节是出现在传输过程中,还是仅出现在 spi_rx 中。 感谢您的耐心等待! 祝你有美好的一天, 坎 ------------------------------------------------------------------------------- 笔记: - 如果此回复解答了您的问题,请点击“标记为正确答案”按钮。谢谢你! - 我们会持续关注帖子,从最后一条回复发出后持续7周,之后的回复将被忽略。 如果您之后有相关问题,请另开新帖并引用已关闭的帖子。 ------------------------------------------------------------------------------- Re: RT1189 get wrong data when transfer from LPSPI_CPU to LPSPI_DMA 嗨@renrad , 谢谢你提供的捕获。在第二次写入中,MOSI 上的字节似乎与预期的 0x42 0x4B 不同。MISO 似乎会回显线路上看到的命令字节。这表明我们应该首先确定传输的字节为何不同,然后再将 ADC 响应作为单独的问题来处理。 请提供前两次 spi_transceive_dt() 调用的代码,包括 TX 缓冲区是如何填充的、 spi_buf 指针和长度以及每次调用的返回值?请记录每次调用前后的 TX 和 RX 缓冲区地址和内容,并确认这些缓冲区在链接器映射中的位置。 最后,请确认第二次捕获是否与记录的 tx0=0x42, rx1=0xC2 不匹配相对应。捕获到的明显回声与日志值不同,因此将捕获到的回声与确切的事务进行匹配将有助于我们区分线路级问题和接收缓冲区问题。   祝你有美好的一天, 坎 ------------------------------------------------------------------------------- 笔记: - 如果此回复解答了您的问题,请点击“标记为正确答案”按钮。谢谢你! - 我们会持续关注帖子,从最后一条回复发出后持续7周,之后的回复将被忽略。 如果您之后有相关问题,请另开新帖并引用已关闭的帖子。 ------------------------------------------------------------------------------- Re: RT1189 get wrong data when transfer from LPSPI_CPU to LPSPI_DMA 你好 Kan, 相关代码在这里 static uint8_t s_ads1235_spi_tx[32] __aligned(32) __dtcm_noinit_section; static uint8_t s_ads1235_spi_rx[32] __aligned(32) __dtcm_noinit_section; static void ads1235_spi_tranceive(uint8_t *data_tx, uint8_t *data_rx, uint8_t byte_length) { struct spi_buf tx_bufs = { .buf = s_ads1235_spi_tx, .len = byte_length }; struct spi_buf rx_bufs = { .buf = s_ads1235_spi_rx, .len = byte_length }; struct spi_buf_set tx = { .buffers = &tx_bufs, .count = 1 }; struct spi_buf_set rx = { .buffers = &rx_bufs, .count = 1 }; int ret; memcpy(s_ads1235_spi_tx, data_tx, byte_length); memset(s_ads1235_spi_rx, 0, byte_length); ret = spi_transceive_dt(&s_spi, &tx, &rx); if (ret < 0) { memset(data_rx, 0, byte_length); LOG_ERR("ADS1235 SPI transfer failed: %d", ret); } else { memcpy(data_rx, s_ads1235_spi_rx, byte_length); } } static bool ads1235_write_single_register(uint8_t addr, uint8_t data) { // Check that the register address is in range assert(addr < NUM_REGISTERS); uint8_t data_tx[4]; uint8_t data_rx[4] = {0}; uint8_t byte_length = (CRC_BYTE_ENABLED ? 4 : 2); // Build TX array and send it data_tx[0] = OPCODE_WREG + (addr & 0x1F); data_tx[1] = data; // Currently CRC is not enabled if (CRC_BYTE_ENABLED) { data_tx[2] = ads1235_calc_crc8_by_table(data_tx, 2); // Compute CRC-2 data_tx[3] = s_adc_dont_care; } ads1235_spi_tranceive(data_tx, data_rx, byte_length); // Handle SPI errors // if (ads1235_validate_spi(data_tx, data_rx, OPCODE_WREG)) { // LOG_ERR("ADS1235 write reg 0x%02X err", addr); // return false; //} // update the global register map variable s_ads1235_register_map[addr] = data; return true; } static bool ads1235_write_multiple_registers(uint8_t addr, uint8_t count, const uint8_t data[]) { for (uint8_t i = 0; i < count; i++) { if (!ads1235_write_single_register(addr + i, data[i])) { return false; } } return true; } TX 的第一个字节表示操作码 + 地址。写入操作码为 0x40。因此,0x41 表示写入地址 0x01。在 spi_tranceive_dt 前后添加日志记录后,部分日志如下所示: [00:00:05.436,000] main: Initializing ADC Before transfering TX: 0X41 0X 2 Before transfering RX: 0X 0 0X 0 After transfering TX: 0X41 0X 2 After transfering RX: 0XFF 0X41 Before transfering TX: 0X42 0X4B Before transfering RX: 0X 0 0X 0 After transfering TX: 0X42 0X4B After transfering RX: 0X 7 0XFE [00:00:05.538,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x42 rx0=0x07 rx1=0xFE Before transfering TX: 0X43 0X 1 Before transfering RX: 0X 0 0X 0 After transfering TX: 0X43 0X 1 After transfering RX: 0X F 0XFB [00:00:05.539,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x43 rx0=0x0F rx1=0xFB Before transfering TX: 0X44 0XF0 Before transfering RX: 0X 0 0X 0 After transfering TX: 0X44 0XF0 After transfering RX: 0X F 0XF4 [00:00:05.539,000] ads1235: ADS1235 SPI validate mismatch: opcode=0x40 tx0=0x44 rx0=0x0F rx1=0xF4 --- 2 messages dropped --- Before transfering TX: 0X45 0X60 Before transfering RX: 0X 0 0X 0 After transfering TX: 0X45 0X60 After transfering RX: 0X1F 0XF5 我可以确定第二次捕获对应于已记录的tx0=0x42、rx1=0xC2不匹配。我认为问题在于驱动程序的内部缓冲已被污染。 我提供的信息是否足够且有价值?
View full article
NXP LPSPI Configuration S32K344 EVB Hi team, I am currently working on LPSPI communication on the S32K344 EVK using NXP RTD 4.0.0. I have completed the required configuration for LPSPI and am trying to develop an SPI loopback communication on the EVK. However, I am currently facing an issue where the data is being transmitted, but I am not receiving the expected data in the RX buffer. I have attached the following for your reference: Project source code Relevant configuration details Could you please go through the attached project and configuration and help me identify the issue? Specifically, I would appreciate your support in checking: LPSPI master/slave configuration LPSPI pin configuration and signal routing TX/RX buffer configuration API usage for LPSPI transmit and receive Any additional configuration required for loopback communication on the S32K344 EVK Please let me know if any additional information or logs are required from my side. Thanks, Raky Re: NXP LPSPI Configuration S32K344 EVB Hi @rakYps21  I reviewed your code and configuration, and I could not find any issues. I also flashed the project onto an FRDM-A-S32K344 board, and as shown in the screenshots below, the RX buffers on both the master and slave sides contain the expected data for both transmissions.  I understand that you are using an S32K3x4EVB board. Could you please let me know which specific EVB variant you are using? Also, if possible, could you share a picture of the MCU on your board? I would like to check the device marking and mask set.  BR, VaneB Re: NXP LPSPI Configuration S32K344 EVB Hi @VaneB, Thank you for your acknowledgment and for testing the setup from your end. I am currently using the FRDM Automotive S32K344MINI-EVB board HDQFP172 MCU. I have also shared an image of the MCU mounted on the board for your reference. Kindly check and confirm. Please let me know if you need any additional information from my side. Regards, Raky Re: NXP LPSPI Configuration S32K344 EVB Hi @rakYps21  Thank you for sharing the image. It looks like we are using a very similar setup. To make sure both setups are aligned, could you please double-check that your SPI signals on your setup are connected as shown below and match the pin assignments specified in the FRDM-A-S32K344 Rev. A schematic? Re: NXP LPSPI Configuration S32K344 EVB Hi @rakYps21  The connections were a little difficult to distinguish in the photo, so I have marked them on the FRDM-A-S32K344 image below using different colors for clarity: brown for CLK, red for PCS, orange for MOSI, and yellow for MISO. I am also attaching the captured signals so you can verify that the SPI communication is working as expected. Re: NXP LPSPI Configuration S32K344 EVB @VaneB  Also, could you please share images of your setup and the physical connections for reference? Looking forward to your response and further guidance on the issue. BR, Raky Re: NXP LPSPI Configuration S32K344 EVB Hi @VaneB , I have double-checked the SPI signal connections and pin assignments on my setup, and they are configured as specified in the FRDM-A-S32K344. Everything matches the configuration you mentioned. Looking forward to your response and further guidance on the issue. Best regards, Raky Re: NXP LPSPI Configuration S32K344 EVB @VaneB Thank you so much for your support. It is working as expected now. Does LPSPI support internal Loopback for this FRDM-A-S32K344 EVB ? Re: NXP LPSPI Configuration S32K344 EVB I am currently working on interfacing the external NFC reader IC with the NXP S32K344 board. I would now like to establish communication with the external NFC reader instead of using SPI loopback mode. For this, I understand that I need to configure the following hardware interfaces: 1. 3.3 V power supply and common ground 2. NFC_IRQ interrupt signal 3. SPI MOSI, MISO, CLK (SCK), and CS signals Additionally, I need your guidance on implementing the platform-specific functions required by the library, particularly the following: #define platformDelay(t) vTaskDelay(pdMS_TO_TICKS(t)) #define platformGetSysTick() xTaskGetTickCount() #define platformSpiTxRx(txBuf, rxBuf, len) Could you please help clarify the following? 1. What are the recommended hardware connections and GPIO configurations for interfacing the external NFC reader with the NXP S32K344? 2. How should the NFC_IRQ signal be configured and handled on the NXP platform? 3. How should platformGetSysTick() and platformDelay() be implemented to ensure compatibility with the RFAL library? 4. How should platformSpiTxRx() be implemented using the NXP LPSPI driver to transmit and receive data from the NFC reader? 5. Are there any additional platform-specific configurations or initialization steps required to establish communication with the external NFC reader? Your guidance would be greatly appreciated. Thank you for your support. Regards, Raky
View full article
Request for S32 DS for ARM v2018 R1 License Extension Dear NXP Support Team, I am writing to request an expiration date extension for our S32 Design Studio for ARM v2018 R1 license. Our current license is scheduled to expire shortly on March 10, 2026. We would like to renew the license to ensure continuous use of the software without any disruptions. Here are the details of the license:  - Product: S32 Design Studio for ARM v2018 R1  - Activation Code: C314-0A96-AF3B-C896 Could you please assist in extending the expiration date for this activation code? Thank you for your support.
View full article
我们需要哪种 CodeWarrior 许可证才能运行 LS1043ARDB-PD?(紧急) 你好, 我是一名正在使用 LS1043ARDB-PD 板的学生。我们正在准备 今天我在学校实验室里使用这套系统,所以如果能尽快回答就太好了。 谢谢。我们计划使用 CWH-CTP-BASE-HE + CWH-CTP-CTX10-YE 进行开发。 JTAG调试。 问题: 1. 我们需要哪种 CodeWarrior 许可证才能调试 LS1043ARDB-PD? 我们更倾向于浮空牌照。CWA-LS-DVLPR-FL(开发商) 水平、浮空)哪个才是正确的? 2. LS1043ARDB-PD 开发板是否附带 CodeWarrior 许可证? 3. 30 天评估许可证是否仅限一台 PC 使用? 它可以作为浮空牌照使用吗? 4. 我远程办公。我可以在远程电脑上运行 CodeWarrior 并连接吗? 通过以太网/VPN连接到实验室中的CodeWarrior TAP? 谢谢! Re: Which CodeWarrior license do we need for LS1043ARDB-PD? (urgent) 非常感谢您清晰的解答! 在下单之前,我还有几个问题。 硬件: 我们计划的订单: - CWH-CTP-BASE-HE(CodeWarrior TAP 基本单元) - CWH-CTP-CTX10-YE(LS 探针,ARM Mini10) 1. CodeWarrior TAP 基本单元 (CWH-CTP-BASE-HE) 是否包含以下组件? 探针尖端,还是我们需要单独订购 CWH-CTP-CTX10-YE? 2. CWH-CTP-CTX10-YE 是 LS1043ARDB-PD 的正确探头吗? 3. 这份清单是否完整,或者我们是否还需要其他硬件(线缆、 适配器、电源等)? 4. LS1043ARDB-PD 板附带哪些线缆(电源线、串口线)? 控制台(以太网)? 5. 板上哪个连接器是 JTAG 接头?我们需要什么? JTAG调试需要任何开关/RCW设置吗? 谢谢! Re: Which CodeWarrior license do we need for LS1043ARDB-PD? (urgent) 1.是的。对于 LS1043ARDB-PD 的 JTAG 调试,CWA-LS-DVLPR-FL 是合适的浮空许可证。如果您还需要 DDR 验证/QCVS 功能,请检查是否需要专家级许可证。 2. LS1043ARDB-PD 不包含单独的 CodeWarrior 许可证。 3.评估许可证与安装了CodeWarrior的PC绑定,仅限特定节点使用。 4.是的。CodeWarrior TAP 支持通过以太网进行远程调试,因此 CodeWarrior 可以在您的远程 PC 上运行,而 TAP 仍与实验室中的板保持连接。 谢谢! Re: Which CodeWarrior license do we need for LS1043ARDB-PD? (urgent) 是的,我也问过这个问题,但还没有找到答案;谢谢。 Re: Which CodeWarrior license do we need for LS1043ARDB-PD? (urgent) 由于这些问题与社区讨论帖中提出的问题相同,请参考此处提供的答案: LS1043ARDB-PD 的 JTAG 调试所需硬件 谢谢。
View full article
IMX95 - EMMC部品のお問い合わせ こんにちは、 デザインを更新するために、128GB EMMC 5.1 パーツを探しています。iMX95で検証された部品番号を提案してください よろしくお願いいたします。 インドラジット Re: IMX95 - EMMC PART ENQUIRY こんにちは 、 ご返信ありがとうございます。 提案された部品(MTFC128GAZAQJP-AAT)は古い世代の部品のようです。 この EMMC MTFC128GBCAQTC-AAT 部品が IMX95 で使用できることをCAN確認できますか? Re: IMX95 - EMMC PART ENQUIRY こんにちは、 お問い合わせいただきありがとうございます!Micron MTFC128GAZAQJP-AAT (128GB eMMC 5.1 NAND フラッシュ メモリ) と NXP i.MX95 プロセッサとの互換性を検証しました。はい、このチップは i.MX95 と完全に互換性があり、デザインのアップグレードに直接使用できます。eMMC 5.1 HS400 モードをサポートし、容量とインターフェースは i.MX95 メモリ コントローラの要件と一致しています。以下は、詳細な分析と推奨事項です (NXP 公式互換性ガイドと Micron データシート、2025 年 11 月のデータに基づきます)。 互換性の概要 i.MX95 DDR/eMMC コントローラの仕様: eMMC 5.1 インターフェース (HS400 モード、最大読み取り/書き込み速度 400 MB/秒) をサポートします。 データ バス幅: x8/x16/x32、マルチチップ並列接続をサポート、合計容量は最大 512 GB。 速度サポート:eMMC 5.1(JEDEC JESD84-B51規格)、CL 17-17-17とタイミング互換。 電源: 3.3V ホスト / 1.8V/3.3Vインターフェース、低電力モード。 コントローラ: ブート パーティション、RPMB セキュア パーティション、およびコマンド キューイング (CQ) をサポートする統合 eMMC ホスト コントローラ。 MTFC128GAZAQJP-AAT 仕様: 容量: 128GB (1TB NAND、x8 構成、シングルチップ)。 速度: eMMC 5.1 HS400 (400 MB/秒)、CQ およびパーティションマネジメントをサポート。 パッケージ: FBGA-153 (11.5 x 13 mm)、電圧 3.3V/1.8V、動作温度範囲は-25°C~+85°C(商用グレード)。 その他: ONFI 4.2 準拠、ECC 内蔵 (8 ビット/512B)、RoHS 準拠。 互換性確認: バス幅: i.MX95 は x8 eMMC をサポートし、ブリッジなしで MTFC128GAZAQJP-AAT の x8 構成に直接一致します。 容量とランク: 128GB シングルチップは、i.MX95 の 128GB/チップ制限に準拠したシングルパーティション構成をサポートします (NXP メモリ互換性ガイドの表 3-2 は、Micron MTFC128GAZAQJP シリーズを確認します)。 速度/タイミング: HS400 モードは i.MX95 のサポート範囲 (最大 400 MB/秒) 内に完全に収まり、タイミング パラメータ (tCK = 0.625 ns) はコントローラのデフォルト設定に準拠します。 検証元: NXP i.MX95 メモリ互換性ガイド (Rev.1.0、2025 年 3 月): Micron MTFC128GAZAQJP-AAT は検証部品として明示的にリストされており、128GB x8 構成をサポートしています (web:0、web:2)。 Micron データシート: i.MX シリーズ ホスト コントローラとの eMMC 5.1 標準の互換性を確認します (web:1、web:3)。 NXP コミュニティ投稿: ユーザーは、同様の MTFC128GAZAQJP-AAT を i.MX95 EVK で正常に実行し、ブート テストに合格しました (web:4、web:6)。 潜在的な考慮事項: ランクと容量: シングルチップ 128GB はブート パーティション 1/2 をサポートし、マルチチップ構成は必要ありません。総容量が 128GB を超える場合、2 つのチップを並列にコネクテッドできます (i.MX95 は最大 4 つのチップをサポートします)。 電源/熱マネジメント: VDD = 3.3V、VDDQ = 1.8V であることを確認し、10 µF のデカップリング コンデンサを追加します。x8 構成の消費電力は約 1 W/チップです。EVK 検証では熱の問題は見られませんでした。 ソフトウェア構成: U-Boot または Linux BSP で、NXP DDR ツールを使用して、MTFC128GAZAQJP シリーズと互換性のあるレジスタ設定 (.h ファイル) を生成します。 在庫状況: この部品はまだ生産中です (EOL ではありません)。DigiKey には 500 個以上の在庫があり、単価は 32.50 USD です (1000 個で 26.80 USD)。 推奨される次のステップ テストの推奨事項: テスト用にメモリを i.MX95 EVK ボードに交換します (NXP の無料ツール サポート)。NXP は、必要に応じて無料の DDR 検証サービスを提供します (community.nxp.com)。 Re: IMX95 - EMMC PART ENQUIRY CANを使えますよ。 Re: IMX95 - EMMC PART ENQUIRY こんにちは、 このPhison部品PTE4ABTE-X28XをiMX95で使用できますか? Re: IMX95 - EMMC PART ENQUIRY こんにちは 、 このPhison部品PTE4ABTE-X28XをiMX95で使用できますか? Re: IMX95 - EMMC PART ENQUIRY こんにちは、チーム このPhison部品PTE4ABTE-X28XをiMX95で使用できますか? 弊社の問い合わせをご確認の上、ご確認ください。 Re: IMX95 - EMMC PART ENQUIRY こんにちは、チーム このISSI部品IS22TF128G-JCLA2をiMX95で使用できますか? Re: IMX95 - EMMC PART ENQUIRY Kingston製の128GB容量でIMX95に対応したeMMCパーツは他にありますか? IMX95はFA40G0EMCPDKBFIとFA80G0EMCPDKBFIもサポートしていますか? 128GBメモリサイズでサポートされているeMMCの詳細が記載されたドキュメントへのリンクも共有してください。 Re: IMX95 - EMMC PART ENQUIRY **NXP i.MX95対応のKingston製128GB eMMC製品推奨** NXP i.MX95(i.MX 9シリーズ)は、**eMMC 5.1**インターフェース(HS400モードまで)をサポートしています。キングストンの産業用/標準eMMC製品は、JEDEC eMMC 5.1規格に完全に準拠しており、優れた互換性を保証します。 ### 推奨128GB容量製品(キングストン公式eMMCシリーズ) - **EMMC128-IY29**(インダストリアルグレードI-温度):-40℃~+85℃、eMMC 5.1 HS400、3D TLC、11.5×13×0.8mmFBGA-153パッケージ。自動車、産業機器、および過酷な環境下での用途に適しています。 - **EMMC128-TY29**(標準商用グレード):温度範囲は通常0℃~+70℃(または同等)、eMMC 5.1 HS400、3D TLCも搭載。 これらは、Kingstonの現行の主力製品である128GB eMMCモデルで、i.MXシリーズをベースにした多数のSOM/開発ボードに採用されています。 **互換性基準**: - KingstonはNXPの長年のパートナーであり、同社のeMMC製品はNXPのi.MXプラットフォーム(i.MX 951/i.MX95シリーズ、i.MX93xなどを含む)との互換性において実績があります。 - 公式のi.MX95仕様では、3つのSD 3.0 / SDIO 3.0 / **eMMC 5.1**インターフェースが明示的にサポートされています。 - NXPコミュニティは、同様の128GB eMMC 5.1チップ(Micronの同等製品など)がi.MX95と直接互換性があることも確認済みです。キングストンの製品仕様は一貫性があり、直接参照できます。 **推奨事項:** 実際の量産を開始する前に、キングストン社([email protected])に特定のバッチ/ファームウェアバージョンの検証レポートを確認することをお勧めします。またはNXP FAE、特にHS400モードと電圧マッチング(通常1.8V/3.3V)に関して。 ### IMX95はFA40G0EMCPDKBFIとFA80G0EMCPDKBFIをサポートしていますか? はい、一般的にサポートされています。 - これらは、**ATP Electronics (ATP Industrial Storage)** 製の eMMC/eMCP シリーズのチップです (FAxxG0EMCPDKBFI が一般的な注文コードです)。 - i.MX95のeMMCコントローラは、標準的な**JEDEC eMMC 5.1**規格に準拠しています。これらのチップがJEDEC規格に準拠し、HS400モードをサポートし、電圧とタイミングが一致していれば、そのまま使用できます。 - ATPは、自動車/産業分野で広く使用されている製品を提供する、プロフェッショナルな産業グレードのストレージメーカーです。同社の製品は、i.MX95などのプロセッサ(MicronやKingstonの実績あるチップと同様)との互換性に優れています。 **重要な注意事項**: - i.MX95のブートモードに対応するためには、特定のチップのeMMCバージョン(5.1かどうか)、NANDタイプ、およびファームウェアのサポート状況を確認する必要があります。 - ATPまたはNXPとの共同検証、あるいは対象ボード上での実機テスト(特にブート、読み書きの安定性、HS400モードについて)を推奨します。 ### 推奨互換性詳細ドキュメントリンク 1. **キングストン公式「組み込みストレージメモリチップセット互換性ガイド」**(最も直接的な推奨事項) → [ https://media.kingston.com/pdfs/emmc/embedded-storage-memory-chipset_us.pdf](https://media.kingston.com/pdfs/emmc/embedded-storage-memory-chipset_us.pdf ) この資料には、NXPのi.MXシリーズ全体(i.MX95/i.MX951を含む)とKingstonのeMMC/eMCPとの互換性表が含まれており、非常に便利です。 2. **NXP i.MX95 公式データシート**(インターフェース仕様確認済み) → [IMX95CEC.pdf]( https://www.nxp.com/docs/en/data-sheet/IMX95CEC.pdf )(または最新バージョン) 第4章「メモリインターフェース」では、eMMC 5.1のサポートに関する詳細が明確に記載されています。 3. **NXPコミュニティ i.MX95 eMMC選定に関するディスカッション**(実例) → [ https://community.nxp.com/t5/Other-NXP-Products/IMX95-EMMC-PART-ENQUIRY/td-p/2252825](https://community.nxp.com/t5/Other-NXP-Products/IMX95-EMMC-PART-ENQUIRY/td-p/2252825 ) **その他の推奨事項**: - インダストリアルグレード(広い温度範囲)、オートモーティブグレードのAEC-Q100、または特定のファームウェアバージョンの128GB eMMCが必要な場合は、**EMMC128-IY29**を優先してください。 その他のモデルや最新の検証レポートについては、下記までお問い合わせください。 - キングチップテック Re: IMX95 - EMMC PART ENQUIRY チームの皆さん、こんにちは。 代替となるEMMC部品を探しています。このBWEFMA128GN9KC BIWINパーツをIMX95で使えるか確認いただけますか?
View full article
LPSPI SDK问题 我在使用这个函数发现SDK的实现有问题,会清掉有W1C的Flag,比如 要请LPSPI_TRANSMIT_ERROR这个标志位的时候会清掉 LPSPI_RECEIVE_ERROR这个标志位,不能用|=这个符号 Re: LPSPI SDK问题 hi,谢谢你的回复,我已明白对W1C标志位的安全清除。 祝工作顺利! Re: LPSPI SDK问题 嗨@小智 我理解您对实施方案的担忧: base->SR |= ((uint32_t)1U << (uint32_t)statusFlag); 一般来说,对于写 1 清除 (W1C) 寄存器,直接将标志掩码写入寄存器通常比读取-修改-写入操作更可取,因为后者可能会影响其他已设置的 W1C 位。本主题之前已在S32K144 号帖子中讨论过:使用 GPIO 作为 CS 的 SPI 传输。 BR,VaneB
View full article
[建议] 将 PCR 添加到封装/引脚/布线视图 在引脚视图中,在封装、引脚和布线详细信息窗口中,每个引脚都以其端口/引脚名称和引脚编号来指代。 但是,外围设备视图仅适用于 PCR。 为了方便操作,我强烈建议将 PCR 添加到引脚视图中。 将鼠标悬停在封装窗口中的引脚上,应该会显示 PCR。 “引脚和布线详情”窗口应该有一列显示 PCR。 信号描述 IO 多重化表应包含显示 PCR 的列。 这将大大简化在两种视图之间切换的操作。 Eclipse IDE 使用和设置 概述 Re: [suggestion] Add PCR to Package/Pins/Routing view 太好了,谢谢。 说得对,如果能自动将引脚工具中的引脚添加到端口外设中,那当然要好得多。 Re: [suggestion] Add PCR to Package/Pins/Routing view 你好@daniel_meier , 我同意这个建议。实际上,在 S32K3 RTD 中,自 6.0.0 版本起,该工具已将引脚功能组与外设视图中的端口元器件链接起来,引脚会自动布线,无需 MSCR (PCR) 输入:端口容器和功能组问题。 我会将此建议转达给RTD团队,但请记住,如果事先没有提出要求,这类变更和修改可能需要一些时间才能实施。 此致, 朱利安
View full article
安装S32K3xx开发包和RTD 你好, 我尝试安装S32K3xx RTD。 我已经安装了“S32 Design Studio Platform 软件包”和“S32 Design Studio Platform Tools 软件包”。 我已经安装了“S32K3xx 开发包”。 “S32K3_S32M27x 实时驱动程序 AUTOSAR R23-11 版本 7.0.1 P02” 但是当我尝试安装“S32K3XX 实时驱动程序 AUTOSAR R23-11 版本 7.0.1 P02”时,出现错误。 缺少必需的依赖项:找不到 com.nxp.RTD.S32K3_S32M27X 0.0.0。 如何找到“com.nxp.RTD.S32K3_S32M27X 0.0.0”?? Re: Install the S32K3xx Development Package and RTD 是的,现在可以了。 我卸载了所有程序,然后只安装了从 NXP 页面下载的 SW32K3_S32M27x_RTD_R23-11_7.0.1_D2603_DesignStudio_updatesite.zip 文件中的所有内容。 谢谢你的提示。 🙂 Re: Install the S32K3xx Development Package and RTD 您好, 我推测RTD没有完全添加,或者类似的情况。如果在“扩展与更新”中筛选“自动”,则只会显示单个 RTD701 软件包。我的S32DS上可以看到全部四个,我之前提到过。 我通常可以创建新的 S32K311 应用程序项目 所以,请尝试添加其余软件包,或者卸载现有软件包并重新全部添加。 BR,彼得 Re: Install the S32K3xx Development Package and RTD 不,即使使用GCC 10.2 工具链,RTD 也不会显示。 Re: Install the S32K3xx Development Package and RTD 您好, 创建新的应用程序项目时,请确保已选择 GCC 10.2 工具链,否则 RTD 将不会显示。 BR,彼得 Re: Install the S32K3xx Development Package and RTD 对我来说这招管用。 于是我继续进行入门学习。 S32K31XEVB-Q100 通用评估板入门指南 | 恩智浦半导体 接上电源后似乎就能正常工作了。 但是当我尝试创建一个新项目时,SDK 并未列出。 Re: Install the S32K3xx Development Package and RTD 您好, “S32K3_S32M27x 实时驱动程序 AUTOSAR R23-11 版本 7.0.1 P02” 仅包含一个加密驱动程序,必须将其安装在已安装的 RTD701 版本之上。 请下载以下更新程序,并将所有四个相关软件包安装到 S32DS 中。 然后,如果需要,您可以添加加密驱动程序。 BR,彼得
View full article
S32K310 FlexIO TDM サポートの問題 NXPのエキスパートの方、こんにちは。S32K310について質問があります。FlexIOを使用してTDMオーディオインターフェースをシミュレートする場合、下の画像に示すように、1つのデータ入力と2つの出力を実現することは可能でしょうか?しかし、現在の構成では不可能に思えます。 Re: S32K310 FlexIO对于TDM的支持问题 こんにちは@Chenxu1 FlexIOがI2Sインターフェースをエミュレートする場合、この構成はサポートされません。FlexIO I2Sの実装では、TXチャネルとRXチャネルが1つのみ提供されます。 FlexIOは標準的なI2Sインターフェースをエミュレートしているため、ステレオオーディオのみをサポートし、データフォーマットはI2Sプロトコルに固定されています。その結果、モノラルおよびマルチチャネル構成、さらにTDMフォーマットはFlexIO I2S実装ではサポートされていません。 BR、VaneB
View full article
NXP LPSPI 配置 S32K344 EVB 大家好, 我目前正在使用 NXP RTD 4.0.0 在 S32K344 EVK 上进行 LPSPI 通信。 我已经完成了 LPSPI 所需的配置,现在正在尝试在 EVK 上开发 SPI 回环通信。 但是,我目前遇到的问题是数据正在传输,但我在接收缓冲区中没有收到预期的数据。 附件内容供您参考: 项目源代码 相关配置详情 请您查看一下附件中的项目和配置,并帮我找出问题所在吗? 具体来说,我希望您能协助核实以下事项: LPSPI 主/从配置 LPSPI引脚配置和信号路由 TX/RX 缓冲区配置 LPSPI 发送和接收的 API 使用 S32K344 EVK 上环回通信所需的任何其他配置 如果还需要我提供任何其他信息或日志,请告知。 谢谢! 拉基 Re: NXP LPSPI Configuration S32K344 EVB 你好@rakYps21 我检查了您的代码和配置,没有发现任何问题。我还将该项目烧录到FRDM-A-S32K344开发板上,如下面的截图所示,主端和从端的接收缓冲区都包含了两次传输的预期数据。 我知道你使用的是S32K3x4EVB板。请问您具体使用的是哪种EVB版本? 另外,如果可以的话,能否分享一下您电路板上MCU的照片?我想检查一下设备的标记和掩膜设置。 BR,VaneB Re: NXP LPSPI Configuration S32K344 EVB 嗨@VaneB , 感谢您的确认和测试。 我目前使用的是FRDM Automotive S32K344MINI-EVB 板HDQFP172 MCU。 我还分享了一张安装在电路板上的MCU的图片供您参考。 请核实确认。 如果您需要我提供任何其他信息,请告诉我。 此致, 拉基 Re: NXP LPSPI Configuration S32K344 EVB 你好@rakYps21 感谢分享图片。 看来我们使用的配置非常相似。为确保两种设置一致,请您仔细检查一下您设置中的 SPI 信号是否按如下所示连接,并与 FRDM-A-S32K344 Rev. A 原理图中指定的引脚分配相匹配? Re: NXP LPSPI Configuration S32K344 EVB 嗨@VaneB , 我已经仔细检查了我的设置中的 SPI 信号连接和引脚分配,它们均按照 FRDM-A-S32K344 中的规定进行配置。 所有配置都与您提到的完全一致。 期待您的回复和进一步指导。 此致, 拉基 Re: NXP LPSPI Configuration S32K344 EVB @VaneB另外,能否请您分享一下您的设备配置和物理连接的图片以供参考? 期待您的回复和进一步指导。 BR, 拉基 Re: NXP LPSPI Configuration S32K344 EVB 你好@rakYps21 照片中的连接不太容易区分,因此我在下面的 FRDM-A-S32K344 图片上用不同的颜色标记了它们,以便更清晰:棕色代表 CLK ,红色代表 PCS ,橙色代表 MOSI ,黄色代表 MISO 。 我还附上了捕获到的信号,以便您验证 SPI 通信是否按预期工作。 Re: NXP LPSPI Configuration S32K344 EVB @VaneB非常感谢您的支持。 现在一切正常。 LPSPI是否支持FRDM-A-S32K344 EVB的内部环回功能? Re: NXP LPSPI Configuration S32K344 EVB 我目前正在研究如何将外部 NFC 读卡器IC 与NXP S32K344板连接起来。 我现在想与外部 NFC 阅读器建立通信,而不是使用 SPI 回环模式。 为此,我知道我需要配置以下硬件接口: 1. 3.3V电源和公共接地 2. NFC_IRQ 中断信号 3. SPI MOSI、MISO、CLK (SCK) 和 CS 信号 此外,我还需要您在实现库所需的平台特定功能方面提供指导。 尤其包括以下几点: #define platformDelay(t) vTaskDelay(pdMS_TO_TICKS(t)) #define platformGetSysTick() xTaskGetTickCount() #define platformSpiTxRx(txBuf, rxBuf, len) 请问您能否帮忙澄清以下问题? 1. 将外部 NFC 阅读器与 NXP S32K344 连接时,推荐的硬件连接和 GPIO 配置是什么? 2. 在NXP平台上应该如何配置和处理NFC_IRQ信号? 3. 应如何实现 platformGetSysTick() 和 platformDelay() 以确保与 RFAL 库兼容? 4. 如何使用 NXP LPSPI 驱动程序实现 platformSpiTxRx() 来从 NFC 阅读器发送和接收数据? 5. 与外部 NFC 阅读器建立通信是否需要任何额外的平台特定配置或初始化步骤? 非常感谢您的指导。 感谢您的支持。 问候, 拉基
View full article
S32K310 FlexIO TDM support issues Hi, NXP expert, I have a question about the S32K310. Using FlexIO to simulate a TDM audio interface, is it possible to achieve one data input and two outputs, as shown in the image below? However, based on the configuration, it seems impossible. Re: S32K310 FlexIO对于TDM的支持问题 Hi @Chenxu1  In the case of FlexIO emulating an I2S interface, this configuration is not supported. The FlexIO I2S implementation provides only one TX channel and one RX channel. Since FlexIO is emulating a standard I2S interface, it supports stereo audio only, with the data format fixed to the I2S protocol. As a result, mono and multi-channel configurations, as well as TDM formats, are not supported by the FlexIO I2S implementation. BR, VaneB
View full article
Switching an existing MCUXpresso project from SDK_2.x_MKW38Z512xxx4 (2.6.15) to SDK_2.x_FRDM-KW38 (2 Hello NXP Support Team, We have a KW38 BLE project (“TEST Project A”) that we created in MCUXpresso IDE with SDK_2.x_MKW38Z512xxx4, version 2.6.15 (manifest 3.5.0, 2022-04). The target chip is MKW38A512xxx4. We would like to build and test this project with the newer SDK_2.x_FRDM-KW38, version 2.6.916 (manifest 3.5.0, 2023-11). Both SDKs are installed in MCUXpresso IDE. When we open the project with only SDK 2.6.916 selected, the IDE shows the “Project SDK management” dialog: The dialog lets us select SDK_2.x_FRDM-KW38 [2.6.916] and has a “Make SDK persistent” option.     Our questions: To build and test the project with SDK 2.6.916, is it enough to change the SDK checkbox in “Installed SDKs” (or choose the new SDK in the dialog above) and rebuild? Or do we need to do more? As we understand it, the SDK source files (drivers, CMSIS, Connectivity Framework, BLE host/controller libraries, linker scripts, startup code, etc.) were copied into the project when it was created. If we only change the SDK association, does the build still use the old 2.6.15 files that are already in the project? If so, what is the recommended way to update those components to 2.6.916? For example: manually updating SDK components through “Manage SDK Components”, re-importing the matching SDK example and porting our application code, or something else. SDK 2.6.15 is a device SDK (MKW38Z512xxx4), while 2.6.916 is a board SDK (FRDM-KW38). Are there known differences between them that could affect a custom-board project, such as board files, pin_mux, clock configuration, or linker and memory settings? Between 2.6.15 and 2.6.916, are there changes in the BLE stack libraries (lib_ble_host / controller), NVM, or the low-power framework that need extra migration steps or configuration changes? What does “Make SDK persistent” change in the project files? If we enable it, can we switch back to SDK 2.6.15 later without problems? Is there a migration guide or release note that describes how to move an existing project between these two SDK versions? Environment: IDE: MCUXpresso IDE (the version and build number can be found under Help > About) Device: MKW38A512xxx4 (custom board) Current SDK: SDK_2.x_MKW38Z512xxx4 2.6.15 Target SDK: SDK_2.x_FRDM-KW38 2.6.916 Thank you for your support. Best regards, Jungkyu Han Re: Switching an existing MCUXpresso project from SDK_2.x_MKW38Z512xxx4 (2.6.15) to SDK_2.x_FRDM-KW3 Hi, @JungkyuHan1  I will check your questions and reply to you ASAP. Best regards, Christine. Re: Switching an existing MCUXpresso project from SDK_2.x_MKW38Z512xxx4 (2.6.15) to SDK_2.x_FRDM-KW3 Hi, @JungkyuHan1  As we understand it, the SDK source files (drivers, CMSIS, Connectivity Framework, BLE host/controller libraries, linker scripts, startup code, etc.) were copied into the project when it was created. If we only change the SDK association, does the build still use the old 2.6.15 files that are already in the project? If so, what is the recommended way to update those components to 2.6.916? For example: manually updating SDK components through “Manage SDK Components”, re-importing the matching SDK example and porting our application code, or something else. ==>[Christine]: We always recommend customer to do their own porting after update SDK version. Hope the 2 links are helpful for you. If you directly modify the code in our SDK, then these modification will need to port it manually to new SDK. SDK 2.6.15 is a device SDK (MKW38Z512xxx4), while 2.6.916 is a board SDK (FRDM-KW38). Are there known differences between them that could affect a custom-board project, such as board files, pin_mux, clock configuration, or linker and memory settings? ==>[Christine]: I do not understand why you choose different, old is for chip, and the new is for board. If before you used a chip SDK, then now please also download the chip level SDK. If before you used board SDK, then now please also use board SDK. But for your info, our chip SDK is supported BR, Christine. Re: Switching an existing MCUXpresso project from SDK_2.x_MKW38Z512xxx4 (2.6.15) to SDK_2.x_FRDM-KW3 Hi, @JungkyuHan1  Between 2.6.15 and 2.6.916, are there changes in the BLE stack libraries (lib_ble_host / controller), NVM, or the low-power framework that need extra migration steps or configuration changes? ==>[Christine]: There are changes in the BLE stack libraries from 2.6.15 to 2.6.916, including cumulative BLE stack updates, CCC 3.0 support, and fixes. What does “Make SDK persistent” change in the project files? If we enable it, can we switch back to SDK 2.6.15 later without problems? ==>[Christine]:It mainly stores the selected SDK in the project’s SDK/project metadata, so that the project continues to use that SDK when it is reopened. It is not an operation that automatically updates all copied SDK sources. I recommend you to save or backup your current project before enabling persistence and migrating. Is there a migration guide or release note that describes how to move an existing project between these two SDK versions? ==》[Christine]:Please refer to the 2 links I provided to you in my previous comment. BR, Christine.
View full article
既存の MCUXpresso プロジェクトを SDK_2.x_MKW38Z512xxx4 (2.6.15) から SDK_2.x_FRDM-KW38 (2 こんにちは、NXPサポートチームの皆さん、 私たちは、MCUXpresso IDEでSDK_2.x_MKW38Z512xxx4(バージョン2.6.15)で作成したKW38 BLEプロジェクト(「TEST Project A」)を持っています(マニフェスト 3.5.0、2022年4月)。対象チップはMKW38A512xxx4です。 このプロジェクトは、より新しいSDK_2.x_FRDM-KW38、バージョン2.6.916を使用して構築およびテストしたいと考えています。(マニフェスト 3.5.0、2023年11月)。両方のSDKはMCUXpresso IDEにインストールされています。 プロジェクトをSDK 2.6.916のみで開くと、選択されると、IDEsは「プロジェクトSDKsマネジメント」ダイアログを表示します: このダイアログでは、SDK_2.x_FRDM-KW38を選択できます。[2.6.916]と「Make SDK persistent」オプションがあります。     私たちの質問: SDK 2.6.916でプロジェクトをビルド・テストするには、「インストール済みSDKs」のチェックボックスを変更するか(または上のダイアログで新しいSDKを選択する)だけで十分でしょうか?それとも、もっと何かをする必要があるのだろうか? 私たちの理解では、SDKsのソースファイル(ドライバ、CMSIS、コネクティビティ Framework、BLEホスト/コントローラライブラリ、リンカースクリプト、スタートアップコードなど)はプロジェクト作成時にコピーされていました。SDKの関連付けだけを変えた場合、ビルドは古い2.6.15を使い続けますか?プロジェクトに既に存在するファイルですか? もしそうなら、それらのコンポーネントを2.6.916に更新する推奨方法は何でしょうか?例えば、「SDKs Componentsの管理」でSDKsコンポーネントを手動で更新したり、対応するSDKsのサンプルを再インポートしてアプリケーションコードを移植したり、他の方法などです。 SDK 2.6.15はデバイスSDK(MKW38Z512xxx4)であり、2.6.916はボードSDK(FRDM-KW38)です。ボードファイル、pin_mux、クロック設定、リンカーやメモリの設定など、カスタムボードプロジェクトに影響を与える可能性のある違いは既知のものはありますか? 2.6.15と2.6.916の間で、BLEスタックライブラリ(lib_ble_host/コントローラー)、NVM、または低消費電力フレームワークに変更があり、追加の移行ステップや設定変更が必要ですか? 「Make SDK persistent」はプロジェクトファイルで何を変えますか?もし有効にすれば、SDK 2.6.15に戻すことはできますか?後で問題なく? 既存のプロジェクトをこれら2つのSDKsバージョン間で移動させる方法を説明する移行ガイドやリリースノートはありますか? 環境: IDE:MCUXpresso IDE(バージョンとビルド番号はヘルプ > Aboutで確認できます) デバイス:MKW38A512xxx4(カスタムボード) 現在のSDKコード:SDK_2.x_MKW38Z512xxx42015年2月6日 ターゲットSDK:SDK_2.x_FRDM-KW382.6.916 再開まで今しばらくお待ちください。 よろしくお願いします、 ハン・ジョンギュ Re: Switching an existing MCUXpresso project from SDK_2.x_MKW38Z512xxx4 (2.6.15) to SDK_2.x_FRDM-KW3 こんにちは、 @JungkyuHan1 ご質問内容を確認し、できるだけ早くご返信いたします。 よろしくお願いいたします。 Christine。 Re: Switching an existing MCUXpresso project from SDK_2.x_MKW38Z512xxx4 (2.6.15) to SDK_2.x_FRDM-KW3 こんにちは、 @JungkyuHan1 私たちの理解では、SDKsのソースファイル(ドライバ、CMSIS、コネクティビティ Framework、BLEホスト/コントローラライブラリ、リンカースクリプト、スタートアップコードなど)はプロジェクト作成時にコピーされていました。SDKの関連付けだけを変えた場合、ビルドは古い2.6.15を使い続けますか?プロジェクトに既に存在するファイルですか? もしそうなら、それらのコンポーネントを2.6.916に更新する推奨方法は何でしょうか?例えば、「SDKs Componentsの管理」でSDKsコンポーネントを手動で更新したり、対応するSDKsのサンプルを再インポートしてアプリケーションコードを移植したり、他の方法などです。 ==>[Christine]: SDKバージョン更新後は、お客様に独自の移植を推奨しています。この2つのリンクがお役に立てば幸いです。もしSDKsのコードを直接変更した場合、その修正は手動で新しいSDKに移植する必要があります。 SDK 2.6.15はデバイスSDK(MKW38Z512xxx4)であり、2.6.916はボードSDK(FRDM-KW38)です。ボードファイル、pin_mux、クロック設定、リンカーやメモリの設定など、カスタムボードプロジェクトに影響を与える可能性のある違いは既知のものはありますか? ==>[クリスティン]: なぜ違うものを選んだのか理解できません。古いものはチップ用で、新しいものはボード用です。もし以前チップSDKsを使っていたなら、今はチップレベルのSDKsもダウンロードしてください。以前はboard SDKを使っていたなら、今はBoard SDKも使ってください。ちなみに、当社のチップSDKはサポートされています BR、 Christine。 Re: Switching an existing MCUXpresso project from SDK_2.x_MKW38Z512xxx4 (2.6.15) to SDK_2.x_FRDM-KW3 こんにちは、 @JungkyuHan1 2.6.15と2.6.916の間で、BLEスタックライブラリ(lib_ble_host/コントローラー)、NVM、または低消費電力フレームワークに変更があり、追加の移行ステップや設定変更が必要ですか? ==>[クリスティン]: BLEスタックライブラリに2.6.15から2.6.916への変更があります。累積的なBLEスタックアップデート、CCC 3.0のサポート、修正が含まれます。 「Make SDK persistent」はプロジェクトファイルで何を変えますか?もし有効にすれば、SDK 2.6.15に戻すことはできますか?後で問題なく? ==>[Christine]:主に選択したSDKをプロジェクトのSDKやプロジェクトのメタデータに保存し、プロジェクトが再開してもそのSDKを使い続けます。コピーされたすべてのSDKsソースを自動的に更新するない操作です。永続化を有効にして移行する前に、現在のプロジェクトを保存またはバックアップしておくことをお勧めします。 既存のプロジェクトをこれら2つのSDKsバージョン間で移動させる方法を説明する移行ガイドやリリースノートはありますか? ==》[クリスティン]:前回のコメントでお伝えした2つのリンクを参照してください。 BR、 Christine。
View full article
NXP LPSPI構成S32K344 EVB チームの皆さん、こんにちは。 現在、NXP RTD 4.0.0を使用してS32K344 EVK上でLPSPI通信を行う作業に取り組んでいます。 LPSPIに必要な設定は完了しており、EVK上でSPIループバック通信を開発しようとしています。 しかしながら、現在、データは送信されているものの、RXバッファに期待されるデータが受信されないという問題に直面しています。 ご参考までに、以下の資料を添付いたしました。 プロジェクトのソースコード 関連する構成の詳細 添付のプロジェクトと設定を確認し、問題を特定する手助けをしてもらえますか? 具体的には、以下の点でご協力いただけるとありがたいです: LPSPIマスター/スレーブ構成 LPSPIのピン構成と信号ルーティング TX/RXバッファ構成 LPSPIの送受信におけるAPIの使用方法 S32K344 EVKでのループバック通信に必要な追加設定 私の方で追加の情報やログが必要な場合はお知らせください。 ありがとうございます ラキー Re: NXP LPSPI Configuration S32K344 EVB こんにちは、 @rakYps21さん コードと設定を確認しましたが、問題は見つかりませんでした。また、FRDM-A-S32K344ボードにもプロジェクトを書き込んでみたところ、以下のスクリーンショットに示すように、マスター側とスレーブ側の両方のRXバッファには、両方の送信で期待されるデータが格納されていました。 あなたはS32K3x4EVBボードを使用していると理解しています。どのEVBバリアントを使っているのか教えていただけますか? また、可能であれば、ボードにMCUの写真を載せてもらえますか?デバイスのマーキングとマスクセットを確認したいです。 BR、VaneB Re: NXP LPSPI Configuration S32K344 EVB こんにちは、 @VaneB さん。 ご承認いただき、またそちら側で設定テストを実施していただき、ありがとうございます。 現在、 FRDM オートモーティブ S32K344MINI-EVBボードHDQFP172 MCUを使っています。 また、基板に取り付けられたMCUの画像も参考までに共有しました。 ご確認をお願いいたします。 私の方から何か追加情報が必要な場合は、お知らせください。 よろしくお願いいたします。 ラキー Re: NXP LPSPI Configuration S32K344 EVB こんにちは、 @rakYps21さん 画像を共有していただきありがとうございます。 どうやら私たちは非常に似たような設定を使っているようですね。両方のセットアップが揃っているか確認するために、下記のようにあなたのセットアップ上のSPI信号が接続されており、FRDM-A-S32K344改訂A回路図で指定されたピン割り当てと一致している かを再確認 してもらえますか? Re: NXP LPSPI Configuration S32K344 EVB こんにちは、 @VaneB さん。 私のセットアップにおけるSPI信号接続とピン割り当てを二重に確認しましたが、FRDM-A-S32K344の仕様どおりに設定されています。 すべて、あなたが言及した構成と一致しています。 ご回答と今後のご指導をお待ちしております。 よろしくお願いします、 ラキー Re: NXP LPSPI Configuration S32K344 EVB @VaneBまた、参考までにセットアップの画像や物理的な接続の画像を教えていただけますか? ご回答と今後のご指導をお待ちしております。 BR、 ラキー Re: NXP LPSPI Configuration S32K344 EVB こんにちは、 @rakYps21さん 写真では接続が少し判別しにくかったため、下のFRDM-A-S32K344画像に鮮明さのために異なる色でマーキングしました: CLKは茶色、 PCSは赤、 MOSIはオレンジ、 MISOは黄色です。 また、キャプチャした信号も接続して、SPI通信が期待通りに動作しているか確認できるようにしています。 Re: NXP LPSPI Configuration S32K344 EVB @VaneBサポート、本当にありがとうございます。 現在は期待通りに動作しています。 LPSPIはこのFRDM-A-S32K344 EVBの内部ループバックをサポートしていますか? Re: NXP LPSPI Configuration S32K344 EVB 現在、外部NFCリーダICと NXP S32K344 ボードのインターフェース作業を行っています。 今度はSPIループバックモードを使う代わりに、外部のNFCリーダと通信を確立したいと考えています。 そのために、以下のハードウェアインターフェースを設定する必要があることは理解しています。 1. 3.3V電源と共通接地 2. NFC_IRQ割り込み信号 3. SPIのMOSI、MISO、CLK(SCK)、およびCS信号 さらに、ライブラリで求められるプラットフォーム固有の機能の実装についてもご指導いただきたいです。 特に以下の点です。 #define platformDelay(t) vTaskDelay(pdMS_TO_TICKS(t)) #define platformGetSysTick() xTaskGetTickCount() #define platformSpiTxRx(txBuf, rxBuf, len) 以下の点を詳しく説明してもらえますか? 1. 外部NFCリーダとNXP S32K344を接続するための推奨ハードウェア接続およびGPIO構成は何ですか? 2. NXPプラットフォーム上でNFC_IRQ信号をどのように構成・処理すべきか? 3. platformGetSysTick()およびplatformDelay()はRFALライブラリとの互換性を確保するためにどのように実装すべきか? 4. NXP LPSPIドライバを使ってNFCリーダからのデータの送受信をどのように実装すべきか? 5. 外部NFCリーダとの通信を確立するために、プラットフォーム固有の追加の設定や初期化ステップが必要ですか? ご指導いただければ大変ありがたいです。 再開まで今しばらくお待ちください。 よろしくお願いいたします。 ラキー
View full article