Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
使用 openssl 的 CAAM 安全(标记)密钥 你好 我们安装了一个启用了安全启动和 CAAM 支持的 iMX6 板,还使用 CAAM 和安全密钥(标记密钥)配置了文件系统加密。 现在,我们还想在 openssl (AES) 中使用标记密钥。我们使用 cryptodev 将 CAAM 配置为 openssl 引擎。然而,只有非标记密钥算法(例如aes-256-密码块链接(CBC)) 在 openssl 中可用。 如何告诉 openssl 有关标记密钥算法的信息? 我找到了这篇关于如何使用 openssl 的黑钥匙进行非对称加密操作的文档,但 AES 是否也有类似的操作(例如:...aes-256-密码块链接(CBC)-tk)? 谢谢, Tobias Re: CAAM secure (tagged) keys with openssl 嗨,伊戈尔, ,你能否也分享一下程序和验证补丁。我们也在努力集成这个解决方案 Re: CAAM secure (tagged) keys with openssl 能否提供 -tk 解决方案的路径? 谢谢 Re: CAAM secure (tagged) keys with openssl 在过去的一年中,这一点是否得到了重视? 解决的办法是什么? Re: CAAM secure (tagged) keys with openssl 你好@igorpadykov, 我也想使用黑钥匙的 AES openssl。 请问我还能得到程序和补丁吗? 注意:我在 imx8MP 上使用 5.15.52 电路板支持包。 致以最诚挚的问候, Fabien Re: CAAM secure (tagged) keys with openssl 程序和验证贴片已通过邮件发送。 ----------------------- 问候 igor Re: CAAM secure (tagged) keys with openssl 你好,伊戈尔、 这是我们正在使用的电路板支持包:https://github.com/varigit/variscite-bsp-platform/tree/dunfell 我不确定团队所说的"代码或补丁在我们这边重现是什么意思" ,但我想做类似的事情 openssl enc-e-en gine cryptodev-in 纯文件输出加密 文件 aes-256-密码块链接\\(CBC\\)-tk-K blackkey 通过 CAAM(例如使用 cryptodev)使用所提供的黑钥(注意密码中的 -tk,显然 openssl 并不知道)加密纯文件。 这不是开箱即用的,如果能知道缺失了什么,那就太酷了。 托比亚斯 Re: CAAM secure (tagged) keys with openssl 你好,托比亚斯 从团队: ---------------------- 请告诉我你的电路板支持包 版本。我认为这需要通过添加一些自定义代码来链接标记的密钥转换。无法自主选择。请分享测试代码或补丁,以便在我方进行重现。 ---------------------- 问候 igor
View full article
Error could not find aidl/activity Hello, I'm trying to build custom AAOS 14 based on nxp code. I extended CarSystemUI and flashed our board. When I tried to boot it booting stuck on bootanimation screen. And I looping this logs: [ 2105.344347][ T6738] servicemanager: Caller(pid=6552,uid=1041,sid=u:r:audioserver:s0) Tried to start aidl service activity as a lazy service, but was unable to. Usually this happens when a service is not installed, but if the service is intended to be used as a lazy service, then it may be configured incorrectly. [ 2106.332379][ T221] servicemanager: Caller(pid=6552,uid=1041,sid=u:r:audioserver:s0) Since 'activity' could not be found trying to start it as a lazy AIDL service. (if it's not configured to be a lazy service, it may be stuck starting or still starting). [ 2106.360997][ T1] init: Control message: Could not find 'aidl/activity' for ctl.interface_start from pid: 221 (/system/bin/servicemanager) [ 2106.375408][ T6739] servicemanager: Caller(pid=6552,uid=1041,sid=u:r:audioserver:s0) Tried to start aidl service activity as a lazy service, but was unable to. Usually this happens when a service is not installed, but if the service is intended to be used as a lazy service, then it may be configured incorrectly. Re: Error could not find aidl/activity Hii @Grigoriy  Have you found a solution for this issue? It would be really helpful if you could share the details. Re: Error could not find aidl/activity Any advice or help please? Re: Error could not find aidl/activity Hi @Bio_TICFSL Thank you for your respond. Here is what I found:  1) I tried to find `activity.aidl` in all AAOS folders and it doesn't exist.  2) In our code we don't use any `.aidl` 3) I tried to find in all AAOS code the call of `aidl/activity` by `grep` and there is no such a call. 4) The default CarSystemUI is working fine and we extended it without changing anything in the base code. Re: Error could not find aidl/activity Hello, The "Could not find 'aidl/activity'" error in Android development likely indicates that the build system cannot locate an AIDL file named activity within the aidl directory structure. This usually means the AIDL file or the directory structure is missing or incorrectly configured. To resolve this, ensure the AIDL file (e.g., activity.aidl ) exists in the correct location and that the build system is configured to recognize AIDL files.      Here's a breakdown of the potential issues and how to fix them: 1. Missing or Misplaced AIDL File: Check the file: Verify that an activity.aidl file exists. Check the directory: Ensure the activity.aidl file is placed within the src/main/aidl directory of your Android project, or the appropriate source set if you're using custom source sets. Package structure: The AIDL file's package declaration (e.g., package com.example.app.aidl; ) must match the directory structure where it's located. If the file is in src/main/aidl/com/example/app/ , the package declaration should be package com.example.app.aidl; .      2. Build System Configuration (Android Gradle Plugin): Enable AIDL: Make sure the aidl build feature is enabled in your app/build.gradle file.    Código   android { buildFeatures { aidl true } } Source sets: If you are using custom source sets, you might need to specify the source directory for AIDL files in the sourceSets block.    Código   android { sourceSets { main { aidl { srcDirs 'src/main/aidl' } } } } 3. Clean and Rebuild: After making changes to the AIDL file or build configuration, clean and rebuild your project to ensure the changes are applied. In Android Studio, go to Build > Clean Project and then Build > Rebuild Project .    . Incremental Build (Android Studio): Android Studio's incremental build usually handles AIDL files efficiently, but if you encounter issues, try a full rebuild.        5. Stable AIDL: If you're working with stable AIDL, ensure that all dependencies of your AIDL interface are also defined as stable AIDL. Convert any parcelables to stable parcelables by defining their structure directly in AIDL files.    Example:   Let's say you have an AIDL interface called IMyInterface and you want to use it in your activity.   Create IMyInterface.aidl : Código   // IMyInterface.aidl package com.example.app.aidl; interface IMyInterface { void doSomething(); } Place it in src/main/aidl/com/example/app/ :     Código   my_app/ ├── src/ │ └── main/ │ ├── aidl/ │ │ └── com/ │ │ └── example/ │ │ └── app/ │ │ └── IMyInterface.aidl Enable AIDL in app/build.gradle :      Código   android { buildFeatures { aidl true } } Clean and Rebuild.      By following these steps, you should be able to resolve the "Could not find 'aidl/activity'" error and successfully use your AIDL interface in your Android project.      reegards
View full article
使用S32k144和BLDC控制,如何将定点数转换为浮空点数? 大家好 在 mcspte1ak144-bldc_6Step 项目中,我看到了使用 FRAC16 () 宏将浮空数转换为定点数,但我没有找到如何将定点转换为浮空数。请问在电机控制过程中是否没有必要将定点转换为浮空数? 例如,以下代码: NextCmtPeriod = MLIB_Mul_F16(NextCmtPeriod,FRAC16(mcat_startCmtAcceler)); NextCmdPeriod 是定点数,为什么不转换为浮空点数呢? 感谢您的帮助! 致以最诚挚的问候 Fed.ora Re: With S32k144 and BLDC control, how to convert fixed-point number to floating-point number? 你好! 在 mcspte1ak144-bldc_6Step 项目(以及许多使用定点数学的电机控制项目)中,你经常会看到使用 FRAC16 () 等宏从浮空到定点的转换。这是因为电机控制算法和底层硬件(DSP 或 MCU)通常采用定点运算,在速度和资源限制方面效率最高。
View full article
MCUXpresso for VSCodeでSDKsコンポーネントを管理する方法 MCUXpressoでは、プロジェクトに周辺機器ドライバを追加したい場合は、プロジェクトエクスプローラーでプロジェクトを右クリックし、 SDK マネジメント > SDK コンポーネントの管理。ドライバを追加することを選択すると、関連する「.c」および「.h」ファイルは ドライバ プロジェクト内のフォルダーに追加されます。これで、ペリフェラルに関連付けられた定義、typedef、関数シグネチャおよび定義を参照および使用できるようになりました。 VS Codeでは、 構成 > コンポーネントの管理 ドライバのボックスにチェックを入れると、 config.cmake ファイル CONFIG_USE_driver_ を true に設定 エントリはありますが、ソース コードはプロジェクト ディレクトリに追加されません。これにより、ドライバ コードの参照 (および使用) がはるかに困難になります。 プロジェクトにドライバを追加することについて何か見落としているのでしょうか? Re: How to manage SDK components in MCUXpresso for VSCode こんにちは@aberger 、 フィードバックをいただきありがとうございます。 VSCode を使用した MCUXpresso の背後にあるアイデアは、同じファイルを持つ複数のプロジェクトを回避することでした。だから.objだけがおよび.suファイルが含まれていました。 とはいえ、あなたのフィードバックは社内チームと共有させていただきます。他に何か懸念事項がございましたら、お気軽にコミュニティで共有してください。 よろしくお願いします、 パブロ Re: How to manage SDK components in MCUXpresso for VSCode デバッグフォルダにはあなたが言ったようなものがありますが、これらは.objですおよび.suファイル。これらは、役に立つ、読み取り可能なヘッダーやソース コードではなく、実際のビルド出力です。 別々に、それらはあなたが言及したディレクトリではなく、 \armgcc\debug\CMakeFiles\.elf.dir\de68a065d0a3c624208ed26914120a9f\devices\MIMXRT1052 「SDKコンポーネントの管理」ダイアログで、MCUXpressoプロジェクトに含まれるドライバを簡単に確認できることに慣れています。 そして、ソース コードをドライバ フォルダーに表示します。 VSCode でこのようにソースコードを閲覧・表示できないと困ります。 Re: How to manage SDK components in MCUXpresso for VSCode こんにちは@aberger 、 プロジェクトの SDK コンポーネントを含むフォルダーは、次のパスにあります。 \armgcc\debug\CMakeFiles\.elf.dir\C_\Users\<ユーザー ユーザー>\Documents\ \ \devices\ \ドライバ ご覧のとおり、SDK コンポーネントを追加してプロジェクトをビルドすると、それがドライバ フォルダーに含まれます。 よろしくお願いします、 パブロ Re: How to manage SDK components in MCUXpresso for VSCode こんにちは@Pablo_Ramos 、 MIMXRT1052DVL6BにはSDK_25_06_00_EVKB-IMXRT1050を使用しています。 「リポジトリからの例のインポート」で作成したプロジェクトを添付します。まずhello_worldの例から始めました。インポート後、「Configure > Manage Components」で flexio および pit ドライバを追加しようとしました。 これらは config.cmake ファイルに表示されます。 set(CONFIG_USE_driver_flexio true) set(CONFIG_USE_driver_pit true) しかし、pit および flexio ヘッダー (.h) およびソース (.c) ファイルはプロジェクト フォルダー内のどこにも見つかりません。 __repo__フォルダ(すべてのドライバが含まれている)を調べない限り さらに、「Configure > Manage Components」を再度開くと、pit ドライバと flexio ドライバは、予想どおり横のチェックボックスとともにリストされるのではなく、単にリストされなくなりました。 Re: How to manage SDK components in MCUXpresso for VSCode こんにちは@aberger 、 使用している MCU を教えていただけますか? 空のプロジェクトで作業していますか、それとも例から始めていますか? SDK を VS Code にどのようにインポートしていますか? LPC デバイスを使用していくつかのテストを実行したところ、ドライバを追加すると、おっしゃるとおり、config.cmake ファイルに実際に追加されたことに気付きました。 しかし、ドライバの.cmakeをチェックするとファイル ( . .cmake)、含まれているコンポーネントは fsl_ であることがわかりました。 また、プロジェクトのドライバ フォルダーには、プロジェクトをビルドしたときに対応する fsl_ ファイルが追加されました。 あなたが行っている方法でペリフェラルをインポートすると、ビルディング後にプロジェクトのドライバ フォルダーに変更が生じるかどうかを確認できますか? よろしくお願いいたします。 パブロ
View full article
无法调试"mbox_data" zephyr 示例应用程序。启动 GDB 失败 早上好、 我开始在 64 位 Windows 11 系统上使用 “MCUXpresso” 扩展程序使用 FRDM-MCXN947 板和 Visual Studio Code 环境进行一些测试。 到目前为止,我已经从 "MCUXpresso SDK Repository "中成功下载并运行了几个示例,包括 helloworld、blinky 和 mailbox_interrupt(多核),所有示例都能正常运行。 我还测试了来自 "Zephyr Repository "的示例。所有单核示例都运行正常,但我在多核示例中遇到了问题--具体地说,它们不能按预期运行。 我特别附上了 mbox_data 示例中的信息。编译时没有错误,但当我尝试运行或调试时,程序却无法执行。 我附上报告以供参考。 Re: Cannot debug "mbox_data" zephyr sample apps. Failed to launch GDB 你好@Harry_Zhang,按照指示的步骤操作可以正常工作。在其他项目中,代码会自动加载到内存中,但在这些项目中,我发现并不是这样。谢谢您的帮助。 Re: Cannot debug "mbox_data" zephyr sample apps. Failed to launch GDB 你好,@乔里尼 我又测试了一次。我认为,如果只按下 VSCode 的调试按钮,CPU1 不会被编程。我的步骤是 1。刷新 CPU1(远程功能域) 2.然后我就可以调试程序了: 我每次都能复制。请您再检查一遍好吗? BR 哈利 Re: Cannot debug "mbox_data" zephyr sample apps. Failed to launch GDB 你好,@乔里尼 非常抱歉,我仍在与团队一起调查这个问题。如果有任何进展,我会立即更新。感谢您的理解。 BR 哈利 Re: Cannot debug "mbox_data" zephyr sample apps. Failed to launch GDB 你好@Harry_Zhang、 我已经按照你告诉我的方法进行了更新,结果还是一样。我附上了项目导入的截图和调试项目时显示的错误信息。我还附上了已安装的版本。 Re: Cannot debug "mbox_data" zephyr sample apps. Failed to launch GDB 你好,@乔里尼 对不起,我已将 zephyr 环境中使用的 SDK 更新到 0.17.2,现在可以正常工作了。能否请您尝试更新并再次测试? BR 哈利 Re: Cannot debug "mbox_data" zephyr sample apps. Failed to launch GDB 你好@Harry_Zhang、 您所附的图片来自"blinky" 项目,这个项目对我来说一直很有效。 我开设这个主题是因为我无法运行"多核" 类型的项目,特别是 mbox_data。在 Zephyr 的最新版本中,我仍然无法运行 " mbox_data " 示例。有什么想法吗? 顺祝商祺! 乔里尼 Re: Cannot debug "mbox_data" zephyr sample apps. Failed to launch GDB 你好,@乔里尼 我刚测试过。我的 Zephyr 版本是 (VERSION_MAJOR = 4 VERSION_MINOR = 2 PATCHLEVEL = 0 VERSION_TWEAK = 0 EXTRAVERSION = rc3) 现在就可以运行,你可以进行测试。 BR 哈利 Re: Cannot debug "mbox_data" zephyr sample apps. Failed to launch GDB 嗨,@Harry_Zhang、 感谢您的回复并将问题转给 Zephyr 团队。 我只是想继续询问是否有任何关于多核示例问题的更新,特别是 FRDM-MCXN947 板上的 mbox_data 示例。 感谢您的帮助和任何可以分享的消息。 顺祝商祺! Re: Cannot debug "mbox_data" zephyr sample apps. Failed to launch GDB 你好,@乔里尼 感谢您提供的信息。 我复制了这个问题。 我已向我们的 Zephyr 团队报告。 我们将尽快修复。 BR 哈利
View full article
vpu api for iMX8QM SoC Hello, to use VPU of iMX8QM SoC on QNX, this page indicates libvpu-cli-mx8.so.1 is required.  # NOTE: This here to work around the fact that the customer gets this library # from NXP, not QNX Software Center: libvpu-cli-mx8.so.1 However, it is not found in 5.4 and 5.10 bsp release. The libimxvpuapi shows i.MX8 / i.MX8X (Amphion Malone codec) is not supported yet. "i.MX_VPU_Application_Programming_Interface_Linux_Reference_Manual" also says VPU has no user space libraries for  Amphion VPU. Is the libvpu-cli-mx8.so an internal library with NDA? Thanks! Re: vpu api for iMX8QM SoC Hi,  I have similar issue that I cannot find libraries and binaries to run video player on QNX. I am using NXP i.MX8QuaudPlus. # NOTE: This here to work around the fact that the customer gets this library # from NXP, not QNX Software Center: #libvpu-cli-mx8.so.1 # NOTE: These are here to work around the fact that the customer gets this firmware # from NXP, not QNX Software Center: #/lib/firmware/iMX8/vpu_fw_imx8_dec.bin #/lib/firmware/iMX8/vpu_fw_imx8_enc.bin # NOTE: These are here to work around the fact that the customer gets these binaries # from NXP, not QNX Software Center: #export VCU_DEC_FW_PATH=/lib/firmware/iMX8/vpu_fw_imx8_dec.bin #export VCU_ENC_FW_PATH=/lib/firmware/iMX8/vpu_fw_imx8_enc.bin #/usr/sbin/vpu-decoder-mx8=vpu-decoder-mx8 #/usr/sbin/vpu-encoder-mx8=vpu-encoder-mx8 May I know where can I find them? Thanks Re: vpu api for iMX8QM SoC Hi, I have similar issue that I cannot find libraries and binaries to run video player on QNX. I am using NXP i.MX8QuaudPlus on Advantech ROM-5620. The missing files that are pointed by QNX that are provided by NXP are: libvpu-cli-mx8.so.1 vpu_fw_imx8_dec.bin vpu_fw_imx8_enc.bin vpu-decoder-mx8 vpu-encoder-mx8 where can I find them? Thanks Re: vpu api for iMX8QM SoC Hello, Please create a support ticket for this www.nxp.com-->support--->support Ticket.... Best regards, Aldo.
View full article
编辑发布超时? 您好, 去年,我发现自己的帖子上网几分钟后就不能再编辑了。 从那时起,超时时间是否延长过?我认为这将很有帮助。 谢谢。 丹 Re: Edit Timeout for postings? 请延长编辑超时时间。 Re: Edit Timeout for postings? 看来超时时间和去年一样少,不到 5 分钟。 请延长编辑时间间隔。编辑比删除帖子和提交编辑过的帖子更方便用户使用。 谢谢。 丹
View full article
MC9s12XET256 Warnings L1128: Cutting value Range beg data member from 0xFC1000 to 0x1000 c12056: SP Debug info incorrect because of optimization or inline assembler  c5660: Removed dead assignment error occurring for global and local variables even though                 we are using this variables  Hands-On Training Re: MC9s12XET256 Warnings Hi, As I mentioned earlier, without analyzing the actual code, it's difficult to give a definitive answer. The compiler applies various optimizations that can affect how variables are treated. For example: Global variables that are only read and never written may be treated as constants. Dead code elimination can remove assignments or entire blocks if the compiler determines they are never executed. Debug info issues (like c12056) often arise due to aggressive optimization or use of inline assembly, which can interfere with symbol tracking. If a variable should not be optimized away or altered, consider: Declaring it as volatile to prevent the compiler from optimizing access. Making it static if it's only used within one translation unit. Ensuring it's used in a way that the compiler recognizes as meaningful. From my experience, even a small logical condition elsewhere in the code can cause a block to be unreachable, triggering a dead code warning. In one case, I had a condition set in another module that made a section of code unreachable, and the compiler rightly removed it.  My recommendation: Go through the code step by step and: Check how each variable is used. Review compiler optimization settings. Compare expected vs. actual behavior. Use debugging tools to trace variable usage and code flow. This is the only reliable way to understand and resolve such issues. Best regards, Ladislav Re: MC9s12XET256 Warnings yes ,we have gone through the description of the messages but why that error occurring even though it is used Re: MC9s12XET256 Warnings Hi, It is not possible to say anything without code which reports messages. However, have you read the description of the messages in help go to index in help and.... Best regards, Ladislav
View full article
PN7161A1HN 代码包标记和通信问题 您好, 我最近在五个不同的板上安装了一个 PN7161 芯片(据说是 PN7161A1HN 变体),在这五块不同的板上,PN7160A1 以前可以正常工作。然而,我目前无法与其中任何一个芯片建立通信。问题出现在第一条指令(NCI 内核 RESET)时,我遇到了一个 I2C 错误。 鉴于这个问题在五个板上都是一致的,这似乎不太可能是由于焊接问题造成的。 您能否确认一下 PN7161 代码包上是否有任何物理标记(例如激光打标或标签)可以验证特定部件号 PN7161A1HN?这将有助于我们确保安装了正确的变体。 提前感谢您的支持。 顺祝商祺! 卡门 Re: PN7161A1HN Package Marking and Communication Issue 您好, 能否请您提供有关您的设置的更多细节?你用什么设备作为主机? 如果您能使用逻辑分析器或示波器提供 I2C 帧的捕获,那将非常有帮助。 此外,我建议您尝试使用我们的OM27160| PN7160 开发套件来重现这种行为。该评估套件包含 PN7161 变体。 Eduardo。 Re: PN7161A1HN Package Marking and Communication Issue 你好,爱德华多、 感谢您的支持。 我们正在将 PN7161 集成到智能锁产品中,取代 PN7160,以便将来支持苹果钱包 NFC 通行证 (ECP) 功能。虽然我们并不打算立即使用 Apple 通行证功能,但我们希望确保硬件在需要时能为其做好准备。 我们验证了芯片上的 标记代码为" 71611" ,这证实我们使用的是 I2C变体 (PN7161A1)。 我们不怀疑存在硬件设计问题,尤其是因为同一板可以正常与 PN7160 配合使用。因为我们知道,PN7160 和 PN7161 在硬件设计规则上没有区别,对吗? 但是,当我们尝试通过 I2C 发送 NCI Core Reset 命令时,会遇到错误——设备根本没有响应。这不禁让我们产生了疑问: PN7161 与 PN7160 是否有任何特定的初始化顺序或时间要求? 例如,在发送第一个 NCI 命令之前,RESET 后是否需要延迟,或者必须满足任何其他条件? 就我而言,我将继续审查设置,以防出现任何与组装相关的问题导致这种行为,尽管这似乎不太可能——在五个不同的板上一直观察到同样的错误。 如能就 PN7160 和 PN7161 在启动或初始化过程中的差异提供任何说明或文件,将不胜感激。 致以最崇高的敬意, Carmen。 Re: PN7161A1HN Package Marking and Communication Issue 你好@cvigara 希望你一切顺利。 能否请您确认在设计中使用 PN7161 的目的? 两种变体在电气上应该是兼容的,唯一的区别在于是否支持苹果 ECP。您能描述一下在 I2C 接口上观察到的错误吗? 有关标记的信息,请参阅PN7160/PN7161 数据表第 7 章订购信息和第 8 章标记。 Eduardo。
View full article
Problems placing TJA1145 CAN Transceiver into sleep mode I have seemingly tried everything to get the TJA1145 into sleep mode. According to the data sheet the TJA1145 will enter sleep mode if "there are no pending wake-up events and at least one regular wake-up source" I have tried using both the WAKE pin and the partial networking features with no luck. CWE is enabled, CW is cleared, WPRE and WPFE are enabled, PNCOK is configured correctly, CPNC is enabled. Still when the TJA1145 is set to sleep mode (MC = 001) it is unable to enter sleep mode. What am I missing here? Evaluation Board Re: Problems placing TJA1145 CAN Transceiver into sleep mode I also encountered the same problem. Could you please tell me how you solved it? Re: Problems placing TJA1145 CAN Transceiver into sleep mode Hello: I experienced a problem with TJA 1145 also... I'm able to put it to sleep, but I want it to wake up via a specific signal inside message 0x3C0, so I tried to set Frame control register to 0x5E48, which according to my understanding, it should check all 8 data bytes in 0x3C0 based on my data mask setting.  Then I set the data masks: #define PNDMMask0 0xD000 #define PNDMMask1 0xD200  #define PNDMMask2 0xD400 #define PNDMMask3 0xD600 #define PNDMMask4 0xD800 #define PNDMMask5 0xDA00 #define PNDMMask6 0xDC00 #define PNDMMask7 0xDE00 According to the datasheet, if I set them all to 00, it should never wake up. however, I'm able to wake it up with all the following messages. 0x3C0: 00 00 00 00 00 00 00 00, 0x3C0: 00 00 00 00 00 00 00, 0x3C0: 00 00 Do you know what I did wrong here? Thanks! Re: Problems placing TJA1145 CAN Transceiver into sleep mode Hello, The following flow chart might help you with entering Sleep Mode: Best regards, Tomas Re: Problems placing TJA1145 CAN Transceiver into sleep mode Hello! Now I have the same problem, that I can't control the TJA1145 to enter the sleep mode. And I also clear the event status. But the System event status register (address 61h), PO bit is always 1 , and I set 1 to clear isn't useful. So the TJA1145 can't enter the sleep mode. And now I don't konw how to solve it... Re: Problems placing TJA1145 CAN Transceiver into sleep mode I found my problem, Entering Sleep Mode requires clearing of all pending events. accomplished by writing "1" to all the event status' 61h through 64h.
View full article
using configtool on S32 Design studio Hi NXP, I am just trying to configure all comms and GPIOs on S32G274A chip using configtool on S32 Design studio. It says MCU is not selected.  Could you help me out? Regards, Sangrae Re: using configtool on S32 Design studio Where can I get an RTD? It's not in the extension list. Re: using configtool on S32 Design studio Same problem with S32K144. The project is created, compiled, and loaded, but ConfigTool it doesn't see the processor target. Re: using configtool on S32 Design studio Hi Sangrae, You could open S32DS (ver3.4 or later), create a S32DS application project->select the right core you are using -> add the SDK(RTD) for each of the core (if you are using M7). if RTD not yet installed, please install RTD to S32DS also.  You could refer to the S32G training hub (S32G2 Technical overview) for more detail guide. 
View full article
lpc804 プルアップ抵抗値 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは、 lpc804 の内部プルアップおよびプルダウン抵抗の値を教えていただけますか? ありがとうございます! LPC800 Re: lpc804 pull up resistor value さらに調査を進めたところ、IOCON サブシステムへのクロックをオンにする必要があることがわかりました。そうでない場合、チップは IOCON レジスタをデフォルト値の 0xb0 に自動的に設定しません。 Re: lpc804 pull up resistor value IOCON レジスタを構成するには、まず変更する IOCON レジスタのアドレスを見つける必要があります。アドレスを取得したら、「*addr = value;」を使用するだけで簡単に変更できます。 ただし、最初に「LPC_SYSCON->SYSAHBCLKCTRL0 |= (UART0 | SWM | GPIO | IOCON);」を使用して IOCON サブシステムへのクロックを有効にする必要があります。 ユーザー ガイドには IOCON リセット値が 0xb0、つまりプルアップ抵抗が有効であると記載されていますが、そのことに気付きました。しかし、私自身のデバッグでは、IOCON 値が 0 にリセットされたことが示されています。SO、コードを使用してその IOCON レジスタを手動で設定する必要があります。 Re: lpc804 pull up resistor value IOCON レジスタを設定する方法と、lpc804 の pio0-7 のプルダウンを有効にする方法を教えてください。例を挙げる Re: lpc804 pull up resistor value <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> ありがとう、リカルド... Re: lpc804 pull up resistor value <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> こんにちは、 プルアップとプルダウンは受動抵抗ではなく能動電流源です(有効時に通常約50µAを供給します)。そのため、正確な値は設定されていません。LPC804データシート(48ページの表14にある電気ピン特性)の「Ipu」/「Ipd」および「Vi」特性を参照してください。 SO、たとえば、プルダウン時のピンの標準的な Vi が 5V の場合、電流は 50µA となり、内部抵抗値は 100 KΩ になります。 この情報がお役に立てば幸いです。さらに疑問がある場合はお気軽にお問い合わせください。 リカルド・デルソルド。
View full article
在 S32 设计工作室上使用 configtool 你好,恩智浦、 我正在尝试使用 S32 Design studio 上的 configtool 配置 S32G274A 芯片上的所有通信和 GPIO。 显示未选择 MCU。 你能帮帮我吗? 此致, Sangrae Re: using configtool on S32 Design studio 在哪里可以获得 RTD?它不在扩展名列表中。 Re: using configtool on S32 Design studio S32K144 也有同样的问题。项目已创建、编译并加载,但配置工具看不到处理器目标。 Re: using configtool on S32 Design studio 嗨,桑格雷、 您可以打开 S32DS(ver3.4 或更高版本),创建一个 S32DS 应用程序项目 ->选择您正在使用的正确内核 -> 为每个内核添加 SDK(RTD)(如果您使用的是 M7)。如果尚未安装 RTD,也请将 RTD 安装到 S32DS。 您可以参阅S32G 培训中心(S32G2 技术概览),了解更多详细指南。
View full article
imx53 视频 DMA 内存碎片 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 我们使用模拟视频输入在 imx53 标准平台的屏幕上显示视频,但该平台在长时间显示视频时会出现问题。 平均而言,我们发现在屏幕上显示视频画面大约 3 周后,就会出现 DMA 内存碎片。 DMA 内存碎片过多,导致视频无法启动,因为它无法分配足够大的连续内存块,也就无法显示视频。 Linux 内核为 2.6.35.3 11_09,我们使用命令运行视频 /unit_tests/mxc_v4l2_tvin.out -ow 450 -oh 600 -ol 550 -ot 1 -r 6 -f YU12 我发现 cat /proc/buddyinfo 显示,随着时间的推移,空闲插槽的大小已降至启动视频所需的 0。 我发现这个内核版本不支持内存压缩,该版本旨在重新排序插槽以修复我们看到的内存碎片问题。 问题是 有没有人发现在 imx53 linux 2.6.35.3 11_09 映像上长时间显示视频有问题。 是否有人发现需要压缩内存碎片,因为在 2.6.35 版本中编译不成功。内核 提前感谢! Tim i.MX53 Re: imx53 video DMA memory fragmentation 我们也开始遇到这种情况了。 在我们的例子中,这是由视频输入定期关闭和打开(以不同的比例显示图像)触发信号的。每次发生这种情况时(在"open()" 上),驱动程序都会分配一个非常大的"假缓冲区" 和四个"屏幕缓冲区" ,所有缓冲区都来自连续的 DMA 内存。 TX53 不断将日志记录到 U 盘上,使情况变得更糟。这些操作会缓存所有文件数据,这就是造成碎片的主要原因。"drop_caches" 的建议可以解决这个问题,但会导致停滞和其他问题。 尝试获取虚拟缓冲区失败。驾驶员有一个问题,那就是他们不能从中恢复过来。即使内存被释放,驱动程序也无法重新工作,直到设备电源循环。那是另一个错误。 有一个 2011 年的补丁"ENGR00159773-1" ,可以缓存虚拟缓冲区。后来有一个补丁"ENGR00169880" 在"probe()" 而不是在第一个"open()" 上分配这个缓冲区。 应用这些补丁(如果你有更新的版本,你应该已经有这些补丁了)会使其持续更长时间,但是它无法分配四个 " 帧缓冲区 " 中的第二个。目前还没有缓存这些数据的补丁(但应该有)。 建议"echo 1> /proc/sys/vm/lowmem_reserve_ratio" 确实解决了我们的问题。 Re: imx53 video DMA memory fragmentation <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 你好 以下是有关该问题的考虑因素。 通常,SoC 外围设备使用 dma_alloc_coherent()分配内存; 该内核函数将返回连续的内存区域。 保留连续内存区域 : $ echo 1> /proc/sys/vm/lowmem_reserve_ratio 这样设置参数后,内核将防止应用程序和文件 缓存 "过多 "的内存碎片。不过,这将限制应用程序分配的 内存量。 用于删除缓存 : $ echo 3> /proc/sys/vm/drop_caches 这将释放所有系统缓存,但会对系统中运行 的其他应用程序造成影响,因为每次缓存释放时,这些应用程序都需要加载它们使用的文件。 被放弃。 有一些工具可以避免特定应用程序的文件缓存,如 pagecache-management https://code.google.com/p/pagecache-mangagement 这是一个开放源码项目,没有得到飞思卡尔公司的维护和支持, ,但无论如何,它都可以帮助实现我们的意图。 祝您愉快, Yuri ----------------------------------------------------------------------------------------------------------------------- 注:如果本帖回答了您的问题,请点击正确答案按钮。Thank you! -----------------------------------------------------------------------------------------------------------------------
View full article
ピンモードの変更はセーフティ実装ではサポートされていません こんにちは、 RTD ポート ドライバのユーザー マニュアルでは、パラメーター PortPinModeChangeable について次のように説明されています。 ピンモードを変更する機能は、セーフティ実装ではサポートされていません。 それは正確にはどういう意味ですか? ADBMS 6832 と SPI で通信する必要があるため、送信前にチップ セレクトでパルスを生成する必要があります。LTC6813 の場合、解決策は次のようになります: https://community.nxp.com/t5/S32K/Unknown-State-changes-issue-in-SPI-When-we-used-Required-Pins/mp/1536978ポート変更モード機能を使用しますが、セーフティ制約のある製品 SW/HW を開発したので、ピン変更モードの使用を禁止するセーフティ制約が何なのか疑問に思います。 ありがとう Re: changing pin mode not supported by safety implementation こんにちは@sobo S32K とADBMS 6832 間の SPI 通信を実装できましたか? ありがとうございます。 Re: changing pin mode not supported by safety implementation こんにちは@soboさん、 開発チームがこのチケットを分析した後。彼らは、 「ピン モードを変更する機能は、セーフティの実装ではサポートされていません」という文を UM ファイルから削除する必要があると判断しました。 よろしくお願いいたします。 ダン Re: changing pin mode not supported by safety implementation わかりました、ありがとうございます Re: changing pin mode not supported by safety implementation こんにちは@sobo 、 UM ファイル内のこのコンテンツに関するチケット ( ARTD-66345 ) を作成しました。 開発チームがこのチケットの分析を手伝ってくれます。 完全に分析が終わったらお知らせします。 よろしくお願いいたします。 ダン
View full article
TPL3 FRDM665SPIEVBはS32K344EVBとの通信時にSPI経由で応答しません こんにちは、 RD33774ADSTEVBと通信するためにFRDM665SPIEVB をS32K3X4EVB-T172と統合しようとしていますが、TPL MC33665A が SPI 経由で応答しません。 FRDM665SPIEVBにリクエストを送信CANますが、応答を受信できません。添付のスクリーンショットを参照してください。 私は NXP 提供の例 (Bcc_774a_Phy_665a_example_S32K344_DS) をデフォルト構成 (LPSPI-1 (応答) および LPSPI-2 (要求)) で使用しています。 どのような入力でも役立ちます。 注記: また、LPSPI2 はFRDM665SPIEVBとピンが直接一致しないため、 TPL ボードと MCU ボードの両方をジャンパー経由でコネクテッドしました。 FRDM665SPIEVB は、5V およびグランド ピンを介してのみ S32K344 評価ボードから電源を供給され、その電源 5V LED とS32K344EVB LED (緑) がオンになっています。内部レギュレータは使用していません (VBAT =0v)。 Re: TPL3 FRDM665SPIEVB is not responding over SPI when communicating with S32K344EVB こんにちは@TomasVaverkaさん、 私は S32K3 BMS GEN2 SDK 0.9.1 を使用しており、 FRDM665SPIEVB を統合しようとしています 。 私も同じ問題を抱えており、MC33665A は MCU に応答しません。 この問題を解決するための新しいヒントはありますか? 敬具 アロン Re: TPL3 FRDM665SPIEVB is not responding over SPI when communicating with S32K344EVB こんにちは、ヴァルンさん。 弊社の BMS SW 専門家に調査を依頼しましたが、まだ返答がありません。何かニュースが入りましたらすぐにお知らせします。ご辛抱いただきありがとうございます。 BRs、トーマス
View full article
KW41Z BLE Scan issue Hi, We used the continuous BLE scan with KW41Z and looks like it randomly stops scanning after 1-3 days. Could you please have a look: Device kw41z with UART interface  Software:    FSCI interface    MKW41Z_ConnSw_1.0.2 (ble_fsci_blackbox.bin)     Commands: 1) Power reset           GAP-GenericEventInitializationComplete.Indication 2) GAP-StartScanning.Request       02 47 1A 08 00 01 00 A0 00 A0 00 00 00 54       GAP-ScanningEventStateChanged.Indication     GAP-SetScanMode.Request is not set and used default scan settings. We can see the scan results for 2 days continuously in the callback function of FSCI framework. Randomly, after few days, it stops. Then we have to do the power reset to start the scan again. Scan off and on is not helping either, Could you please have a look on this jcpacheco Thanks  Sen BLE Software KW41Z31Z21Z Re: KW41Z BLE Scan issue Dear All Is this issue fixed? I have same symptom with KW38.[sdk 2.6.x] Scanning does not work 1~3days. Re: KW41Z BLE Scan issue Hi everyone, Today, 3 years later, I suffer the same issue. Somebody found the solution? Thanks in advance Re: KW41Z BLE Scan issue Replying myself, I can say very latest KSDK (*1) contains code related to this issue in its bluetooth stack 1.2.6: ble_controller_task_config.h /* Scan FIFO lockup detection interval in milliseconds. If no advertising frame    is reported over this period of time, then the scan FIFO is flushed and the scan    is restarted. This value needs to be increased if:    - few advertisers or    - few frames reported after frame filtering using the white list or    - scan window is much smaller than the scan interval */ #ifndef mScanFifoLockupCheckIntervalMilliSeconds_c #define mScanFifoLockupCheckIntervalMilliSeconds_c     2500 #endif ble_controller_task.c /* Scan FIFO lockup detection interval in milliseconds. */ uint32_t gScanFifoLockupCheckIntervalMilliSeconds = mScanFifoLockupCheckIntervalMilliSeconds_c; lib_ble_kw41z_controller.a(ll_scanner.o) Uses uint32_t gScanFifoLockupCheckIntervalMilliSeconds external symbol (*1) By very-latest KSDK, I mean KSDK 2.2.0 from September 2018. Release date is very important because I downloaded an older KSDK 2.2.0 last mid-July which actually embeds bluetooth stack 1.2.5 without this fix. it looks like KSDK is getting updated without having it numbering increased. I tested this workaround on a four-hour BLE scan with Linux BlueZ, without any issue where I previously had issues within an hour. Re: KW41Z BLE Scan issue ycwang tells latest SDK have a fix for this issue. Can NXP confirm it? Ideally: * Can NXP tell which specific files need to be merged back in our older projects if we want to fix this issue? * Does pre-built libraries need to be updated too? We are using BlueZ behind HCI interface and scan only last few minutes, I think this may be linked to this issue. The only weird workaround I found is to connect to a device, this restore scan for a while. Thanks Anthony Re: KW41Z BLE Scan issue I checked it with j-link, and I believed there is one hardware issue existed. You can download latest SDK, and search scan fifo related coding. NXP patched it, and this patch should fix scan failure.  Re: KW41Z BLE Scan issue Not yet Re: KW41Z BLE Scan issue HI Sen, Carlos,  Does NXP fix this issue? thx,  YC Re: KW41Z BLE Scan issue Hi Carlos, Did you find a conclusion to this? outside of the workaround mentioned. Thanks, Josh Re: KW41Z BLE Scan issue nericciani‌ Hi Carlos, Sen mentions they have tried resetting the KW41Z but the BLE scan issue is more frequent now.  Sometimes they see it in an hour.  Please advise on the status of a workaround. Regards, Michael Goudey Re: KW41Z BLE Scan issue Hi cnewton‌ Could you please provide a fix for us.  Thanks Sen Re: KW41Z BLE Scan issue Hi nericciani‌, Do you have any updates on this issue? Thanks Sen Re: KW41Z BLE Scan issue Thanks for confirming the issue nericciani‌, I am not sure, if it will stop within a day or not. Please update us once it solved, We badly need to fix sooner. Thanks Sen Re: KW41Z BLE Scan issue Sen, We've identified this issue on KW41Z and is under investigation. We'll let you know as soon as there's a conclusion and possible fix. Can you try sending a controller reset and re-configure your scan parameters once a day and check if that mitigates the issue? Note that this should be just as a temporal workaround until we find a better one. Regards, Carlos Neri
View full article
How to test if A1006 is working properly <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> I have successfully mounted the A1006 to the i2c circuit, how can I detect if the circuit is working or not. I can use i2cdetect and i2cdump commands in linux system, but the detected registers are all 01, not quite sure, whether it is working or not. 回复: 如何检测A1006是否正常工作 I need support for this ic, can you share?   Re: 如何检测A1006是否正常工作 Hi, It is not the right way with A1006, please kindly refer to Get Started with the KIT-A1006-Shield | NXP  for details. Hope that helps, Have a great day, Kan ------------------------------------------------------------------------------- Note: - If this post answers your question, please click the "Mark Correct" 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
密钥管理示例 您好, 我正在使用 S32k 的 HSE,能够成功执行 AES-128 加密和安全散列算法(SHA)处理。目前,我将密钥存储在 RAM 中,仅供测试之用。我现在想实施适当的密钥管理。具体而言,我想知道HSE是否可以自动生成密钥,或者我们是否需要将其硬编码为全局变量——类似于我们使用RAM密钥并调用M1、M2和M3存储在ECU中的方式。我搜索了使用HSE_IP层(非Autosar)的示例,但找不到任何与密钥管理相关的明确示例或文档。您能否提供一个清晰易懂的使用 HSE_IP 层进行密钥管理的示例?这将非常有帮助。   谢谢 Re: Key Management Example NVM 密钥更新 (2) 演示能否用于存储自定义密钥(非生成密钥),以便只需向特定密钥槽写入一次即可访问? 因为现在,我将密钥导入 NVM 并计算 CMAC,一切正常。然后,我在同一个项目中注释了导入函数,并选择键柄,要求 HSE 计算 CMAC,结果出现了键槽为空的错误。 Re: Key Management Example 你好@kerti1、 您可以从 S32K3 产品页面下载HSE 演示示例,其中包含各种项目。 在代码包中,您可以找到密钥管理演示,其中包括会话密钥 (1) 和 NVM 密钥更新 (2)。 我可以分享每个例子的主要目标: (1) 本例的主要目的是展示正确配置 HSE 所需的步骤,以显示会话密钥服务的功能。 它格式化密钥,然后生成 ECC 密钥对。然后导入 ECC 密钥,计算 DH 共享密钥,并使用 SP800_108 KDF 导出密钥。 最后,它从导出的密钥材料中提取 2 个密钥(192 位 AES 和 256 位 AES),然后使用这两个密钥通过 AES GCM 进行加密和解密。   (2) 本例的主要目的是导入对称密钥和 AES GMAC 生成密钥。   致以最诚挚的问候, Julián
View full article
JTAG Fails to Connect on i.MX8MP Without Prior Boot – Why? Hi everyone, I'm working on bring-up for a custom board using the i.MX8M Plus (i.MX8MP) and encountering an issue with JTAG debug access. I'm using a Segger J-Link debugger and connecting directly to the JTAG interface (TCK, TMS, TDI, TDO, nRESET, VTref, GND). The physical connections are verified and correct. Here's the issue: If the SoC is powered on without any bootable device present (e.g., no eMMC, SD, or USB boot), JTAG fails to connect — the debugger cannot detect the CPU. However, if the SoC boots any firmware (even just U-Boot), JTAG becomes responsive afterwards, and I can connect, halt, and debug as expected. This suggests that JTAG is not operational at cold boot unless some firmware runs first. That seems a bit counter-intuitive for low-level bring-up. My Questions: Why is the JTAG/DAP interface not available immediately after power-on reset? Is there something in the Boot ROM or clocks/power/IOMUX setup that needs to be configured first before JTAG can function? Is this behavior documented somewhere in the Reference Manual or other official documentation? Any insights or guidance would be appreciated! Thanks, Yorker Hazan. i.MX 8M | i.MX 8M Mini | i.MX 8M Nano Re: JTAG Fails to Connect on i.MX8MP Without Prior Boot – Why? Please create a new case to address your issue. Thanks Re: JTAG Fails to Connect on i.MX8MP Without Prior Boot – Why? Hi, I have some questions regarding JTAG connectivity and boot options for a custom i.MX8M Plus board. How do you typically connect your board for debugging — using JTAG or another interface? If JTAG is used, do you connect after U-Boot has executed or before boot (at power-on reset)? In our custom board, USB and SD interfaces are not populated, so we currently have only JTAG available for communication and detection. Could you please advise on the correct procedure or configuration to bring up the board only via JTAG (DAP-Link or DSTREAM-ST)? Is there any additional configuration needed in the JTAG_MOD / Boot_Mode pins for enabling debug access when no boot device is present? Is booting is mandatory for JTAG detection  and connect to the board?  Re: JTAG Fails to Connect on i.MX8MP Without Prior Boot – Why? Thank you very much! This explains the situation very clearly. Have a nice day! Re: JTAG Fails to Connect on i.MX8MP Without Prior Boot – Why? No, you could refer the description below: Re: JTAG Fails to Connect on i.MX8MP Without Prior Boot – Why? Hey, Thank you for your reply, but it did not answer my question. Is there a way to connect with JTAG without prior boot? Re: JTAG Fails to Connect on i.MX8MP Without Prior Boot – Why? Please refer to AN14120.pdf, Debugging Cortex-M with VS Code on i.MX 8M, i.MX 8ULP, and i.MX 9 to do the debug. Thanks
View full article