Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
RTD generated code is invalid The details of my environment is as follows: S32 Design Studio for S32 Platform Version: 3.6.2 Build id: 250529 (Update 2) RTD details is as per the screen shot: MCU: S32K148 The generated code is sometimes invalid (i.e. won't compile). A way to reproduce is as follows: (this is a convoluted way, but still shows the problem without discussing the details of our internal project) 1. Open Spi_Transfer_S32K148 project 2. Delete 'Platform' MCAL driver 3. Update code 4. Add it back 5. Update code Part of the generated Flexio_Spi_Ip_CfgDefines.h is as follows. Note the multiply defined macros that break the build. /*================================================================================================== * DEFINES AND MACROS ==================================================================================================*/ /* Macros that indicate FLEXIO channels used by SPI */ #ifndef FLEXIO_0_CH_0_USED #define FLEXIO_0_CH_0_USED #else #error "CHANNEL_0 cannot be used by SPI driver to configure as TX and CLK channels. Channel locked by another driver!" #endif #ifndef FLEXIO_0_CH_0_USED #define FLEXIO_0_CH_0_USED #else #error "CHANNEL_0 cannot be used by SPI driver to configure as RX and CS channels. Channel locked by another driver!" #endif /* Macros that indicate FLEXIO pins used by SPI */ #ifndef FLEXIO_0_PIN_0_USED #define FLEXIO_0_PIN_0_USED #else #error "PIN_0 cannot be used by SPI driver to configure for TX channel. PIN locked by another driver!" #endif #ifndef FLEXIO_0_PIN_0_USED #define FLEXIO_0_PIN_0_USED #else #error "PIN_0 cannot be used by SPI driver to configure for RX channel. PIN locked by another driver!" #endif #ifndef FLEXIO_0_PIN_0_USED #define FLEXIO_0_PIN_0_USED #else #error "PIN_0 cannot be used by SPI driver to configure for CLK channel. PIN locked by another driver!" #endif Re: RTD generated code is invalid Hello @VaneB  When the code generator gets into this state, it does not recover on its own; i.e. manually deleting the duplicated lines and regenerating the code puts them back. Since you cannot reproduce the issue, I am going to close this thread; let's hope that it has been fixed in the 3.6.4 version of the IDE. Re: RTD generated code is invalid Hi @durga_choudhury  I have followed the steps you outlined, and I am afraid I was not able to reproduce the issue on my end. However, since the problem seems to be related to the files generated by ConfigTools, could you please try deleting the generated files for the project? Then, go to ConfigTools → Update Code to regenerate them. If the issue persists after that, please let me know. BR, VaneB
View full article
在 Ubuntu 上安装 eIQ 工具包 上一次讨论安装 eIQ 工具包要追溯到 2023 年,大约是 eIQ 工具包 v1.8.0。 我正试图在 Ubuntu 上安装 eIQ 工具包 v1.16.0。 安装似乎成功了。 eIQ Toolkit 用户指南从 eIQ Portal 的主屏幕开始... 但没有提及如何用上市应用程序。虽然这可能与平台有关,但这些信息对用户很有帮助。 安装后,尝试从应用程序图标用上市不会产生任何结果。使用 `/opt/nxp/eIQ_Toolkit_v1.16.0/eiq-portal` 从命令行启动会产量错误: ``` [33591:1001/121907.446132:FATAL:setuid_sandbox_host.cc(158)] 已找到 SUID 沙箱帮助程序二进制文件,但配置不正确。与其在没有沙盒的情况下运行,我现在就中止。您需要确保 /opt/nxp/eIQ_Toolkit_v1.16.0/chrome-sandbox 为 root 所有,模式为 4755。 ```` (尽管/opt/nxp/eIQ_Toolkit_v1.16.0/chrome-sandbox确实为root所有,并设置了模式4755)。 使用 `/opt/nxp/eIQ_Toolkit_v1.16.0/eiq-portal --no-sandbox` 产量几个屏幕的错误消息和内核警告。 显然有些东西安装不正确。对于如何理清思路并运行 eIQ 工具包,有什么建议吗? 开发板 NPU|ML Re: Install eIQ Toolkit on Ubuntu 你好,MaskedBit、 我在内部文档中找不到任何与 chrome-sandbox 错误相关的内容,但似乎有类似报告称 chrome-sandbox 会干扰某些集成开发环境和具有图形用户界面的应用程序。 似乎有用户将 chrome-sandbox 的所有者和权限改为 root 和 4755 sudo chown root:root chrome-sandbox sudo chmod 4755 chrome-sandbox 尽管我无法进行测试,而且你需要找到 chrome-sandbox 的位置。 敬上, Gustavo Re: Install eIQ Toolkit on Ubuntu 古斯塔沃 我的系统是 Ubuntu 24.04.3,这可能是问题的一部分。 唉,我得到的结果是: ``` sboylan@Woden:/opt/nxp/eIQ_Toolkit_v1.16.0$ ./bin/eiqenv.sh sboylan@Woden:/opt/nxp/eIQ_Toolkit_v1.16.0$ ./eiq-portal [69676:1003/181936.886479:FATAL:setuid_sandbox_host.cc(158)]已找到 SUID 沙箱帮助程序二进制文件,但配置不正确。与其在没有沙盒的情况下运行,我现在就中止。您需要确保 /opt/nxp/eIQ_Toolkit_v1.16.0/chrome-sandbox 为 root 所有,模式为 4755。 跟踪/断点陷阱(核心已转储) ``` 使用--no-sandbox 运行会更进一步:GUI 开始用上市,但随后由于超过 200 行日志消息以及 C 和 Python 堆栈转储而崩溃。 Re: Install eIQ Toolkit on Ubuntu 你好,MaskedBit、 您使用的是哪个版本的 Ubuntu?推荐版本为 Ubuntu 20.04 安装完成后,你可以使用以下命令启动 eIQ 门户: \bin\eiqenv.sh \eiq-portal 敬上, Gustavo
View full article
MCAL用S32k311 ADCモジュール こんにちは@nxp S32k31xevb-q100 用の ADC モジュールを構成しています。私は AUTOSAR ベースの MCAL レイヤー構成を使用しています。私の CASE では、割り込みを使用しないソフトウェア トリガーを使用しています。この関数に入っていますが、ADc 値が変換されていません。Adc_Sar_Ip_StartConversion (PhysicalHwUnitId、ADC_SAR_IP_CONV_CH AIN_NORMAL)。この理由は何でしょうか。 Re: S32k311 ADC module for MCAL こんにちは@Senlent 、 もう一度確認してお知らせします Re: S32k311 ADC module for MCAL こんにちは@dhanabharathi テスト ハードウェアは S32K31XEVB をベースにしており、結果は私の側で正確です。 参考までにプロジェクトとテスト結果を添付しました。 Re: S32k311 ADC module for MCAL こんにちは@Senlent あなたの手順に従いましたが、まだ同じ問題が続きます Re: S32k311 ADC module for MCAL こんにちは@dhanabharathi 設定に問題はないようです。ただし、コードに間違いがあるようです。 問題 1. #define ADC_BANDGAP 5980U /* Vbandgap ~ 1.2V、14ビット分解能、VrefH 3.3V */ #それ以外 #define ADC_BANDGAP 3932U /* Vbandgap ~ 1.2V、14ビット分解能、VrefH 5V */ #endif VREF が 5V の場合、 ADC_BANDGAP は 5980 ではなく 3932 になります。 問題 2。 if ((ResultBufferDma[0u] >> 1U != AdcReadGroupResult[0u]) || \ (ResultBufferDma[1u] >> 1U != AdcReadGroupResult[1u]) || \ (ResultBufferDma[2u] != RESULT_BUFF_VAL) || \ (AdcReadGroupResult[2u] != ADC_RESULT_BUFF_VAL) || \ (ADC_TOLERANCE((ResultBufferDma[0u] >> 1U), ADC_BANDGAP)) || \ (ADC_TOLERANCE((ResultBufferDma[1u] >> 1U), ADC_VREFH)) \ ) これらの 2 行のコードを削除する必要があります。元のデモでは 2 つのサンプリング チャネルのみが設定されていましたが、現在は 4 つのサンプリング チャネルを使用しています。この判断により、次のサンプリングが実行できなくなります。 Re: S32k311 ADC module for MCAL こんにちは@Senlent 、 プロジェクトファイルを添付しました。 Re: S32k311 ADC module for MCAL こんにちは@dhanabharathi プロジェクト全体を共有してください。時間をかけてテストします。 Re: S32k311 ADC module for MCAL こんにちは@Senlent わかりました。分かりました。 VREFHが5.0Vであることを確認しました。しかし、ADC に 4.0 V を供給すると、変換結果は 5 V リファレンスの予想値から外れます。潜在的な原因(リファレンス選択、キャリブレーション、サンプリング時間、ピンルーティング)の確認をお手伝いいただけますか? Re: S32k311 ADC module for MCAL こんにちは@dhanabharath 「私のADCの読み取り値は内部の2.5Vリファレンスを使用して計算されているようです」 VREFHピンに問題がない限り、これは不可能です ADC リファレンス電圧 VREF はソフトウェアでは変更できません。 これは、VREFH ピンと VREFL ピンの現在の外部電圧選択に関連しています。 ハードウェアで外部ADCリファレンス電圧を変更する方法について言及している場合は、 ハードウェアデザインを見直して修正する必要があります。 Re: S32k311 ADC module for MCAL こんにちは@Senlent 、 いいえ、あなたの言いたいことが分かりません。 Re: S32k311 ADC module for MCAL こんにちは@dhanabharathi vrefhとvreflはADCの高低基準電圧点であり、ピンのvrefhとvreflピンに対応する。 私の説明はCAN理解できましたか? Re: S32k311 ADC module for MCAL こんにちは@Senlent 、 明確に説明しますと、私の ADC 読み取り値は内部 2.5 V リファレンスを使用して計算されているようですが、入力には 3.3 V リファレンス (5 V のポテンショメータ) が使用されています。V_measured = (ADC_value / (2^n − 1)) × Vref の計算で 5V が使用されるSO、ADC リファレンスを 2.5 V から 5 V に変更するにはどうすればよいですか? Re: S32k311 ADC module for MCAL こんにちは@dhanabharathi 何を言っているのか分かりません。VREF は修正されるべきではないでしょうか?私 それはハードウェアデザイン時に決定されるのではないですか? ご質問を誤解している場合はお知らせください。 Re: S32k311 ADC module for MCAL こんにちは@Senlent わかりました。ありがとうございます。 もう一つ問題があります。 アナログ ピン経由でデータを読み取る場合、VREF は常に 2.5 V のみになります。3.3V または 5V の Vref が必要です。これをどこで設定する必要がありますか? Vref 電圧を設定できません。構成設定は非アクティブです。参考までに画像を添付しました Re: S32k311 ADC module for MCAL こんにちは@dhanabharathi プロジェクトに「Rm」コンポーネントを追加して構成していません。
View full article
用于 MCAL 的 S32k311 ADC 模块 你好@nxp 我正在为 S32k31xevb- q100 配置 ADC 模块。我使用的是基于 Autosar 的 MCAL 层配置。就我而言,我使用的是没有中断方法的软件触发信号。它正在进入这个函数但是我的 adC 值无法转换 adc_sar_IP_startConversion(physicalHWUNITID、ADC_SAR_IP_CONV_CH AIN_NOR MAL);造成这种情况的原因是什么? Re: S32k311 ADC module for MCAL 你好@Senlent, ,我会再检查一下我这边的情况,然后告诉你。 Re: S32k311 ADC module for MCAL Hi@dhanabharathi 测试硬件基于 S32K31XEVB,结果与我的想法一致。 我附上了项目和测试结果供你参考。 Re: S32k311 ADC module for MCAL 您好@Senlent ,我按照您的步骤进行了操作,但问题依然存在。 Re: S32k311 ADC module for MCAL Hi@dhanabharathi 我认为您的配置没有问题,只是您的代码有误。 问题 1. #defineadc_bandgap 5980u /* Vbandgap~ 14 位分辨率时为 1.2V,3.3V VrefH */ #else #defineadc_bandgap 3932u /* Vbandgap~ 1.2V,分辨率为 14 位,5V VrefH */ #endif 如果 VREF 为 5V,那么 ADC_BANDGAP 为 3932,而不是 5980。 问题 2. if ((ResultBufferDma[0u]>> 1U != AdcReadGroupResult[0u]) || \ (ResultBufferDma[1u]>> 1U != AdcReadGroupResult[1u]) || \ (ResultBufferDma[2u] != RESULT_BUFF_VAL) ||\ (AdcReadGroupResult[2u] != ADC_RESULT_BUFF_VAL) || \\ (ADC_TOLERANCE((ResultBufferDma[0u]>> 1U), ADC_BANDGAP))| \ (ADC_TOLERANCE((ResultBufferDma[1u]>> 1U), ADC_VREFH))\ ) 应删除这两行代码。最初的演示仅安装了两个采样通道,但您目前使用的是 4 个采样通道。这种判断会导致您无法进行下一次采样。 Re: S32k311 ADC module for MCAL 你好@Senlent, 我附上了项目文件。 Re: S32k311 ADC module for MCAL Hi@dhanabharathi 请分享您的整个项目,我会花时间进行测试。 Re: S32k311 ADC module for MCAL 你好@Senlent OK。我明白了。 我验证了 VREFH 为 5.0 V。但是,当我向ADC供电4.0 V时,转换结果偏离了5 V参考的预期值。你能帮我查看潜在的原因(参考选择、校准、采样时间或引脚布线)吗? Re: S32k311 ADC module for MCAL Hi@dhanabharath " 我的 ADC 读数似乎是使用内部 2.5 V 参考计算的 " 除非您的 VREFH 引脚有问题,否则这是不可能的 不能通过软件修改 ADC 参考电压 VREF。 这与您当前为 VREFH 和 VREFL 引脚选择的外部电压有关。 如果你指的是如何在硬件中修改外部 ADC 参考电压,那么你 需要检查硬件设计并进行修改。 Re: S32k311 ADC module for MCAL 你好@Senlent, 不,我没明白你的意思。 Re: S32k311 ADC module for MCAL Hi@dhanabharathi vrefh 和 vrefl 是 ADC 的高参考电压点和低参考电压点,对应于引脚的 vrefh 和 vrefl 引脚 你能理解我的解释吗? Re: S32k311 ADC module for MCAL 嗨 @Senlent, 我会清楚地解释一下我的 ADC 读数似乎是使用内部 2.5 V 参考计算的,但我的输入使用 3.3 V 参考(电位计在 5 V 上)。如何将 ADC 参考从 2.5 V 更改为 5 V,以便计算 V_measured = (ADC_value / (2^n − 1)) × Vref 使用 5V? Re: S32k311 ADC module for MCAL Hi@dhanabharathi 我不明白你的意思。VREF 不应该修复吗?I 难道不是在硬件设计时确定的吗? 如果我误解了你的问题,请告诉我。 Re: S32k311 ADC module for MCAL hi@Senlent OK,谢谢。 还有一个问题。 当通过模拟引脚读取数据时。VREF 总是只消耗 2.5 V。我需要 3.3 伏或 5 伏 Vref。我无法设置 Vref 电压。配置设置无效。我附上了图片供你参考 Re: S32k311 ADC module for MCAL Hi@dhanabharathi 你没有在你的项目中添加和配置 " Rm " 元器件。
View full article
MCX-A346: プログラム開始時のコア状態 Cortex-M33 コアは実際には MCX-A346 のリファレンス・マニュアルには記載されていませんが、Arm の対応する技術リファレンス・マニュアルを参照できるため、記載されているものと思われます。けっこうだ。しかし、プログラムが制御を取得したときに発生するコアの状態 (アドレス 0x4 の初期 PC 値) は、ARM のマニュアルでリセット状態として定義されているものとは異なります。コアハードウェアが仕様通りに実装されていると仮定すると、非適合状態を残すのはブートROMコードであると考えられます[1]。 この初期のコア状態は文書化されていますか? 文書化されている場合、どこにありますか?ありがとう。 [1] 例: 1) プリマスク = 1 2) FPU は有効になっていますが、さらに悪いことに、CONTROL.FPCA = 1、つまり、コードの実行前に FPU 命令が使用されることを示しています。現在、Thread モードのすべての例外がこのフラグによって汚染されており、コードが FPU 命令を使用していない場合でも、FPU レジスタを含む拡張スタック フレームが生成され、スタック メモリが浪費されます (遅延スタックのおかげで、実行時のオーバーヘッドは最小限に抑えられます)。 もちろん、これらの問題は両方とも初期化コードでCAN解決できます。このCASE、そしておそらく私がまだ「発見」していない他の同様のCASEも文書化しておくと役立つでしょう。 コアとメモリ MCXA Re: MCX-A346: Core State at Program Start こんにちは、ハリー。私が言いたいのは、コアの状態が Arm マニュアルに記載されていないため、NXP による対応するドキュメントを期待しているということです。私が説明した 2 つのCASEをブート ROM チームに確認したいとのことでした。 しかし、いずれにせよ、非準拠が見つかった場合は、初期起動コードで MCU を ARM で文書化された状態にリセットするだけです。ありがとう。 Re: MCX-A346: Core State at Program Start こんにちは@ygrayne これがあなたが探しているものかどうかわかりません。添付のドキュメントまたは次のリンクの B1.6 の章を確認してください。 Arm Cortex-M33 デバイスの汎用ユーザーガイド r0p4 MCXA リファレンス マニュアルには、ユーザー イメージ ヘッダーを含む表 112 があり、ここにも役立つ情報が含まれている可能性があります。 PC に関しては、アドレス 0x4 を調べている場合、これは初期プログラム カウンターであり、リセット後に常にコア PC レジスタにロードされます。この値は、MCU やその他の変数によって異なります。 これが役に立つことを願います。 BR ハリー Re: MCX-A346: Core State at Program Start こんにちは@ygrayne ブートROMがPRIMASKとCONTROL.FPCAの状態を変更したかどうかについては、 ROM チームに確認する必要があります。 BR ハリー
View full article
使用 TapLinx v4.1.0 在 POS SAM 插槽上使用外部 SAM(卡)验证/读取 DESFire EV2/EV3 亲爱的恩智浦 TapLinx 支持团队 我正在集成 TapLinX (v4.1.0)在安 卓 POS 设备上,需要有关使用安装在 POS SAM 插槽中的外部 SAM(安全访问模块)时从 MIFARE DESFire EV2/EV3 卡安全读取/写入 数据的推荐方法的指导。 环境& 硬件 TapLinx SDK:v4.1.0 POS 设备:安卓 POS(可根据要求提供型号)、安卓 13 NFC:正常(TapLinx 可通过 IsoDep/Android NFC 检测该 POS 上的卡类型) 卡:MIFARE DESFire EV2 / EV3 SAM:外部 SAM 卡/模块可用,且 POS 有一个SAM 插槽;POS 供应商 SDK 提供 API 打开 SAM 通道并发送/接收 APDU(如 exchangeApdu(...) 我们希望达到的目标 我们希望使用外部 SAM(插入 POS SAM 插槽)对 DESFire 卡进行安全验证(这样密钥就不会暴露在应用程序中),然后在卡会话通过验证后使用 TapLinx 执行 DESFire 读/写操作。 问题/请求 是否使用 TapLinx v4.1.0在 TapLinx 处理 DESFire 协议和文件操作的同时,是否提供任何官方或推荐的集成模式来使用外部 SAM(插入 POS SAM 插槽)执行 DESFire 身份验证? 如果支持或建议进行这种整合,请提供: 演示 EV2/EV3 的SAM ↔ TapLinx 中继流程的示例代码(或伪代码)(首选 AES)。具体来说 如何调用启动卡牌挑战的 TapLinx 方法(例如 AuthenticateEv2First 或等效方法),捕获挑战数据,通过 APDU 将其发送给 SAM,然后将 SAM 的响应传回 TapLinx(例如 AuthenticateEv2Next)。 TapLinX 中可简化 SAM 桥接的任何辅助类或方法(例如,推荐的 APDU 成帧或预期的字节格式)。 TapLinx 期望用于身份验证交换的 APDU 格式,或 TapLinx 方法与您推荐用于 SAM 操作的 APDU 之间的映射指南。 如果 TapLinx 不直接提供 SAM 集成,推荐的安全流程(最佳做法)是什么? 中继卡挑战 SAM(在 POS SAM 插槽中)、 使用 SAM 计算响应(密码图/MAC),以及 将这些结果输入 TapLinx,这样 DESFire 会话就通过了验证,并可进行安全读/写。 如果您能分享任何涉及 TapLinx + 外部 SAM (POS) 集成的示例项目、技术说明或内部文档,将非常有帮助。 您能分享的任何示例代码或推荐模式都将加速我们的集成,并有助于确保我们实施一个安全、可维护的解决方案。 代码示例 示例代码 离线验证 离线版本 在线认证 Re: Using external SAM (card) on POS SAM slot to authenticate/read DESFire EV2/EV3 with TapLinx v4.1 我们的 TapLinx 还不支持外部 SAM,因此没有推荐的方法。
View full article
Download the s32G274RDB2 program using the SJA1110 PE downloader on the switch When the s32G274RDB2 was downloading the program using the SJA1110 PE downloader on the switch, the debug operation was normal. However, after repowering, when the switch was set to start from flash, the program would not be updated to the latest downloaded version. I want to know where the problem lies with my PE debug Settings?  Moreover, a month ago, I was able to download it normally, and when I repowered it, I could update it to the latest program normally.    Re: Download the s32G274RDB2 program using the SJA1110 PE downloader on the switch Hello, @sdx111  Thanks for your reply. Sorry that I have not reproduced the issue from my side, by checking the logs shared, I do not see the log for VM and other commands, and I mentioned that seems you are still working with S32DS3.4, but combining with the SJA1110 SDK 1.0.2? Since SJA1110 SDK 1.0.2 was released and tested on S32DS3.5, would you mind retesting it on S32DS3.5 for a trial? BR Chenyin Re: Download the s32G274RDB2 program using the SJA1110 PE downloader on the switch 1、The dial-up operation should be carried out according to the following figure. 2、Print as shown in the following picture. Re: Download the s32G274RDB2 program using the SJA1110 PE downloader on the switch Hello, @sdx111  Thanks for your post. 1. What is the switch setting when you flash the spi of SJA1110 and after repowering? 2. When flashed the binary, have you checked in the console with command VM? what are the prints? BR Chenyin
View full article
Using external SAM (card) on POS SAM slot to authenticate/read DESFire EV2/EV3 with TapLinx v4.1.0 Dear NXP TapLinx Support Team, I am integrating TapLinx (v4.1.0) on an Android POS device and require guidance on the recommended approach to securely read/write data from MIFARE DESFire EV2/EV3 cards when using an external SAM (Secure Access Module) installed in the POS SAM slot. Environment & hardware TapLinx SDK: v4.1.0 POS device: Android POS (model available on request), Android 13 NFC: working (TapLinx can detect card type on this POS via IsoDep/Android NFC) Card: MIFARE DESFire EV2 / EV3 SAM: external SAM card/module available and the POS has a SAM slot; the POS vendor SDK exposes APIs to open the SAM channel and send/receive APDUs (e.g., exchangeApdu(...)) What we want to achieve We want to use the external SAM (inserted in the POS SAM slot) to perform secure authentication for DESFire cards (so keys are never exposed in the application), and then use TapLinx to perform DESFire read/write operations once the card session is authenticated. Questions / Request Does TapLinx v4.1.0 provide any official or recommended integration pattern for using an external SAM (inserted into a POS SAM slot) to perform DESFire authentication while TapLinx handles DESFire protocol and file operations? If such integration is supported or recommended, could you please provide: Example code (or pseudo-code) demonstrating the SAM ↔ TapLinx relay flow for EV2/EV3 (AES preferred). Specifically: How to call the TapLinx method that initiates the card challenge (e.g., authenticateEV2First or equivalent), capture the challenge data, send it to the SAM via APDU, and pass the SAM’s response back to TapLinx (e.g., authenticateEV2Next). Any helper classes or methods in TapLinx that simplify bridging a SAM (for example, recommended APDU framing or expected byte formats). The APDU format TapLinx expects for authentication exchanges, or mapping guidance between TapLinx methods and the APDUs you recommend for SAM operations. If TapLinx does not directly provide SAM integration, what is the recommended secure flow (best practice) to: Relay card challenges to the SAM (in POS SAM slot), Use SAM to compute responses (cryptogram / MAC), and Feed those results into TapLinx so the DESFire session is authenticated and ready for secure read/write. Any sample projects, technical notes, or internal docs you can share that cover TapLinx + external SAM (POS) integration would be very helpful.  Any example code or recommended patterns you can share will accelerate our integration and help ensure we implement a secure, maintainable solution. Code examples Example code Offline authentication Offline version Online authentication Re: Using external SAM (card) on POS SAM slot to authenticate/read DESFire EV2/EV3 with TapLinx v4.1 We do not have any support for external SAMs in TapLinx yet, so unfortunately, we do not have a recommended way on how to do this.
View full article
使用交换机上的 SJA1110 PE 下载器下载 s32G274RDB2 程序 当 s32G274RDB2 使用交换机上的 SJA1110 PE 下载器下载程序时,调试操作正常。但是,重新上电后,当交换机设置为从闪存启动时,程序不会更新到最新下载的版本。我想知道我的 PE 调试设置问题出在哪里? 而且,一个月前我还能正常下载,重新加电后也能正常更新到最新的程序。   Re: Download the s32G274RDB2 program using the SJA1110 PE downloader on the switch 你好,@sdx111 感谢您的回复。 很抱歉,我这边没有重现这个问题,通过查看共享日志,我没有看到 VM 和其他命令的日志,而且我提到您似乎仍在使用 S32DS3.4、但要结合 SJA1110 SDK 1.0.2? 由于 SJA1110 SDK 1.0.2 是在 S32DS3.5 上版本和测试的,你介意在 S32DS3.5 上重新测试它进行试用吗? BR 切宁 Re: Download the s32G274RDB2 program using the SJA1110 PE downloader on the switch 1、拨号操作应按下图进行。 2、打印如下图所示。 Re: Download the s32G274RDB2 program using the SJA1110 PE downloader on the switch 你好,@sdx111 谢谢您的帖子。 1.闪烁 SJA1110 的 spi 和重新上电后的开关设置是什么? 2。刷新二进制文件时,您是否使用命令虚拟机在控制台中进行了检查?有哪些版画? BR 切宁
View full article
スイッチ上のSJA1110 PEダウンローダーを使用してs32G274RDB2プログラムをダウンロードします。 スイッチのSJA1110 PEダウンローダーを使用してs32G274RDB2がプログラムをダウンロードしていた時は、デバッグ操作は正常に動作していました。しかし、電源再投入後、スイッチをフラッシュメモリから起動するように設定しても、プログラムがダウンロードした最新バージョンに更新されません。PEデバッグ設定のどこに問題があるのか知りたいです。また、1ヶ月前までは正常にダウンロードできており、電源再投入時には正常に最新のプログラムに更新できました。   Re: Download the s32G274RDB2 program using the SJA1110 PE downloader on the switch こんにちは、 @sdx111 ご返信ありがとうございます。 申し訳ありませんが、私の側では問題を再現できませんでした。共有されたログを確認すると、VMやその他のコマンドのログが表示されませんでした。また、S32DS3.4をまだ使用しているようです。しかし、SJA1110 SDK と組み合わせるのですか? SJA1110 SDKs 1.0.2 がリリースされ、S32DS3.5 でテストされましたので、試しに S32DS3.5 で再度テストしていただけますか? BR チェイン Re: Download the s32G274RDB2 program using the SJA1110 PE downloader on the switch 1、ダイヤルアップ操作は次の図に従って実行する必要があります。 2、次の図のように印刷します。 Re: Download the s32G274RDB2 program using the SJA1110 PE downloader on the switch こんにちは、 @sdx111 ご投稿ありがとうございます。 1. SJA1110 の SPI をフラッシュし、電源を再投入した後のスイッチ設定は何ですか? 2. バイナリをフラッシュしたときに、コマンド VM を使用してコンソールで確認しましたか? 出力内容は何ですか? BR チェイン
View full article
S32k311 ADC module for MCAL Hello @nxp    i am configuring ADC module for S32k31xevb- q100. i am using Autosar based MCAL layer configuration. in my case i am using software trigger without Interrupt method.  it is entering in to this function but my ADc value is not converting Adc_Sar_Ip_StartConversion(PhysicalHwUnitId, ADC_SAR_IP_CONV_CH AIN_NORMAL); what will be reason for this? Re: S32k311 ADC module for MCAL hello @Senlent, I will check my side again and i will let you know Re: S32k311 ADC module for MCAL Hi@dhanabharathi The test hardware base on S32K31XEVB, and the result is right on myside. I attached the project and the test result for your reference. Re: S32k311 ADC module for MCAL Hello @Senlent    I followed your steps , still the same problem persists Re: S32k311 ADC module for MCAL Hi@dhanabharathi I see no problem with your configuration, but some mistake in your code. Issues 1. #define ADC_BANDGAP 5980U /* Vbandgap ~ 1.2V on 14 bits resolution, 3.3V VrefH */ #else #define ADC_BANDGAP 3932U /* Vbandgap ~ 1.2V on 14 bits resolution, 5V VrefH */ #endif if your VREF is 5V , then the ADC_BANDGAP is 3932, not 5980. Issues 2. if ((ResultBufferDma[0u] >> 1U != AdcReadGroupResult[0u]) || \ (ResultBufferDma[1u] >> 1U != AdcReadGroupResult[1u]) || \ (ResultBufferDma[2u] != RESULT_BUFF_VAL) || \ (AdcReadGroupResult[2u] != ADC_RESULT_BUFF_VAL) || \ (ADC_TOLERANCE((ResultBufferDma[0u] >> 1U), ADC_BANDGAP)) || \ (ADC_TOLERANCE((ResultBufferDma[1u] >> 1U), ADC_VREFH)) \ ) You should delete these two lines of code. The original demo only set up two sampling channels, but you are currently using 4 sampling channels. This judgment will cause you to be unable to perform the next sampling. Re: S32k311 ADC module for MCAL Hi @Senlent ,   i have attached the project file. Re: S32k311 ADC module for MCAL Hi@dhanabharathi Share your whole project and i will take time to test it. Re: S32k311 ADC module for MCAL hello @Senlent     ok. i understood. I verified that VREFH is 5.0 V. However, when I feed 4.0 V into the ADC, the conversion result is off from the expected value for a 5 V reference. Could you help me review potential causes (reference selection, calibration, sampling time, or pin routing)? Re: S32k311 ADC module for MCAL Hi@dhanabharath "My ADC reading seems to be calculated using the internal 2.5 V reference" Unless there is a problem with your VREFH pins, this is not possible The ADC reference voltage VREF cannot be modified via software. This is related to your current external voltage selections for VREFH and VREFL pins. If you are referring to how to modify the external ADC reference voltage in hardware, then you need to review your hardware design and modify it. Re: S32k311 ADC module for MCAL Hi @Senlent ,    No, i didn't get your point. Re: S32k311 ADC module for MCAL Hi@dhanabharathi vrefh and vrefl are the high and low reference voltage points of the ADC, corresponding to the vrefh and vrefl pins of the pins Can you understand my explanation? Re: S32k311 ADC module for MCAL Hi @Senlent ,      I will explain clearly My ADC reading seems to be calculated using the internal 2.5 V reference, but my input uses a 3.3 V reference (potentiometer on 5 V). How do I change the ADC reference from 2.5 V to 5 V so that the calculation V_measured = (ADC_value / (2^n − 1)) × Vref uses 5V? Re: S32k311 ADC module for MCAL Hi@dhanabharathi I'm not sure what you mean. Shouldn't VREF be fixed? I sn't it determined during hardware design? If I'm misunderstanding your question, please let me know. Re: S32k311 ADC module for MCAL hi @Senlent  ok, Thankyou. Another one problem. when read data via analog pin. the VREF is always it taking 2.5 v only. I need 3.3v or 5v Vref. where i need to configure this? i can't set the Vref voltage. the configuration setting is inactive. i attached image for your reference Re: S32k311 ADC module for MCAL Hi@dhanabharathi You didn't add and configurate "Rm" component in your project.
View full article
MCX-A346:程序启动时的核心状态 我猜Cortex-M33内核实际上并未记录在 MCX-A346 的参考手册中,因为我们可以参考 ARM 相应的技术参考手册。有道理。但是,我的程序获得控制权时遇到的内核状态(地址为0x4的初始PC值)与Arm手册中定义的 RESET 状态不同。假设核心硬件是根据规格实现的,我想是启动ROM代码留下了不合格状态 [1]。 这种初始核心状态是否有文件记录,如果有,在哪里记录?谢谢。 [1] 示例: 1) PRIMASK = 1 2) FPU 已启用,但更糟的是,CONTROL.FPCA = 1,即表示在我的代码运行之前使用了 FPU 指令。现在,线程模式下的每个异常都会受到该标记的影响,导致扩展堆栈框架包括 FPU 寄存器,即使我的代码没有使用任何 FPU 指令,这也会浪费堆栈内存(由于采用了懒堆栈,运行时开销很小)。 当然,这两个问题都可以在我的初始化代码中解决。如果能将这一情况以及我尚未"发现的其他此类情况记录在案," ,那将会很有帮助。 核心与内存 MCXA Re: MCX-A346: Core State at Program Start 你好 Harry,我的意思是内核的状态与 ARM 手册中记录的不同,所以我希望恩智浦能提供相应的文档。你想向启动 ROM团队确认我描述的两个案例。 但不管怎样,我现在只要发现不一致就会在我的早期启动代码中将 MCU RESET 为 Arm 记录的状态。谢谢。 Re: MCX-A346: Core State at Program Start 你好@ygrayne 我不确定这是否就是您要找的内容,请查看所附文件中的 B1.6 章或以下链接。 Arm Cortex-M33 设备通用用户指南 r0p4 在 MCXA 参考手册中,我们有带有用户图像标题的表 112,其中也可能包含有用的信息。 关于电脑,如果你正在查看地址 0x4,这是初始程序计数器,RESET 后将始终加载到核心 PC 寄存器中,这个值会因 MCU 和其他一些变量而有所不同。 希望能对您有所帮助。 BR 哈利 Re: MCX-A346: Core State at Program Start 你好@ygrayne 关于引导程序是否改变了 PRIMASK 和 CONTROL.FPCA 的状态, ,我需要与 ROM 团队确认。 BR 哈利
View full article
POS SAM スロット上の外部 SAM (カード) を使用して、TapLinx v4.1.0 で DESFire EV2/EV3 を認証/読み取ります NXP TapLinxサポートチーム様 TapLinx (v4.1.0)を統合していますAndroid POSデバイス上で、POS SAM スロットにインストールされた外部SAM (セキュア アクセス モジュール)を使用する際に、 MIFARE DESFire EV2/EV3カードからデータを安全に読み書きするための推奨アプローチに関するガイダンスが必要です。 環境とハードウェア TapLinx SDK: v4.1.0 POSデバイス: Android POS(リクエストに応じてモデルを提供)、Android 13 NFC: 動作中 (TapLinx は IsoDep/Android NFC 経由でこの POS 上のカード タイプを検出できます) カード: MIFARE DESFire EV2 / EV3 SAM:外部 SAM カード/モジュールが利用可能で、POS にSAM スロットがあります。POS ベンダー SDKs は、SAM チャネルを開いて APDU を送受信するための API を公開しています (例: exchangeApdu(...)) 私たちが達成したいこと 外部 SAM (POS SAM スロットに挿入) を使用して DESFire カードの安全な認証を実行し (キーがアプリケーションで公開されないSOにしません)、カード セッションが認証されたら TapLinx を使用して DESFire の読み取り/書き込み操作を実行します。 ご質問・ご要望 TapLinx v4.1.0はTapLinx が DESFire プロトコルとファイル操作を処理している間に、外部 SAM (POS SAM スロットに挿入) を使用して DESFire 認証を実行するための公式または推奨の統合パターンを提供しますか? このような統合がサポートまたは推奨されている場合は、以下を提供してください。 EV2/EV3 のSAM ↔ TapLinx リレーフローを示すサンプル コード (または疑似コード) (AES 推奨)。具体的には: カード チャレンジを開始する TapLinx メソッド (例: authenticateEV2First または同等のもの) を呼び出し、チャレンジ データをキャプチャし、APDU 経由で SAM に送信し、SAM の応答を TapLinx に返す方法 (例: authenticateEV2Next)。 SAM のブリッジを簡素化する TapLinx のヘルパー クラスまたは方法 (推奨される APDU フレーミングや予想されるバイト形式など)。 TapLinx が認証交換に期待する APDU 形式、または TapLinx 方法と SAM 操作に推奨される APDU 間のマッピング ガイダンス。 TapLinx が SAM 統合を直接提供しない場合、次の場合に推奨される安全なフロー (ベスト プラクティス) は何ですか。 リレーカードチャレンジをSAM(POS SAMスロット内)に送り、 SAMを使用して応答(暗号文/MAC)を計算し、 これらの結果を TapLinx にフィードすると、DESFire セッションが認証され、安全な読み取り/書き込みの準備が整います。 TapLinx + 外部 SAM (POS) 統合をカバーするサンプル プロジェクト、技術ノート、または内部ドキュメントを共有していただければ非常に役立ちます。 共有していただけるサンプル コードや推奨パターンがあれば、統合が加速され、安全で保守可能なソリューションを実装できるようになります。 コード・サンプル サンプル・コード オフライン認証 オフライン版 オンライン認証 Re: Using external SAM (card) on POS SAM slot to authenticate/read DESFire EV2/EV3 with TapLinx v4.1 TapLinx ではまだ外部 SAM はサポートされていないため、SO 残念ながら、これを行うための推奨方法はありません。
View full article
Nxps32k312 RAMチェックの理解 こんにちは@lukaszadrapa 私は NXP S32K312 マイクロコントローラに取り組んでおり、RAM および ROM メモリ エラーを検出する方法を理解したいと思います。このようなエラーを監視するために FCCU (障害収集および制御ユニット) を使用することに気付きました。ただし、FCCU を使用するには通常、SAF (セーフティ) ドライバのインストールが必要になるようです。追加のドライバは使用したくないです。FCCU レジスタに直接アクセスしたりアクティブ化したりする方法はありますか? あるいは、SAF ドライバに依存せずに RAM および ROM エラーを検出する別の方法はありますか? Re: Nxps32k312 RAM Check Understanding こんにちは@Anitha7 、 前述したように、SPD ドライバを使用してください。 Re: Nxps32k312 RAM Check Understanding こんにちは@danielmartynek ご返答ありがとうございます。RAM および ROM メモリのエラーを確認する方法について解決策を提案していただけますか。 Re: Nxps32k312 RAM Check Understanding こんにちは@Anitha7さん、 SRAM またはフラッシュ メモリに障害を注入し、FCCU を介してそれを検出するために SAF は必要ありません。 代わりに、無料で入手できる標準の S32K3xx ソフトウェア パッケージに含まれている SDP ドライバを使用できます。 FCCU を構成するには、eMcem ドライバを使用し、eMcem_InjectFault() を呼び出して障害を挿入します。 SPD デモは、参照用に SPD スタンドアロン インストーラー (.exe) で入手できます。 もちろん、必要に応じて独自の EIM/FCCU ソリューションを自由に実装できます。 さらに、EIM 経由で注入された障害は ERM モジュールによってCAN検出されますが、現時点ではその解決策は提供されていません。 よろしくお願いいたします。 ダニエル
View full article
Ethernet Code using LPCXPRESSO IDE use internal SRAM using LPC2478 controller Ethernet Communication between two board  at one side set broadcast FF and data in string form  send from transmitter to receiver side give me Correct information I am attatched my file Ethernet code  at receiver side I am getting UUU data for 58 times give me corrections in my code and send a simple string from transmitter Re: Ethernet Code using LPCXPRESSO IDE use internal SRAM Hello @VijayaJangam1  It seems this question is the same as the one posted at this link. My colleague will reply to you in that thread. No need create so many tickets. Thank you.
View full article
FRDM-MC-LVBLDC and FRDM-MCXN947 for BLDC Hi, I'm currently looking for example code to drive the FRDM-MC-LVBLDC using the FRDM-MCXN947 board. I found example for PMSM motors, but I haven't come across any specifically for BLDC. Are there any available? Thank you Board Design Communication & Control(I3C | I2C | SPI | FlexCAN | Ethernet | FlexIO) Core and Memory Development Board Re: FRDM-MC-LVBLDC and FRDM-MCXN947 for BLDC Hi @Suthan, You can find some examples that use the FRDM-MC-LVBLDC on the Application Code Hub linked here: Application Code Hub I believe the one for the MCX A153 will be the most useful for your application since it is also based on our latest MCX platform. BR, Edwin.
View full article
Flash usage for data storage Hello,   There are some configuration/calibration data we want to be able to save in memory (as we do not have an EEPROM). I'm trying to locate the best place in the MCXN947's memory architecture to do so without changing the current location of our application code (as it stands right now it's from 0x00000000 to  0x001FFFFF) or its allocated size (which seems to be the max of 2mb). You can see where that address range is in the image below.       For the configuration data we would like to save, we would like to be able to overwrite them.  In chapter 8 of the reference manual, it mentions the following:     Am I to understand that if I dedicate 8kb of the flash for these configuration values, in order to overwrite them I would first need to erase the full 8kb first? As in, I'd need to set aside flash sections in 8kb tranches at least in order to not mess around with the rest of the flash.   Also, in the first image above, there are sections called Flash Bank 0 IFR 0 and Flash Bank 1 IFR 0. What are those exactly? Can I use them (4 x 8kb sectors) to store the configuration values?   Thank you! Re: Flash usage for data storage Good question! Yeah, you’ve got it right — with flash memory, you can’t just overwrite individual values directly. You need to erase the entire 8KB sector first before writing new data. So reserving a dedicated 8KB (or multiple) section just for your config makes sense. About the Flash Bank IFR areas — those are usually for factory info and calibration data, not really meant for general user storage. It’s better to keep your config in a reserved flash sector instead of using those IFR blocks.
View full article
以太网发射器在接收器端仅传递 UUUU 58 次 以太网代码工作 EMAC 初始化,但在接收器端只传递了 58 次 U,没有传递我的字符串 请检查我的代码,并对我的代码缓冲区值进行更正,如何才能更改输出 UUU?
View full article
CLRC663 iOS RUID Greetings, We are currently integrating NFC functionality using the CLRC663 reader chip. Our client’s mobile app supports both Android and iOS devices. On Android, we successfully detect the device and retrieve the Random UID (RUID) since Android phones generate and transmit it automatically. However, on iOS, we’ve noticed that the device does not transmit any RUID on its own. We understand that Apple uses Enhanced Contactless Polling (ECP) as part of its Wallet and VAS (Value Added Services) protocols. Could you please confirm whether implementing ECP is required to obtain a simple RUID from iPhones, or if there is another mechanism for detecting iPhones without triggering Apple Pay? Thank you in advance for your clarification. Connected Tag Solutions Contact Smart Card Reader ICs HITAG Reader ICs MIFARE SAMs for Reader Systems NFC Controller Solutions NFC Frontend Solutions NFC Reader Library Re: CLRC663 iOS RUID Hello @marvel996  Yes, exactly, you need to enable ECP.
View full article
S32K348 set PORT Hello: I Create a new project, add port settings, and debug it. When debugging online, running the function (Port_Init(NULL_PTR);), the s32ds sortware will disconnected, as show: after offline, the code can run normally and the port settings work properly.  now The program cannot be debugged online。 Please take some time to answer, thank you! Re: S32K348 set PORT Hi It seems that you have modified the JTAG pins in 'UnTouchedPortPins' which caused debugging to break and the program cannot be downloaded normally. Please refer to the discussion in S32K344 RTD, PORT/DIO and Debugging 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. -------------------------------------------------------------------------------
View full article