Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
S32DS 3.6.3 の RTD 6.0.0 の CAN デモにポート設定を追加する方法 S32 プラットフォーム用の S32DS のバージョンは 3.6.3 です。インストールされているS32K3用のRTDのバージョンは6.0.0です。 「例からアプリケーションを作成」を選択し、「Can_Example_S32K344」を選択します。MCAL ポートを追加したいです。ポートを追加した後、エラーが表示されます。「少なくとも 1 つの構成が必要です」および「名前は有効な C 識別子である必要があります」。しかし、エラーを修正する場所を見つけることができませんでした。 Re: How to add port config in CAN demo of RTD 6.0.0 in S32DS 3.6.3 こんにちは、 ピンツールで必要なピンを追加する必要があります。官能基も適切に命名する ところで、以下のデモを参照してください https://community.nxp.com/t5/S32K-Knowledge-Base/RTD600-MCAL-amp-IP-S32K3X4EVB-T172-FlexCAN-Example-Interrupt/ta-p/2142069 BR、ペトル
View full article
PN7160はAndroid16のサポート 親愛なる; すみません、NXP PN7160 が Android16 をサポートする予定はありますか?もしそうなら、Android 16 移植ガイドはいつ公開されますか?また、Android 16 用のドライバと Android HAL レイヤー適応コードはいつ公開されますか?よろしくお願いします! よろしくお願いします! Re: PN7160 supports Android16 consultation こんにちは@jack_huang1 はい、その計画はあります。すべてのコンポーネントは今年末か 2026 年の初めまでにリリースされる予定です。
View full article
Lear - [S32k3][RTD] Crypto plugins are missing in RTD 6.0.0 Hello Team, Lear is saying: ------------------------------------------------------------------------------------- we have downloaded latest RTD S32K3_S32M27x Real-Time Drivers ASR R21-11 Version 6.0.0. with package we have received plugins for Tresos but crypto cryif and CSM is missing in package. Please can you confirm how to avail same? ---------------------------------------------------------------------------------------- BR Stefano RTD SECURITY_CRYPTO Re: Lear - [S32k3][RTD] Crypto plugins are missing in RTD 6.0.0 Hi @StefanoGattazzo, 1. Missing crypto cryif and CSM was noted in release note of 6.0.0 version (at Support and Driver Plugins Delivered). 2. Normally, Crypto cryif and CSM driver will be released in an other release with original initialization version. So, the package 6.0.0 QLP01 version has released for supporting Crypto cryif and CSM. Best regards, Dan
View full article
MCUBootの例 こんにちは、 mcuboot_opensource と ota_mcuboot_basic の例を試しました。 教育目的で、署名なしの画像を使用してみたいと思います。すでに imgtool を使用して署名なしイメージを作成できますが、mcuboot の例を構成する方法がわかりません。 どうすればいいのか教えていただけますか? よろしくお願いします。 最大 Re: MCUBoot example こんにちは@mastupristi ご返信とご辛抱に感謝いたします。 現時点ではこの例を取得するためのガイドラインがないSO、今できる限りお答えしたいとCAN。 に関して、これは正しいことだとお考えですか? 私も同意します。現時点では、このアプローチは MCUBoot 上のセキュア ブートを無効にするのに役立つと思われますが、テストできていません。 ブートレーダーでセキュアブートを無効にした後、次はキーなしでターゲットイメージに署名することになると思います。これは、いくつかの簡単なコマンドで imgtool を呼び出すことを意味します。探していたところ、サードパーティ製の移植ガイドを見つけました。これは参考になるかもしれません(公式でも推奨でもありませんが)が、アイデアが得られると思います。この記事の「MCUboot イメージの作成」を参照してください。https://interrupt.memfault.com/blog/mcuboot-overview#fn:4 に関しては、このCASEもサポートするように例を修正することを提案します。 ご提案ありがとうございます。SDKs チームに共有させていただきますが、お約束はできません。反対意見としては、MCUBoot が署名済みイメージの使用を標準化しようとしていることと、MCUBoot の署名済みイメージのみを生成できる MCUXpresso セキュア プロビジョニング ツールが挙げられます。しかし、私は教育的な目的においてはあなたに同意します。 よろしくお願いします、 ディエゴ Re: MCUBoot example こんにちは@diego_charles その間に、このことが機能するようにいくつか変更を加えましたが、それが「正しい」変更であるかどうかはわかりません。 ファイルsource/sblconfig.h、署名を無効にするためにいくつかの行をコメント化しました: //#define CONFIG_BOOT_SIGNATURE //#define CONFIG_BOOT_SIGNATURE_TYPE_RSA //#define CONFIG_BOOT_SIGNATURE_TYPE_RSA_LEN 2048 ファイルbootutil/nxp_port/boot.cで、CRYPTO_InitHardware()を呼び出すようにチェックを変更しました。 ファイル bootutil/nxp_port/keys.c で、署名が定義されていない場合にエラーを回避するために次の行をコメントアウトしました。 #if defined(MCUBOOT_SIGN_RSA) #include "sign-rsa2048-pub.c" #elif defined(MCUBOOT_SIGN_EC256) #include "sign-ecdsa-p256-pub.c" #else /* This error assumes that a signature algorithm must be specified; it does not accept the case where there is no signature. */ //#error "No public key available for given signing algorithm." #endif これは正しいことだと思いますか? このCASEもサポートするために例を修正することを提案します。 よろしくお願いします。 最大 Re: MCUBoot example こんにちは@mastupristi ご興味を持っていただきありがとうございます!現時点ではこれを行うためのガイドラインがないため、現在これを確認中であることをお知らせします。 ディエゴ
View full article
What is the best way to monitor mode change in Power manager demo I'm trying to monitor mode changes in Power mode demo application on evkmimxrt595 board such as frequency change using an oscilloscope. Could you recommend ways to monitor the change of the modes? Power Manager Demo. The "user key" is: SW2 Select an option 1. Sleep mode 2. Deep Sleep mode 3. Deep power down mode 4. Full deep power down mode Board Design Clock|Timers Power Re: What is the best way to monitor mode change in Power manager demo Hi, Please look up the datasheet to find the details in each working mode, e.g Table 10~15 show different Power consumption in different mode https://www.nxp.com.cn/docs/en/data-sheet/IMXRT500EC.pdf  MIMXRT595-EVK Board User Manual[UM12285] also provides how to measure board power in section 6. Re: What is the best way to monitor mode change in Power manager demo I haven't find any information on links that you shared, how and where to monitor the change of the mode such as by measuring clock frequency change on a pin or voltage change specifically. How can I confirm power consumption would be reduced in each mode? Re: What is the best way to monitor mode change in Power manager demo Hi, Please see below link to find i.MX RT500 power managment, it offers a rich set of peripherals and very low power consumption, this note describes how to use the power management in i.MX RT500, but this document does not replace the datasheet or the reference manual. https://www.nxp.com.cn/docs/en/application-note/AN13162.pdf  Besides, here is a full example to show how to switch different power mode of RT595. https://github.com/nxp-mcuxpresso/mcuxsdk-examples/blob/release/25.06.00/_boards/evkmimxrt595/demo_apps/power_manager_test/bm/example_board_readme.md
View full article
CD1030 Fit What's the Fit value of MC33CD1030AE? I need the value to make the functional safety analysis,thanks. Re: CD1030 Fit 请提交ticke,不建议在pulic community post一些classified documentations.
View full article
i.MX28のVDDD電圧の設定方法 こんにちは、皆さん。 i.MX28チップの使用中に、稀な問題が発生しました。454MHzクロックでVDDD電圧を1.525Vに設定すると、ごく少数のチップでブートエラーが発生する確率が高くなります(この設定は長期間使用されていました)。しかし、VDDD電圧を1.55Vに上げると、システムが大幅に安定します。この電圧調整後、以前問題となっていたチップではブートエラーは発生していません。 IMX28CEC.pdf のドキュメントでは、VDDD 構成を 1.55V にすることが推奨値となっていますが、副作用があるかどうかはわかりません。 以前にも誰かが同様の問題について質問していたが、明確な答えがなかったことに気付きました。 https://community.nxp.com/t5/i-MX-Processors/iMX28 の VDDD 電圧について/mp/1135308#M161086 i.MX2x Re: How to set the VDDD voltage of i.MX28 こんにちは、 推奨される VDDD 電圧は 1.55V であり、これは実証済みの安定した値であることを示しています。長期使用してもチップの信頼性に問題は発生しません。 よろしくお願いします、 志明 Re: How to set the VDDD voltage of i.MX28 これに関してご助力いただければ幸いです。何か提案はありますか?
View full article
[I.MX8M Plus][BSP L6.1.22]强制GStreamer的vpuenc_h264元素生成IDR帧的方法(force-idr属性) 项目需求,需要playing中的gst pipeline立刻生成新的IDR帧。调查vpuenc_h264元素发现,其存在一个force-idr属性,写入任意数字可以强制生成IDR帧。但是试了一下发现没有作用。请问这个属性是可用的吗?如果不可用,有其他办法强制立刻生成IDR的吗? Re: [I.MX8M Plus][BSP L6.1.22]强制GStreamer的vpuenc_h264元素生成IDR帧的方法(force-idr属性) 所有关于 VPU 的编程都不是由 gstreamer 进行的: https://www.nxp.com/docs/en/reference-manual/RM00294.pdf 此致 Re: [I.MX8M Plus][BSP L6.1.22]强制GStreamer的vpuenc_h264元素生成IDR帧的方法(force-idr属性) 谢谢您的答复。 " 耗尽管道并RESET " 到底是什么意思?能否提供一些说明此操作的文档或示例,包括 mfxExtEncoderResetOption 和 mfxEncodeCtrl 等。 Re: [I.MX8M Plus][BSP L6.1.22]强制GStreamer的vpuenc_h264元素生成IDR帧的方法(force-idr属性) 你好 插入新的 IDR 帧时,排空管道并 RESET。只有少数几项更改在不进行耗尽/RESET的情况下是完全安全的。使用 mfxExtEncoderResetOption=ON 可确保启动新序列。 为确保 mfxEncodeCtrl 参数与预期帧正确对应,请分配与编码器使用的表面一样多的参数。但 gstreamer 没有启用强制-IDR。 此致
View full article
S32K142 Csec FlashPartition は RAM で実行されます ハイ ここで、「csec_keyconfig」に関する SDKs RTM v4.0.2 サンプル プロジェクトを使用しました。initFlashForCsecOperation 関数では、CSEc 操作のフラッシュ パーティショニングは RAM 構成でのみ実行する必要があることが示されています。 1. FLASH_DRV_DEFlashPartition、FLASH_DRV_CommandSequence などの一部の機能を RAM で実行CANますか。またはすべてのプロジェクトを RAM で実行できますか。 Re: S32K142 Csec FlashPartition run in ram はい、間にリセットを挟みながら段階的に実行する必要があります。 Re: S32K142 Csec FlashPartition run in ram よろしくお願いします。 しかし、量産を行う場合、最初に完全に RAM で実行されるプログラムをフラッシュにパーティション分割して書き込んでから、アプリを書き込む必要がありますか? Re: S32K142 Csec FlashPartition run in ram これは、最初に RAM から実行する必要があるだけなので (フラッシュ パーティショニングは 1 回だけ実行すればよいため)、プロジェクト全体を RAM から実行できます。 しかし、原則的には、書き込み中の読み取りの問題を回避するために、フラッシュ ルーチンのみを RAM から実行する必要があります。
View full article
S32K142 Csec FlashPartition run in ram Hi Now i used SDK RTM v4.0.2 Example Project about "csec_keyconfig“,In initFlashForCsecOperation Function montioned Flash partitioning for CSEc operation must only be ran with RAM configuration. 1.can i run some function in ram such as FLASH_DRV_DEFlashPartition,FLASH_DRV_CommandSequence ... or all project run in ram? Re: S32K142 Csec FlashPartition run in ram Yes, it is needed to do it in steps with reset in between.  Re: S32K142 Csec FlashPartition run in ram thanks but When conducting quantity production, is it necessary to first burn a program that runs entirely in RAM to partition Flash, and then burn the app? Re: S32K142 Csec FlashPartition run in ram This needs only first time to run from RAM (as flash partitioning needs to be done only once), so may run the whole project from RAM. But in principle only flashing routines needs to run from RAM to avoid read-while-write issues.
View full article
サポートCASEの作成 サポート チケットを作成しようとすると、添付のメッセージが表示されます。 お知らせ下さい。 MPXV5010GC7U 用に開発したソリューションを検証しようとしています。
View full article
S32K144 MCAL 4.3 SPI W25QXX Communication Failure NXP Team: I am going to debug the SPI communication of S32K144, there is a little problem, SPI can send data, but there is no reply from the peripheral chip. SPI EB is as follows: 1. Port port configuration 2. Mcu clock using SOSC, bifurcated, 4 MHz 3. SPI Chanmel configuration: 4. external device configuration: 5. Phy Unit configuration: 6. SPI interrupt configuration: Code in the S32DS project: Other ways to verify: 1. Use STM32 to drive W25Q128 chip, can be used normally, to rule out chip problems 2. S32K144's SIN and SOUT are directly connected, and data is sent and received without any problem. 3. No other SPI peripheral chips are available for cross-validation. I've tried various methods so far, but I'm still looking for guidance from the NXP team or other engineers. Re: S32K144 MCAL 4.3 SPI W25QXX通信失败 You are right, CPHA is misconfigured. It's currently communicating on the peripheral   Re: S32K144 MCAL 4.3 SPI W25QXX通信失败 Hi. Please use a logic analyzer and compare the SPI waveforms of STM32 and S32K144. Configure the MCAL based on the waveforms of the STM32 successfully communicating. Please check if the SPI mode configuration is the same: SpiDataShiftEdge: TRAILING(CPHA=0) LEADING(CPHA=1) ShiftClockIdleLevel: HIGH(CPOL=1) LOW(CPOL=0) Best Regards, Robin ------------------------------------------------------------------------------- Note: - If this post answers your question, please click the "ACCEPT AS SOLUTION " 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 Please open a new thread and refer to the closed one, if you have a related question at a later point in time. -------------------------------------------------------------------------------
View full article
S32K312 EVB-Q172 and S32 Design Studio Hello NXP community, I am working with the S32K312 EVB-Q172 and S32 Design Studio (S32DS). While creating a new project, I am facing the following issues: Some header files (like Mcu.h ) are not found during compilation, even though I selected the S32K3 platform SDK (v6.0.0). Not all example projects for the S32K312 are visible in S32DS. I expected sample applications such as GPIO/LED toggle, UART, etc., but many are missing. Could you please guide me on: How to properly include all SDK headers so that files like Mcu.h are available? Whether there is a separate package or update needed to get all the S32K312 example projects in S32DS? Thanks in advance for the support. Regards, NPD Dept, SCTSPL Re: S32K312 EVB-Q172 and S32 Design Studio Hi@npdelectronics For bare-metal code, please review the header file definitions for each peripheral, "S32K312_SIUL2.h." In RTD 6.0.0, "SIUL2" is not defined, but "IP_SIUL2." Please refer to the RTD S32K344 example. We do not have the time to support customers implementing their applications using bare-metal code. Re: S32K312 EVB-Q172 and S32 Design Studio Thanks for your time and consideration. Actually, I was trying to get to know about the s32ds platform and the EVB before using it in our projects. so, I tried the following program for led blinking but having some errors with the code. /* Copyright 2023 NXP */ /* Simple LED Blink Example for S32K312 EVB-Q172 */ /* This code directly configures SIUL2 registers to toggle PTC6 */ #include "S32K312.h" #define LED_PORT 2U /* Port C = 2 in SIUL2 */ #define LED_PIN 6U /* Pin number 6 (PTC6, user LED on EVB) */ /* Simple delay */ void delay(volatile uint32_t count) { while (count--) { __asm volatile ("nop"); } } int main(void) { /* Enable clock for PORTC (SIUL2) */ MC_ME->PCTL[LED_PORT] = 0x00; // Enable clock to PORTC peripheral /* Configure PTC6 as GPIO output */ SIUL2->MSCR[LED_PIN + (LED_PORT * 16)] = SIUL2_MSCR_SSS(0) /* GPIO mode */ | SIUL2_MSCR_OBE(1) /* Output buffer enable */ | SIUL2_MSCR_IBE(0);/* Input buffer disable */ /* Loop forever: toggle LED */ for (;;) { SIUL2->GPDO[LED_PIN + (LED_PORT * 16)] = 1; // LED ON delay(800000); SIUL2->GPDO[LED_PIN + (LED_PORT * 16)] = 0; // LED OFF delay(800000); } return 0; } Re: S32K312 EVB-Q172 and S32 Design Studio Hi@npdelectronics 1.How to properly include all SDK headers so that files like Mcu.h are available? please share your project and i will check it for you. 2.Whether there is a separate package or update needed to get all the S32K312 example projects in S32DS? No such package available, Before RTD 2.0.X, we do provided examples for S32K312,but there is no example for S32K312 in latest RTD driver, you can refer to S32K344。
View full article
LPC55S36 XTAL32M(外部発振器付き) おはよう、 LPC55S36 上の外部高速発振器 XTAL32M を、水晶ではなく発振器で駆動しようとしています。データシートのセクション 13.2 では、この入力は 850mV 未満に維持する必要があると警告されています。それほど低い電圧を出力する発振器は見つかりません。これを実現するための推奨部品や回路はありますか? よろしくお願いします。 LPC55xx Re: LPC55S36 XTAL32M with External Oscillator 電圧要件を満たすために分圧器を追加CAN。 BR、 オマール
View full article
LX2160A-CEX7: Forcing NVMe PCIe Gen4 device to train at Gen3 I’m working with an LX2160A-CEX7 board. I connected a new NVMe drive that supports PCIe Gen4, but I understand that the board itself only supports PCIe Gen3. When I boot the system, the NVMe device is not detected. The only sign that it might be recognized is when I run nvme info in U-Boot — aside from that, nothing shows up. Is there a way to force or downgrade the NVMe device to run at PCIe Gen3 instead of Gen4 so that it works properly on this board? PCI Express Re: LX2160A-CEX7: Forcing NVMe PCIe Gen4 device to train at Gen3 If so, we don't method to use PCIe Gen4 device on LX2160A platform. Re: LX2160A-CEX7: Forcing NVMe PCIe Gen4 device to train at Gen3 Hey, no u-boot pcie information about nvme in u-boot logs, nor kernel logs. I do have nvme driver support, before this new nvme I used a different one with pcie gen3 and it worked. P.S, I managed to force the kernel to recognize the new pcie the nvme is connected to it by running the following command: ’echo 1 > /sys/bus/pci/rescan’ But unfortunately, that only works after the operating system has loaded. Re: LX2160A-CEX7: Forcing NVMe PCIe Gen4 device to train at Gen3 I discussed with the LSDK development team. As normal, the NVMe PCIe Gen4 device can be downgraded to Gen3 device to be used on LX2160A platform automatically. Please check whether you can get the PCIe link information in u-boot log? Please check whether you have built NVMe device driver in u-boot image?
View full article
ADC Hardware Trigger on P1.27 (falling edge) not working on LPC1768 hardware Hello, I am trying to test ADC hardware triggering on the LPC1768 using P1.27 as the trigger source with falling edge detection. In simulation, the ADC starts conversion correctly when I generate a falling edge on P1.27 , but on the actual hardware the ADC does not start conversion. My ADC is configured for hardware trigger on P1.27 with falling edge, channels are enabled, and the ADC is powered. I would like to know are there any limitations related to using P1.27 as an ADC trigger on LPC1768 hardware? Any clarification or guidance will be greatly appreciated. Thank you. Re: ADC Hardware Trigger on P1.27 (falling edge) not working on LPC1768 hardware Hi @AkshayNaik1907  yes—there’s a known errata on LPC176x that affects using P1.27 as the ADC external trigger. On real hardware the ADC can miss edges on P1.27 (and P2.10), so conversions don’t start reliably even though a simulator shows them working. The miss rate depends on the ADC peripheral clock. You can refer to the errta ES_LPC176x Errata sheet BR Harry
View full article
P1.27(立ち下がりエッジ)のADCハードウェアトリガーがLPC1768ハードウェアで動作しない こんにちは、 LPC1768で、 P1.27を トリガーソースとして立ち下がりエッジ検出を使用し、ADCハードウェアトリガーをテストしようとしています。シミュレーションでは、 P1.27 に立ち下がりエッジを生成するとADCは正しく変換を開始します が、実際のハードウェアではADCは変換を開始しません。 私の ADC は、立ち下がりエッジで P1.27 のハードウェア トリガーに設定されており 、チャネルが有効になっており、ADC に電源が投入されています。 LPC1768 ハードウェアで P1.27 を ADC トリガーとして 使用する場合、何か制限があるかどうか知りたいです 。 ご説明やご指導をいただければ幸いです。 よろしくお願いします。 Re: ADC Hardware Trigger on P1.27 (falling edge) not working on LPC1768 hardware こんにちは@AkshayNaik1907 はい。LPC176x には、P1.27 を ADC 外部トリガーとして使用することに影響する既知のエラッタがあります。実際のハードウェアでは、ADC は P1.27 (および P2.10) のエッジを見逃す可能性があるため、シミュレータでは動作していると表示されていても、変換は確実に開始されません。ミス率は ADC ペリフェラル クロックに依存します。 CANを参照してください ES_LPC176x エラッタシート BR ハリー
View full article
PTN3460I 如何获取 PTN3460I FOA & DPCD M 工具来启用更改设备寄存器? 谢谢! 摩西 Re: ptn3460i 嗨,摩西、 我找到了一个更早的案例,在这个案例中,另一位客户也提出了类似的问题。请查看答案。 DPCD M 工具是为 PTN3355BS 而非 PTN3460I 设计的。 PTN3460I 不通过 DPCD 公开其配置寄存器。 对于 PTN3460I,必须使用 I2C 或 AUX 通道命令。 对于 I2C,请确保将其设置为从属设备,DEV_CFG 打开或连接至 GND,以便使用正确的 I2C 地址。 不便之处,敬请原谅。 致以最崇高的敬意 约瑟夫 Re: ptn3460i 您好, 首先,感谢您提供说明固件版本差异的文件。由于误解,我闪烁了 F6 版本,以为它更先进。正在使用的元器件是 PTN3460IBS。然后,我重新刷新了 F2 版本,但不幸的是,结果还是一样--写入地址 0x82 数据 0x23 读回 0x00 Re: ptn3460i 嗨,摩西、 感谢您提供的版画。如果固件版本是 F6 和 F4,要么是 PTN3460BS 版本,要么是 PTN3460IBS 中加载的固件版本不正确。请检查芯片顶部的标记。如需了解 PTN3460 的版本。或者,请拍摄一张顶部标记的照片,并请分享带有明显线条的照片。 PTN3460IBS 的最新固件版本为 F2。对于 PTN3460BS,是 F6。请参阅随附的 版本 说明。 请确保按照正确的编程指南进行编程(尽管 0x82 在两个寄存器中是相同的)。 致以最崇高的敬意 约瑟夫 Re: ptn3460i 你好,约瑟夫; 完全按照描述进行了尝试,将数据写入寄存器 0x82(LVDS 接口控制 2)。 读取 0x82(默认值应为 0x03 ) 0x00 写入 0x2b 读取 0x82 0x00,无变化 Re: ptn3460i 非常感谢 Usind DPCD_M 实用程序尝试更新寄存器 0x82"LVDS 时钟频率中心扩展深度" 无功而返 什么都没发生 读取数据 00 写入数据 0x28 再次读取 00 请提供建议 摩西 Re: ptn3460i 亲爱的摩西 添加 DPCD M 工具用户手册。 致以最崇高的敬意 约瑟夫 Re: ptn3460i 亲爱的摩西 随函附上所需的 FoA 和 DPCD M 工具。如果询问密码,则输入 NXP。 致以最崇高的敬意 约瑟夫
View full article
imx93 CPUの周波数値を取得する方法 こんにちは: 私のシステムは「Linux bopixel 6.1.22」です#154 SMP PREEMPT Mon Aug 25 16:07:47 CST 2025 aarch64 GNU/Linux”では、実際のCPUクォータの周波数値を読み取る必要があります。Linux C言語を使用してAPIインターフェース経由で取得することは可能ですか? Linux Re: imx93 how to get the frequency value of CPU @ranYang @pengyong_zhangは役に立つかどうかと聞いています。@pengyong_zhang は、自身の BSP が DVFS をサポートしているかどうかさえ知りません。 最も残念なのは、 @pengyong_zhang が与えられたコマンドを試していないことです。 @ranYang iMX93 BSP はモード切り替えのみをサポートし、DVFS はサポートしていないSO、/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ノードはありません。 Arm クロックをチェックするには、cat /sys/kernel/debug/clk/clk_summary を使用できます。 Re: imx93 how to get the frequency value of CPU このデバイスのノード情報が作成されていません。CAN レジスタを通じて取得できますか? Re: imx93 how to get the frequency value of CPU こんにちは@ranYang 以下のコマンドを使用して CPU 周波数を確認 CAN。 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor で BR
View full article
使用 LLCE 进行 CAN 报文转发时出现的问题:只转发一条报文 大家好, 我正在使用 Can_Llce_DS_Can2Can_S32G399A_M7 示例开发一个 S32DS 项目,在 CAN 报文转发代码中遇到了一个问题。具体来说,我一次只能转发一条信息。 情况是这样的:我接收到两个 CAN 报文,ID 分别为 0x01 和 0x02,我的目标是用新的 ID 0x51 和 0x52 转发这些报文。但是,无论如何,系统始终只转发 ID 为 0x51 的报文。这两条信息几乎同时到达,0x02 比 0x01 早几个纳秒。 我已经尝试了一些方法来解决这个问题: 我试过将接收器设置为中断和轮询模式。 我尝试过使用队列。 我还尝试应用过滤器,只转发 ID 为 0x02 的邮件,结果成功转发了 0x52,所以问题不在过滤器本身。 我使用一条 LLCE 线路进行通信。 有谁知道是什么原因导致了这种行为,或者我该如何解决?如有任何见解,我们将不胜感激! 提前感谢! 我还把我的 main.c并附上我的 CanController 的图像 #include "Can_43_LLCE.h" #include "Can_43_LLCE_IPW.h" #include "PlatformInit.h" #include "Llce_Firmware_Load.h" #include #include "stubs.h" /*================================================================================================== DEFINITIONS AND MACROS ==================================================================================================*/ #define CAN_CONTROLLER_ID (0U) #define CAN_TRANSMIT_HTH (CanHO_Config0_TX0) #define CAN_ID_REWRITE_OFFSET (0x50U) #define MAX_KNOWN_SOURCE_IDS (32U) // Maximum unique IDs that the gateway stores /* --- Configuration macros --- */ #define MACRO_CONCAT(a,b) a##b #define CAN_VARIANT(var) MACRO_CONCAT(Can_43_LLCE_Config_, var) #ifndef CONFIG_VARIANT_USED #define CAN_LLCE_VARIANT (NULL_PTR) #else #define CAN_LLCE_VARIANT (&CAN_VARIANT(CONFIG_VARIANT_USED)) #endif /** * @brief Mask to isolate the 29-bit CAN ID from the status flags. * @details Can_RxId contains flags in the higher bits. This mask clears the flags and keeps only * the message identifier. */ #define CAN_ID_MASK (0x1FFFFFFFUL) /*================================================================================================== GLOBAL AND STATIC VARIABLES ==================================================================================================*/ extern volatile uint32 Can_RxIndication; extern volatile Can_IdType Can_RxId; extern volatile uint8 Can_RxDlc; extern volatile uint8 Can_RxData[]; // Array for anti-loop logic: stores the source IDs already processed. static Can_IdType knownSourceIds[MAX_KNOWN_SOURCE_IDS]; static uint32 knownSourceIdsCount = 0; #define DEBUG_ID_MSG_RECEIVED (0x7E0U) // Sent when a message is read from the bus #define DEBUG_ID_MSG_FORWARDED (0x7E1U) // Sent when a message is forwarded #define DEBUG_ID_MSG_IGNORED (0x7E2U) // Sent when a message is ignored (echo) static uint8 debugData[8] = {0}; void Send_Debug_Message(Can_IdType debugId, uint8 value) { Can_PduType debugPdu; debugData[0] = value; debugPdu.id = debugId; debugPdu.length = 8; debugPdu.sdu = debugData; debugPdu.swPduHandle = 0; (void)Can_43_LLCE_Write(CAN_TRANSMIT_HTH, &debugPdu); } /*================================================================================================== MAIN FUNCTION ==================================================================================================*/ int main(void) { Std_ReturnType retval = E_NOT_OK; Can_PduType txPdu; uint32 processed_rx_count = 0; PlatformInit(); Llce_Firmware_Load(); Can_43_LLCE_Init(CAN_LLCE_VARIANT); Can_CallBackSetUp(); (void)Can_43_LLCE_SetBaudrate(CAN_CONTROLLER_ID, 0); retval = Can_43_LLCE_SetControllerMode(CAN_CONTROLLER_ID, CAN_CS_STARTED); if (E_OK != retval) { while(1); } processed_rx_count = Can_RxIndication; while (1) { Can_43_LLCE_IPW_MainFunctionRead(); while (Can_RxIndication > processed_rx_count) { // Process the currently available data in the global variables Can_IdType cleanId = Can_RxId & CAN_ID_MASK; if (cleanId < CAN_ID_REWRITE_OFFSET) { txPdu.id = (Can_RxId & ~CAN_ID_MASK) | (cleanId + CAN_ID_REWRITE_OFFSET); txPdu.length = Can_RxDlc; txPdu.sdu = (uint8*) Can_RxData; txPdu.swPduHandle = 0; (void) Can_43_LLCE_Write(CAN_TRANSMIT_HTH, &txPdu); } // Incremental acknowledgment: we have processed ONE message. processed_rx_count++; // To handle the next message in the backlog, the driver needs // to reload the data of the next message into the global variables. // We call the read function again if there are still messages waiting. if (Can_RxIndication > processed_rx_count) { Can_43_LLCE_IPW_MainFunctionRead(); } } } return 0; } Re: Issue with CAN Message Forwarding with LLCE: Only One Message Gets Forwarded hi,MrAlexIV 感谢您的答复和详细资料。 你的 S32G CAN 功能从两个不同的设备接收 CAN 帧应该没问题,你能试试在发送设备上添加时间间隔吗?这将有助于排除故障。 您的第二次发送很可能影响了第一次发送的数据返回。 BR 乔伊 Re: Issue with CAN Message Forwarding with LLCE: Only One Message Gets Forwarded 嗨,乔伊, 再次感谢您的答复。 关于您的评论: 1) 是的,我增加了间隔时间。我注意到的是,即使时间间隔很短,它实际上也可以工作,但前提是CAN消息是从两个不同的设备发送的。让我来解释一下: 我使用的是 CAN 总线,用于连接我的外部设备(发送 CAN 消息)和 LLCE 线路。现在,我连接了两个外部设备。一个发送两条信息(0x01 和 0x02),另一个发送一条信息(0x05)。如果只有第一台设备处于活动状态,我只会转发 0x01(作为 0x51),而 0x02 会被忽略。但是,如果我还连接第二个发送 0x05 的设备,那么即使时间间隔很短,我也可以同时转发 0x01 和 0x05(如 0x51 和 0x55)。为什么会这样?当 0x01 和 0x02 都来自同一个设备时,为什么它也不能向前 0x02?是因为它们是由同一个外部设备发送的,还是仅仅因为时间间隔太短? 2) 是的,我使用的是 CAN 记录器(Kvaser CANKing)。我附上了一张屏幕截图:用红色你可以看到从第二个外部设备(0x05)收到的消息和由LLCE转发的消息(0x55);用蓝色你可以看到来自第一个外部设备(0x01 和 0x02)的消息,转发的消息来自LLCE(只有 0x01,而 0x02 似乎被忽略)。 3) 关于仲裁,您是什么意思? Thano you! Re: Issue with CAN Message Forwarding with LLCE: Only One Message Gets Forwarded 嗨,MrAlexIV 感谢您的回复。 您有增加间隔时间的测试方法吗? 您有 CAN 通信测试设备吗?它可以捕获 CAN 帧并查看通信状态。 CAN2CAN 通常在内部路由到其他端口,目标地址不应是它自己的地址。 如果存在帧冲突问题,能否在项目中考虑 CAN 帧的仲裁机制? BR 乔伊 Re: Issue with CAN Message Forwarding with LLCE: Only One Message Gets Forwarded - 我使用 1 个 CanController。在 “轮询接收” 和 “中断传输” 中,我使用 的是 2 个 canHWObject,一个用于 RX,一个用于 TX。我还尝试将其中两个用于 RX,每个 ID 使用一个,在 0x1, 0x7FF 和 0x2,0x7FF 中更改过滤器和掩码。但无论如何都没有成功。 Re: Issue with CAN Message Forwarding with LLCE: Only One Message Gets Forwarded 嗨,乔伊、 非常感谢你的建议。这很有帮助。 时间测试:我将尝试您的建议,在两个帧之间增加更多时间,并将结果反馈给您。 硬件 CAN2CAN 路由:这听起来是个很好的解决方案。我的主要要求是在单个物理 CAN 总线上执行此网关功能(即在同一条线路上接收和传输)。 您在评论中提到,CAN2CAN 路由"使用两个通道" 。我的问题是:能否对内部路由进行配置,以便将重映射的帧传输回与接收时相同的信道(例如,从 BCAN_0 传输回 BCAN_0)? 如果是,是否需要启用特定设置,例如在 CanController 配置中启用"Self Reception Enable"? 谢谢你澄清了这一点。 Re: Issue with CAN Message Forwarding with LLCE: Only One Message Gets Forwarded hi,MrAlexIV 感谢您的回复。 您有什么办法可以腾出更多时间来接收两个框架? LLCE 的 CAN2CAN 可以重新映射 CAN ID,您能考虑一下吗?它使用两个通道进行内部路由。您可以在 Can_Llce_DS_Can2Can_S32G399A_M7演示中查看 Can2CanRoutingTable_3的相关内容 。 BR 乔伊 Re: Issue with CAN Message Forwarding with LLCE: Only One Message Gets Forwarded 你好 - 我使用的是 RDB3 和 LLCE 1.0.9(因为示例项目的 1.0.10 有一个错误)。 - 是的,没错。以下是我的设置摘要: 1.使用一个通道发送和接收 我正在使用单个物理 CAN 通道(LLCE 实例)接收和发送多种类型的 CAN 帧。我的目标是创建一个简单的 CAN 网关。 接收:设备监听总线上的各种 CAN ID(例如 0x01、0x02 等)。 发@@ 送:在处理接收到的帧后,设备通过相同的物理信道发送经过修改的新帧。例如,如果接收到 ID 0x01,就会发送 ID 0x51。 2.路由逻辑 是的,我直接在应用固件(main.c)中实现了这些帧的路由逻辑。 路由规则非常简单:应用程序读取任何传入的 CAN 帧,通过添加固定偏移量(例如 0x50)来修改其 ID,然后将这个新帧安排在同一条总线上传输。LLCE 驱动程序仅用作硬件接口,用于接收原始帧并发送路由帧。 我还在论坛上发现了一个关于 FlexCan 的类似问题。在那里,他们使用了 RxFIFO,但我找不到 LLCE 的这个选项 Re: Issue with CAN Message Forwarding with LLCE: Only One Message Gets Forwarded 嗨,MrAlexIV 感谢您与我们联系。 您使用的是 RDB2 还是 RDB3?您使用的是哪个版本的 LLCE? 您想用一个通道发送两种 CAN 帧吗?您是否为这个 LLCE CAN 帧使用了任何路由? BR 乔伊 Re: Issue with CAN Message Forwarding with LLCE: Only One Message Gets Forwarded 此外,我使用了两个 CanHwObject(一个用于 Rx,一个用于 Tx)。在接收端,滤波器代码和掩码均为 0
View full article