Multi Source Translation Content

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Multi Source Translation Content

讨论

排序依据:
s32k3xx_dio_s32ct 情報キャッシュフォルダまたはアーティファクトが見つかりません エラー S32K3_Examples s32k3xx_dio_s32ct を実行していますが、このサンプル モデルのコード生成中にエラーが発生します。 添付のビルド概要と以下のログ詳細を確認して、サポートしてください。   ### s32k3xx_dio_s32ct のビルド手順を開始します ### 「モデル固有の」フォルダ構造にコードと成果物を生成する ### ビルドフォルダにコードを生成しています: C:\MATLABAddOns\Toolboxes\NXP_MBDToolbox_S32K3\S32K3_Examples\dio\s32k3xx_dio_s32ct\s32k3xx_dio_s32ct_ert_rtw ### s32k3xx_dio_s32ct.rtw でターゲット言語コンパイラを呼び出す ### システムターゲットファイルの使用: C:\MATLAB\R2024b\rtw\c\ert\ert.tlc ### TLC 関数ライブラリを読み込んでいます ........ ### カスタム データ用の TLC インターフェース API を生成しています。 ### ユーザー定義のコードをキャッシュするためのモデルを最初にパススルーします。 ### キャッシュモデルのソースコード ................................................ ### ヘッダーファイル s32k3xx_dio_s32ct_types.h の書き込み ### ヘッダーファイル s32k3xx_dio_s32ct.h を書き込んでいます。 ### ヘッダーファイル rtwtypes.h の書き込み ### ソースファイル s32k3xx_dio_s32ct.c を書き込んでいます ### ヘッダーファイル s32k3xx_dio_s32ct_private.h の書き込み ### ソースファイル s32k3xx_dio_s32ct_data.c を書き込んでいます ### ヘッダーファイル rtmodel.h を書き込んでいます。 ### ソースファイルert_main.cを書き込んでいます ### TLC コード生成が完了しました (12.619 秒かかりました)。 ### バイナリ情報キャッシュを保存しています。 # ## Using toolchain: S32DS GCC ## # 'C:\MATLABAddOns\Toolboxes\NXP_MBDToolbox_S32K3\S32K3_Examples\dio\s32k3xx_dio_s32ct\s32k3xx_dio_s32ct_ert_rtw\s32k3xx_dio_s32ct.mk' を作成しています... ### 's32k3xx_dio_s32ct' をビルディングしています: "C:\MATLAB\R2024b\bin\win64\gmake" -f s32k3xx_dio_s32ct.mk -j all C:\MATLABAddOns\Toolboxes\NXP_MBDToolbox_S32K3\S32K3_Examples\dio\s32k3xx_dio_s32ct\s32k3xx_dio_s32ct_ert_rtw>PATH=C:\MATLABAddOns\Toolboxes\NXP_MBDToolbox_S32K3\tools\build_tools\gcc_v10.2\gcc-10.2-arm32-eabi\bin;C:\MATLAB\R2024b\bin\win64;C:\Users\hp\AppData\Local\Programs\Python\Python310\Scripts\;C:\Programファイル (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\ProgramFiles\PuTTY\;C:\Users\hp\AppData\Local\Programs\Python\Python310\;C:\Program Files\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files (x86)\Geehy\openocd-20240916\OpenOCD-20240916-0.12.0\bin;C:\Programファイル (x86)\Geehy\xpack-windows-build-tools-4.3.0-1-win32-x64\xpack-windows-build-tools-4.3.0-1\bin;C:\Programファイル (x86)\GNU Arm Embedded Toolchain\10 2021.10\bin;C:\ProgramFiles\Git\cmd;C:\Program Files\dotnet\;C:\MATLAB\R2024b\bin;C:\Program Files\7-Zip;C:\Users\hp\.mcuxpressotools\dtc-1.6.1\tools\usr\bin;C:\Users\hp\.mcuxpressotools\gperf-3.0.1\bin;C:\Users\hp\.mcuxpressotools\wget-1.21.4;C:\Users\hp\.mcuxpressotools\ninja-1.12.1;C:\Users\hp\.mcuxpressotools\cmake-3.30.0-windows-x86_64\bin;C:\ProgramFiles\Python\Python310\Scripts\;C:\Program Files (x86)\Vim\vim90;C:\Users\hp\AppData\Local\Programs\Microsoft VS Code\bin C:\MATLABAddOns\Toolboxes\NXP_MBDToolbox_S32K3\S32K3_Examples\dio\s32k3xx_dio_s32ct\s32k3xx_dio_s32ct_ert_rtw>cd 。C:\MATLABAddOns\Toolboxes\NXP_MBDToolbox_S32K3\S32K3_Examples\dio\s32k3xx_dio_s32ct\s32k3xx_dio_s32ct_ert_rtw>if "all" == "" ("C:\MATLAB\R2024b\bin\win64\gmake" -f s32k3xx_dio_s32ct.mk -j all ) else ("C:\MATLAB\R2024b\bin\win64\gmake" -f s32k3xx_dio_s32ct.mk -j all ) "C:\MATLAB\R2024b\bin\win64\gmake": 割り込み/例外が発生しました (コード = 0xc00000fd、アドレス = 0x41a0c5) C:\MATLABAddOns\Toolboxes\NXP_MBDToolbox_S32K3\S32K3_Examples\dio\s32k3xx_dio_s32ct\s32k3xx_dio_s32ct_ert_rtw>echo makeコマンドがエラー255を返しました makeコマンドがエラー255を返しましたC:\MATLABAddOns\Toolboxes\NXP_MBDToolbox_S32K3\S32K3_Examples\dio\s32k3xx_dio_s32ct\s32k3xx_dio_s32ct_ert_rtw>exit /B 1   ### s32k3xx_dio_s32ct のビルド手順はエラーのため中止されました。   ビルドの概要   上位モデル ターゲット: モデル ビルド理由 ステータス ビルド期間 =============================================================================================================================================================== s32k3xx_dio_s32ct 情報キャッシュフォルダまたはアーティファクトが見つかりません。ビルドに失敗しました。           「 s32k3xx_dio_s32ct 」のビルディング中にエラーが発生しました             Re: s32k3xx_dio_s32ct Information cache folder or artifacts were missing Error こんにちは、 @mohit2904さん、 ログテキスト全体をコピーして貼り付けていただけますか?そうすれば、問題を特定しやすくなります。また、モデル例もご自由に添付していただければ、確認させていただきます。 よろしくお願いいたします。 ドラゴス
查看全文
S32K 输入捕获 嗨,团队、 我们使用的是 S32K146 微控制器,我们需要任何一个输入引脚作为输入捕获引脚,你能建议我应该使用哪个模块配置吗? 如果我使用 FTM 作为信号测量,我能否实现输入捕获功能?或者我应该使用 ic_pal 功能? 请支持 谢谢 Shruthi C Re: S32K Input Capture 你好,彼得、 我无法使用 INT_SYS_InstallHandler(FTM0_Ch0_Ch1_IRQn,PWM_InputCapture_IRQHandler,NULL);函数,因为它使用默认处理程序,而不使用FTM0_Ch0_Ch1_IRQn处理程序。 我的配置是 /* flexTimer_ic_1 InitConfig 的全局配置 */ ftm_user_config_t flexTimer_ic_1_InitConfig = {     { true,/* 软件触发信号状态 */ false,/* 硬件触发信号 1 状态 */ false,/* 硬件触发信号 2 状态 */ false,/* 硬件触发信号 3 状态 */ 虚假,/* 最大加载点状态 */ 虚假,/* 最小装载点状态 */ ftm_system_clock、/* INVCTRL 寄存器的更新模式 */ ftm_system_clock、/* SWOCTRL 寄存器的更新模式 */ ftm_system_clock、/* OUTMASK 寄存器的更新模式 */ ftm_system_clock、/* CNTIN 寄存器的更新模式 */ false,/* 自动清除触发信号 */ ftm_update_now、/* 同步点 */ }, ftm_mode_input_capture、/* FTM 的运行模式 */ ftm_clock_divid_by_1、/* FTM 时钟预分频器 */ ftm_clock_source_systemclk、 /* FTM 时钟源 */ ftm_bdm_mode_11、/* FTM 调试模式 */ 虚假, /* 中断状态 */ false /* 初始化触发信号 */ }; /* FlexTimer_IC_1 的输入捕获配置 */ ftm_input_param_t flexTimer_ic_1_InputCaptureConfig = { 1U,/* 通道配置数量 */ 65535U,/* 最大计数值 */ flexTimer_ic_1_InputCaptureChannelConfig/* 通道配置*/ }; /* FlexTimer_IC_1 输入捕获的信道配置结构 */ ftm_input_ch_param_t flexTimer_ic_1_InputCaptureChannelConfig[1] = {     { 0U,/* 通道 ID */ FTM_SIGNAL_MEASUREMENT,/* 输入捕获操作模式 */ ftm_rising_edge、/* 边缘对齐模式 */ ftm_falling_edge_period_measurement、/* 信号测量操作类型 */ 0U,/* 过滤器值 */ 虚假,/* 过滤器状态(启用/禁用) */ true,/* 连续测量状态 */ NULL,/* 通道事件的回调参数向量 */ NULL/* 通道事件的回调向量 */    } }; Re: S32K Input Capture 您好, 是的,这些功能应该足够了。SDK 驱动程序启用了 FTM 通道中断,我认为正确的处理程序应从启动时分配。如果不是正确的处理程序,则为 FTM0_Ch0_Ch1_IRQHandler。 调用 ftm_drv_getInputCaptureMeasuremeasum 以获取捕获的值。 BR, Petr Re: S32K Input Capture 你好,彼得、   感谢您的明确说明。   我可以使用这些函数将 FTM 引脚初始化为输入捕获 `ftm_drv_init () ``ftm_drv_init_initCapture () `ftm_drv_initInputCapture ()`   并安装一个 IRQ 处理器来捕获脉冲发生情况 `INT_SYS_InstallHandler(FTM0_Ch0_Ch1_IRQn, PWM_InputCapture_IRQHandler, NULL)`     请支持   谢谢 Shruthi C Re: S32K Input Capture 您好, 最常见和最有效的方法是在输入捕获模式下配置 FTM 并使用具有 FTM 功能的引脚。每个 FTM 通道均可配置为输入捕获模式,在该模式下,它捕获输入信号边缘(上升、下降或两者兼有)上的计时器值。这通常用于测量:信号周期、脉冲宽度、频率。 IC PAL 驱动器允许检测输入信号并测量通道输入信号的脉冲宽度或周期。其设计目的是使其可移植到支持 FTM、eMIOS、FLEXPWM 和 ETIMER 的所有平台和 IP 上。 因此,如果您想获得全面的控制和性能,请直接使用 FTM。如果您希望代码更简单、更便于携带,请使用 IC PAL。 BR, Petr Re: S32K Input Capture 您好, 您可以直接参考 SDK 示例 (ftm_signal_measurement)。 或共享显示该问题的简化项目。 BR, Petr Re: S32K Input Capture 您好, 在 SDK 示例中,我直接提到(ftm_signal_measurement)。 在这个例子中,他们没有使用中断方法,他们使用了轮询方法,然后他们调用了 ftm_drv_g etInputCap t ureMeasuremeasum 我正在寻找带中断功能的 FTM 信号测量,一旦输入捕获识别出信号,我需要中断才能触发并调用 ISR 中的 ftm_dr v_getInputCaptureMeasuremeasurem ensum 函数 请提供相关代码 谢谢 Shruthi C Re: S32K Input Capture 您好, 如果您需要再次安装处理程序,您应该有 extern void FTM0_Ch0_Ch1_IRQHandler(void); INT_SYS_InstallHandler(FTM0_Ch0_Ch1_IRQn, FTM0_Ch0_Ch1_IRQHandler, NULL); BR, Petr Re: S32K Input Capture 你好, 是的,我确实定义了该函数,但函数调用后会进入无限循环,并继续运行 整个系统将无法运行, 谢谢 Shruthi C Re: S32K Input Capture 你好、 感谢您的支持和代码片段,我将进行检查 T&R、 Shruthi C Re: S32K Input Capture 你好,我 能否获得任何支持中断的 FTM 引脚的输入作为输入捕获 谢谢! Shruthi C Re: S32K Input Capture 您好, 驱动程序使用中断来捕获事件,只是没有直接显示在示例中。 我修改了 FTM IC 设置,使其使用单发模式,并添加了从驱动程序中断调用的回调。 ftm_signal_measurement_s32k146 演示修改后的 main.c 参见附件。 BR, Petr
查看全文
SW32K3_IPCF_4.2.0_D2412はS32K328チップをサポートしていますか? S32DS 3.6.3 ベースSW32K3_IPCF_4.2.0_D2412 パッケージを使用して、S32K328 チップ上で IPCF を構成するときに、上記のような問題が発生しました。コア タイプとコア インデックスを構成できません。何が原因なのか説明していただけますか?#S32K328チップをサポートする他のIPCFソフトウェアパッケージはありますか? Re: Does the SW32K3_IPCF_4.2.0_D2412 support the S32K328 chip こんにちは、 リリースノートを見ると、S32K328 を直接サポートしていないようです。 しかし、代わりに S32K358 を使用しても問題はないと思います。 IPCF_S32K3_4.2.0_ReleaseNotes_Updated_D2502.pdf も確認しましたが、結果は同じです。唯一の違いはロックステップなので、代わりに S32K358 を使用しても問題はないと思います。 S32K328 が IPCF リリースで直接サポートされない理由については情報がありません。 よろしくお願いいたします。 ピーター Re: Does the SW32K3_IPCF_4.2.0_D2412 support the S32K328 chip S32K328 をサポートする IPCF ソフトウェア パッケージのバージョンはありますか?そうでない場合、プロジェクトが S32K324 用に完全に構成されている場合、S32K328 ベースのプロジェクトで実行できますか? Re: Does the SW32K3_IPCF_4.2.0_D2412 support the S32K328 chip こんにちは、 互換性を保つために、S32K328 の代わりに S32K358 の直接導関数を使用します。 よろしくお願いいたします。 ピーター
查看全文
S32K364:使用 EMIOS、BCTU 和 DMA 进行 ADC 转换 您好, 我正在尝试将 EMIOS0 ch 8 配置为触发扫描 ADC3 和 DMA 的 8 个通道的 BCTU,将转换结果移动到名为 ADC_3_RAW [] 的变量中。 转换似乎已经开始: 但该值不会通过 DMA 传输,也不会刷新 我正在使用这个 SDK: 每次使用 ConfigTool 生成代码时,我都需要修改以下代码: #define ADC_SAR_IP_PRESAMPLING_AVAILABLE ((1U)) 至 #define ADC_SAR_IP_PRESAMPLING_AVAILABLE ((0U)) 这正常吗? 项目附在这里。 敬请期待,弗朗切斯科。 Re: S32K364: ADC conversions using EMIOS, BCTU and DMA 你好@francescovico 我检查了你的代码,你的配置和用法都不正确。 1。DMA 的触发信号来源是什么?我没有看到您在配置中配置了"Rm" 模块。 2。既然你在使用 BCTU 来产生 ADC 的触发信号,为什么不使用它提供的 FIFO?这与 DMA 的功能完全一致。 https://community.nxp.com/t5/S32K-Knowledge-Base/RTD400-LLD-K344-Center-Aligned-PWM-Trigger-ADC-BCTU/ta-p/2034211 3.此外,BCTU 驱动程序已经支持 DMA。 https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K344-PIT-BTCU-parallel-ADC-FIFO-DMA-DS3-5-RTD300/ta-p/1732444 Re: S32K364: ADC conversions using EMIOS, BCTU and DMA 你好@Senlent、 我同意你的看法,我已经忘记了 Rm 模块,现在它出现了。 我很难理解 S32K364 的配置(只有 ADC3、ADC4、ADC5、ADC6 和 BCTU1),类似的配置使用 S32K324 在我的办公桌上也能正常工作 我想: - 触发信号 BCTU1 使用 EMIOS0 CH 8 扫描 ADC3 频道 - 触发信号 BCTU1 使用 EMIOS0 CH 9 扫描 ADC4 频道 而使用 DMA 会在变量 ADC_X_Raw[] 中产生结果。 我的配置工具设置是 EMIOS: RM: BCTU (红色字段不清楚): ADC: 附上项目。 敬请期待,弗朗切斯科。 Re: S32K364: ADC conversions using EMIOS, BCTU and DMA 你好@francescovico 我很难理解 S32K364 的配置(只有 ADC3、ADC4、ADC5、ADC6 和 BCTU1),类似的配置使用 S32K324 在我的办公桌上也能正常工作 也请分享您在 S32K324 上的项目,我会抽时间帮您检查。 我们的团队目前工作过度繁忙,我需要更多时间来处理您的问题。请耐心等待。 Re: S32K364: ADC conversions using EMIOS, BCTU and DMA 你好@Senlent、 非常感谢您的帮助! 您可以在附件中找到使用 S32K324 的项目(运行正常)。 使用 trgmux 的 PIT 计时器触发信号扫描 ADC0 和 ADC1 通道的 BCTU。 变量ADC_0_Raw[] 和 ADC_1_Raw[] 的DMA 传输转换结果。 敬请期待,弗朗切斯科。 Re: S32K364: ADC conversions using EMIOS, BCTU and DMA 你好@francescovico 我们没有 S32K36x 评估版,因此无法直接测试您的代码。 不过,我也发现了一些问题: 这里,关于 Adc 目标掩码: 对于 ADC0,应将其设置为 0b001。 对于 ADC1,应将其设置为 0b010。 如果你需要同时触发信号 ADC0 和 ADC1,那么你应该将其设置为 0b011,依此类推。 在您的项目中,您使用的是 ADC3 和 ADC4,因此相应值应设置为 0b0100 和 0b1000。 Re: S32K364: ADC conversions using EMIOS, BCTU and DMA 你好@francescovico 此外,"Adc index" 也是错误的。 Re: S32K364: ADC conversions using EMIOS, BCTU and DMA 你好@Senlent、 我已经解决了这个问题。 随函附上使用ADC3、ADC4和ADC5转换27个模拟通道的项目。   问题在于,要初始化 ADC3,必须在实例中使用 0 调用 init 函数:   /* 启动 ADC3*/ Adc_Sar_Ip_Init(0,&AdcHwUnit_0);   在 ConfigTool 中,要初始化 BCTU 以触发信号 ADC3,必须设置 Adc 目标掩码,如下所示: ADC4 和 ADC5 也是如此。 关于 ADC6,ConfigTool 没有生成初始化结构,手动输入该结构后,ADC6 仍然无法工作... 幸运的是,在我的应用中无法使用 ADC6... 敬请期待,弗朗切斯科。 Re: S32K364: ADC conversions using EMIOS, BCTU and DMA 你好@Senlent、 好 感谢您的帮助! 敬请期待,弗朗切斯科。 Re: S32K364: ADC conversions using EMIOS, BCTU and DMA 你好@francescovico 这是完全错误的! 在您之前提供的示例程序"ADC_S32K324.rar" 中、使用 ADC0 和 ADC1,BCTU 的"Adc Target Mask" 分别设置为"1" 和"2" 即0b0 和 0b10,分别对应 ADC0 和 ADC1。 您的初始化代码也对应于 ADC0 和 ADC1。 Adc_Sar_Ip_Init(ADCHWUNIT_0_BOARD_INITPERIPHERALS_INSTANCE,&AdcHwUnit_0_BOARD_InitPeripherals); Adc_Sar_Ip_Init(ADCHWUNIT_1_BOARD_INITPERIPHERALS_INSTANCE,&AdcHwUnit_1_BOARD_InitPeripherals);   adchwunit_0_board_initperipherals_instance = 0; adchwunit_1_board_initperipherals_instance = 1; ” 问题在于,要初始化 ADC3,必须在实例中使用 0 调用 init 函数:   /* 启动 ADC3*/ Adc_Sar_Ip_Init(0,&AdcHwUnit_0);   ” 这完全是错误的,我之前的回答是正确的。 应设置"Adc 目标掩码" = 0b100,即 adc3,然后调用"Adc_Sar_Ip_Init(3,&AdcHwUnit_0);" Re: S32K364: ADC conversions using EMIOS, BCTU and DMA 你好@Senlent、 我同意你的看法,我的解决方案虽然不明确,但很有效。 我提醒你,微控制器是 S32K364,只有下面的红色: 附上两份记录,一份是我的解决方案,一份是您的建议。 我的建议是它可以工作(矢量 ADC_3_Raw[]...ADC_5_Raw[] 的值是正确的)。 根据您的建议,执行将在HardFault_Handler中进行。 敬请期待,弗朗切斯科。 Re: S32K364: ADC conversions using EMIOS, BCTU and DMA 你好@francescovico 你的解决方案是正确的。 这是我的误解;我不知道 S32K36x 采用了不同的架构。
查看全文
TPMS 位定时 大家好, 我正在尝试使用 FXTH87E 传感器匹配 OEM TPMS 传感器的位定时。 我修改了入门项目 FXTH87_E_FW_Periodic_RF_Tx。 我所遇到的问题是,我正试图使发送的数据达到 ~25us 位定时,但有些位是 ~50us 位,有些位是 ~25us 位。 我曾尝试通过 RFCR0 将数据传输速率提高一倍,达到 ~40 kbits,这样就解决了前导码问题,但最终得到的比特数却只有 ~13us。 我使用的也是曼彻斯特编码。 我似乎无法找到正确的设置,让所有比特都以相同的数据速率传输。 我附上了我的 main.c 和两个逻辑分析仪捕获,一个是 OEM TPMS 传感器,另一个是我的。我正在尝试复制 ~5ms 的数据包长度和 ~25us 的位定时。 目前,我得到的数据包长度约为 7ms,可变位定时约为 50us 和 25us。 如有任何建议,我们将不胜感激。 致以最诚挚的问候 Re: TPMS bit timing 你好,克雷格、 从主设备中的代码来看,以 19200 bps 的数据传输速率(RFCR0 配置)传输 136 比特。因此传输时间为 136/19200 = 7 毫秒。因此,从代码来看,完全可以预期帧的持续时间是 7 毫秒,而不是 5 毫秒。 数据传输速率为 19200 bps,一个比特持续约 50 秒。在射频配置中,曼彻斯特编码被选择为 434 MHz。而在曼彻斯特,在位的中间(约 25 秒后)有一个高到低或低到高的转换。这意味着低电平或高电平状态可以持续 25 us 或 50 us。 我将手册(UM11227)中显示曼彻斯特编码的摘录复制如下。 因此,捕获的波形与 main.c 中的配置相匹配,没有什么不正常的。 BRs, Tomas Re: TPMS bit timing 你好,托马斯、 感谢您的详细答复。 同样使用 FXTH87E 的 OEM 传感器一定没有使用标准的数据发送方式? 下面的逻辑分析器捕获没有像 UM11227 中显示的那样有过渡效果。据我所知,连续的 0 和 1 并没有产生转换,它只是在两个周期内保持相同的值,即 ~50us。 解码后的捕获为: 010101010101010101010010110010101010101 他们是否可能以某种方式修改了发送的数据,以创建上述数据,使连续比特的比特时序加倍,而不发生转换? 我尝试过使用不同的 CODE[1:0] 设置,还将位定时提高到 40 kbit 以获得 ~25us 位定时,但并没有消除过渡。 对不起,我的问题很简单,这是我第一次尝试复制数据包。 如能提供进一步指导,将不胜感激。 致以最诚挚的问候 克雷格 Re: TPMS bit timing 经过几个小时的实验,我相信我已经取得了进展。 我知道数据是曼彻斯特编码的。 了解到这一点后,我使用了 NRZ,这样就能实现单个比特 25us 和两个连续比特 50us 的一致比特定时。 然后我继续使用曼彻斯特编码对数据字节进行编码。经过反复试验,我终于能够复制 OEM 数据包,并通过接收器成功解码。 在我努力工作的过程中,感谢您的指导。 请将此问题视为已解决。 致以最诚挚的问候 克雷格
查看全文
YouTube 视频:“试用电压电平转换器评估板:NTS0304EUK-ARD”(日本博客)已发布 双向电压电平转换器评估板: 视频“如何使用NTS0304EUK-ARD ”现已在NXP YouTube频道上线↓↓   电压电平转换器:NTS0304E NTS0304E是一款 4 位双电压转换收发器,具有自动方向检测功能,可实现双向电压电平转换。 低压侧(A侧)可转换0.95V至3.6V之间的信号电压,高压侧(B侧)可转换1.65V至5.5V之间的信号电压。由于它可以自动控制双向信号,因此也可用于I²C等信号。 评估板:NTS0304EUK-ARD NTS0304EUK-ARD是这款芯片的评估板。它是一款 Arduino 扩展板,包含 NTS0304E 芯片、一个 I²C/SPI 目标设备和两个 LDO(低压差线性稳压器)。该评估板可用于在各种带有 Arduino 扩展板兼容接口的微控制器板上测试 NTS0304E 的电压转换性能。   视频:“如何操作 NTS0304EUK-ARD ” 本视频展示了使用开源示例代码在三种类型的微控制器上进行演示的操作。 首先, MCUXpresso IDE 和FRDM-MCXN236的组合 接下来,我们来看一个在i.MX RT1050上运行MicroPython的示例。 最后,采用Arduino UNO R3 的方法 你可以在这里看到。 ========================= 我们目前无法回复此帖子“评论”部分的评论。 对于由此造成的不便,我们深表歉意。如有任何疑问,请参阅“ NXP技术问题-如何联系我们(日语博客) ”。 (如果您已经是恩智浦的分销商或与恩智浦有合作关系,您可以直接询问负责人。) 双向电压电平转换器评估板:已发布题为“如何使用 NTS0304EUK-ARD ”的视频。 NTS0304E 是一款 4 位双电压转换 收发器 ,具有自动方向检测功能,可实现双向电压电平转换 。 i.MX RT 处理器 界面 介绍 MCUXpresso MCUXpresso IDE 日本博客
查看全文
蓝牙测距车辆准入系统 Blue Ravens(蓝牙测距车辆准入系统)是恩智浦开发的一套系统解决方案,旨在帮助客户使用恩智浦产品设计基于BLE的专属汽车准入解决方案。其设计目的是通过模块化方案支持各种汽车准入用例。主要目的(但不限于)是介绍信道探测技术和恩智浦BLE切换在汽车用例中的所有功能和优势。 信道探测是新型低功耗蓝牙(BLE)标准(BLE 6.0)的组成部分,可作为高精度距离测量解决方案,且适用于恩智浦KW47芯片。 BLE切换是恩智浦开发的一项专有功能,可在不断开连接的情况下,使用带外信道(例如:CAN)将BLE连接从一台设备无缝传输到另一台设备。这一传输操作不会影响对等设备,因此可保证互操作性。该功能还可用于启用BLE连接RSSI嗅探,以提高基于RSSI的系统网络安全性。(KW45和KW47) 由于其模块化特性,该系统可用于多种用例,从简单的 BLE 连接系统到完整的 BLE 信道探测定位系统。请注意,信道探测仅在 KW47 芯片上受支持。KW45 只能用于简单的 BLE 系统。默认情况下,KW47 系统支持基本的信道探测(Channel Sounding),用于测量一个远程设备(数字钥匙)与多个不同固定设备(Car Anchor)之间的距离。在任何时刻,只有一个锚点连接到数字密钥。其他锚点(未连接)可设置为连接 RSSI 嗅探模式(基于切换)。这种模式通过访问连接的 RSSI 值而不是广播包来提升系统网络安全。这些 RSSI 值可用于估算哪个锚点可用于轮询,或用于保留车辆周围的最佳 BLE 链路。     该系统由多块KW4x板组成,每块板各自承担特定的角色。一块开发板可用作数字密钥,由用户随身携带;另一块板则代表汽车子系统。在此汽车子系统上,所有板都通过CAN总线相互连接。CAN总线为所有板提供12V电源,并支持板间通信: 控制单元(KW4x EVK板) 车载锚点(KW4x LOC板) 数字密钥(KW4x LOC板) 角色: 中央决策节点 功能: - 协调BLE锚点。 - 根据接收到的数据触发操作   角色: 通过 CAN 总线连接到控制单元的 BLE 设备 功能: - 广播BLE存在信号。 - 等待数字钥匙连接。 - 在会话期间充当CS启动器。 角色: 充当远程BLE设备 功能: - 扫描BLE锚点。 -启动与 Car Anchor 的连接。 - 连接后,表现为 CS 反射器。     桌面应用可用于监测系统状态和测量结果: 通过连续测量每个锚点,汽车子系统能够估算数字密钥的位置(免责声明:此解决方案在动态环境中的准确性有待提升)   特性   BLE 连接 目前仅支持1个连接(多对等计划) BLE信道探测(仅限KW47) 是 RSSI监听 是的——所有未连接的锚点 自动排除次优锚点 是 包含CS上下文的BLE 切换(无CS重复) 是 三边测量算法 是 测量过滤(实时) 是 触发操作的检测区域(例如:欢迎区) 是 车载锚点CAN同步(无线电核心同步) 否(计划于下一版本发布) 信道探测嗅探 否(正在进行可行性研究)   关键绩效指标(KPI)   锚点数量 从2到8 数字密钥数量 1 BLE 连接间隔 7.5ms – 4s(默认 = 30ms) BLE切换连接传输时间(+CS上下文传输) <60毫秒(CI=30毫秒) <50毫秒(CI=10毫秒) CS 启动延迟 (2+7)*CI CS测量和数据传输(实时) <70毫秒(CI=30毫秒) CS 算法 <30ms 全周期时间(CS + 切换) [交接完成后,算法会在锚点上异步运行] 390毫秒(CI=30毫秒) 190毫秒(CI=10毫秒) 视距CS测量范围 最长100米(在10dBm时) Back Pocket CS 测量范围 10米(在10dB时)   该解决方案正在开发中,后续版本会不断优化。 该系统还可以通过超宽带支持进行增强。 视频 此视频正在处理中。请在几分钟后重试。 (在 “我的视频” 中查看) 如需获取访问权限,请联系[email protected]
查看全文
OTP mirror register map Subject: Request for PF5020 OTP Mirror Register Map Documentation Hi, We are currently working on communication between the PF5020 PMIC and an NXP controller. During our review of the PF5020 datasheet, we could not find detailed information regarding the OTP mirror register map, including register addresses and pin-level descriptions related to OTP configuration. The output voltages we need are 1.1v,1.8v and3.3v Could you please advise if this information is available in a separate document? This is essential for us to correctly interpret and configure the OTP-related settings in our system. We would appreciate your guidance or any relevant documentation you can share. Thank you in advance! Shivani  Re: OTP mirror register map Hi, Section 16.1 of the PF5020 datasheet provides a complete OTP mirror register map, including: - Register addresses  - Configuration fields such as:    OTP_VSWx for buck output voltages    OTP_VLDOx for LDO output voltages    OTP_SWx_SEQ for power-up sequencing    OTP_SWx_PDGRP for power-down grouping    OTP_SWxILIM for current limit settings    OTP_SWxUV_TH and OTP_SWxOV_TH for UV/OV thresholds The VDDOTP pin determines whether the device loads configuration from: - OTP fuses (when VDDOTP = GND) - Hardwired defaults (when VDDOTP = V1P5D) The TBBEN pin enables Try-Before-Buy (TBB) mode, allowing temporary configuration and testing of OTP settings before committing to fuse programming. Keep in mind that OTP programming is not allowed in production by the customer. Only NXP or authorized partners (lower volume) should perform this. During development you can use the KITPF502xSKTEVM. To configure the PF5020 for 1.1V, 1.8V and 3.3V, you would: - Set OTP_VSWx or OTP_VSWND1 to the appropriate values for 1.1V and 1.8V - Set OTP_VLDO1 or OTP_VSWND1 to 3.3V, depending on current requirements These values are programmable in the OTP mirror registers and can be tested in TBB mode before committing. BRs, Tomas
查看全文
ADC startup time for S32K3 I'm using S32K3 ADC, and my test found that it takes about 30ms from powering up to initialize the ADC, performing calibration, turning on conversion, and completing the acquisition for the first time, is this normal? How to shorten this time? Re: S32K3的ADC启动时间 Hi RTD Quality packages的ProfileReport.xlsx列了各个APIs的执行时间。 (比如...\SW32K3_S32M27x_RTD_R21-11_5.0.0 _D2410_QualityPackage\ADC\RTD_ADC_ProfileReport.xlsx) 建议检查一下具体是哪个函数的执行时间过长导致的。 另外请问Adc_Calibrate的返回结果是什么?如果超时了的话,建议修改超时设置: 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 question at a later point in time. -------------------------------------------------------------------------------
查看全文
Lear - S32k344 - Mismatch btw. Crypto upper and lower driver Hello Team, I have received the following from Lear: ------------------------------------------------------------------------------------ there is a small problem in the service of “HSE AEAD Service” . I am trying the encrypt in GCM mode : In the Crypto driver the secondary input is a must and is checked against in the Crypto_ProcessJob method (see below array used in Crypto_GetJobErrorForSecondaryInputPtr method) : But in the HSE FW manual the AAD is optional : When I call this : Csm_AEADEncrypt(CsmConf_CsmJob_CsmJob_AES128_ENC_SECCNT_TMP,CRYPTO_OPERATIONMODE_SINGLECALL,&TempPlainTxt[0],16u,NULL_PTR,0u,&TempCipherSecCnt[0],&TagLenPtr,&TempTagSecCnt[0],&TagLenPtr); I get an error that the 2 nd input is a NULL (inside the Crypto_ProcessJob method ..) Can you please check , what to do event if the AAD is optional and not used ? -------------------------------------------------------------------------- BR Stefano Board: S32K344 Component: HSE FW Priority: HIGH SECURITY_CRYPTO Type: ISSUE Re: Lear - S32k344 - Mismatch btw. Crypto upper and lower driver According to AUTOSAR specifications, AEADENCRYPT and AEADDECRYPT require SecondaryInputPointer and SecondaryLength. Under HSE firmware, these parameters may be ignored later depending on its processing logic. Re: Lear - S32k344 - Mismatch btw. Crypto upper and lower driver @MarianVilau  @StefanoGattazzo  As discussed with Marian, I moved this ticket to https://jira.sw.nxp.com/browse/CESSCEP-23 to support from our project I will update the feedback on this community soon Re: Lear - S32k344 - Mismatch btw. Crypto upper and lower driver Hi @StefanoGattazzo , This ticket is more related to Cuong side. He will help you with this. Thanks, Marian Vilau Re: Lear - S32k344 - Mismatch btw. Crypto upper and lower driver Hello, https://jira.sw.nxp.com/browse/FWCRYPTO-198 BR, Marian Re: Lear - S32k344 - Mismatch btw. Crypto upper and lower driver Hi MarianVilau, Pls. let me have the ticket number. BR Stefano Re: Lear - S32k344 - Mismatch btw. Crypto upper and lower driver Hi @StefanoGattazzo , I created a ticket in the FW Crypto Jira project. BR, Marian Vilau Re: Lear - S32k344 - Mismatch btw. Crypto upper and lower driver Hi MarianVilau, what I know, as this is an issue from Lear,  is : JLR ePDU , S32K344 (A/B SWAP HSE FW 0.2.55) I know also they temporary solve the issue with a DummyVariable pointer. BR Stefano Re: Lear - S32k344 - Mismatch btw. Crypto upper and lower driver Hi @StefanoGattazzo , I am analyzing the requirements, will provide response soon. Meanwhile please provide the demo app version and fw version that you use . Regards Marian Vilau
查看全文
Zephyr SDKバージョンのインストール Zephyr SDKは、Zephyrアプリケーションをビルドするためのビルド・ツールセットです。GCCやCMakeが含まれており、各Zephyrリリースは特定の Zephyr SDKバージョンに紐づいています。このバージョンは、Zephyrリポジトリ内のSDK_VERSIONファイルに記載されています。推奨されているZephyr SDKバージョンを使用することが重要です。バージョンが一致しないと、ビルド・エラーが発生する可能性があります。 たとえば、Zephyr v4.1はZephyr SDK v0.17.0を指定します。Zephyr SDK v0.17.2(Zephyr v4.2 用)を Zephyr v4.1 で使用すると、ビルドエラーが発生します。Zephyr v4.1 用のアプリをビルドする必要がある場合は、Zephyr SDK v0.17.0をインストールしてください。 複数のZephyr SDKバージョンをインストールしておき、ビルド時に切り替えることが可能です(下記の手順を参照)。 フルインストールと最小インストールの比較 フルインストール(Full Install): すべてのサポートされているSoCアーキテクチャ向けの全ツールチェーンが含まれます。初心者に推奨されますが、より多くのディスク容量とダウンロード時間が必要です。 最小インストール(Minimal Install): 必要なツールチェーンのみを選択できます。スペースと時間を節約できます。 最小インストールの場合は、setup.cmdスクリプトを実行して、インストールするツールを選択します。NXPボードでは、次を選択します。 Zephyr SDK CMakeパッケージを登録する Install host tools aarch64-zephyr-elf (64ビットARM) arm-zephyr-eabi (32ビットARM、NXP MCUを含む) オプション xtensa-nxp… (Cadence Tensilica DSPコア) Zephyr SDKをインストールします これらの手順では、MCUXpresso Installer、CLI(West)、または手動ダウンロードを使用してZephyr SDKをインストールする方法を説明しています。 MCUXpresso Installerを使用したインストール MCUXpresso InstallerはZephyr v4.2からZephyr用パックをサポートし始めました。各パックは対応するZephyr SDKバージョンをインストールします(例:v4.2パックはSDK v0.17.2をインストール)。このオプションはNXP開発用の最小限のツールセットをインストールします。 MCUXpressoインストーラーは、古いZephyr SDKバージョンをサポートしていません。v0.17.1以前の場合は、Westまたは手動インストールを使用してください。 West CLIを使用したインストール Zephyr ProjectはWestにZephyr SDKのインストール機能を追加しました。 CLIの場合は、Python仮想環境をアクティブ化してから、次を実行します。 west sdk install --version 0.17.0   --version が省略された場合、WestはZephyrリポジトリのSDK_VERSIONファイルにあるバージョンを使用します。 デフォルトでは、Fullパッケージがインストールされます。最小のインストールを行う場合は、 -i を追加します。 手動ダウンロードによるインストール https://github.com/zephyrproject-rtos/sdk-ng/releasesから、Zephyr SDKをダウンロードします。 使用するホストOS向けに、FullまたはMinimalを選択します。 WestとMCUXpressoの場合のデフォルトの場所として、ユーザーフォルダーに展開します。 Windows: C:\Users\ \zephyr-sdk-0.17.0 Ubuntu: /home/ /zephyr-sdk-0.17.0 Zephyr SDKのバージョンの選択 複数のZephyr SDKバージョンを共存させることができます。Westはデフォルトで最新バージョンを使用しますが、次の方法で上書きできます。 VS Code: 例をインポートする際は、ウィザードでZephyr SDKバージョンを選択してください。 CLI:環境変数 ZEPHYR_SDK_INSTALL_DIR を、ビルド前に設定します。このコマンドはUbuntuでその変数を設定します。 export ZEPHYR_SDK_INSTALL_DIR="/home/ /zephyr-sdk-0.17.0" またはWindowsの場合: set ZEPHYR_SDK_INSTALL_DIR= C:\Users\ \ zephyr-sdk-0.17.0   Zephyr Knowledge Hubに戻る    
查看全文
Traffic bifurcation using VSP on LS1046ARDB 1. FMan VSP Hardware Overview 2. The usage of Virtual Storage Profiles 3. FMan VSP Driver 4. Traffic bifurcation using VSP on LS1046ARDB
查看全文
例 S32R274 Watchdog_example S32DS_1.1 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> ******************************************************************************** *詳細な説明: * アプリケーションはFCCUとソフトウェアウォッチドッグを初期化します。SWTタイムアウトの期限が切れると、 ※マイコンはリセットされます。 * * マクロLONG_RESETは、どのリセットが実行されるかを定義します。LONG_RESET が 1 の場合、長い ※リセットを行い、それ以外はショートリセットを行います。 * * ------------------------------------------------------------------------------ *テストHW:S32R274RRUEVB、MPC57xxマザーボード ※MCU:S32R274KAMMM 1N58R * Fsys:PLL0 240MHz * Z4コア120MHz *デバッガ:Lauterbach Trace32 * PeMicroのUSB-ML-PPCNEXUS ※対象:internal_FLASH(デバッグモード、debug_ram、リリースモード) * EVB接続:デフォルト * * ******************************************************************************** <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> ******************************************************************************** *詳細な説明: * アプリケーションはFCCUとソフトウェアウォッチドッグを初期化します。SWTタイムアウトの期限が切れると、 ※マイコンはリセットされます。 * * マクロLONG_RESETは、どのリセットが実行されるかを定義します。LONG_RESET が 1 の場合、長い ※リセットを行い、それ以外はショートリセットを行います。 * * ------------------------------------------------------------------------------ *テストHW:S32R274RRUEVB、MPC57xxマザーボード ※MCU:S32R274KAMMM 1N58R * Fsys:PLL0 240MHz * Z4コア120MHz *デバッガ:Lauterbach Trace32 * PeMicroのUSB-ML-PPCNEXUS ※対象:internal_FLASH(デバッグモード、debug_ram、リリースモード) * EVB接続:デフォルト * * ********************************************************************************
查看全文
机器视觉课程#2:CNN概述 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 单层感知器 在介绍硬件具体细节之前,本课程将介绍一些有关 CNN 如何工作以及其用途的信息。CNN 广泛应用于图像和视频识别应用,因此它们无疑引起了汽车界的兴趣。CNN 与神经网络类似,由具有可学习权重和偏差的神经元组成。每个神经元接收几个输入,对它们进行加权和,将其传递给激活函数并以输出做出响应。 神经网络的基本结构是感知器。感知器如下图所示: 感知器由权重(包括称为偏差的特殊权重)、求和处理器和激活函数组成 还有一个额外的输入节点,称为偏差,它有点像 所有输入都单独加权,相加并传递到激活函数。 每个激活函数(或非线性函数)都采用单个数字并对其执行某种固定的数学运算。实际中会遇到几种激活函数: Sigmoid:接受实值输入并将其压缩到 0 到 1 之间的范围内 σ(x)= 1 /(1 + exp(−x)) tanh:接受实值输入并将其压缩到 [-1, 1] 范围内 tanh(x) = 2σ(2x) − 1 ReLU:ReLU 代表整流线性单元。它采用实值输入并将其阈值设为零(用零替换负值) f(x)= 最大值(0,x) Bias 的主要功能是为每个节点提供一个可训练的常数值(除了节点接收的正常输入之外)。 多层感知器 多层感知器 (MLP) 包含一个或多个隐藏层(除了一个输入层和一个输出层)。单层感知器只能学习线性函数,而多层感知器还可以学习非线性函数。     所有连接都有与之相关的权重,每一层都有自己的偏差。多层感知器学习的过程称为反向传播算法。最初,所有边权重都是随机分配的。对于训练数据集中的每个输入,神经网络都会被激活并观察其输出。将此输出与我们已经知道的期望输出进行比较,并将错误“传播”回上一层。我们会注意到这个错误,并相应地“调整”权重。重复此过程,直到输出误差低于预定阈值。“调整”权重的过程利用梯度下降算法来最小化误差函数,我们不会对此进行详细介绍。 卷积神经网络 热修复
查看全文
使用 LS1021A IoT 主机处理器和 MKW20 zigbee 切换色调灯泡的快速演示设置 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 使用 LS1021A 物联网主处理器和 MKW20 Zigbee 控制器快速设置开关色相灯泡。我们通过两步设置进行照明演示。第一步是使用 TWR-KW20 EVB通过 PC 工具(称为测试工具)控制色相灯泡。下一步是将 LS1021 用作主处理器,而不是PC测试工具。我们使用 KW20 USB 适配器、LS1021A 和色相灯泡。KW20 USB 适配器通过 Beekit 配置为 Zigbee 协调器,LS1021A 连接此 KW20 USB 适配器,然后 LS1021A发出开/关命令来开关色相灯泡。然后,您可以使用飞思卡尔的LS1021A 和 MKW20 系列进行快速演示。 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 使用 LS1021A 物联网主处理器和 MKW20 Zigbee 控制器快速设置开关色相灯泡。我们通过两步设置进行照明演示。第一步是使用 TWR-KW20 EVB通过 PC 工具(称为测试工具)控制色相灯泡。下一步是将 LS1021 用作主处理器,而不是PC测试工具。我们使用 KW20 USB 适配器、LS1021A 和色相灯泡。KW20 USB 适配器通过 Beekit 配置为 Zigbee 协调器,LS1021A 连接此 KW20 USB 适配器,然后 LS1021A发出开/关命令来开关色相灯泡。然后,您可以使用飞思卡尔的LS1021A 和 MKW20 系列进行快速演示。
查看全文
EB tresos activation failed Hi Team, I was trying to download and activate a copy of EB Tresos by using EB Client License Administrator V1.5.1 with the following activation code: 6A94-974F-C73A-28C1 (valid until 03/31/2026) as reported on the NXP website. Anyway the activation fails repeatedly, with the following error messages: ERROR: flxActAppActivationSend (50040,41147,10248) The quantity specified exceeds maximum quantity allowed (0). Connection to FlexNet Operations Server failed. Could you please help me on this? Thanks & Regards, Sai Re: EB tresos activation failed Hi friend, I have same problem.  I think NXP team have not refreshed the license.  And I think the responsible team is on Lunar New Year holiday. Let’s wait and see. Log : Activating NodeLocked License 6A94-974F-C73A-28C1, Number Of Licenses: 1 Status: 4, Creating request Status: 5, Request created Status: 6, Context created Status: 7, Connected to remote server Status: 8, Request Sent Status: 9, Polling for response Status: 11, Done ERROR: flxActAppActivationSend (50040,41147,10248) The quantity specified exceeds maximum quantity allowed (0). Connection to FlexNet Operations Server failed. Re: EB tresos activation failed The code is refreshed. Let's check. I activated it successfully. Re: EB tresos activation failed Hello, It means that maximum amount of activation with this license key has been depleted. I have notified admin to update the code with one one if possible. Best regards, Peter
查看全文
MPX5100 Voltage pins - Vout, V1, V2, Vex Hi there, I have been trying to test a few MPX5100DP units I received for calculating air flow. With a similar differential sensor I am able to see the expected pressure values. However, I cannot get Vout to change from its base voltage of 185/200mV. What is the purpose of V1, V2 and Vex and what do they correspond to? I'm sorry to ask, but I could not find an explanation for those pins in the datasheet or various application notes I found. Thank you for your help. Pressure Sensors Re: MPX5100 Voltage pins - Vout, V1, V2, Vex Hello Andrew, Thank you for writing. In this case, V1, V2 and VEX pins are used for factory trimming and it is recommended to leave these pins unconnected. Can you please share your schematic? How are you connecting the MPX5100DP device? Regards, David
查看全文
rw612 config The configuration tool is too annoying. I am using the RW612. In addition, the SDK is getting worse in newer versions. The configuration tool should generate the correct files in the root directory; although the .mex file exists, it is sometimes generated in a different folder. Overall, all of your tools and SDKs are horrible. Re: rw612 config Hello @gtecaskari, hope you are doing well. I'm sorry to read that you have encountered with some issues. To better analyze your issue could you please share your environment setup? Including your IDE (MCUXpresso IDE or MCUXpresso for VS Code), SDK version, RTOS, and the specific example that you are testing. Re: rw612 config Hi. thanks for your answer. I have tried all version, 25.6 -25.9 - 25.12 25.12 is getting worse . you can just compare it to stm32cubemx and can understand how awful is it. Re: rw612 config Hi @gtecaskari. Feel free to correct me if I'm wrong, but if you are using MCUXpresso for VS Code with Config Tools support, could you please confirm that you have followed the recommended workflow stated at the following page: Working with MCUXpresso Config Tools? Additionally, it would be very helpful if you share with me the steps that you are following in order to reproduce your issue.
查看全文
LX2160AでVPPがクラッシュするとカーネルデッドロックが発生する(LSDK-20.05、VPP 22.06、DPDK 21.11) NXPサポート様 LX2160A ベースのカスタム ハードウェアで VPP がクラッシュすると、カーネルのデッドロックが発生します。 以下に、環境の詳細と観察された動作を示します。 1. システムとソフトウェアのバージョン SoC / ボード: LX2160A、カスタムハードウェア データプレーン: DPDK + VPP LSDK: 20.05 カーネル: 4.19.90-rt35 MCファームウェア: 10.36.0 VPP: 22.06 DPDK: 21.11 2. DPAA2インターフェースマッピング dprc.1/dpni.7 (インターフェース: eth4、エンドポイント: dpmac.3) dprc.1/dpni.1 (インターフェース: eth1、エンドポイント: dpmac.4) dprc.1/dpni.0(インターフェース: eth0、エンドポイント: dpsw.0.1) dprc.1/dprc.3/dpni.6 (エンドポイント: dpmac.9) dprc.1/dprc.3/dpni.5 (エンドポイント: dpmac.7) dprc.1/dprc.3/dpni.4(エンドポイント:dpmac.8) 3. VPP LCPおよびTAP/TUNの設定 VPP LCP は TAP ペア (tap1/N3、tap2/cu、tap3/cu2) を作成しています。 itf-pair: [0] TenGigabitEthernet0 tap1 N3 10型タップ itf-pair: [1] TenGigabitEthernet1 tap2 cu 11タイプタップ itf-pair: [2] TenGigabitEthernet2 tap3 cu2 12型タップ 4. 問題の説明 VPP がクラッシュまたは異常終了した場合: vpp_main プロセスは割り込み不可能なスリープ (D 状態) に入ります。 カーネルワーカースレッドは rtnl_lock でブロックされています。 ps -eo pid,stat,comm,args | grep vpp_main 21670 Dl vpp_main [vpp_main] ps -eo pid、comm、wchan | grep -E ip 9510 kworker/0:0+ipv rtnl_lock /proc/21670/スタックをcat [<0>] __switch_to+0xe8/0x150 [<0>] __flush_work.isra.13+0x134/0x248 [<0>] フラッシュワーク+0xc/0x18 [<0>] ロールバック登録数+0x1a8/0x560 [<0>] ネットデバイスキューの登録解除+0x90/0x118 [<0>] __tun_detach+0x37c/0x390 [<0>] tun_chr_close+0x30/0x90 [<0>] __fput+0x8c/0x1b8 [<0>] __ __fput+0xc/0x18 [<0>] タスクワーク実行+0x90/0xb0 [<0>] do_exit+0x2b4/0x9a0 [<0>] do_group_exit+0x38/0xa0 [<0>] get_signal+0xac/0x5c8 [<0>] do_signal+0x80/0x2a8 [<0>] do_notify_resume+0xd0/0x110 [<0>] 作業保留中+0x8/0x10 [<0>] 0xffffffffffffffff /proc/9510/スタックをcat [<0>] __switch_to+0xe8/0x150 [<0>] rtnl_lock+0x14/0x20 [<0>] addrconf_verify_work+0xc/0x20 [<0>] プロセス_one_work+0x1e0/0x318 [<0>] ワーカースレッド+0x40/0x440 [<0>] kthread+0x128/0x130 [<0>] ret_from_fork+0x10/0x18 [<0>] 0xffffffffffffffff どうやって修正するか! Re: Kernel Deadlock When VPP Crashes on LX2160A (LSDK‑20.05, VPP 22.06, DPDK 21.11) Layerscape Linux Distribution POC Rev. 6.1.55_2.2.0 リリースを使用できます。 統合するもの: DPDK v22.11 VPP v2302
查看全文
NETC IEEE 1588 timer software does not meet the requirement of RM In S32ZE NETC reference manual, "Document identifier: S32E27NETCRM Reference Manual Rev. 4, 2024-12-12", 3.2.5.3.1 Normal Mode with Drift and Error Adjustment, it claimed "During normal operation, any change to the 1588 timer configuration (for example TMROFF_H/L), except for TMR_ADD updates, requires that TSN related functionality such time gate scheduling, time specific departure scheduling, stream gating and rate policing, be disabled." But neither the gPTP software, nor the NETC device driver does meet this specification.  GPTP_STACK RTD Re: NETC IEEE 1588 timer software does not meet the requirement of RM We have a gPTP software module from NXP, is it correct? It will call the function "EthSwt_43_NETC_CorrectPtpClk" to update current time. I'm not talking about the "provide functions about correcting timer". My question is, while the gPTP is calling EthSwt_43_NETC_CorrectPtpClk() function to update current time, how to make the 802.1Qbv feature NOT be impacted? Re: NETC IEEE 1588 timer software does not meet the requirement of RM Hi @shuangjunzhu , ETH driver RTD2.0.1 follows ASR 21-11 that just includes some api functions for timestamp such as: For this reason, I think that they didn't provide functions about correcting timer as you said. Seems functions about correcting timer will be supported in ASR23-11 or gPTP have to make the request with changing the requirement if they need to use them in ASR21-11. Best regards, Nhi Re: NETC IEEE 1588 timer software does not meet the requirement of RM Thanks for your attention. As you stated "driver just supported to get current timer from TMR  registers until now, not supports to configurate them", I do not understand.  How about gPTP software to change the OFFSET register? I do think the gPTP software definitely needs to change the OFFSET register. My question is, how to follow-up the RM, while the gPTP software is trying to change OFFSET register, to keep the TSN features, for example, the 802.1Qbv function working smoothly?  Re: NETC IEEE 1588 timer software does not meet the requirement of RM Hi @shuangjunzhu , I'll answer this topic for NETC driver. - The latest release was launched for ZE is RTD 2.0.1 that follows RM rev 3 and as far as I know, the next release RTD 2.0.2, still follows RM Rev 3. But if there is any update about RM version, SW team has a ticket to check change between new and old RM. I think that they can detect the change. - As far as I know, timestamp was supported in driver until now are default count TMR_CTRL[TE] = 0 and the feature EthEnableFreeRunningTimer just added to RTD 2.0.1 that works in 1588 timer TMR_CTRL[TE] = 1. Current timer will be gotten from 1588 registers TMR_FRT_L/H, but seem that there is an bug here because I didn't anywhere set TE (the ticket: ARTDCC1-593 for detail). Anyway, driver just supported to get current timer from TMR  registers until now, not supports to configurate them. The claim that you said seem just happen if user want to change 1588 register configuration. Best regards, Nhi Re: NETC IEEE 1588 timer software does not meet the requirement of RM Hi @shuangjunzhu , You means want to stop TSN functionalities before changing 1588 list of registers, right? Current driver, I saw driver doesn't support the function to stop TSN. If you want to disable each features in TSN, seem you need to delete entries in each table. For example: - Rate policy: Netc_EthSwt_Ip_DeleteRatePolicerTableEntry(); - Netc_EthSwt_Ip_DeleteStreamGateControlListTableEntry(); -  EthSwt_43_NETC_StopTas(); Best regards, Nhi Re: NETC IEEE 1588 timer software does not meet the requirement of RM Hi @shuangjunzhu , From my point of view, the problem is not only how many TSN features are enabled, because if the customer uses ASR context, these features enabled/disabled in precompile by macros but also are in each feature. As you know, each feature Rate policing, stream gate,... controlled through table as below: If user just configured elements in the configuration tool, then SW team can control how many entries with entry ID to delete them when disabling this feature. But in case, user adds elements by calling function, then SW has no way to know. But I think user can control this from their application. Maybe I missed something, but I understand TSN will refer to timer values, so it is make sense to stop them before changing timer configuration and start again to get new timer values. I believe that SW team can has deep insight when they analyzing that ticket.  Best regards, Nhi Re: NETC IEEE 1588 timer software does not meet the requirement of RM Hi @shuangjunzhu , If you don't have any idea about ETH driver anymore, please remove RTD from this topic so that someone is from gPTP can answer you. Best regards, Nhi Re: NETC IEEE 1588 timer software does not meet the requirement of RM Hi, Thanks for your great help. Please have me highlight one very import thing for AUTO customers, while they are using TSN IEEE802.1Qbv feature, of course, they need to enable gPTP as well per 802.1Qbv time sync requirement. They are concerning about whether the gPTP will impact the critical traffic which is in one 802.1 Qbv slot. We (NXP) need to clarify it and provide how to do it. This is a very dedicate and clear requirement. And it's a good example or use case for you to understand the situation. Yes, for sure, we do not know how many TSN features customer are enabling. But for everyone of possible using, we need a solution. Customer could make right selection based on their use cases. Thanks, Jeff  Re: NETC IEEE 1588 timer software does not meet the requirement of RM Hi, Yes, I still have a question. Please help to check how to dis-able/re-enable 802.1Qbv from Ethernet driver point of view. And please help analyze whether this kind of action will cause the critical traffic delay one of 802.1Qbv schedule cycle? Thanks, Jeff   Re: NETC IEEE 1588 timer software does not meet the requirement of RM Hi, It's NOT me want to disable the TSN feature before gPTP changed timer offset register. It's the requirement of NETC RM. Customer is asking for official solution to meet the RM specification from NXP: how to disable TSN features, i.e. IEEE802.1Qbv under this situation. Customer assume it should be provided by NXP, because it's hardware requirements and hardware related coding.  By the way, I'm thinking your suggestion need to be well designed. Especially for 802.1Qbv, how to make the application traffic NOT impact by the gPTP sync action. For example, is it possible that some traffic might be delay one Qbv schedule cycle?  Thanks, Jeff Re: NETC IEEE 1588 timer software does not meet the requirement of RM Hi @shuangjunzhu , From my point of view, it is difficult to meet this requirement from ETH driver with the official function that stop TSN . As you can see, to disable the Port Gate time schedule , just need to reset the bit Time Gate enable PTGSCR[TGE]. But for some TSN features, such as Rate Policy, this feature was enabled/disabled based on elements in this table. But from ETH, we can't know entries were added to this table to delete or update elements to disable them, upper layer can handle this better. For this reason, I suggested to call functions that delete entries in each table as my previous reply. In case, user didn't enable option features: rate Policing, stream gate control list,... they can disable TSN with the function  EthSwt_43_NETC_StopTas() . Anyway, I created the ticket ARTDCC1-607, you can follows it to get the analysis from SW team in case I missed something. And RM Rev4 hasn't applied to RTD release yet. If you don't have more idea about ETH for this topic, please let me know, I'll free this case to gPTP can continue answer you from their side.  Best regards, Nhi Re: NETC IEEE 1588 timer software does not meet the requirement of RM Hi @shuangjunzhu , I saw the feature 802.1 Qbv supports both NETC and Switch. So, you can configure this feature through: - Eth_NETC: - Port switch: The functions are: For ETH_NETC: - Eth_43_NETC_StartTas() - Eth_43_NETC_StopTas() For Port switch: - EthSwt_43_NETC_StartTas()  -  EthSwt_43_NETC_StopTas()  For this question: "analyze whether this kind of action will cause the critical traffic delay one of 802.1Qbv schedule cycle", from my point of view, as you can look at the function Netc/PortSwt_Ip_ConfigPortTimeGateScheduling() that enable/disable this feature, to disable this feature, just need to reset one bit but enable this feature, need to enable Gate Time and set up Gate Time table. This time can measure.   I understand that you means about "one of 802.1Qbv schedule cycle" is the execution time of the Gate control list should be repeated, right? If it is, this can be configured.  Best regards, Nhi Re: NETC IEEE 1588 timer software does not meet the requirement of RM Hi, It looks like you still do not catch up my question. Please let me have a more detail description. Assume customer has a Qbv configuration and it's in running status with the parameter as below:  1. the cycle time is 10ms 2. in one 10ms time period, there are two slots, 5ms individually. In other words, there are two entries in the gate list. 3. Assume while the first time slot is open, NETC is transmitting the critical frames. At this time the gPTP start to update current time, per RM requirement, customer needs to disable/re-enable 802.1Qbv.  4. After the 802.1Qbv is re-enabled, It's possible that the NETC hardware might continue to open time slot 1, or go to gate list 2nd entry, or wait for new Qbc schedule cycle.  If the hardware go to 2nd entry, it means the critical frames in NETC queue will be transmit in next 10-ms cycle. And it might cause big delay and impact applications. 5. Customer is asking how to avoid this kind of situation. In other words, how to smoothly disable/re-enable Qbv to reduce the impact to the applications. Hope it will make thing clear. Thanks, Re: NETC IEEE 1588 timer software does not meet the requirement of RM Hi, I didn't see another way to enable/disable TAS except 2 functions that I mentioned in the previous reply. From my point of view, when disable time gate control, all of features of this also disabled, time interval, cycle,... Duration between disable and enable TAS, includes time to finish updating timer from gPTP. When enable TAS, base time will be updated with current time. Except new base time = next old interval time, if not can't see your requirement.  I have no more idea about this, I also updated this question in above ticket so that SW team can have suggestion for your case. Best regards, Nhi 
查看全文