Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
i.MX93:Linux 和 Cortex-M33 共享 GPIO2 会导致 Linux 触摸屏停止工作 我使用的是搭载 Linux 系统的 i.MX93(Cortex-A55),以及裸机 MCUXpresso SDK 固件(Cortex-M33)。 我希望两个核心使用 GPIO2 的不同引脚: Linux :触摸屏和按钮。触摸屏使用 GPIO2_IO11/IO12 进行 IRQ/RESET。 M33 :GPIO2_IO22 作为中断输入(RANin),GPIO2_IO27 作为输出(RANout)。 问题 无需启动 M33 固件,Linux 触摸屏和按钮都能正常工作。当M33固件运行时,触摸和按钮均无法工作,并且/proc/interrupts中的触摸屏中断计数器不会增加: 我在M33上使用以下配置: #define PIN_IN_RGPIO GPIO2 #define PIN_OUT_RGPIO GPIO2 #define PIN_IN_RGPIO_PIN 22U #define PIN_OUT_RGPIO_PIN 27U #define M33_PIN_MASK ((1U << PIN_OUT_RGPIO_PIN) | (1U << PIN_IN_RGPIO_PIN)) #define EXAMPLE_RGPIO_CLOCK_ROOT kCLOCK_Root_BusWakeup #define EXAMPLE_RGPIO_CLOCK_GATE kCLOCK_Gpio2 const clock_root_config_t rgpioClkCfg = { .clockOff = false, .mux = 0, .div = 1 }; CLOCK_SetRootClock(EXAMPLE_RGPIO_CLOCK_ROOT, &rgpioClkCfg); CLOCK_EnableClock(EXAMPLE_RGPIO_CLOCK_GATE); CLOCK_EnableClock(kCLOCK_Gpio2); PIN_OUT_RGPIO->PCNS &= ~M33_PIN_MASK; GPIO2->ICNS = 0x0; RGPIO_SetPinInterruptConfig(GPIO2, 22U, kRGPIO_InterruptOutput0, kRGPIO_InterruptRisingEdge); EnableIRQ(GPIO2_0_IRQn); 我希望得到支持。 最佳 Re: i.MX93: Sharing GPIO2 between Linux and Cortex-M33 causes Linux touchscreen to stop 您好, 我用这个来触摸我的皮肤。 hycon: touchscreen@38 { compatible = "hycon,hy4633"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_touchscreen>; reg = <0x38>; interrupt-parent = <&gpio2>; interrupts = <11 IRQ_TYPE_EDGE_FALLING>; reset-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>; vcc-supply = <&reg_3p3v>; touchscreen-size-x = <320>; touchscreen-size-y = <280>; }; Re: i.MX93: Sharing GPIO2 between Linux and Cortex-M33 causes Linux touchscreen to stop 你好, 这似乎是中断配置的问题,因为您可以在不同的内核中使用同一组中的不同 GPIO。 你在Linux设备树中配置的是哪个中断? 顺祝商祺! Re: i.MX93: Sharing GPIO2 between Linux and Cortex-M33 causes Linux touchscreen to stop 你好, 请尝试通过以下方式更改 M33 内核使用的中断: GPIO2->ICNS &= ~(1U << 1U); EnableIRQ(GPIO2_1_IRQn); 顺祝商祺!  Re: i.MX93: Sharing GPIO2 between Linux and Cortex-M33 causes Linux touchscreen to stop 嗨,豪尔赫, 感谢您的回复,问题已解决。但我还想请教一下,为什么使用 GPIO2_0_IRQn 时不起作用?是因为 A55 使用了 GPIO2_0 吗?
View full article
SJA1000水晶発振器の周波数誤差を30ppmに設定していましたが、製造中止となったため、50ppmに変更することは可能でしょうか? Re: SJA1000晶振频率误差我们选用的是30ppm,因为停产原因,更换为50ppm是否可以? こんにちは、 SJA1000の場合、±30 ppmから±50 ppmの水晶発振器への切り替えは許容範囲内です。両値はCANバス発振器の許容範囲(±0.5% / ±5,000 ppm、1 Mbit/s)を大きく下回っています。SJA1000に内蔵されている同期ジャンプ幅(SJW)機構は、ノード間の発振器のドリフトを補正します。 交換用の結晶が、データシートで指定されている通り、XTAL1/XTAL2の15 pFコンデンサと同じ公称周波数、同じ負荷静電容量、そして15 pFコンデンサを使用していることを確認してください。 BRs、トーマス
View full article
i.MX93:LinuxとCortex-M33間でGPIO2を共有するとLinuxのタッチスクリーンが停止します 私はCortex-A55でLinuxを搭載したi.MX93、Cortex-M33でベアメタルのMCUXpresso SDKファームウェアを使っています。 両方のコアにGPIO2の異なるピンを使用させたい。 Linux:タッチスクリーンとボタン。タッチスクリーンは、IRQ/リセットにGPIO2_IO11/IO12を使用します。 M33 :GPIO2_IO22を割り込み入力(RANin)として、GPIO2_IO27を出力(RANout)として設定します。 問題 M33ファームウェアを起動しなくても、Linuxのタッチスクリーンは動作し、ボタンも動作します。M33ファームウェアが実行されると、タッチ操作とボタン操作が機能しなくなり、/proc/interruptsにあるタッチスクリーン割り込みカウンタが増加しなくなります。 M33では、この設定を使用しています。 #define PIN_IN_RGPIO GPIO2 #define PIN_OUT_RGPIO GPIO2 #define PIN_IN_RGPIO_PIN 22U #define PIN_OUT_RGPIO_PIN 27U #define M33_PIN_MASK ((1U << PIN_OUT_RGPIO_PIN) | (1U << PIN_IN_RGPIO_PIN)) #define EXAMPLE_RGPIO_CLOCK_ROOT kCLOCK_Root_BusWakeup #define EXAMPLE_RGPIO_CLOCK_GATE kCLOCK_Gpio2 const clock_root_config_t rgpioClkCfg = { .clockOff = false, .mux = 0, .div = 1 }; CLOCK_SetRootClock(EXAMPLE_RGPIO_CLOCK_ROOT, &rgpioClkCfg); CLOCK_EnableClock(EXAMPLE_RGPIO_CLOCK_GATE); CLOCK_EnableClock(kCLOCK_Gpio2); PIN_OUT_RGPIO->PCNS &= ~M33_PIN_MASK; GPIO2->ICNS = 0x0; RGPIO_SetPinInterruptConfig(GPIO2, 22U, kRGPIO_InterruptOutput0, kRGPIO_InterruptRisingEdge); EnableIRQ(GPIO2_0_IRQn); その点についてのサポートをいただけるとありがたいです。 ベスト Re: i.MX93: Sharing GPIO2 between Linux and Cortex-M33 causes Linux touchscreen to stop こんにちは、 私のタッチにはこれを使っています hycon: touchscreen@38 { compatible = "hycon,hy4633"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_touchscreen>; reg = <0x38>; interrupt-parent = <&gpio2>; interrupts = <11 IRQ_TYPE_EDGE_FALLING>; reset-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>; vcc-supply = <&reg_3p3v>; touchscreen-size-x = <320>; touchscreen-size-y = <280>; }; Re: i.MX93: Sharing GPIO2 between Linux and Cortex-M33 causes Linux touchscreen to stop こんにちは、 これは割り込み設定の問題のようで、同じグループの異なるGPIOを異なるコアで使えるためです。 Linuxデバイスツリーでどの割り込みを設定しましたか? よろしくお願いいたします。 Re: i.MX93: Sharing GPIO2 between Linux and Cortex-M33 causes Linux touchscreen to stop こんにちは、 M33コアで使用される割り込みを、以下の方法で変更してみてください。 GPIO2->ICNS &= ~(1U << 1U); EnableIRQ(GPIO2_1_IRQn); よろしくお願いいたします。  Re: i.MX93: Sharing GPIO2 between Linux and Cortex-M33 causes Linux touchscreen to stop こんにちは、ホルヘさん。 ご回答ありがとうございます。おかげさまで動作しましたが、GPIO2_0_IRQnでは動作しないのはなぜでしょうか?GPIO2_0がA55から使用されていることが原因でしょうか?
View full article
SJA1000晶振频率误差我们选用的是30ppm,因为停产原因,更换为50ppm是否可以? Re: SJA1000晶振频率误差我们选用的是30ppm,因为停产原因,更换为50ppm是否可以? 您好, 对于 SJA1000 而言,从 ±30 ppm 晶体切换到 ±50 ppm 晶体是可以接受的。这两个值都远低于 CAN 总线振荡器容差限值(1 Mbit/s 时为 ±0.5% / ±5,000 ppm)。SJA1000 内置的同步跳变宽度 (SJW) 机制可以补偿节点之间的任何振荡器漂移。 请确保更换的晶体使用与数据手册中规定的相同的标称频率、相同的负载电容,以及 XTAL1/XTAL2 上的 15 pF 电容器。 BRs,托马斯
View full article
iMX93: SAI round-trip latency can 'randomly' change by 1 sample The round-trip latency of the SAI in synchronous mode should always be the same (deterministic) when opening a capture & playback ALSA stream on a hardware sound card. That is: if you have an audio codec (ADC+DAC) and you use it for capture and playback, the latency seen from input to output should always be the same, given the ALSA settings (buffer sizes, periods, etc.) do not change. What I am actually seeing is that the latency can vary by 1 sample. This variation is some lower percentage of the time, e.g. 20%. 2 in 10 runs result in a delay 1 sample less than the other 8 runs. This was tested by running DUT Delay measurement on an Audio Precision: Further Info: Codec is TAC5211 running @ 192kHz, connected to SAI3. Codec provides clocks to TXC and TXFS (it is the master). Capture and playback are linked (snd_pcm_link). Running @48kHz: 1 sample offset appears 3/10 times. So, lowering the sample rate does not lower the changes of the 1 sample difference appearing. I suspect some sort of timing related/race condition between the TX and RX, at a very low level (fsl_sai.c, or DMA). 1 sample different might seem like not a big deal, but it does matter when you need to maintain a fixed phase relationship between what you are generating (DAC) with the signal present at the input (ADC). Re: iMX93: SAI round-trip latency can 'randomly' change by 1 sample I have tried 22 different attempts at modifying `fsl_sai.c` to try to get RX and TX to sync. So far I have not been able to get anything that works 100% of the time. There are some changes that reduce the % of time the 1 sample offset appears. This is all on the same board. Each time the audio device is opened, there is a chance the round-trip latency is 1 sample different. Re: iMX93: SAI round-trip latency can 'randomly' change by 1 sample Hello, SAI synchronous mode guarantees a shared BCLK/frame-sync relationship, but synchronous mode does not prove sample accurate startup alignment. That requires synchronized start support and compliance with the processor and SAI enable/reset sequence. You can refer to this link in section Streams Syncronization: https://www.alsa-project.org/alsa-doc/alsa-lib/pcm.html i.MX93 provides shared BCLK/frame-sync SAI operation, but there is not documented that it guarantees deterministic sample aligned startup latency As you mention, this could be caused in a low level preventing simultaneous FIFO start and modification may be needed. Does this issue occur on the same boards, or does it occur randomly across all boards? Best regards. 
View full article
S32K388 HSE无响应错误 Hi. 我在我的 S32K388 devkit 上运行 HSE FW 2.49.0。HSE 初始化没有问题并且 Hse_Ip_GetHseStatus() 返回: > hse-s HSE 状态 (0x960): - RNG 初始化成功 - 主机调试器已启用 + 激活 - HSE 初始化成功 但是,读取 HSE FW 信息的服务请求或随机数请求出现错误“无响应(bb55bb55)”,然后系统重置,重置原因报告为HSE SWT 超时!所有与 HSE 相关的变量都映射到内存的不可缓存区域。相同的代码在运行 HSE FW 2.40.0 的 S32K358 开发套件上运行良好。 我的项目不是 autosar。 我检查了 S32K388 的 HSE FW 2.49.0 发行说明以及参考手册,没有发现相关勘误表。 如果有人能解释一下为什么这行不通或者可能会失败,那就太好了? 谢谢。 回复:S32K388 HSE无响应错误 你好@lukaszadrapa 。 感谢您的快速回复并澄清S32K358上不需要类似的更改。 在使用您提供的值对 DCF 记录进行编程后,HSE 服务在 S32K388 上不再超时。非常感谢。 回复:S32K388 HSE无响应错误 如果 S32K358 上的时钟选项 A 是默认状态,则不需要: 此致, Lukas 回复:S32K388 HSE无响应错误 你好@lukaszadrapa 。 感谢您的快速回复。我已配置为在 A 时钟配置中运行的 S32K358 板是否也需要相同的解决方案?提前致谢。 回复:S32K388 HSE无响应错误 代码是正确的,它是由时钟引起的。我看到您正在使用时钟选项 A。在这种情况下,需要将新的 DCF 记录编程到 UTEST 以更改 HSE_CLK_MODE_AND_GSKT_CTRL。这将确保内部时钟正确同步。 您可以在 S32K3 参考手册中找到文件 S32K3xx_DCF_clients.xlxs。 您可以发现 dcf_client_utest_misc 包含 HSE_CLK_MODE_AND_GSKT_CTRL,它可以具有以下值: 因此,必须将其设置为 1x。它不是默认值,所以我们需要重新编程。 这是我的调试器的屏幕截图,其中我已经添加了新的 DCF 记录: 黄色记录是工厂编程的原始记录。我在第一个可用地址上编写了新记录(红色),并相应地更改了 HSE_CLK_MODE_AND_GSKT_CTRL。然后 RNG 服务就可以按预期工作了。 您可以使用附加的脚本来编写记录。只需检查 0x1B000770 是否是 UTEST 中第一个可用位置。 或者下一个选项是通过您的应用程序来编程记录。 此致, Lukas 回复:S32K388 HSE无响应错误 Hi @lukaszadrapa. 附件中,请查看我的项目,该项目尝试从 HSE 请求一个随机数,但一直失败。请告诉我哪里出错了。谢谢。 问候/ 回复:S32K388 HSE无响应错误 我以非常简单和快速的方式对其进行了测试,无需任何项目,仅使用调试器即可。 我只是在 RAM 内存中创建了自己的描述符(hseSrvDescriptor_t),如下所示: 第一个字 0x300 是 HSE_SRV_ID_GET_RANDOM_NUM 的 ID,第二个字是保留的,然后是 hseGetRandomNumSrv_t 结构。您可以查看HSE服务API参考手册。第一个字选择 DRG3 类,第二个字选择随机数的长度(16 字节),最后一个字设置 HSE 将写入随机数的指针。 然后我通过将描述符的地址(0x20400000)写入 MU_0 中的传输寄存器 TR[1] 来触发服务。结果是接收寄存器 RR[1] 包含来自 HSE 0x55A5AA33 的返回值,即 HSE_SRV_RSP_OK(操作成功),并且随机数在 0x2040050 处可用: 因此,我确信 HSE_SRV_ID_GET_RANDOM_NUM 能够按预期工作,无论驱动程序、软件等如何。 当然,进行此测试时必须禁用数据缓存。 此致, Lukas 回复:S32K388 HSE无响应错误 Hi @lukaszadrapa. 谢谢您的回复。我的项目包含大量专有代码,我需要先清理这些代码才能分享,这将需要一两天的时间才能完成。虽然我很乐意这样做,但想知道您是否可以提供/分享您的有效项目?提前致谢。 此致问候 回复:S32K388 HSE无响应错误 嗨@darknite2023 我这里有 S32K388 EVB,安装了 HSE 固件 2.49.0 FULL_MEM 版本。我可以毫无问题地生成随机数。 你能分享你的项目吗?请提供已构建的项目和 elf 文件。我可以在我这边检查一下。 此致, Lukas Re: S32K388 HSE No Response Error 你好!我也为我的 S32K388 板下载了这个版本的 HSE。我使用的是 AB_SWAP 版本。我可以直接重复使用您的 DCF 记录吗?
View full article
iMX93:SAI往返延迟可能会“随机”变化1个样本。 在硬件声卡上打开捕获和播放 ALSA 流时,同步模式下 SAI 的往返延迟应该始终相同(确定性)。 也就是说:如果您有一个音频编解码器(ADC+DAC),并且您将其用于捕获和播放,则在 ALSA 设置(缓冲区大小、周期等)不变的情况下,从输入到输出的延迟应该始终相同。 我实际看到的是,延迟可能会相差一个采样点。这种变化发生的概率较低,例如:20%。每 10 次运行中,有 2 次的延迟比其他 8 次运行少 1 个样本。 这是通过在 Audio Precision 上运行 DUT 延迟测量来验证的: 更多信息: 编解码器为 TAC5211,运行频率为 192kHz,连接到 SAI3。Codec 为 TXC 和 TXFS 提供时钟(它是主控端)。 捕获和播放是链接的(snd_pcm_link)。 以 48kHz 频率运行:1 个采样点偏移出现 3/10 次。因此,降低采样率并不会降低出现 1 个样本差异的可能性。 我怀疑TX和RX之间存在某种与时序相关的/竞争条件,而且是在非常底层(fsl_sai.c,或DMA)。 1 个采样点的差异似乎没什么大不了的,但当需要保持你生成的信号(DAC)与输入信号(ADC)之间的固定相位关系时,这就很重要了。 Re: iMX93: SAI round-trip latency can 'randomly' change by 1 sample 我尝试了 22 种不同的方法来修改 `fsl_sai.c` 文件。尝试使 RX 和 TX 同步。 到目前为止,我还没有找到任何百分之百有效的方法。有些改动可以减少 1 个样本偏移出现的频率百分比。 所有这些都在同一块板上。每次打开音频设备时,往返延迟都有可能相差 1 个采样点。 Re: iMX93: SAI round-trip latency can 'randomly' change by 1 sample 你好, SAI 同步模式保证了共享的 BCLK/帧同步关系,但同步模式不能证明采样精确的启动对齐。 这需要同步启动支持,并符合处理器和 SAI 使能/RESET序列。 您可以在“流同步”部分参考此链接: https://www.alsa-project.org/alsa-doc/alsa-lib/pcm.html i.MX93 提供共享 BCLK/帧同步 SAI 操作,但尚无文档证明其能保证确定性的采样对齐启动延迟。 正如您所提到的,这可能是由于底层问题导致无法同时启动 FIFO,可能需要进行修改。 这个问题只出现在同一批电路板上,还是随机出现在所有电路板上? 顺祝商祺! 
View full article
S32K388 HSE無応答エラー Hi. S32K388 devkit で HSE FW 2.49.0 を実行しています。HSE は問題なく初期化され、Hse_Ip_GetHseStatus() は以下を返します。 > hse -s HSEステータス(0x960): - RNGの初期化に成功しました - ホストデバッガが有効 + アクティブ - HSE初期化成功 しかし、HSE FW情報を読み取るサービスリクエストや乱数リクエストが「応答なし(bb55bb55)」でエラーになり、システムがリセットされてリセット原因が HSE SWTタイムアウトとして報告されます。すべてのHSE関連変数は、メモリのキャッシュ不可能な領域にマップされます。同じコードは、HSE FW 2.40.0 を実行している S32K358 開発キットでも問題なく動作します。 私のプロジェクトは非 autosar です。 HSE FW 2.49.0 リリース ノートとリファレンス マニュアルのS32K388を確認しましたが、関連するエラッタは見つかりませんでした。 誰かがこれが機能しない、または失敗している可能性がある理由に光を当てることができるとしたら素晴らしいことですか? ありがとうございます。 Re:S32K388 HSE応答エラーなし こんにちは@lukaszadrapa。 迅速な対応と、S32K358で同様の変更が必要ないことを明確にしてくれてありがとう。 ユーザーが指定した値で DCF レコードをプログラミングすると、HSE サービスが S32K388 でタイムアウトしなくなります。どうもありがとう。 Re:S32K388 HSE応答エラーなし S32K358 のクロック オプション A の場合、デフォルトの状態であるため、これは必要ありません。 よろしくお願いします。 Lukas Re:S32K388 HSE応答エラーなし こんにちは@lukaszadrapa。 迅速な対応をありがとう。A クロッキング構成で実行するように設定した S32K358 ボードにも同じソリューションが必要ですか。よろしくお願いいたします。 Re:S32K388 HSE応答エラーなし コードは正しく、時計が原因です。時計オプションAを使用していることがわかります。この場合、HSE_CLK_MODE_AND_GSKT_CTRLを変更するには、新しい DCF レコードを UTEST にプログラムする必要があります。これにより、内部クロックが正しく同期されます。 S32K3xx_DCF_clients.xlxsはS32K3リファレンスマニュアルにあります。 また、dcf_client_utest_miscには次の値を持つHSE_CLK_MODE_AND_GSKT_CTRLが含まれていることがわかります。 したがって、1xに設定する必要があります。デフォルト値ではないため、再プログラムする必要があります。 これは、すでに新しいDCFレコードを追加したデバッガーのスクリーンショットです。 黄色のレコードは工場でプログラムされたオリジナルレコードです。最初に利用可能なアドレスに新しいレコード(赤)をプログラムし、それに応じてHSE_CLK_MODE_AND_GSKT_CTRLを変更しました。そして、RNGサービスは期待どおりに機能します。 添付のスクリプトを使用して、レコードをプログラムできます。UTESTで最初に利用可能なポジションが0x1B000770かどうかを確認してください。 または、次のオプションは、アプリケーションによってレコードをプログラムすることです。 よろしくお願いします。 Lukas Re:S32K388 HSE応答エラーなし Hi @lukaszadrapa. 添付されている、HSEからランダムな番号を要求しようとして失敗し続ける私のプロジェクトを見つけてください。どこで間違っていたのか教えてください。感謝。 よろしく/ Re:S32K388 HSE応答エラーなし 私はそれを非常にミニマリストかつ迅速な方法でテストしました、プロジェクトなしで、デバッガを使用するだけで。 私は単に次のようにRAMメモリに独自の記述子(hseSrvDescriptor_t)を作成しました。 最初の単語0x300は HSE_SRV_ID_GET_RANDOM_NUM の ID で、2 番目の単語は予約済みで、その後hseGetRandomNumSrv_t構造があります。HSEサービスAPIリファレンスマニュアルをご覧ください。最初のワードはDRG3クラスを選択し、2番目のワードは乱数の長さ(16バイト)を選択し、最後のワードはHSEが乱数を書き込むポインタを設定します。 次に、ディスクリプタ(0x20400000)のアドレスを書き込んでサービスをトリガーし、レジスタTR[1]をMU_0に送信します。その結果、受信レジスタ RR[1] には HSE 0x55A5AA33 からの戻り値 (HSE_SRV_RSP_OK (操作が成功しました)) が含まれ、次の 0x2040050 で乱数が使用可能になります。 したがって、HSE_SRV_ID_GET_RANDOM_NUMはドライバーやソフトウェアなどに関係なく期待どおりに機能すると確信しています。 もちろん、このテストではデータキャッシュを無効にする必要があります。 よろしくお願いします。 Lukas Re:S32K388 HSE応答エラーなし Hi @lukaszadrapa. ご回答ありがとうございます。私のプロジェクトには、共有する前にクリーンアップする必要がある多くの独自のコードが含まれており、それを完了するには1日か2日かかります。私はそれを喜んでいますが、うまくいくプロジェクトを提供/共有できるかどうか疑問に思っていましたか?よろしくお願いいたします。 よろしくお願いします。 Re:S32K388 HSE応答エラーなし こんにちは @darknite2023  ここでは、HSEファームウェア2.49.0 FULL_MEMバージョンがインストールされたEVBをS32K388しています。乱数を生成するのに問題はありません。 プロジェクトを共有してもらえますか?ビルドされたプロジェクトにelfファイルを提供してください。私の側で確認することができます。 よろしくお願いします。 Lukas Re: S32K388 HSE No Response Error こんにちは!私もS32K388ボード用にこのバージョンのHSEをダウンロードしました。私はAB_SWAPバージョンを使用しています。DCFの記録を直接再利用できますか?
View full article
We selected a frequency error of 30ppm for the SJA1000 crystal oscillator. Since it is discontinued, is it possible to change it to 50ppm? Re: SJA1000晶振频率误差我们选用的是30ppm,因为停产原因,更换为50ppm是否可以? Hi, Switching from a ±30 ppm to a ±50 ppm crystal is acceptable for the SJA1000. Both values are far below the CAN bus oscillator tolerance limit (±0.5% / ±5,000 ppm at 1 Mbit/s). The SJA1000's built-in Synchronization Jump Width (SJW) mechanism compensates for any oscillator drift between nodes. Please ensure the replacement crystal uses the same nominal frequency, the same load capacitance, and the 15 pF capacitors on XTAL1/XTAL2 as specified in the datasheet. BRs, Tomas
View full article
i.MX93: Sharing GPIO2 between Linux and Cortex-M33 causes Linux touchscreen to stop I am using an i.MX93 with Linux on the Cortex-A55 and bare-metal MCUXpresso SDK firmware on the Cortex-M33. I want both cores to use different pins of GPIO2: Linux: touchscreen and buttons. The touchscreen uses GPIO2_IO11/IO12 for IRQ/reset. M33: GPIO2_IO22 as an interrupt input (RANin) and GPIO2_IO27 as an output (RANout). Problem Without starting the M33 firmware, the Linux touchscreen works, buttons also. When the M33 firmware runs, touch and buttons no longer work, and the touchscreen interrupt counter in /proc/interrupts does not increase: on M33 I use this configuration: #define PIN_IN_RGPIO GPIO2 #define PIN_OUT_RGPIO GPIO2 #define PIN_IN_RGPIO_PIN 22U #define PIN_OUT_RGPIO_PIN 27U #define M33_PIN_MASK ((1U << PIN_OUT_RGPIO_PIN) | (1U << PIN_IN_RGPIO_PIN)) #define EXAMPLE_RGPIO_CLOCK_ROOT kCLOCK_Root_BusWakeup #define EXAMPLE_RGPIO_CLOCK_GATE kCLOCK_Gpio2 const clock_root_config_t rgpioClkCfg = { .clockOff = false, .mux = 0, .div = 1 }; CLOCK_SetRootClock(EXAMPLE_RGPIO_CLOCK_ROOT, &rgpioClkCfg); CLOCK_EnableClock(EXAMPLE_RGPIO_CLOCK_GATE); CLOCK_EnableClock(kCLOCK_Gpio2); PIN_OUT_RGPIO->PCNS &= ~M33_PIN_MASK; GPIO2->ICNS = 0x0; RGPIO_SetPinInterruptConfig(GPIO2, 22U, kRGPIO_InterruptOutput0, kRGPIO_InterruptRisingEdge); EnableIRQ(GPIO2_0_IRQn); I would appreciate a support for that. Bests Re: i.MX93: Sharing GPIO2 between Linux and Cortex-M33 causes Linux touchscreen to stop Hi, for my touch I use this hycon: touchscreen@38 { compatible = "hycon,hy4633"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_touchscreen>; reg = <0x38>; interrupt-parent = <&gpio2>; interrupts = <11 IRQ_TYPE_EDGE_FALLING>; reset-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>; vcc-supply = <&reg_3p3v>; touchscreen-size-x = <320>; touchscreen-size-y = <280>; }; Re: i.MX93: Sharing GPIO2 between Linux and Cortex-M33 causes Linux touchscreen to stop Hello, This seems to be an issue with the interrupt configuration since you can use different GPIOs from the same group in different cores. Which interrupt did you configure in Linux device tree? Best regards. Re: i.MX93: Sharing GPIO2 between Linux and Cortex-M33 causes Linux touchscreen to stop Hello, Please try to change the interrupt used by M33 core by changing: GPIO2->ICNS &= ~(1U << 1U); EnableIRQ(GPIO2_1_IRQn); Best regards.  Re: i.MX93: Sharing GPIO2 between Linux and Cortex-M33 causes Linux touchscreen to stop Hi Jorge, thank you for your reply and it works, but I would like to ask why it doesnt work with GPIO2_0_IRQn? is it the reason GPIO2_0 used from A55 ? 
View full article
S32K388 HSE No Response Error Hi. I am running HSE FW 2.49.0 on my S32K388 devkit. HSE initializes without issues and Hse_Ip_GetHseStatus() returns: > hse -s HSE Status (0x960): - RNG Init successful - Host Debugger enabled + active - HSE Init successful However, a service request to read HSE FW info or a request for a random number errors out with "no response (bb55bb55)" and the system then resets and reset cause is reported as HSE SWT Timeout! All HSE related variables are mapped into non cacheable region of memory. The same code works fine on my S32K358 dev kit running HSE FW 2.40.0. My projects are non autosar. I have checked HSE FW 2.49.0 release notes for S32K388 as well the reference manual and found no pertaining errata. It would be great if someone could shed some light on why this is not work or might be failing? Thanks. Re: S32K388 HSE No Response Error Hi @lukaszadrapa. Thanks for the quick response and clarifying that a similar change is not needed on S32K358. After programming the DCF record with the value provided by you, HSE services are no longer timing out on S32K388. Many thanks. Re: S32K388 HSE No Response Error It's not needed in case of clock option A on S32K358 because it is default state: Regards, Lukas Re: S32K388 HSE No Response Error Hi @lukaszadrapa. Thanks for the quick response. Will the same solution be needed for my S32K358 board which I have configured to run in A clocking configuration as well? Thanks in advance. Re: S32K388 HSE No Response Error The code is correct, it's caused by clocks. I can see that you are using clock option A. In this case, it's necessary to program new DCF record to UTEST to change HSE_CLK_MODE_AND_GSKT_CTRL. This will ensure that internal clocks are correctly synchronized. You can find file S32K3xx_DCF_clients.xlxs in S32K3 reference manual. And you can find there that dcf_client_utest_misc contains HSE_CLK_MODE_AND_GSKT_CTRL which can have following values: So, it must be set to 1x. It is not default value, so we need to reprogram it. Here is a screenshot from my debugger where I already added new DCF record: The yellow record is original record programmed in factory. I programmed new record (in red) on first available address where I changed  HSE_CLK_MODE_AND_GSKT_CTRL accordingly. And then the RNG service works as expected. You can use attached script to program the record. Just check if 0x1B000770 is first available position in your UTEST. Or next option is to program the record by your application. Regards, Lukas Re: S32K388 HSE No Response Error Hi @lukaszadrapa. Attached, please find my project that attempts to request a random number from the HSE and it keeps failing. Please let know where I went wrong. Thanks. Regards/ Re: S32K388 HSE No Response Error I tested it in very minimalist and quick way without any project, just by using a debugger. I simply created own descriptor (hseSrvDescriptor_t) in RAM memory like this: First word 0x300 is ID of HSE_SRV_ID_GET_RANDOM_NUM, second word is reserved and then there's hseGetRandomNumSrv_t structure. You can take a look at HSE service API reference manual. First word selects DRG3 class, second word selects length of random number (16 bytes) and last word sets pointer where HSE will write the random number. Then I trigger the service by writing address of the descriptor (0x20400000) to transmit register TR[1] in MU_0. The result is that receive register RR[1] contains return value from HSE 0x55A5AA33 which is HSE_SRV_RSP_OK (operation was successful) and random number is available at 0x2040050: So, I'm sure the HSE_SRV_ID_GET_RANDOM_NUM works as expected regardless of drivers, software, etc.  The data cache must be disabled for this test, of course. Regards, Lukas Re: S32K388 HSE No Response Error Hi @lukaszadrapa. Thanks for response. My project contains a lot of proprietary code that I will need to clean before I can share it and it will take me a day or 2 to get that done. While I am happy to do that, was wondering if you could provide/share your project that works? Thanks in advance. Regards. Re: S32K388 HSE No Response Error Hi @darknite2023  I have S32K388 EVB here with HSE firmware 2.49.0 FULL_MEM version installed. I have no problem to generate random number. Can you share your project? Please provide built project with elf file. I can check it on my side. Regards, Lukas Re: S32K388 HSE No Response Error Hello! I also downloaded this version of HSE for my S32K388 board. I'm using the AB_SWAP version. Can I directly reuse your DCF records?
View full article
HTRC11001T 的 EVM 您好, HTRC11001T是否有可用的EVM(评估模块)? Re: EVM of HTRC11001T NXP 没有为 HTRC110 提供专用的官方评估板。 不过,我们可以提供一些参考资料来帮助您进行设计和开发工作。 硬件设计参考:我们建议参考应用笔记AN98080_基于 HITAG 读写 IC 的读写设备。本文档详细介绍了基于HTRC110的读写器设计,包括: 125 kHz 天线设计 谐振和匹配网络设计 外围耦合电路 解调电路原理 时钟和电源相关设计 其他外部元器件选择建议 软件开发参考:NXP 可提供 HTRC110 的相关示例代码和参考文档,作为客户进行底层驱动程序和应用程序开发的起点。但是,申请这两项都需要签署保密协议。 对于评估硬件或现成的读卡器解决方案,我建议查看 NXP ®合作伙伴市场: https://www.nxp.com/design/design-center/partner-marketplace:PARTNER-MARKETPLACE Re: EVM of HTRC11001T 您好, 感谢您的快速回复。 其中一个查询,如 HTRC110 应用笔记中所述,仅针对 HITAG 系列标签进行了优化。那么,这是否意味着它不能与其他标签(例如 EM 系列 (EM4305) 标签)一起使用? Re: EVM of HTRC11001T 你好@Shanmukh 很抱歉,HTRC11001T 没有可用的 EVM(评估模块)! BR 凯莉
View full article
Secure Boot Fuse programming I have a question regarding SRK hash fuse protection and secure boot on the i.MX RT1024. The SRK hash is 256 bits, stored across eight 32-bit OCOTP fuse words. Since OTP fuses can only be programmed from 0 to 1, some bits in the expected SRK hash will intentionally remain 0. My concern is that, even after programming all eight SRK hash words correctly, an unintended or unauthorized write could change an intentionally zero bit to 1. This would permanently modify the stored SRK hash and cause HAB authentication to fail. Could you please clarify the following? SRK hash write protection: On the i.MX RT1024, does programming SEC_CONFIG to enable closed mode prevent further programming of the SRK hash fuse words (OCOTP addresses 0x18–0x1F)? Dedicated lock mechanism: Is there a separate fuse or hardware mechanism to permanently prevent further modification of the SRK hash after provisioning? If so, could you please specify the relevant fuse addresses and the procedure to enable this protection? Protection of intentional zero bits: If an SRK hash bit is 0 in the expected hash, what prevents that bit from being unintentionally or maliciously programmed to 1 after the device has been provisioned? Re: Secure Boot Fuse programming Hi @Abhay2080 , Thanks for your questions! 1. Closed mode only tells the ROM to reject images that fail HAB authentication. It does not write-protect OTP fuse. The SRK hash words can still be programmed after the device is closed. 2. Based on internal feedback, SRK_LOCK must not be used on the RT1024, as it can prevent the ROM from correctly reading the SRK hash and cause boot failure. Therefore, we cannot recommend a fuse address or programming procedure for permanently locking this region. Within the RT10xx series, only the RT1010 supports the LOCK function. For the RT11xx series, fuses are generally programmed on a word-by-word basis, and they incorporate ECC protection; therefore, there is no need to worry about bit 0 being altered again. Please check AN12800 for more details. 3. Closed mode alone does not prevent these bits from being programmed to 1. The recommended mitigation is runtime access control and privilege separation: restrict access to the OCOTP programming registers to trusted privileged code and prevent ordinary application code from accessing them. This reduces the risk of unintended or unauthorized programming; it is not a permanent fuse write lock. I hope this clarification helps! Best regards, Gavin
View full article
Guidance for HDMI Bring-Up on Custom i.MX95 Board Using ADV7535 Hello NXP Team, I am working on a custom NXP i.MX95 board and want to enable HDMI output using the ADV7535 MIPI-DSI-to-HDMI bridge. I am a beginner in Yocto Linux, device-tree configuration, and HDMI initialization. Could you please guide me step by step on: Required Linux kernel drivers and configurations. Device-tree (DTS) changes for the ADV7535 and MIPI-DSI. Yocto configuration and HDMI initialization. Any reference device-tree files, application notes, or beginner-friendly guides. Thank you for your support. Re: Guidance for HDMI Bring-Up on Custom i.MX95 Board Using ADV7535 Hello, You can use this post as reference to develop a new image for your custom design. Yocto Project customization guide Our BSP has all the required drivers to use ADV7535 bridge and you can use EVK board device tree as a reference to include it in your device tree configuration: imx95-19x19-evk-adv7535.dtso Best regards. Re: Guidance for HDMI Bring-Up on Custom i.MX95 Board Using ADV7535 Request for Review of i.MX95 ADV7535 HDMI Device-Tree Patch Hello NXP Team, I have created a device-tree patch (hdmi_patch_imx95-15x15.patch) to enable HDMI output through the ADV7535 MIPI-DSI-to-HDMI bridge on my custom i.MX95 15×15 board. Could you please review my attached patch and verify whether the HDMI integration is correct? Please focus only on the HDMI-related changes, Note: The patch also contains LAN9646 Ethernet-switch configuration. Please ignore the LAN9646-related changes and review only the HDMI integration. Please let me know if any changes are missing or incorrect and suggest the required corrections with reference to the i.MX95-15x15-FRDM device tree. Thank you for your support. Re: Guidance for HDMI Bring-Up on Custom i.MX95 Board Using ADV7535 Hello NXP Team, Thank you for sharing the reference files. I need step-by-step guidance to enable HDMI output on my custom i.MX95 15x15 board using the ADV7535 bridge. Could you please explain: i need to modify i.mx95-15x15-FRDM.dtsi file which is used in i.mx95-15x15-frdm board    How to adapt imx95-19x19-evk-adv7535.dtso for my custom hardware? 3. Right now i am using i.mx95-15x15-frdm image letter everything verify i will make my own custom machine image  Please provide example code and commands for each step, as I am a beginner in device-tree configuration and Yocto. Thank you for your support. Re: Guidance for HDMI Bring-Up on Custom i.MX95 Board Using ADV7535 Hello, Unfortunately, we do not have a step-by-step guide regarding how to do this from scratch but adding your changes using a new layer based in the EVK can be a goo approach. Please refer to the post mentioned before. Your configuration seems according to our reference design using this bridge. Best regards. Re: Guidance for HDMI Bring-Up on Custom i.MX95 Board Using ADV7535 Dear @JorgeCas , Thanks for the Quick reply, Could you please review the changes in the patch shared by @deepak_k in this post? We are following a similar approach by using the reference DTSO file for the ADV7535 HDMI configuration from the EVK board. Could you please review the implementation and let us know if we are missing any additional configurations or changes required to make it work correctly? Your feedback would be appreciated. Best regards, Asadullah
View full article
i.MX 8ULP - M33上のMIPI CSIおよびISI(リアルタイム領域) こんにちは、 私はMIPI CSIカメラを、アプリケーションドメインの関与なしにリアルタイムドメインから完全に使おうとしています。 ほとんど動作させることができましたが、ISIのフレーム補完割り込みはアプリケーションドメインでのみ利用可能であるようです。誰かそれが正しいか確認できますか? 完了したフレームを検出するためにISIチャネルステータスレジスタをポーリングすることはできますが、理想的とは言えません。私は割り込みを直接使用したいです。A35からM33にMU経由で割り込みを転送すると設計の目的が損なわれるので、それは避けたいです。 A35側のハンドラーに頼らずに、M33がフレームの完了を通知される他の方法はありますか? i.MX8ULP Re: i.MX 8ULP - MIPI CSI and ISI on M33 (realtime domain) こんにちは、 残念ながら、Cortex-M33はMIPI-CSI割り込みを扱えず、A35のみが対応可能です。
View full article
WCT-15WTXAUTO Zギャップ こんにちは、NXPサポートチームの皆さん、 情報ありがとうございます。 公開されているドキュメントは確認しましたが、WCT-15WTXAUTOプラットフォームの実際のZギャップ性能データはまだ必要です。 このリファレンスデザインを担当するフィールドアプリケーションエンジニアまたはエンジニアリングチームにつなげていただけますか? 具体的には、Zギャップに対する充電電力の測定値、および石英や花崗岩などの非金属表面を通して動作させた場合のテスト結果を探しています。 私のターゲットアプリケーションは、表面厚さ10〜20mmのカウンタートップ内蔵型ワイヤレス充電器です。 もしこれらのパラメータがWCT-15WTXAUTOで利用できない場合、この用途により適した別のNXP送信機プラットフォームをおすすめしていただけますか? ご協力ありがとうございます。 よろしくお願いいたします。 Re: WCT-15WTXAUTO Z-gap こんにちは、 @Harryk89 さん。 投稿ありがとうございます。このリクエストは、さらなる検討のため、適切なワイヤレス充電開発チームにエスカレーションする必要があります。 サポートプロセスによると、NXPについておよびプロジェクトについて追加情報が必要です。プライバシーを守るために、サポートチケットを作成して、非公開のチャネルでサポートを行うことをお勧めします。 https://support.nxp.com/s/?language=en_US 良い1日を。 BR セレステ
View full article
i.MX 8ULP - MIPI CSI and ISI on M33 (realtime domain) Hello, I'm trying to use a MIPI CSI camera entirely from the real-time domain, with no involvement from the application domain. I've been able to get most of it working, but it looks like the ISI frame completion interrupts are only available in the application domain. Can anyone confirm if that's correct? I can poll the ISI Channel Status register to detect completed frames, but it is not ideal. I would prefer to use the interrupt directly. Forwarding the interrupt from A35 to M33 via the MU would defeat the purpose of the design, so I'd like to avoid that. Is there any other way for M33 to be notified of completed frames without relying on A35-side handlers? i.MX8ULP Re: i.MX 8ULP - MIPI CSI and ISI on M33 (realtime domain) Hello,  Unfortunately, Cortex-M33 cannot handle MIPI-CSI interrupts, only A35 can.
View full article
ADV7535を使用したカスタムi.MX95ボードでのHDMI起動に関するガイダンス NXPチームの皆様、こんにちは。 私はNXP i.MX95カスタムボードを開発中で、ADV7535 MIPI-DSI-to-HDMIブリッジを使用してHDMI出力を有効にしたいと考えています。 私はYocto Linux、デバイスツリー設定、HDMI初期化の初心者です。どうかステップごとにご案内いただけますか: 必要なLinuxカーネルドライバーと設定。 ADV7535およびMIPI-DSIのデバイスツリー(DTS)の変更点。 Yoctoの設定とHDMI初期化について。 参考のデバイスツリーファイル、アプリケーションノート、初心者向けのガイドなど。 再開まで今しばらくお待ちください。 Re: Guidance for HDMI Bring-Up on Custom i.MX95 Board Using ADV7535 こんにちは、 この投稿を参考にして、カスタムデザインの新しい画像を作成できます。 Yocto Projectのカスタマイズガイド 私たちのBSPにはブリッジADV7535使うために必要なすべてのドライバがあり、EVKボードのデバイスツリーを基準にしてデバイスツリー構成に組み込めます。 imx95-19x19-evk-adv7535.dtso よろしくお願いいたします。 Re: Guidance for HDMI Bring-Up on Custom i.MX95 Board Using ADV7535 i.MX95 ADV7535 HDMIデバイスツリーパッチのレビュー依頼 NXPチームの皆様、こんにちは。 私は、自作のi.MX95 15×15ボード上でADV7535 MIPI-DSI-to-HDMIブリッジを介してHDMI出力を有効にするために、デバイスツリーパッチ( hdmi_patch_imx95-15x15.patch )を作成しました。 添付したパッチを確認して、HDMI統合が正しいか確認してもらえますか? HDMI関連の変更点のみに注目してください。 注意: パッチにはイーサネット・スイッチ構成LAN9646含まれています。LAN9646関連の変更は無視し、HDMI統合のみを確認してください。 変更点に漏れや誤りがある場合はお知らせください。また、i.MX95-15x15-FRDMデバイスツリーを参照して、必要な修正案をご提案ください。 再開まで今しばらくお待ちください。 Re: Guidance for HDMI Bring-Up on Custom i.MX95 Board Using ADV7535 NXPチームの皆様、こんにちは。 参考資料を共有していただきありがとうございます。ADV7535ブリッジを使用して、自作のi.MX95 15x15ボードでHDMI出力を有効にするための手順を段階的に説明していただきたいです。 説明していただけますか? i.mx95-15x15-FRDMボードで使用されているi.mx95-15x15-FRDM.dtsiファイルを修正する必要があります。 imx95-19x19-evk-adv7535.dtsoを自分のカスタムハードウェアに適合させるにはどうすればよいですか? 3. 現在、私はi.mx95-15x15-frdmイメージレターを使用していますが、すべて検証済みなので、独自のカスタムマシンイメージを作成します。 各ステップごとに例のコードとコマンドを教えてください。デバイスツリー設定とYoctoの初心者です。 再開まで今しばらくお待ちください。 Re: Guidance for HDMI Bring-Up on Custom i.MX95 Board Using ADV7535 こんにちは、 残念ながら、ゼロから行う手順のステップバイガイドはありませんが、EVKベースの新しいレイヤーを使って変更を加えるのはGooアプローチです。前述の投稿を参照してください。 あなたの構成は、このブリッジを使った私たちのリファレンスデザインに合っているようですね。 よろしくお願いいたします。 Re: Guidance for HDMI Bring-Up on Custom i.MX95 Board Using ADV7535 親愛なる@JorgeCas様、 迅速なご返信ありがとうございます。 この投稿で共有されたパッチの変更点 @deepak_k確認していただけますか? EVKボードのADV7535 HDMI構成用の参照DTSOファイルを使用することで、同様のアプローチを採用しています。 実装を確認して、正しく動作させるために必要な追加設定や変更がないか教えていただけますか? ご意見をお聞かせいただければ幸いです。 よろしくお願いします、 アサドゥラ
View full article
WCT-15WTXAUTO Z-gap Hello NXP Support Team, Thank you for the information. I have reviewed the publicly available documentation, but I still need the actual Z-gap performance data for the WCT-15WTXAUTO platform. Could you please connect me with a Field Applications Engineer or the engineering team responsible for this reference design? Specifically, I am looking for measured charging power versus Z-gap data and any test results for operation through non-metallic surfaces such as quartz or granite. My target application is a countertop-integrated wireless charger with a surface thickness of 10–20 mm. If these parameters are not available for the WCT-15WTXAUTO, could you recommend another NXP transmitter platform better suited for this application? Thank you for your help. Best regards Re: WCT-15WTXAUTO Z-gap Hello @Harryk89 , Thank you for your post. This request will need to be escalated to the appropriate wireless charging development team for further review. According to our support process, we need some additional information about your company and project. To protect your privacy, I recommend that you create a support ticket so we can assist you through a private channel: https://support.nxp.com/s/?language=en_US  Have a nice day. BR Celeste
View full article
WCT-15WTXAUTO Z型间隙 您好,NXP支持团队, 谢谢你提供的信息。 我已经查阅了公开的文档,但我仍然需要 WCT-15WTXAUTO 平台的实际 Z 间隙性能数据。 请问您能否帮我联系一位现场应用工程师或负责此参考设计的工程团队? 具体来说,我正在寻找测量的充电功率与 Z 间隙数据,以及通过石英或花岗岩等非金属表面进行操作的任何测试结果。 我的目标应用是一款台面集成式无线充电器,表面厚度为 10-20 毫米。 如果 WCT-15WTXAUTO 没有这些参数,您能否推荐另一个更适合此应用的 NXP 发射器平台? 感谢您的帮助。 顺祝商祺! Re: WCT-15WTXAUTO Z-gap 你好@Harryk89 , 感谢您的帖子。该请求需要上报给相应的无线充电开发团队进行进一步审查。 根据我们的支持流程,我们需要一些关于贵公司和项目的其他信息。为了保护您的隐私,我建议您创建支持工单,以便我们通过私密渠道为您提供帮助: https://support.nxp.com/s/?language=en_US 祝你今天过得愉快。 BR 塞莱斯特
View full article