Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
S32K396 RTD 5.0.0 FlexIO PWM – How is PWM Period Calculated from the "Period [ticks]" Parameter? Hello NXP Team, I am using S32K396 with RTD 5.0.0 and the FlexIO PWM driver. My configuration is: FLEXIO0_CLK = 160 MHz Clock Prescaler = FLEXIO_PWM_IP_CLK_DIV_16 Channel ID = CH_0 Pin ID = PIN_1 Generated configuration: const Flexio_Pwm_Ip_ChannelConfigType Flexio_Pwm_Ip_I0_Ch0 = { /* TimerId */ 0U, /* PinId */ 1U, #if (defined(FLEXIO_PWM_IP_HAS_PRESCALER) && (FLEXIO_PWM_IP_HAS_PRESCALER == STD_ON)) /* Prescaler */ FLEXIO_PWM_IP_CLK_DIV_16, #endif /* Period */ 400U, /* DutyCycle */ 0U, #if (defined(FLEXIO_PWM_IP_HAS_LOW_MODE) && (FLEXIO_PWM_IP_HAS_LOW_MODE == STD_ON)) /* Polarity */ FLEXIO_PWM_IP_ACTIVE_HIGH, #endif /* IrqMode */ FLEXIO_PWM_IP_IRQ_DISABLED, /* IPL callback */ { /* CbFunction */ NULL_PTR, /* CbParameter */ NULL_PTR }, /* HLD callback */ { /* CbFunction */ NULL_PTR, /* CbParameter */ 0 } };   I am trying to understand the exact relationship between: FLEXIO clock frequency Prescaler Period [ticks] Duty cycle [ticks] Output PWM frequency My measurements are: Period Duty Measured Frequency Measured Duty 200 100 20 kHz 50% 300 100 13.3 kHz 33.3% 400 100 27.7 kHz 69.4% 500 100 16.3 kHz 40% The first two measurements seem to indicate: Duty (%) = DutyTicks / PeriodTicks × 100 However, I am unable to derive the exact PWM frequency formula used internally by the FlexIO PWM RTD driver. Could you please clarify: What is the exact formula used by the FlexIO PWM driver to convert Period [ticks] into output PWM frequency? How is the TIMCMP register programmed from the configured Period value? Is there any maximum valid Period value (for example 255 counts due to FlexIO timer limitations)? How can I calculate the required Period value to obtain a desired PWM frequency (for example 10 kHz) when: FLEXIO0_CLK = 160 MHz Prescaler = 16 Is there any application note or reference document explaining the FlexIO PWM timing calculations? Any clarification on the internal timing equation would be greatly appreciated. Thank you. Re: S32K396 RTD 5.0.0 FlexIO PWM – How is PWM Period Calculated from the "Period [ticks]" Hi @Esakki, 1. Your formula is correct. 2. For Period = 200 and Duty = 100 ticks, in Dual 8-bit counters PWM high mode (TIMCTL[TIMOD]): TIMCMP = 0x00006363 High byte = 0x63 = 99 → decremented while the output is low Low byte = 0x63 = 99 → decremented while the output is high 3. Yes, the driver should prevent writing values greater than 256 to either byte when FLEXIO_PWM_IP_DEV_ERROR_DETECT = STD_ON. If this check is disabled, the field will overflow, which is likely the root cause of the issue you are observing. danielmartynek_0-1781767472546.png 4. Period in ticks − duty in ticks ≤ 256. It is not possible to achieve 10 kHz with the given input clock in this mode. You need to increase the prescaler. 5. Only the Reference Manual covers this. Regards, Daniel Any support, information, and technology (“Materials”) provided by NXP are provided AS IS, without any warranty express or implied, and NXP disclaims all direct and indirect liability and damages in connection with the Material to the maximum extent permitted by the applicable law. NXP accepts no liability for any assistance with applications or product design. Materials may only be used in connection with NXP products. Any feedback provided to NXP regarding the Materials may be used by NXP without restriction.     Re: S32K396 RTD 5.0.0 FlexIO PWM – How is PWM Period Calculated from the "Period [ticks]" Hello Daniel, Thank you for the explanation. I have one follow-up question regarding the Period calculation. From your explanation, I understand that in Dual 8-bit counters PWM high mode: TIMCMP[15:8] = Period - Duty - 1 TIMCMP[7:0] = Duty - 1 and that both fields are limited to 256 counts. Could you please clarify the exact formula used to calculate the output PWM frequency from: FlexIO input clock frequency Prescaler Period value For example, if: FlexIO clock = 160 MHz Prescaler = 256 Period = 63 ticks What should be the expected PWM frequency? Using the formula: PWM Frequency = FlexIO Clock / (Prescaler × Period) I would expect approximately 9.92 kHz. However, when measuring the PWM output, I observe approximately 3.9 kHz. Similarly, with: Prescaler = 16 Period = 200 I measure approximately 20 kHz, which corresponds to an effective PWM clock of about 64 MHz rather than 160 MHz. Could you please explain: The exact PWM frequency equation for FlexIO PWM Dual 8-bit mode. Whether any additional divider or timer scaling is applied internally by the FlexIO PWM driver. Which runtime register or clock source should be checked to determine the actual clock used by the PWM timer. Thank you for your help. Re: S32K396 RTD 5.0.0 FlexIO PWM – How is PWM Period Calculated from the "Period [ticks]" Hi @Esakki, You can derive the equation directly from the driver implementation — see Flexio_Pwm_Ip_UpdatePeriodDuty(): Flexio_Pwm_Ip_SetLowerValue(Base, Channel, (uint8)(DutyCycle - 1U)); Flexio_Pwm_Ip_SetUpperValue(Base, Channel, (uint8)(Period - DutyCycle - 1U)); So the mapping to TIMCMP is: Lower 8 bits = DutyCycle - 1 Upper 8 bits = Period - DutyCycle - 1 From Flexio_Pwm_Ip_GetPeriod(): Period = Upper + Lower + 2 Period = (DutyCycle - 1) + (Period - DutyCycle - 1) + 2 f_pwm = Input_FlexIO_CLK (prescalled) / Period Duty(%) = DutyCycle / Period × 100 Example (FLEXIO clock = 160 MHz, prescaler = 16 → 10 MHz timer clock): Period = 200 ticks -- f_pwm = 10 MHz / 200 = 50 kHz Regards, Daniel   Re: S32K396 RTD 5.0.0 FlexIO PWM – How is PWM Period Calculated from the "Period [ticks]" Hello Daniel, Thank you for the detailed explanation and the frequency formula. According to the formula: f_pwm = FlexIO_Input_Clock (after prescaler) / Period For my configuration: FlexIO Clock = 160 MHz Prescaler = 256 Period = 63 I would expect: f_pwm = 160 MHz / (256 × 63) = 9.92 kHz However, when measured on the oscilloscope, the PWM frequency is approximately 3.9 kHz. Similarly, with: Prescaler = 16 Period = 200 I measure approximately 20 kHz, whereas the formula predicts 50 kHz if the FlexIO clock is 160 MHz. Could you please advise: Is the FlexIO PWM driver using a clock source different from the configured FLEXIO0_CLK? Is there any additional divider or clock scaling applied internally? What is the recommended method to verify the actual runtime clock frequency used by the FlexIO PWM timer? I would like to understand why the measured PWM frequency does not match the frequency calculated using the configured 160 MHz FlexIO clock. Thank you for your support. Regards, Esakki Re: S32K396 RTD 5.0.0 FlexIO PWM – How is PWM Period Calculated from the "Period [ticks]" Hi @Esakki, I cannot reproduce it. f_timer = 160 MHz / 256 = 625 kHz T_pwm = Period / f_timer = 200 / 625000 = 320 µs Duty = 100 / 200 = 50% danielmartynek_0-1782374766856.png T_pwm = Period / f_timer       = 63 / 625000       ≈ 100.8 µs   Duty = 10 / 63 ≈ 15.87% danielmartynek_1-1782374873329.png I tested it with the Flexio_Pwm_Ip_Example_DS RTD example. Flexio_Pwm_Ip_UpdatePeriodDuty(INSTANCE_0, FLEXIO_PWM_IP_CHANNEL_1, 63U, 10U); Please create a simple test project that can reproduce the issue and share it here so that I can test it. It looks like the FlexIO input clock in your setup is 64 MHz based on the result you shared. You can output the system clock using CLKOUT. BR, Daniel
View full article
RTD 导入 S32 Design Studio 中的 S32 平台问题 我在 S32 设计工作室中遇到的主要问题是在集成 .c 文件时。和 .h如果我创建一个项目并从项目资源管理器中选择,SDK 不显示任何版本。接下来的问题出现在配置工具中,即显示 MCU 未被选中。即使从外部导入 RTD,也仍然没有选中任何 MCU。也无法在此工具中选择项目。 Re: RTD Import in S32 Design Studio for S32 Platform issue HI 请参考视频中的说明(如何使用 S32 Design Studio 3.6.0 下载、安装和配置 RTD 5.0.0 )。下载并安装您需要的特定版本的 S32K3 RTD。最新版本已更新至 S32K3 RTD 7.0.1。 别忘了安装NXP GCC for Arm Embedded Processors v10.2 版本 1728 此致, 罗宾 ------------------------------------------------------------------------------- 笔记: - 如果此帖解答了您的问题,请点击“接受为解决方案”按钮。谢谢你! - 我们会持续关注帖子,从最后一条回复发出后持续7周,之后的回复将被忽略。 如果您之后有相关问题,请另开新帖并引用已关闭的帖子。 -------------------------------------------------------------------------------
View full article
TEF6624 RDS NXPのTEF6624 RDSドライバ部分の参照コードを共有するのにご協力ください。ありがとう! Re: TEF6624 RDS こんにちは、トーマスさん。 TEF6624のRDSリファレンスコード情報だけが必要なので、私のメールアドレス[email protected]まで送ってください。よろしくお願いします。 Re: TEF6624 RDS こんにちは、 なお、このTEF6624はTEF662xファミリに属しており、現在は製造されておらず、歴史的な参考にあくまで維持されています。NXPはこのデバイスに関する公式のリファレンスソフトウェアやRDSドライバーコードを提供していません。このレガシー製品に対するさらなる開発やサポートは提供されていません。 BRs、トーマス
View full article
S32K396 RTD 5.0.0FlexIO PWM – 如何根据“周期 [滴答数]”参数计算 PWM 周期? 您好,NXP团队, 我使用的是S32K396 ,RTD 版本为 5.0.0 ,以及FlexIO PWM 驱动器。 我的配置如下: FLEXIO0_CLK = 160 MHz 时钟预分频器 = FLEXIO_PWM_IP_CLK_DIV_16 频道 ID = CH_0 引脚 ID = PIN_1 生成的配置: 常量Flexio_Pwm_Ip _ChannelConfigType Flexio_Pwm_Ip _I0_Ch0 = { /* TimerId */ 0 U , /* PinId */ 1 U , #if (defined(FLEXIO_PWM_IP_HAS_PRESCALER) && (FLEXIO_PWM_IP_HAS_PRESCALER == STD_ON)) /*预分频器*/ FLEXIO_PWM_IP_CLK_DIV_16 , #endif /* 周期 */ 400 U , /* 占空比 */ 0 U , #if (defined(FLEXIO_PWM_IP_HAS_LOW_MODE) && (FLEXIO_PWM_IP_HAS_LOW_MODE == STD_ON)) /* 极性 */ FLEXIO_PWM_IP_ACTIVE_HIGH , #endif /* IrqMode */ FLEXIO_PWM_IP_IRQ_DISABLED , /* IPL 回调 */ { /* CbFunction */ NULL_PTR , /* CbParameter */ NULL_PTR } , /* HLD 回调 */ { /* CbFunction */ NULL_PTR , /* CbParameter */ 0 } } ;   我正在试图理解以下两者之间的确切关系: FLEXIO 时钟频率 预分频器 周期 [滴答] 占空比 [滴答] 输出 PWM 频率 我的测量数据是: 周期占空比测量频率占空比 200 100 20kHz 50% 300 100 13.3 kHz 33.3% 400 100 27.7 kHz 69.4% 500 100 16.3 kHz 40% 前两项测量结果似乎表明: Duty (%) = DutyTicks / PeriodTicks × 100 但是,我无法推导出 FlexIO PWM RTD 驱动器内部使用的确切 PWM 频率公式。 请问您能否澄清一下: FlexIO PWM 驱动器使用什么公式将周期(滴答数)转换为输出 PWM 频率? 如何根据配置的周期值对 TIMCMP 寄存器进行编程? 是否存在最大有效周期值(例如,由于 FlexIO 定时器的限制,周期不能为 255 次)? 如何计算所需的周期值以获得所需的 PWM 频率(例如 10 kHz)? FLEXIO0_CLK = 160 MHz 预分频器 = 16 是否有任何应用笔记或参考文档解释 FlexIO PWM 时序计算? 非常感谢您能对内部时序方程进行任何解释。 谢谢! Re: S32K396 RTD 5.0.0 FlexIO PWM – How is PWM Period Calculated from the "Period [ticks]" 嗨@Esakki , 1. 你的公式是正确的。 2. 对于周期 = 200 和占空比 = 100 个时钟周期,在双 8 位计数器 PWM 高电平模式 (TIMCTL[TIMOD]) 中: TIMCMP = 0x00006363 高字节 = 0x63 = 99 → 当输出为低电平时递减 低字节 = 0x63 = 99 → 当输出为高电平时递减 3. 是的,当 FLEXIO_PWM_IP_DEV_ERROR_DETECT = STD_ON 时,驱动程序应该阻止向任一字节写入大于 256 的值。 如果禁用此检查,该字段将溢出,这很可能是您所观察到的问题的根本原因。 danielmartynek_0-1781767472546.png 4. 周期(以刻度为单位)- 工作量(以刻度为单位)≤ 256。 在这种模式下,使用给定的输入时钟无法达到 10 kHz 的频率。你需要增加预分频器的值。 5. 只有参考手册才包含这部分内容。 此致, 丹尼尔 Any support, information, and technology (“Materials”) provided by NXP are provided AS IS, without any warranty express or implied, and NXP disclaims all direct and indirect liability and damages in connection with the Material to the maximum extent permitted by the applicable law. NXP accepts no liability for any assistance with applications or product design. Materials may only be used in connection with NXP products. Any feedback provided to NXP regarding the Materials may be used by NXP without restriction.     Re: S32K396 RTD 5.0.0 FlexIO PWM – How is PWM Period Calculated from the "Period [ticks]" 嗨@Esakki , 您可以直接从驱动程序实现中推导出该方程式——请参阅Flexio_Pwm_Ip_UpdatePeriodDuty (): Flexio_Pwm_Ip_SetLowerValue(Base, Channel, (uint8)(DutyCycle - 1U)); Flexio_Pwm_Ip_SetUpperValue(Base, Channel, (uint8)(Period - DutyCycle - 1U)); 因此,到 TIMCMP 的映射关系为: 低 8 位 = 占空比 - 1 高 8 位 = 周期 - 占空比 - 1 来自Flexio_Pwm_Ip_GetPeriod (): 周期 = 上限 + 下限 + 2 周期 = (占空比 - 1) + (周期 - 占空比 - 1) + 2 f_pwm = Input_FlexIO_CLK(预调用)/ 周期 占空比(%) = 占空比 / 周期 × 100 示例(FLEXIO 时钟 = 160 MHz,预分频器 = 16 → 10 MHz 定时器时钟): 周期 = 200 个时钟周期 -- f_pwm = 10 MHz / 200 = 50 kHz 此致, 丹尼尔   Re: S32K396 RTD 5.0.0 FlexIO PWM – How is PWM Period Calculated from the "Period [ticks]" 你好,丹尼尔, 谢谢你的解释。 关于周期计算,我还有一个后续问题。 根据您的解释,我理解在双8位计数器PWM高电平模式下: TIMCMP[15:8] = 周期 - 工作量 - 1 TIMCMP[7:0] = 值 - 1 并且这两个字段的计数都限制为 256。 请问能否详细说明一下计算输出PWM频率的具体公式? FlexIO 输入时钟频率 预分频器 期间值 例如,如果: FlexIO 时钟频率 = 160 MHz 预分频器 = 256 周期 = 63 个刻度 预期的PWM频率应该是多少? 使用以下公式: PWM频率 = FlexIO时钟 / (预分频器 × 周期) 我预计频率约为 9.92 kHz。 但是,在测量 PWM 输出时,我观察到大约为 3.9 kHz。 同样地,对于: 预分频器 = 16 周期 = 200 我测得的频率约为 20 kHz,这相当于有效 PWM 时钟频率约为 64 MHz,而不是 160 MHz。 请问您能否解释一下: FlexIO PWM 双 8 位模式的精确 PWM 频率方程。 FlexIO PWM 驱动器内部是否应用了任何额外的分频器或定时器缩放。 应该检查哪个运行时寄存器或时钟源来确定 PWM 定时器实际使用的时钟。 感谢您的帮助。 Re: S32K396 RTD 5.0.0 FlexIO PWM – How is PWM Period Calculated from the "Period [ticks]" 你好,丹尼尔, 感谢您提供的详细解释和频率公式。 根据公式: f_pwm = FlexIO_Input_Clock(预分频后)/ 周期 我的配置如下: FlexIO 时钟频率 = 160 MHz 预分频器 = 256 周期 = 63 我预期: f_pwm = 160 MHz / (256 × 63) = 9.92 kHz 然而,用示波器测量时,PWM 频率约为 3.9 kHz。 同样地,对于: 预分频器 = 16 周期 = 200 我测得的频率约为 20 kHz,而如果 FlexIO 时钟频率为 160 MHz,则公式预测的频率为 50 kHz。 请问您能否提供以下建议: FlexIO PWM 驱动器使用的时钟源是否与配置的 FLEXIO0_CLK 不同? 内部是否应用了额外的分频器或时钟频率缩放? 验证 FlexIO PWM 定时器实际运行时时钟频率的推荐方法是什么? 我想了解为什么测得的 PWM 频率与使用配置的 160 MHz FlexIO 时钟计算出的频率不匹配。 感谢您的支持。 问候, 埃萨基 Re: S32K396 RTD 5.0.0 FlexIO PWM – How is PWM Period Calculated from the "Period [ticks]" 嗨@Esakki , 我无法重现这个问题。 f_timer = 160 MHz / 256 = 625 kHz T_pwm = 周期 / f_timer = 200 / 625000 = 320 微秒 税率 = 100 / 200 = 50% danielmartynek_0-1782374766856.png T_pwm = 周期 / f_timer = 63 / 625000 ≈ 100.8 微秒   税率 = 10 / 63 ≈ 15.87% danielmartynek_1-1782374873329.png 我用 Flexio_Pwm_Ip_Example_DS RTD 示例进行了测试。 Flexio_Pwm_Ip_UpdatePeriodDuty(INSTANCE_0, FLEXIO_PWM_IP_CHANNEL_1, 63U, 10U); 请创建一个简单的测试项目来重现这个问题,并在这里分享,以便我进行测试。 根据你分享的结果来看,你设置中的 FlexIO 输入时钟频率似乎是 64 MHz。 您可以使用 CLKOUT 输出系统时钟。 BR,丹尼尔
View full article
CW5.1のlicense.datファイルが必要です。 CW5.1のlicense.datファイルが必要です。
View full article
TEF6624 RDS   Please help share the reference code for NXP's TEF6624 RDS driver part. Thank you! Re: TEF6624 RDS Hi Tomas,     I only need the RDS reference code information for TEF6624, please help send it to my email [email protected] Thank you Re: TEF6624 RDS Hi, Please note that the TEF6624 belongs to the TEF662x family, which is no longer manufactured and is maintained only for historical reference. NXP does not provide any official reference software or RDS driver code for this device. No further development or support is provided for this legacy product. BRs, Tomas
View full article
CodeWarrior for LA1224 Hi, I have an LA1224-RDB-BHS development board and 'CodeWarrior Development Studio for QorIQ LS series - ARM V8 ISA' (version 11.5.15) with e200 tools add on. But when I try and setup a new project for the LA1224 (e200 side, rather than VSPA), via 'File' - 'New' - 'QorIQ Configuration Project' when I get to the device selection page it does not list the LA1224 device: NigelP_0-1747125543110.png How do I configure a project for the LA1224 processor? Thanks Nigel Re: CodeWarrior for LA1224 New thread https://community.nxp.com/t5/Layerscape/LA1224-support-for-codewarrior-download-link-isnt-working/m-p/2382533#M16738 Re: CodeWarrior for LA1224 Please create a new thread. Thanks. Re: CodeWarrior for LA1224 Hello, this download link https://support.nxp.com/s/case/500Tg00000KW12ZIAT/community-codewarrior-for-la1224?language=en_US  doesnt work Re: CodeWarrior for LA1224 As mentioned in one of my previous posts I'm using Windows Sandbox to test this. Windows Sandbox is a VM that provides a clean Windows 11 install to allow testing of applications in a clean environment. If it does not work in that then there is something missing as it is not dependant on anything I have on the host machine.  Re: CodeWarrior for LA1224 I have verified the installation on my side, there is no problem. Please prepare a clean installation environment. Please install CW_ARMv8_v2020.06_b200629GA_Win_Offline.exe first. Then open CodeWarrior IDE in a new worksapce path. Then install the service pack com.freescale.armv8.11.5.15.E200.INT.Win.updatesite.230810 1.zip from Help->Install New Software->Add->Archive in CodeWarrior IDE. Re: CodeWarrior for LA1224 Sorry that does not work, see attached image  CW-Install-Fail.png Re: CodeWarrior for LA1224 Please install CW_ARMv8_v2020.06_b200629GA_Win_Offline.exe in a new path. Then install the service pack com.freescale.armv8.11.5.15.E200.INT.Win.updatesite.230810 1.zip from Help->Install New Software->Add->Archive in CodeWarrior IDE. Re: CodeWarrior for LA1224 Thanks, I already have that installed, was required to get the e200 compilation working. I went back to try and install everything in a clean environment (Windows Sandbox) to see if I did something wrong. I installed CodeWarrior from CW_ARMv8_v2020.06_b200629GA_Win_Offline.exe. Once complete I check for updates, once requested all available updates to be installed it fails part way through with this error: An error occurred while installing the items session context was:(profile=epp.package.cpp, phase=org.eclipse.equinox.internal.p2.engine.phases.Install, operand=[R]com.freescale.core.debugger.fsl_gdb 13.0.0.202003111126 --> [R]com.freescale.core.debugger.fsl_gdb 14.0.0.202204131357, action=com.freescale.updater.customactions.actions.FreescaleProcessCheck). NLS missing message: param_not_set in: com.freescale.updater.customactions.Messages If I then try to install updates from com.freescale.armv8.11.5.15.E200.INT.Win.updatesite.230810.zip it takes me to a 'Install Remediation Page' (see attached image). If I go with it's recommendations it eventually returns with this error: An error occurred while installing the items session context was:(profile=epp.package.cpp, phase=org.eclipse.equinox.internal.p2.engine.phases.Install, operand=null --> [R]com.freescale.core.debugger.fsl_gdb 14.0.0.202204131357, action=com.freescale.updater.customactions.actions.FreescaleProcessCheck). NLS missing message: param_not_set in: com.freescale.updater.customactions.Messages If I try again and instead select 'Show original error and build my own solution' from the install remediation page it shows these details: Cannot complete the install because one or more required items could not be found. Software being installed: CodeWarrior Debugger 14.0.0.202308092015 (com.freescale.core.debugger.gdb.feature.feature.group 14.0.0.202308092015) Missing requirement: Target Model 14.0.0.202212091004 (com.freescale.debug.tcc 14.0.0.202212091004) requires 'osgi.bundle; org.eclipse.emf.edapt.history 0.0.0' but it could not be found Missing requirement: Target Model 14.0.0.202308092015 (com.freescale.debug.tcc 14.0.0.202308092015) requires 'osgi.bundle; org.eclipse.emf.edapt.history 0.0.0' but it could not be found Cannot satisfy dependency: From: CodeWarrior Debugger 14.0.0.202308092015 (com.freescale.core.debugger.gdb 14.0.0.202308092015) To: osgi.bundle; com.freescale.debug.tcc 12.0.0 Cannot satisfy dependency: From: CodeWarrior Debugger 14.0.0.202308092015 (com.freescale.core.debugger.gdb.feature.feature.group 14.0.0.202308092015) To: org.eclipse.equinox.p2.iu; com.freescale.core.debugger.gdb [14.0.0.202308092015,14.0.0.202308092015] Any ideas how to fix any of this? Can you install a version of Code Warrior that supports the LA12xx family of devices? And if so what images and steps are required. It's 2 weeks since my original question and we still haven't got a development environment that we can build, debug and create new projects in, which is not great considering the cost of the development platform. Thanks Nigel Re: CodeWarrior for LA1224 Please download and install the following service package from the above link. com.freescale.armv8.11.5.15.E200.INT.Win.updatesite.230810 1.zip Re: CodeWarrior for LA1224 Thanks for the documents but none of these explain how to configure Code Warrior for the LA1224 (or LA1235 more specifically).  I think something is missing from the Code Warrior installation preventing us from creating a new project for the required device (or fully debugging it).  We are using version 11.5.14 of CodeWarrior Development Studio for QorIQ LS series - ARM V8 ISA.  It has an update installed to provide the e200 compiler. We have an NXP supplied example project which builds for the LA1235 but we cannot create a new project for this device or correctly debug it (it uses the wrong gdb). So it looks like something is missing from the default installation that allows full support of the LA1224/1235 devices. Re: CodeWarrior for LA1224 Please refer to the attached use guide for configure tools for i.MX. Re: CodeWarrior for LA1224 Thanks, I've downloaded, installed and run that but it's not clear how that lets me generate a new LA1224 based project within the Code Warrior IDE. Is there some information on how to do this? Re: CodeWarrior for LA1224 I uploaded the installation file to sharepoint, please pay attention to your email box to receive the download invitation. Re: CodeWarrior for LA1224 Hi, It's not our firewall blocking it, the blocked message is coming from an NXP site: https://support.nxp.com/AFSC__FileDisallowed?name=Config_Tools_for_i.MX_v16_x64_b240506.exe&refURL=https%3A%2F%2Fsupport.nxp.com%2Fs%2Fcase%2F500Tg00000KW12ZIAT%2Fcommunity-codewarrior-for-la1224%3Flanguage%3Den_US (NOTE when trying to post this message I got this warning 'Your post has been changed because invalid HTML was found in the message body. The invalid HTML has been removed. Please review the message and submit the message when you are satisfied.' not sure what it changed) Thanks Nigel Re: CodeWarrior for LA1224 This version software cannot be downloaded from the NXP public Website. Please ask your IT to help to fix your firewall problem to access the download link. Re: CodeWarrior for LA1224 Thanks for the reply, but the download link is blocked, I've updated the case as well. Re: CodeWarrior for LA1224 Please download and install Config_Tools_for_i.MX_v16_x64_b240506.exe from the following link. https://support.nxp.com/s/case/500Tg00000KW12ZIAT/community-codewarrior-for-la1224?language=en_US LA12xx is listed under processor.
View full article
TEF6624 RDS 请帮忙分享一下NXP的TEF6624 RDS驱动器件的参考代码。谢谢你! Re: TEF6624 RDS 嗨,托马斯, 我只需要TEF6624的RDS参考代码信息,请发送到我的邮箱[email protected],谢谢! Re: TEF6624 RDS 您好, 请注意,TEF6624 属于 TEF662x 系列,该系列芯片已停产,仅供历史参考。NXP 不提供此设备的任何官方参考软件或 RDS 驱动程序代码。本旧产品不再提供任何开发或支持。 BRs,托马斯
View full article
我需要一个cw5.1的license.dat 我需要一个cw5.1的license.dat
View full article
I need a CW5.1 license.dat file. I need a CW5.1 license.dat file.
View full article
LA1224用CodeWarrior こんにちは、 私はLA1224-RDB-BHS開発ボードと『CodeWarrior Development Studio for QorIQ LS series - ARM V8 ISA』(バージョン11.5.15)、e200ツールアドオンを持っています。しかし、「ファイル」→「新規」→「QorIQ構成プロジェクト」でLA1224(VSPAではなくe200側)の新しいプロジェクトを設定しようとすると、デバイス選択ページにLA1224デバイスが表示されません。 NigelP_0-1747125543110.png LA1224プロセッサ用のプロジェクトはどのように設定すればよいですか? よろしくお願いします。 ナイジェル Re: CodeWarrior for LA1224 新しいThread https://community.nxp.com/t5/Layerscape/LA1224-support-for-codewarrior-download-link-isn't-working/m-p/2382533#M16738 Re: CodeWarrior for LA1224 新しいThreadを作成してください。 ありがとうございます。 Re: CodeWarrior for LA1224 こんにちは、このダウンロードリンクhttps://support.nxp.com/s/case/500Tg00000KW12ZIAT/community-codewarrior-for-la1224?language=en_USは機能しません Re: CodeWarrior for LA1224 以前の投稿でも触れたように、このテストにはWindows Sandboxを使用しています。Windows Sandboxは、クリーンな環境でアプリケーションをテストできるクリーンなWindows 11インストールを提供するVMです。もしそれでうまくいかないなら、何かが不足しているはずです。なぜなら、それはホストマシン上の何にも依存していないからです。 Re: CodeWarrior for LA1224 こちら側でインストール状況を確認しましたが、問題はありませんでした。 クリーンなインストール環境をご用意ください。 まず、CW_ARMv8_v2020.06_b200629GA_Win_Offline.exe をインストールしてください。 その後、新しいWorkapceパスでCodeWarrior IDEを開きます。 次に、CodeWarrior IDEのHelp->Install New ソフトウェア->Add->アーカイブからサービスパックcom.freescale.armv8.11.5.15.E200.INT.Win.updatesite.230810 1.zipをインストールします。 Re: CodeWarrior for LA1224 申し訳ありませんが、それは機能しません。添付画像をご覧ください。 CW-Install-Fail.png Re: CodeWarrior for LA1224 CW_ARMv8_v2020.06_b200629GA_Win_Offline.exe を新しいパスにインストールしてください。 次に、CodeWarrior IDEのHelp->Install New ソフトウェア->Add->アーカイブからサービスパックcom.freescale.armv8.11.5.15.E200.INT.Win.updatesite.230810 1.zipをインストールします。 Re: CodeWarrior for LA1224 ありがとうございます。それは既にインストール済みです。e200のコンパイルを動作させるには必要でした。 何か間違ったことをしたのかどうかを確認するために、クリーンな環境(Windows Sandbox)で全てをインストールし直してみました。 CW_ARMv8_v2020.06_b200629GA_Win_Offline.exe から CodeWarrior をインストールしました。完了後、アップデートを確認し、利用可能なすべてのアップデートのインストールを要求すると、途中で以下のエラーが発生して失敗します。 パッケージのインストール中にエラーが発生しました セッションコンテキストは:(profile=epp.package.cpp, phase=org.eclipse.equinox.internal.p2.engine.phases.Install, operand=[R]com.freescale.core.debugger.fsl_gdb 13.0.0.20200311126 --> [R]com.freescale.core.debugger.fsl_gdb 14.0.0.202204131357, action=com.freescale.updater.customactions.actions.FreescaleProcessCheck). NLSの欠落メッセージ:param_not_set in: com.freescale.updater.customactions.Messages その後、com.freescale.armv8.11.5.15.E200.INT.Win.updatesite.230810.zip からアップデートをインストールしようとすると、「インストール修復ページ」が表示されます(添付画像を参照)。推奨事項に従うと、最終的に次のエラーが返されます。 パッケージのインストール中にエラーが発生しました セッションコンテキストは:(profile=epp.package.cpp, phase=org.eclipse.equinox.internal.p2.engine.phases.Install, operand=null --> [R]com.freescale.core.debugger.fsl_gdb 14.0.0.202204131357, action=com.freescale.updater.customactions.actions.FreescaleProcessCheck). NLSの欠落メッセージ:param_not_set in: com.freescale.updater.customactions.Messages もう一度試して、インストール修復ページから「元のエラーを表示して独自のソリューションを構築する」を選択すると、次の詳細が表示されます。 必要なアイテムが一つ以上見つからず、インストールを完了できません。 インストール中のソフトウェア:CodeWarrior Debugger 14.0.0.202308092015(com.freescale.core.debugger.gdb.feature.feature.group 14.0.0.202308092015) 欠けている要件:ターゲットモデル14.0.0.202212091004(com.freescale.debug.tcc 14.0.0.202212091004)は「osgi.bundle」を必要とします。org.eclipse.emf.edapt.history 0.0.0' ですが、見つかりませんでした 欠けている要件:ターゲットモデル14.0.0.202308092015(com.freescale.debug.tcc 14.0.0.202308092015)は「osgi.bundle」を必要とします。org.eclipse.emf.edapt.history 0.0.0' ですが、見つかりませんでした 依存性を満たせない: 差出人:CodeWarrior Debugger 14.0.0.202308092015 (com.freescale.core.debugger.gdb 14.0.0.202308092015) 宛先: osgi.bundle; com.freescale.debug.tcc 12.0.0 依存性を満たせない: 差出人:CodeWarrior Debugger 14.0.0.202308092015 (com.freescale.core.debugger.gdb.feature.feature.group 14.0.0.202308092015) 宛先: org.eclipse.equinox.p2.iu; com.freescale.core.debugger.gdb [14.0.0.202308092015,14.0.0.202308092015] これを直すためのアイデアはありますか? LA12xxファミリのデバイスをサポートするCode Warriorのバージョンをインストールすることはできますか?もしそうなら、どんな画像や手順が必要か教えてください。 最初の質問から2週間経ちましたが、まだ開発環境が整っておらず、開発プラットフォームのコストを考えるとあまり良くありません。 よろしくお願いします。 ナイジェル Re: CodeWarrior for LA1224 上記のリンクから以下のサービスパッケージをダウンロードし、インストールしてください。 com.freescale.armv8.11.5.15.E200.INT.Win.updatesite.230810 1.zip Re: CodeWarrior for LA1224 資料をありがとうございます。しかし、これらの資料にはLA1224(より具体的にはLA1235)向けにCode Warriorを設定する方法が説明されていません。 Code Warriorのインストールに何かが欠けているため、必要なデバイス用の新しいプロジェクトを作成できない(または完全にデバッグできない)のだと思います。 私たちはCodeWarrior Development Studioのバージョン11.5.14をQorIQ LSシリーズ用にARM V8 ISA使用しています。e200コンパイラを提供するためのアップデートがインストールされています。NXP提供のサンプルプロジェクトはLA1235向けにビルドされていますが、このデバイス用に新しいプロジェクトを作成したり正しくデバッグしたりできません(間違ったGDBを使っています)。つまり、デフォルトのインストールにLA1224/1235デバイスのフルサポートを可能にする何かが欠けているようです。 Re: CodeWarrior for LA1224 i.MXの設定ツールについては、添付の使用ガイドを参照してください。 Re: CodeWarrior for LA1224 ありがとうございます。ダウンロードしてインストールして実行しましたが、Code Warrior IDE内で新しいLA1224ベースのプロジェクトを生成する方法がはっきりしません。 これを実行する方法に関する情報はありますか? Re: CodeWarrior for LA1224 インストールファイルをSharePointにアップロードしましたので、ダウンロード招待メールが届くよう、メールボックスをご確認ください。 Re: CodeWarrior for LA1224 こんにちは、 ファイアウォールがブロックしているわけではなく、ブロックされたメッセージはNXPのサイトから送信されています。 https://support.nxp.com/AFSC__FileDisallowed?name=Config_Tools_for_i.MX_v16_x64_b240506.exe&refURL=https %3A% 2F %2Fsupport.nxp.com% 2Fs %2Fcase% 2F500Tg00000KW12ZIAT %2Fcommunity-codewarrior-for-la1224% 3Flanguage%3Den_US (注:このメッセージを投稿しようとした際に、「メッセージ本文に無効なHTMLが見つかったため、投稿内容が変更されました。無効なHTMLは削除されました。メッセージを確認し、問題がなければ送信してください。」という警告が表示されました。何が変更されたのかは不明です。) よろしくお願いします。 ナイジェル Re: CodeWarrior for LA1224 このバージョンのソフトウェアはNXPの公開ウェブサイトからダウンロードできません。 ダウンロードリンクにアクセスするには、ファイアウォールの問題を修理してもらうためにIT担当者にお願いしてください。 Re: CodeWarrior for LA1224 返信ありがとうございます。ダウンロードリンクがブロックされていて、CASEも更新しました。 Re: CodeWarrior for LA1224 以下のリンクからConfig_Tools_for_i.MX_v16_x64_b240506.exeをダウンロードしてインストールしてください。 https://support.nxp.com/s/case/500Tg00000KW12ZIAT/community-codewarrior-for-la1224?language=en_US LA12xxはプロセッサーの下にリストされています。
View full article
AB SWAP question S32K312 软件停留在SRAM区域,看起来是HSE启动了Recovery mode,导致软件一直在WFI状态。 现在客户流程大体是boot_1-boot_2-app,会有两级跳入,boot_1不会进行更新。客户如果单独A区更新boot_2的时候,之后AB swap,reset调试没有问题。 但是发现A区单独更新APP时候,偶尔会AB swap 跳转不成功,reset后通讯正常。 这两天客户排查如下进展(图片截图比较多,还请查收如下邮件) 1.发现还是0X2040012e,对对应一个变量,查了DCMROD3/DCMROD4没有发现ECC错误。 2.和客户查如下进展,现在怀疑是进入recovery 模式 Re: AB SWAP question S32K312 嗨@scott071209 首先,以下是S32K3参考手册中列出的进入恢复模式的可能原因: lukaszadrapa_0-1781693464406.png 以下内容摘自 HSE FW 参考手册: lukaszadrapa_1-1781693472859.png 你们使用安全启动吗? 两个分区中是否存在相同的 boot_1?两个分区中是否存在有效的 IVT? RESET次数超过 8 次吗?你用示波器检查过RESET信号吗? 请问您能否提供更多关于这句话的信息? “但是,据观察,当在 A 区单独更新应用程序时,AB 交换转换偶尔会失败,尽管 RESET 后通信正常。” 它究竟是如何失效的? 此致, Lukas
View full article
Programming of the SBC is carried out by the MCU. I want to implement direct programming of my MCU, the CYT2BL7CAAQ0AZEGS, to the SBC (MFS2300BMBA0EP) so that I no longer need to use a programmer. How can this be achieved? Re: Programming of the SBC is carried out by the MCU. Hi, Our recommendation is using our NXP GUI for Automotive PMIC Families and the KITFS23SKTEVM Programming Socket Board for customer's OTP emulation/programming of the A0 (non-programmed or blank) variant during engineering development. Please follow instructions given in the UM11882. Then for production-level programming, we recommend to follow these paths: - Distributor\3rd party programming house: For low to medium volumes (< 250kpcs\year), we recommend using authorized distributors programming center (Avnet, Arrow) or 3rd party programming house. - NXP factory programming: For high volume production (> 250kpcs\year), we can provide pre-programmed parts with a unique part number extension based on your finalized OTP configuration. BRs, Tomas
View full article
eMIOSまたはGTMを使用してS32Z280で4.9MHzのクロック/PWM出力を生成する NXPチームの皆様、こんにちは。 私はS32DSとRTD 2.0.1を使用してS32Z280 EVBを開発しています。 私の要件は、外部ピンから約4.9MHzの連続出力クロック/方形波を生成することです。 最初は、以下の設定でeMIOS PWMを使ってみました。 MCU:S32Z280 RTDバージョン:2.0.1 eMIOSインスタンス: eMIOS_1 チャネル:CH4 モード: OPWFMB タイムベース: EMIOS_PWM_IP_BUS_INTERNAL 期間数: 100 デューティサイクル:50 eMIOSクロック:48MHz ピンマルチプレクサはeMIOS_1_CH4(PAD_007 / AD12)に設定されています。 初期化コード: Clock_Ip_Init(&Clock_Ip_aClockConfig[0]); while (CLOCK_IP_PLL_LOCKED != Clock_Ip_GetPllStatus()) { } Clock_Ip_DistributePll(); Emios_Pwm_Ip_InitChannel(1U, &Emios_Pwm_Ip_I1_Ch4); しかし、オシロスコープを使って出力ピンに波形を観測しても何も現れません。 私の質問は以下のとおりです。 eMIOSはS32Z280で4.9 MHzの方形波を生成するための推奨ペリフェラルでしょうか? OPWFMBモードでは、マスターバス/タイムベースの追加設定が必要ですか? 安定した4.9MHz出力を生成するには、GTM TOM/ATOMの方がより良い解決策でしょうか? 外部ピンで~5 MHzの出力信号を生成するための例(eMIOSまたはGTM)を教えてもらえますか? eMIOSクロックを有効にする以外に、何か特別なクロック設定が必要ですか? 何かご指導や参考となるプロジェクト例があれば、大変ありがたく思います。 よろしくお願いします。 BR、 カルティク Re: Generating a 4.9 MHz Clock/PWM Output on S32Z280 using eMIOS or GTM こんにちは、 karthik_nikilさん PWMの例はRTDパッケージ内の以下の写真で見ることができます。それぞれの例は、異なる基盤となるモジュールに対応しています。アプリケーションの要件に応じて必要な波形を生成するモジュールを試してみるのも良いでしょう。 Joey_z_0-1781753790604.png 他に問題がある場合はいつでもお問い合わせください。 BR ジョーイ Re: Generating a 4.9 MHz Clock/PWM Output on S32Z280 using eMIOS or GTM こんにちは、 karthik_nikilさん お問い合わせいただきありがとうございます。 ご質問を拝受いたしました。確認させていただきます。 BR ジョーイ
View full article
LA1224のcodewarriorダウンロードリンクのサポートが動作しません 私はネットワークデバイス向けのCodeWarriorをインストールしており、LA1224のサポートを追加したいと考えています。 このディスカッションでは、https://community.nxp.com/t5/Layerscape/CodeWarrior-for-LA1224/mp/2107181 で議論されています。あなたは、このリンクhttps://support.nxp.com/s/case/500Tg00000KW12ZIAT/community-codewarrior-for-la1224?language=en_USについて言及していますが、このリンクは機能していません。 私はCodeWarrior Development StudioでQorIQ LSシリーズ(ARM V8 ISA)を用いています バージョン: 11.5.0 ビルドID: 200629GA 有効なリンクを提供してください よろしくお願いします。 Re: LA1224 support for codewarrior download link isnt working こんにちは、 インストールされているCodeWarrior 11.5.0 / b200629GAがLA1224サポートの正しいベースバージョンです。 QCVSやプロジェクト作成におけるLA1224デバイスリストは、NXPサポートが参照するv16パッケージのConfig Tools i.MX 追加の設定・更新内容に依存します。サポートCASEのダウンロードURLは現在サインイン/クッキーウォールに解決されているため、現状では実際には動作しません。 あなたのCW 11.5.0のインストールは正しいLA1224ベースですが、LA1224プロセッサのサポートを追加するには、特に i.MX v16用のConfig Toolsなどの追加アップデートや設定パッケージが必要で、NXPのサインイン/クッキーゲートのため、参照されたサポートリンクは現在アクセスできません。   よろしくお願いします。 Re: LA1224 support for codewarrior download link isnt working ご回答ありがとうございます。 この問題はファイアウォール自体ではなく、エラーページはNXP自身のサーバーによって生成されており、このThreadの他のユーザーも示しています。これにより、そのパッケージは制限されており、公開ダウンロードできないことが確認されます。 正しいCodeWarriorサポートファイルへの直接アクセス(例:他の方に対して行っているSharePoint経由)を教えていただけませんか? 適切なパッケージが届くまではLA1224の開発を進めることができません Re: LA1224 support for codewarrior download link isnt working いいえ、これがあなたのファイアウォールになります。 https://www.nxp.com/design/design-center/software/development-software/codewarrior-development-tools/downloads:CW_DOWNLOADS よろしくお願いします。 Re: LA1224 support for codewarrior download link isnt working 申し訳ありませんが、理解できません。私の会社にはファイアウォールはないと思いますが、たとえあっても変更できません。このファイルはどうやってダウンロードできますか?先週NXPとNDAを結び、現在はSecureアクセスRights Registrationを取得しようとしていますが、バグがあり、修正のために [email protected] にメールを送りました。 おっしゃる通り、LX用の正しいCodewarriorバージョンは持っていますが、LAプロセッサのサポートも必要です。 Codewarrior for LAに必要なパッチを弊社に送っていただくべきでしょうか、それともセキュアファイルなどからダウンロードするべきでしょうか?
View full article
S32R47 的 NCF[8] 已永久记录 你好, NCF[8]: 错误探测 - 故障 如果对观察者的早期写入操作被永久记录在软件中,即使在调用 Main() 函数之前,FCCU 寄存器也会被更新。 导致此故障被记录的可能根本原因是什么? 如果此故障是由硬件在启动过程中设置的,能否在初始化阶段清除此故障? Re: NCF[8] for S32R47 logged permanently 你好, 该设备目前处于预生产阶段。支持工作由恩智浦现场应用工程师/销售人员完成。 请联系恩智浦代表寻求帮助,一般技术支持无法解决此问题。 顺祝商祺! Peter
View full article
PCF2131TF 的 Vth(sw)bat 你好 请您提供以下详细信息: 1、我们可以修改 Vth(sw)bat 值吗?或者它是一个固定值? 2、如果VDD不可用而VBAT可用,哪些RTC功能会受到影响/被禁用? Re: Vth(sw)bat of PCF2131TF 你好 chinnanc 再会! 1) 不,你可以修改 Vth(sw)bat,它是固定的。 最小值:2.3V 典型值:2.5V 2) 中断输出(可能受到限制或被禁用) 时间戳输入/篡改检测 看门狗功能 RafaR_0-1781716667125.png 希望这些信息对您有所帮助,如果您还需要其他帮助,请告诉我。 祝你今天过得愉快,一切顺利。
View full article
S32k116 读取 ADC 中断耗时 3.3 微秒 我每隔 50 微秒读取一次 ADC ch03。ADC 由 PDB 触发信号,PDB 由 TRIGMUX 触发信号,TRIGMUX 由 FTM0 触发信号,每 50 微秒触发信号一次。 从 FTM0 触发信号到 ADC 中断调用后,MCU 大约需要 3.3 微秒才能触发 ADC 中断。但耗时应小于 1.5 微秒(包括中断延迟和 API)。 请问为什么会出现 3.3 微秒的时间,以及如何缩短这个时间? 顺祝商祺! 罗希特 RR_12RR_0-1781698547911.png Re: S32k116 read ADC interrupt in 3.3uSec 感谢您的回复和理解。 - ADC时钟频率:48MHz - 根据ADC时钟重新计算单个ADC转换时间。 ADC总转换时间 = 采样相位(SMPLTS + 1)+ 保持(1 个周期)+ 比较各阶段(8b:20,10b:24,12b:28 个周期)+ 单/第一个连续加法器(5 个 ADC 周期 + 5 个总线周期) :- 耗时 958.18 纳秒 - 检查 PDB 配置;确保预触发没有额外延迟(如果存在,则将其包含在计时中):-没有额外延迟。 - 检查 ISR 开销;在 ADC ISR 入口处切换 GPIO:-请参考图片。 RR_12RR_1-1781772395937.png 紫色 :-PWM 黄色:GPIO切换。 Re: S32k116 read ADC interrupt in 3.3uSec 您好, 提供的信息不足以做出更多评论。以下是一些需要检查的提示: - ADC时钟频率(可能过低→主要影响因素) - 修改采样时间,必须大于 275 ns。对于最大 ADC 时钟频率 50 MHz,大约需要 14 个 ADCK 周期;如果 ADCK 频率较低,则需要进一步增加周期数。 - 根据ADC时钟重新计算单次ADC转换时间: ADC总转换时间 = 采样相位(SMPLTS + 1)+ 保持(1 个周期)+ 比较各阶段(8b:20,10b:24,12b:28 个周期)+ 单路/第一连续加法器(5 个 ADC 周期 + 5 个总线周期) - 检查PDB配置;确保预触发没有额外的延迟(如果有,请将其包含在计时中) - 检查中断服务例程 (ISR) 开销;在 ADC ISR 入口处切换 GPIO。 BR,彼得 Re: S32k116 read ADC interrupt in 3.3uSec 您好, 如果立即进行额外的切换操作,产生的脉冲持续时间是多少? 这样你就可以计算出需要从测量值 3.3us 中减去的时间。 BR,彼得 Re: S32k116 read ADC interrupt in 3.3uSec 您好, 能否也分享一下时钟设置?PCC_ADC寄存器的值是多少? 你在代码的哪个位置放置了 GPIO 切换信号? 你检查过这个切换功能需要多长时间吗? BR,彼得 Re: S32k116 read ADC interrupt in 3.3uSec 请查看图片以了解 GUI 上的时钟配置和寄存器值。 能否也分享一下时钟设置?PCC_ADC寄存器的值是多少? RR_12RR_2-1781777567844.png RR_12RR_1-1781777543272.png 你在代码的哪个位置放置了 GPIO 切换信号? --> 在 ADC 中断处理程序内部。 你检查过这个切换功能需要多长时间吗? -->不,我使用的是标准的NXP切换API。 Re: S32k116 read ADC interrupt in 3.3uSec GPIO 将在 380 纳秒后立即切换。 RR_12RR_0-1781785369985.png RR_12RR_1-1781785381949.png Re: S32k116 read ADC interrupt in 3.3uSec 您好, 你实际使用的是哪个IDE/驱动程序?看起来像是 SDK 1。 能否分享一个简化后的项目用于测试? BR,彼得 Re: S32k116 read ADC interrupt in 3.3uSec 你实际使用的是哪个IDE/驱动程序?看起来像是 SDK 1。 --> S32平台的S32设计工作室 版本:3.5 构建 ID:220726 RTM 4.0.1 能否分享一个简化后的项目用于测试? --> 附件 此外,我还在尝试配置其他通道来读取ADC。通道已配置,但始终读取为 0。 Re: S32k116 read ADC interrupt in 3.3uSec 您好, 我尝试将您的项目导入到已安装 RTM401 的 S32DS3.5 中,但似乎您实际使用的是 RTM402。 PetrS_0-1782207875981.png 我确实会尝试使用RTM402。 但是,rtm402 不应该在 S32DS3.5 中使用;https://community.nxp.com/t5/S32-Design-Studio/my-IDE-ver-is-S32DS-3-5-How-can-i-install-S32K1XX-RTM-4-0-2/mp/2062416# 您是否对 SDK 项目或其他类似项目进行过任何形式的移植/迁移? BR,彼得 Re: S32k116 read ADC interrupt in 3.3uSec 您是否对 SDK 项目或其他类似项目进行过任何形式的移植/迁移? A:- 是的,我使用了之前创建的带有差异的工作区。我给你的项目文件的SDK。 我需要把配置文件和初始化函数文件的截图发给你验证一下吗? Re: S32k116 read ADC interrupt in 3.3uSec 嘿 PtrS, 这方面有什么进展或建议吗? Re: S32k116 read ADC interrupt in 3.3uSec 您好, 我终于看到了。 从代码来看,你似乎实际添加了 1 微秒的 PDB 延迟。所以,不要再拖延了。 PetrS_0-1782217694177.png 最后一次直接寄存器写入操作不会被接受,因为寄存器会被缓冲,你需要写入 LDOK。 同时更改ADC中断,使其使用直接寄存器访问来切换引脚。 PetrS_1-1782217882079.png 经过这些更改,并将 ADC SMPLTS=14(转换时间约为 1.125us)后,我可以看到延迟约为 1.8us。减去转换时间和脉冲时间,延迟约为 600ns。这可能与 Cortex-M0+ 从闪存运行时预期的 ADC 中断 → NVIC → ISR 延迟一致,因此它很可能主要来自 CPU 异常进入和闪存访问,而不是来自触发链本身。 BR,彼得    Re: S32k116 read ADC interrupt in 3.3uSec 由于 SKD 的更改,所有项目都开始出现 RTM 错误,项目完全无法运行。 除此之外,能否告知一下使用其他 3 个通道进行背靠背连接或软件触发的配置方法? 顺祝商祺! 罗希特
View full article
S32K146 FLEXCAN RJW 配置 在 S32K146 中,FLEXCAN 的 RJW 配置与 PSEG2 相比会有什么影响吗? Re: S32K146 FLEXCAN RJW config 您好@SaLan 这是我的失误;我以为出现了错误信息,表明 RJW 设置有误。 Senlent_0-1781751975557.png RJW 表示在重新同步期间 PESG1 段的延长时间和 PSEG2 段的缩短时间。PSEG2 段的缩短意味着采样点将向后移动,如果移动幅度过大,则会导致采样误差。 因此,CAN 位定时要求规定,重新同步跳转宽度不能超过 4 个时间片,也不能超过 PHASE_SEG1 段中的时间片数量。 Re: S32K146 FLEXCAN RJW config SaLan_0-1781746341737.png 如图所示,我将 RJW 设置为 3,并使其大于 PSEG2,但我没有收到任何“不可行的”警告。 如果可以的话,能否告诉我这样配置寄存器会产生什么影响? Re: S32K146 FLEXCAN RJW config 您好@SaLan 当您使用 S32 DS 配置 FlexCan 时,它会明确地告诉您这是不可能的。 Re: S32K146 FLEXCAN RJW config 根据 CAN 协议,SJW ≤ PSEG2 ≤ PSEG1,且 SJW ≤ 4 Tq。 如果将 FLAXCAN 寄存器中的 SJW 配置为大于 PSEG2,这会有任何影响吗? Re: S32K146 FLEXCAN RJW config 您好@SaLan 对于 S32K146 FlexCAN,PSEG2 会影响标称比特时间和采样点,而 RJW 仅限制重新同步调整,不属于标称比特率计算的一部分。 Re: S32K146 FLEXCAN RJW config RJW 值高于 PSEG2 值会产生影响吗?
View full article
Unable to Attach TRACE32 to i.MX8MP I am trying to attach to the FRDM-i.MX8MPLUS board, but it fails. I followed the guide from the NXP blog: https://community.nxp.com/t5/NXP-Tech-Blog/Debug-i-MX8MP-Linux-with-TRACE32/ba-p/1582382 My steps are: echo 1 > /sys/devices/system/cpu/cpu0/cpuidle/state1/disable echo 1 > /sys/devices/system/cpu/cpu1/cpuidle/state1/disable echo 1 > /sys/devices/system/cpu/cpu2/cpuidle/state1/disable echo 1 > /sys/devices/system/cpu/cpu3/cpuidle/state1/disable echo 1 > /sys/devices/system/cpu/cpu0/cpuidle/state0/disable echo 1 > /sys/devices/system/cpu/cpu1/cpuidle/state0/disable echo 1 > /sys/devices/system/cpu/cpu2/cpuidle/state0/disable echo 1 > /sys/devices/system/cpu/cpu3/cpuidle/state0/disable Then I run the following TRACE32 commands: RESet SYStem.RESet SYStem.CPU IMX8MQ CORE.ASSIGN 1. 2. 3. 4. SYStem.Option MMUSPACES ON SYStem.Option IMASKASM ON SYStem.Mode Attach However, TRACE32 gets stuck at Attach command and never completes the attach process. neko_0-1781697059305.png Has anyone encountered this issue before or knows what might be causing it? Thank you. Re: Unable to Attach TRACE32 to i.MX8MP Hello, Yes, this is the correct steps, please make sure that the device is correctly attached. Also, what are you trying to debug? Is it Uboot, Linux or something else? Best regards/Saludos, Aldo.
View full article