Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
S32K144 における VLPS ウェイクアップ ISR + FreeRTOS xTaskNotifyFromISR の問題 NXPチームの皆様、こんにちは。 私は FreeRTOS を使用して S32K144 MCU を操作し、Very Low Power Stop (VLPS) モードを実装しています。MCU を起動して FreeRTOS タスクに通知することを目的とした GPIO スイッチが PORTB にあります。 設定: GPIO スイッチが PORTB にコネクテッド。 スイッチが押されると ISR がトリガーされます。 xTaskNotifyFromISR を使用して FreeRTOS タスクに通知します。 FreeRTOS 構成: configPRIO_BITS = 4 configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY = 0x01 configMAX_SYSCALL_INTERRUPT_PRIORITY = (configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY << (8 - configPRIO_BITS)) configKERNEL_INTERRUPT_PRIORITY = 255 ISR および NVIC 構成: PORTB->ISFR = (1U << SWITCH_PIN_NUMBER) // スイッチピンの割り込みフラグをクリアする INT_SYS_SetPriority(PORTB_IRQn、SWITCH_IRQ_PRIORITY) INT_SYS_EnableIRQ(PORTB_IRQn) void PORTB_IRQHandler(void) { BaseType_t xHigherPriorityTaskWoken = pdFALSE; if (PORTB->ISFR & (1U << スイッチピン番号)) { PORTB->ISFR = (1U << SWITCH_PIN_NUMBER) // 割り込みフラグをクリア uint32_t switch_state = (((PINS_DRV_ReadPins(PTB) >> SWITCH_PIN_NUMBER) & 0x01) == 0) ?スイッチオン: スイッチオフ xTaskNotifyFromISR(hmainTask、switch_state、eSetBits、&xHigherPriorityTaskWoken) portYIELD_FROM_ISR(xHigherPriorityTaskWoken) } } vPortEnterCritical() status_t ret = POWER_SYS_SetMode(0, POWER_MANAGER_POLICY_AGREEMENT) if (ret == STATUS_SUCCESS) wakeupOccurred = true vPortExitCritical() 観察された動作: ISR 優先度 = 0 (最高): MCU は VLPS から起動しますが、xTaskNotifyFromISR は機能しません。 ISR 優先度 = 1: xTaskNotifyFromISR は機能しますが、MCU は VLPS から起動しません。 私の理解では: 優先度 0 の割り込みは BASEPRI によってマスクできないため、FreeRTOS API を安全に呼び出すことはできません。 FreeRTOS API は、優先度 >= configMAX_SYSCALL_INTERRUPT_PRIORITY の ISR から呼び出す必要があります。 VLPS ウェイクアップには、最高優先度の割り込みが必要になる場合があります。 質問: MCU を VLPS から確実に起動し、FreeRTOS タスクに安全に通知するために、S32K144 で推奨されるパターンは何ですか? NXP が提供するより良いアプローチはありますか? あらゆるガイダンス、参考例、ベストプラクティスをいただければ幸いです。 ご回答をお待ちしています。 よろしくお願いします、 パンディヤンT Re: VLPS Wakeup ISR + FreeRTOS xTaskNotifyFromISR Issue on S32K144 こんにちは、ダニエル。 POWER_SYS_SetMode() を呼び出す前に SysTick タイマーを無効にすると、システムは vPortEnterCritical() を使用せずに VLPS に正常に入るようになりました。 また、ウェイクアップ メカニズムと ISR からの通知メカニズムは両方とも期待どおりに動作しています。 ご指導ありがとうございました! よろしくお願いします、 パンディヤン Re: VLPS Wakeup ISR + FreeRTOS xTaskNotifyFromISR Issue on S32K144 FreeRTOS と VLPS を組み合わせた公式の例はまだ見つかりませんでした。 私の見るところ、ウェイクアップの問題は SysTick がまだ実行されていることが原因である可能性があります。 VLPS に入るには、POWER_SYS_SetMode() を呼び出す直前に SysTick を無効にしてみてください。 留意点: VLPS では、コア クロックがゲートされているため、SysTick タイマーは無効になります。 ただし、デバッガーがコネクテッドされている場合、MCU は真の VLPS にはならず、エミュレートされた STOP モードになります。 さらに、FreeRTOS port.cすでに vPortSuppressTicksAndSleep() の弱い実装を提供しています。 アイドル時に SysTick を停止します。 次のティックのリロード値を計算します。 __WFI() を実行します。 2つのフックを呼び出します: configPRE_SLEEP_PROCESSING() configPOST_SLEEP_PROCESSING() これは弱い実装であり、独自の実装によって上書きされるCANがあります。 よろしくお願いいたします。 ダニエル Re: VLPS Wakeup ISR + FreeRTOS xTaskNotifyFromISR Issue on S32K144 こんにちは@danielmartynek 迅速なご対応ありがとうございます。 POWER_SYS_SetMode() の前に vPortEnterCritical() 呼び出しを削除すると、MCU は実際には VLPS モードに入らず、一時的に遷移してからすぐに起動します。 FreeRTOS の実行中に適切に VLPS モードに入るための正しいまたは推奨される方法を提案していただけますか? 可能であれば、FreeRTOS タスクコンテキストから VLPS に安全に入る方法を示す例またはリファレンス実装も共有していただけますか? サポートありがとうございます! よろしくお願いします、 パンディヤンT Re: VLPS Wakeup ISR + FreeRTOS xTaskNotifyFromISR Issue on S32K144 こんにちは@Panidiyan_Tさん、 プロジェクトを共有していただければ、私の側でテストすることができます。 とにかく、FreeRTOS では、FromISR API を呼び出す ISR の優先度が configMAX_SYSCALL_INTERRUPT_PRIORITY 以下である必要があります。 POWER_SYS_SetMode() の前に vPortEnterCritical() を呼び出さないでください。
View full article
通过 MCUXpresso 使用 VS Code 配置工具时出错 我将一个项目从 MCUXpresso IDE 转换为 MCUXpresso for VS 代码。 该项目适用于使用 MIMXRT1062CVL5B 处理器的定制板。 该项目使用 MCUXpresso IDE 进行编译。 我正在使用 MCUXpresso 配置工具版本 15.0 我正在使用 Visual Studio Code 版本 1.90.2 和 MCUXpresso 版本 1.9 进行 VS Code 扩展 将项目导入 VScode 后(并手动修改一些未正确转换的内容),它现在可以在 VScode 中进行编译。 我使用 MCUXpresso IDE 中的配置工具配置了项目引脚和外围设备。 当我通过 VScode 打开配置工具时,出现错误,提示在工具链/IDE 项目中未找到某些驱动程序。使用 IDE 版本时不会出现这些错误。 但驱动程序就在那里,代码可以编译! 右键单击错误只会弹出“问题详细信息”框,其中显示“该工具生成的代码需要 SDK 组件。如果它没有包含在工具链项目中,源代码将无法编译。” 我想清除这些错误,但我不知道该尝试什么...但项目确实可以编译! 在相关问题中,我不再需要外围设备并使用配置工具将其删除,但驱动程序仍然显示在项目资源管理器中。是否必须手动删除这些文件,或者是否有办法让工具删除所有相应的文件? 谢谢!! 回复:通过 MCUXpresso 使用 VS Code 配置工具时出错 我解决了这个问题……MCUXpresso for VScode 的“导入”功能添加了自定义工具链路径(简称为“armgcc”)。浏览项目文件夹查找项目工具链路径解决了这个问题。 导入功能还重复了一些标志(导致错误),因此必须手动修复这些问题......
View full article
RT1020 EVK、SDK Wi-Fiの直接サポートは可能? こんにちは それは簡単な質問です、 Wi-Fiに関するすべての例をレビューしました。だがしかし SDK 2.13.0 RT1020でWi-Fiダイレクト機能の例は見つかりません。 だから。何かドキュメントはありますか。または、ステーションモードからWi-Fiダイレクトモードに入ることについて何かありますか? wifi_cli例のソフトAPを使用してWi-Fiダイレクトを実装する必要がありますか i.MXRT 102倍
View full article
Trouble implementing ios app using Taplinx SDK Hi, i'm trying to follow UG10045.pdf - Starting development with TapLinx iOS SDK. Below is excerpt from that guide: 3.4 Implementing the delegate method for APDU communication To communicate with the TapLinx iOS Library and the Tag (or Card), a delegate method which is created inside the MIFAREApduHandler must be implemented in your class. Below is the delegate method. However i do not understand where i should implement that TapLinxApduHandlerProtocol, on what class? Where/how should i pass my class to something in Taplinx SDK to indicate where i implemented that hander? Is there a ios sample app like for Android? It would be very helpful. In case there is no such app, could someone share a code sample with full sdk initialization on ios? Re: Trouble implementing ios app using Taplinx SDK Hello @DamianD  Since your problem involves the level of code debugging, we do not have such a test environment as yours, so your problem needs to be debugged by you, say sorry for that. Re: Trouble implementing ios app using Taplinx SDK hi @KaiLi  - unfortunately there is only swiftsourceinfo file inside Project folder and it is of no use to me. When i add libTapLinxLibrary.a to xcode app project (and set up search paths) during compilation i get error: /Users/xxx/Projects/xcodeproj/facilityapp/SampleTaplinxApp/SampleTaplinxApp/ContentView.swift:9:8 Compiled module was created by a different version of the compiler '5.10.0.13'; rebuild 'TapLinxLibrary' and try again: /Users/xxx/Projects/xcodeproj/facilityapp/SampleTaplinxApp/TapLinxLibrary2/TapLinxLibrary.swiftmodule/arm64-apple-ios.swiftmodule\ Could you hint me at what to do? Re: Trouble implementing ios app using Taplinx SDK thanks, i will give it a try and let you know Re: Trouble implementing ios app using Taplinx SDK Hello @DamianD  Unfortunately, there is not the dedicated sample for ios, but I think there should be something in SDK could refer to, like sdk_TapLinx_Library_iOS\TapLinxv1.0.1\TapLinxiOSSDK\TapLinxiOSSDK\TapLinxLibrary\TapLinxLibrary.swiftmodule\Project. Please try it.
View full article
imx8MP swupdateのお問い合わせ(ext4イメージの入手方法) 私の環境は、以下の通りです。 i.MX Linux Yocto Project BSP 6.1.22_2.0.0 リリース NXP i.MX 8MPlus EVK (imx8mpevk) imx8MP で swupdate を使用するには、SWUpdate OTA i.MX8MM EVK_rev3.pdf を参照してください。 「画像組み立て」の内容には、以下の内容があります。 06-imx-image-multimedia --> ../slota/imx-image-multimedia-imx8mmevk.ext4 bitbake の出力に ext4 形式の画像はありません。(wic.zst と tar.zst があります) ext4形式の画像を取得するにはどうすればよいですか?あるいは、wic.zstを使用して「画像の組み立て」に進むことはできますか? ブートROM|ブート|フラッシュ Re:imx8MPスワプアップデートのお問い合わせ(ext4イメージの入手方法) ご指摘のドキュメントによると、ext4を作成できるようです。 最初からドキュメントがあれば難しくはなかったのですが、グーグルで得られる断片的な知識には限界がありました。 ありがとうございます。 Re:imx8MPスワプアップデートのお問い合わせ(ext4イメージの入手方法) ドキュメントを参照できます Re:imx8MPスワプアップデートのお問い合わせ(ext4イメージの入手方法) ご返信ありがとうございます 以下を作りました。 06-IMX-イメージ-マルチメディア -> ../slota/imx-image-multimedia-imx8mp-lpddr4-evk.wic.zst そして、readme.txtの内容に合わせ、以下を実行しました。 切り捨てる -S 3000M 06-IMX-イメージ-マルチメディア e2fsck -f 06-imx-image-multimedia resize2fs 06-imx-image-multimedia その後、以下のようなエラーが発生します。 e2fsck 1.45.5 (2020 年 1 月 7 日) ext2fs_open2:スーパーブロックの魔法の数字が悪い e2fsck:スーパーブロックが無効です。バックアップブロックを試みています... e2fsck: 06-imx-image-multimedia を開こうとしているときに、スーパーブロックに不正なマジックナンバーが表示されます スーパーブロックを読み取れなかったか、有効な ext2/ext3/ext4 を記述していません ファイルシステム。デバイスが有効で、実際に ext2/ext3/ext4 が含まれている場合 ファイルシステム (スワップや UFS などではない)、次にスーパーブロック が破損している場合は、別のスーパーブロックを指定して e2fsck を実行してみてください。 e2fsck -b 8193 又は e2fsck -b 32768 どうすればよいですか? Re:imx8MPスワプアップデートのお問い合わせ(ext4イメージの入手方法) あるいは、wic.zstを使用して「画像の組み立て」に進むことはできますか? はい、お使いいただけます、問題ありません。
View full article
S32K3 RTD5.0.0 lpi2c hello! Recently, I updated RTD4.0.0 to 5.0.0, then got problem. In Lpi2c configure page, "I2C Clock Source" don't contains any value.(in RTD4.0.0 it works ok) the RTD error is : Source clock is not enabled in Clock component is that a bug ? or something I didn't configure? 回复: S32K3 RTD5.0.0 lpi2c Hi@Vandarkholme Please add"Clock_Ip_ReferencePoints" and then try again. 回复: S32K3 RTD5.0.0 lpi2c oh, I add clockReference then it worked! In RTD5.0.0 clockReference is key component? RTD4.0.0 not need to configure that component
View full article
S32K312-172HDQFP 的 V11 引脚布局 问候, 在“S32K3xx - 硬件设计指南”文档中,表6显示“所有v11引脚必须短路并通过外部连接到PCB上的公共参考”。我认为这个评论是针对 K388 版本的。 由于V11是S32K312内部产生的核心逻辑电压电源,因此对于S32K312来说,似乎没有必要将所有V11引脚外部连接在一起?这个理解对吗? 回复:S32K312-172HDQFP的V11引脚布局 明白了,Pavell,感谢您的快速回复。 回复:S32K312-172HDQFP的V11引脚布局 你好@Edward_Y , 是的,将所有 V11 引脚连接在一起是绝对必要的。因为评论连续:“每个电源引脚可以使用一个去耦电容器,并且仅为 V11 域使用一个本地大容量/旁路电容器,以增加 MCU 的电压参考的稳健性和去耦效果。” 供给建议不容小觑。 顺祝商祺! 帕维尔
View full article
TEA2017 SNSFB 电源正常信号的意义? TEA2017 在 SNSFB引脚有接一个光耦到次级,但是次级接的是一颗100K的电阻,这只是增加假负载的作用吗?也就是在空载的时候让输出电压更稳定?因为这个只是加在Vout+和GND之间,还是只是用于测试用?谢谢 回复: TEA2017 SNSFB 电源正常信号的意义? 麻烦您再提交一个ticket吧用公司的邮箱!这个case太久了! 回复: TEA2017 SNSFB 电源正常信号的意义? 您好, 请问贵司推荐的LLC使用的K值是多少? 计算的增益范围是多少?因为贵司的Demo上K值都取的很高,和一些文献上说的K取值3--6之间有些差异,请问这个原因何在?是否有相关的设计指南,也就是K L Q M等的设计指南,谢谢 回复: TEA2017 SNSFB 电源正常信号的意义? 应该是这个,你画的那个是100K 回复: TEA2017 SNSFB 电源正常信号的意义? 谢谢您的回复,也就是对于电路来说这个子电路是没有必要的?对产品性能没有影响?串联的100R的电阻是接在光耦的初级?也就是发光管上串联?谢谢啦
View full article
DMA 应用说明 这是“MPC57xx:配置和 使用 eDMA 控制器”应用说明也适用于 S32K322 吗? 回复:DMA 应用说明 我可以使用任何通道来连接任何外设吗?或者是否有任何预定义的通道与外设连接? 回复:DMA 应用说明 我需要将 CAN3 路由到 DMA 通道,我怎么知道需要从 DMA MUX 中选择哪个 DMA 通道。 回复:DMA 应用说明 是的,可以使用,但主要参考 S32K3 参考手册,因为那里可能存在细微的差别。
View full article
S32DS3.6 Cannot find S32K1xx SDK Hi, I can not find S32K1xx SDK/RTD package in S32DS Extensions and Updates. Where should I look for it ? Thanks! SDKs Re: S32DS3.6 Cannot find S32K1xx SDK Thanks! Re: S32DS3.6 Cannot find S32K1xx SDK Hi Please offline install S32K1 RTD by refer to the step 4 of HOWTO: offline install S32K1 RTD 2.0.0 in S32DS v3.5. I installed the latest S32K1 RTD 2.0.0 QLP1 in S32DS v3.6. 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
i.MX系列处理器库存相关 大家好, 我目前正在从事一个需要大量 i.MX 系列处理器的项目。不幸的是,我在获取必要的库存方面遇到了一些困难。虽然我知道 NXP 不直接销售这些处理器而是通过授权分销商销售,但我发现这些分销商网站上的库存非常有限。 我将非常感谢有关如何批量获取 i.MX 系列处理器的任何建议或意见。 回复:i.MX系列处理器库存相关 我正在寻找 i.MX93 处理器 (MIMX9352CVVXMAB) 谢谢 回复:i.MX系列处理器库存相关 i.MX系列处理器具体型号是什么?告诉我,以便论坛管理员能够帮助您
View full article
Build error with pseudo in meta-nxp-desktop layer on IMX8MP I'm experiencing compilation errors when building imx-image-desktop using the meta-nxp-desktop layer. The build consistently fails when compiling pseudo-native with the following error: ports/unix/guts/unlinkat.c: In function 'wrap_unlinkat': pseudo_client.h:14:65: error: '_STAT_VER' undeclared (first use in this function) 14 | #define base_fstatat(dirfd, path, buf, flags) real___fxstatat64(_STAT_VER, dirfd, path, buf, flags) | ^~~~~~~~~ Additionally, there are multiple functions in ports/linux/pseudo_wrappers.c that lack return statements: ports/linux/pseudo_wrappers.c: In function 'pseudo_stat': ports/linux/pseudo_wrappers.c:12:1: warning: control reaches end of non-void function [-Wreturn-type] 12 | } | ^ These errors appear to be related to libc compatibility issues. The pseudo recipe in meta-nxp-desktop currently has COMPATIBLE_HOST:libc-musl = 'null' which suggests it's not compatible with musl libc, but the errors occur even on a glibc system. I've tried several approaches: Adding -D_STAT_VER=1 -D_MKNOD_VER=1 to CFLAGS Creating patches to define these constants in the appropriate files Disabling -Werror flags Setting INHERIT_remove = "pseudo" in local.conf None of these approaches have resolved the issue completely. Has anyone encountered similar issues with the meta-nxp-desktop layer? Is there a known workaround or fix for this pseudo compilation error? System information: Host OS: Ubuntu 22.04 Yocto version: Langdale (4.1) meta-nxp-desktop commit/version: imx-6.1.1-1.0.0_desktop.xml i.MX 8M | i.MX 8M Mini | i.MX 8M Nano Re: Build error with pseudo in meta-nxp-desktop layer on IMX8MP The support for imx-image-desktop was stopped, instead of that, please use Debian and have a reference to NXPDEBIAN  Regards Harvey
View full article
无法找到 i.MX93 EVK 板的内存映射详细信息 你好, 我正在使用iMX93EVK 开发板,但找不到该开发板的内存映射详细信息。(我可以在这里找到内存及其大小的参考信息,但找不到它们的实际地址)。 我正在尝试在 Cortex-M33 上构建一些裸机应用程序,我需要根据内存的可用性定制链接器脚本。 那么,有人能告诉我内存映射以及可以通过 Cortex-M33 访问的内存吗? (例如:Cortex-M33 可以访问提到的 2 GB DDR 内存吗?还是它是 Cortex-A55 独有的?) 回复:无法找到 i.MX93 EVK 板的内存映射详细信息 @Harvey021 ,感谢您的快速回复。 我正在使用 imx93evk sdk_2_16 (我不确定是如何生成它的,将在下一篇文章中提供生成步骤)。 我发现,“ PRINTF() ”函数无法打印浮点值(它只会打印文本内容,并且在浮点值的位置保持空白) 我在这个查询中读到,我需要在项目生成期间启用一些宏,但由于我的项目已经生成,所以我无法重新生成它(有许多未跟踪的更改,如果我再次重建,这些更改将会丢失) 那么,有没有办法可以修改源代码来实现这一点。(我尝试启用PRINT_FLOAT_ENABLE宏,但它不起作用) 这是我目前的配置: 打印浮动启用 = 1 SDK_DEBUG_CONSOLE = 1 谢谢!
View full article
start address with/without IVT Hi NXP, Under what condition does the S32K3 choose to start CM7 with the address configured in the IVT? There are multiple addresses in the IVT, such as "CM7_x Application reset address" and "Pointer to APPBL". What are the differences between them? Which one is used to start CM7 when I enable/disable Basic Secure Boot (BSB)? If BSB only starts one core, is the address configured in the IVT still valid, aside from the "CM7_0 Application reset address"?  Should the above mentioned addresses point to AppBL Header Tag(Magic number 0xD5) or  AppBL content(app executable code) Thanks. Re: start address with/without IVT Correction to my previous response: when BOOT_SEQ == 1 and APPBL verify OK ,coreX(X according to IVT_BCW config) will run from APPBL(0x30 in IVT). when BOOT_SEQ == 0 ,coreX will run from "CM7_x Application reset address" in IVT . Re: start address with/without IVT Hello, My understanding of your response to Question 2 : when BOOT_SEQ == 1 and APPBL verify OK ,coreX(X according to IVT_BCW config) will run from APPBL(0x30 in IVT). when BOOT_SEQ == 1 and IVT is valid ,coreX will run from "CM7_x Application reset address" in IVT ,Did I understand it correctly? Hmm, this is some SW implementation as uC only refer to IVT for boot. If that is the case please refer to the documentation of that SW. uC scans for valid IVT starting from lowest address and boot one it find it.  for Question 3&4 : I was wondering ,When I use BSB and AppBL verified OK,Does “CM7_x Application reset address” config in IVT still useful, does anyone use it? “CM7_x Application reset address” should point to AppBL Tag (0x00 APPBL struct) or AppBL Content(0x40 AppBL struct)? Hard to say, this is SW implementation. From HW point, the device will scan for IVT. once it find it process it and set boot according the settings in IVT. After it it will jump to address of cores in IVT and leave reset. Further on it is all in hands of SW, so for every application it will be different.. Usually you will always use the bootloader in IVT, and will perform branch to application from bootloader by SW. Best regards, Peter Re: start address with/without IVT Thank you for your reply , I have a follow - up question: My understanding of your response to Question 2 : when BOOT_SEQ == 1 and APPBL verify OK ,coreX(X according to IVT_BCW config) will run from APPBL(0x30 in IVT). when BOOT_SEQ == 1 and IVT is valid ,coreX will run from "CM7_x Application reset address" in IVT ,Did I understand it correctly? for Question 3&4 : I was wondering ,When I use BSB and AppBL verified OK,Does “CM7_x Application reset address” config in IVT still useful, does anyone use it? “CM7_x Application reset address” should point to AppBL Tag (0x00 APPBL struct) or AppBL Content(0x40 AppBL struct)? thanks . Re: start address with/without IVT Hello, 1. Under what condition does the S32K3 choose to start CM7 with the address configured in the IVT? See the boot flow: If the IVT is valid   2. There are multiple addresses in the IVT, such as "CM7_x Application reset address" and "Pointer to APPBL". What are the differences between them? CM7_x Application reset address - It is where you want to start the application after reset Pointer to APPBL - it is where you want to start the code in case of boot loaded.   Which one is used to start CM7 when I enable/disable Basic Secure Boot (BSB)? This is not connected to which one. Both if you like. You can configure secure boot in IVT.   3. If BSB only starts one core, is the address configured in the IVT still valid, aside from the "CM7_0 Application reset address"?  I am afraid I do not understand. Secure code will run only on HSE core. In any situation, which is independent of your app or BL IVT is the sboot is enabled in IVT of whatever.   4. Should the above mentioned addresses point to AppBL Header Tag(Magic number 0xD5) or  AppBL content(app executable code) Could you elaborate closer? I do not understand what you mean. IVT will always point to your startup code of whatever application you run. Best regards, Peter
View full article
EQOS を使用した IMX8MP シングルイーサネット eqos ethernetは、単一のイーサネットではご利用いただけません。 私たちのボードは、imx8mp-evkをベースにしたカスタムボードです。 eqos シングルイーサネット上の imx8mp-evk とは異なるカスタムボード。 私の理解では、fecを使用する必要がない場合は、status = "disabled"を設定するだけです。imx8mp-evk.dts で。 問題は、fecを無効にしてeqosポートのみを使用したときに、「EQOS_DMA_MODE_SWR stuckFAILED:-110」というエラーが表示された場合です。 しかし、fec status = "okay";私たちのボードにFEC PHYチップがなくても、ケースは問題ありませんでした。 その理由を教えてください。 私は何かが間違っていますか? &fec { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_fec>; phy-mode = "rgmii-id"; phy-handle = <&ethphy1>; fsl,magic-packet; // status = "okay"; status = "disabled"; //Not use mdio { #address-cells = <1>; #size-cells = <0>; ethphy1: ethernet-phy@1 { compatible = "ethernet-phy-ieee802.3-c22"; reg = <1>; eee-broken-1000t; }; }; }; uboot ログ Uブート 2022.04-dirty(2024年7月26日 - 10:20:19 +0900) CPU: i.MX8MP[6] rev1.1 1800 MHz (1200 MHzで動作) CPU:商用温度グレード(0C〜95C)、45°C リセット原因: POR モデル:NXP i.MX 8M Plusベースのカスタムボード DRAM: 4 GiB コア:81デバイス、24uclass、デバイスツリー:セパレート MMC:FSL_SDHC:0 どこからともなく環境を読み込んでいます...わかりました [*]-Video Link 0が出力デバイスが見つかりません プローブ ビデオ デバイスが失敗しました、RET -19 [0] 液晶controller@32e80000、ビデオ 出力デバイスが見つからない プローブ ビデオ デバイスが失敗しました、RET -19 で:シリアル アウト:シリアル エラー:シリアル SEC0: RNG がインスタンス化されました ビルド情報: - ATF 8dbe286 (英語版) MMC デバイス 1 が見つかりません スロット 1 に MMC デバイスがない USBブートを検出します。fastbootモードに入ります! 網: 警告:ランダムなMACアドレスを使用するethernet@30bf0000(eth1)-0a:ad:b2:b1:75:bd eth1: ethernet@30bf0000 [プライム] ファストブーツ:ノーマル mfgtoolsのUSBからの起動 警告 - mfgtools のデフォルト環境を使用してください 、デフォルト環境を使用 Run bootcmd_mfg: run mfgtool_args;iminfo ${initrd_addr}の場合;次に、テスト ${tee} = はいの場合。それからbootm ${tee_addr} ${initrd_addr} ${fdt_addr};そうでなければ、ブーティ ${loadaddr} ${initrd_addr} ${fdt_addr};fi;else echo "fastboot を実行してください...";ファストブート 0;fi; 自動起動を停止するには、任意のキーを押します:0 ## 43800000 で画像を確認しています ... 画像形式不明! fastboot を実行し... u-boot = >環境変数セットipaddr 192.168.xx.xx u-boot = > env set netmask 255.255.0.0 u-boot = > ping 192.168.xx.xx スタックEQOS_DMA_MODE_SWR失敗: -110 Re: eqos を使用した imx8mp シングルイーサネット はい、dts の処理は変更されています。lf_では、NXP ubootを使用しているようです。私はメインラインにいます。とにかく、私の構成にはCONFIG_FEC_MXC = yが設定されておらず、dtsで有効になっていません。しかし、まあ、あなたは解決策を見つけます、それは大丈夫です!よろしくお願いします、そしてさらに頑張ってください。 Re: eqos を使用した imx8mp シングルイーサネット lf_v2024.04 U-Boot の場合、FEC ステータス設定については lf_v2022.04 の結果とそれほど変わりません。 まだ set fes status="okay" が必要です。 ご助言ありがとうございます。 Re: eqos を使用した imx8mp シングルイーサネット 私はu-bootブランチlf_v2022.04(デフォルト)を使用しました。 lf_v2024.04を使ってみます。 lf_v2024.04 DTSファイルはlf_v2022.04 DTSファイルと大きく異なります。 後でfec "status = disabled"を設定しようとすると、後で報告します。 Re: eqos を使用した imx8mp シングルイーサネット そのFECインターフェースを有効にする必要がないことは確かです。しかし、そのためには、少なくともこの古い2204バージョンでは、ボードファイルを変更する必要があります。これのinitは、実際の理由もなくそこに結合されていることを読むことができます。どのubootバージョン(メインライン、nxp、バージョン)を使用していますか?新しいものを選ぶ方が良いです、qosドライバーには多くの変更があります...しかし、このトリックがあなたの問題を解決するなら、それも大丈夫です。 Re: eqos を使用した imx8mp シングルイーサネット s_arendtさん、 ユースケースがない場合から理由を教えてください。 私は、そのエラーもfecが無効にされていることから来ていると思います。 したがって、fec set status = "okay"が必要です。FECを使用しなくても。 しかし、私たちのカスタムボードであるこれらのFECポートは接続されていないため、pinctrlの世話をする必要があります。 これらのポートがfecポートに対してアクティブになると、入力端子によるトラブルが発生する場合があります。 そこで、pinctrl-0を使用せずに以下の簡単な設定を行うことにしました。   // Dummy settings for activate eqos &fec { pinctrl-names = "default"; phy-mode = "rgmii-id"; status = "okay"; }; この場合、U-Boot Pingは次のように言いました。(FEC1のPHYを取得できませんでした:addr 1) u-boot = > ping 192.168.xx.xx FEC1 の PHY を取得できませんでした: addr 1 ethernet@30bf0000 PHY 自動ネゴシエーションが完了するのを待っています.......完成です ethernet@30bf0000デバイスの使用 ホスト 192.168.xx.xx は動作しています Re: eqos を使用した imx8mp シングルイーサネット 古いバージョンのUbootとEQOSにはいくつかの問題があります。開発者がそれを単一のイーサネットとして機能させるのは、単にユースケースがなかったのだと思います。新しいUbootバージョンをチェックアウトするのが最善です。そこでは物事が良くなります。また、ubootメーリングリストにアドレスを設定することもできます。
View full article
i.mx RT1160 powerup sequence In my design R=100k and C=1uF as I have unknown delay time in VDD_HIGH_IN and DCDC_IN and 1ms for DCDC_PSWITCH is not enough. so I increased the RC delay time. What will happen if DCDC_Pswitch delay is larger than 1ms. Re: i.mx RT1160 powerup sequence Hi @Swezin , This might still be related with the delay for DCDC_PSWITCH, you know, if the delay is not enough to bring up the DCDC internally, only a manual reset can not reset the device. Please extend the delay and try again.  BTW, if the problem is still there, please submit a private ticket with the whole schematics for a review, it is hard to locate the root cause with part of the schematics. To submit a private ticket, please kindly refer to https://www.nxp.com/video/tutorial-for-nxp-support-case-portal:NCP-VIDEO . 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. ------------------------------------------------------------------------------- Re: i.mx RT1160 powerup sequence Hi @Kan_Li  Thanks for your fast response. Another question. The reset is not functioning. I measured the voltage, and it drops to zero when I press the switch, but the chip does not reset. Re: i.mx RT1160 powerup sequence Thank you Kan for your quick reply. Another question, The reset is not functioning. I measured the voltage, and it drops to zero when I press the switch, but the chip does not reset. Re: i.mx RT1160 powerup sequence Hi @Swezin , No issue would happen if you extend the delay for DCDC_Pswitch. 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
デバッガーは、コア呼び出しの後にMIMXRT1062に接続できませんNVIC_SystemReset こんにちは、私は過去の幽霊を取り戻すためにここにいます。具体的には、 このスレッドです。 私はMbed OS CEのMIMXRT1062への移植に取り組んでいますが、テストスイートをセットアップしようとするとこの問題が発生しました。基本的に、M7 コアで実行されているコードが NVIC_SystemReset を呼び出すたびに、デバッガーはコアに接続できなくなります。 LinkServer は以下を出力します。 Ns: MCUXpresso IDE RedlinkMulti Driver v11.6 (Oct 3 2022 08:09:13 - crt_emu_cm_redlink.exe build 9) Pc: ( 0) Reading remote configuration Wc(03). No cache support. Nc: Found chip XML file in I:/RPL/mbed-os/targets/upload_method_cfg/redlink_cfgs\MIMXRT1052xxxxB.xml Pc: ( 5) Remote configuration complete Nc: Restarted LinkServer process (PID 30668). Wc: ============= SCRIPT: RT1050_connect.scp ============= Wc: RT1050 Connect Script Wc: DpID = 0BD11477 Wc: APID = 0x04770041 Wc: Disabling MPU Wc: Configure FlexRAM for 256KB OC RAM, 128KB I-TCM, 128KB D-TCM Wc: Finished Wc: ============= END SCRIPT ============================= Nc: Probe Firmware: DAPLink CMSIS-DAP (ARM) Nc: Serial Number: 0227000047784e4500559004d7450044ddb1000097969900 Nc: VID:PID: 0D28:0204 Nc: USB Path: \\?\hid#vid_0d28&pid_0204&mi_03#7&316d2a6&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030} Nc: Using memory from core 0 after searching for a good core Pc: ( 30) Emulator Connected Xr: Pc: ( 40) Debug Halt Nc: connection failed - Ep(03). Invalid ID for processor... Retrying Nc: Using memory from core 0 after searching for a good core Nc: On debug connection - reset using system reset Pc: ( 30) Emulator Connected Pc: ( 40) Debug Halt Ed:02: Failed on connect: Ep(03). Invalid ID for processor. Et: Probe(0): Connected&Reset. Was: NotConnected. DpID: 0BD11477. CpuID: 00000FFF. Info: Nc: Last stub error 0: OK Nc: Last sticky error: 0x0 AIndex: 0 Nc: Debug bus selected: MemAp 0 Nc: DAP Speed test unexecuted or failed Nc: Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled. Pc: (100) Target Connection Failed PyOCDは以下を印刷します。 0000350 I Target type is mimxrt1060 [board] 0000405 I DP IDR = 0x0bd11477 (v1 MINDP rev0) [dap] 0000433 I AHB-AP#0 IDR = 0x04770041 (AHB-AP var4 rev0) [discovery] 0000446 W Invalid coresight component, cidr=0x0 [rom_table] 0000450 I IMXRT Boot Mode: Boot From Fuses [target_imxrt] 0000458 I CPU core #0: Unknown (CPUID=0x00000000) r0p0, v6.0-M architecture [cortex_m] 0000471 I Loading /home/jamie/Mbed/mbed-os/cmake-build-develop-mimxrt1060evk/hal/tests/TESTS/mbed_hal/rtc_reset/test-mbed-hal-rtc-reset.bin at 0x60000000 [load_cmd] 0000496 I IMXRT Boot Mode: Boot From Fuses [target_imxrt] 0000499 I IMXRT Boot Device: 0 [target_imxrt] 0000545 C cannot write registers r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, psp, msp, lr, pc, xpsr, cfbp because core #0 is not halted [__main__] OpenOCDプリント: Info : 114 157 adi_v5_swd.c:370 swd_connect_single(): SWD DPIDR 0x0bd11477 Debug: 115 160 arm_adi_v5.c:679 dap_dp_init(): imxrt.dap Debug: 116 160 arm_adi_v5.c:711 dap_dp_init(): DAP: wait CDBGPWRUPACK Debug: 117 160 arm_adi_v5.h:638 dap_dp_poll_register(): DAP: poll 4, mask 0x20000000, value 0x20000000 Debug: 118 164 arm_adi_v5.c:719 dap_dp_init(): DAP: wait CSYSPWRUPACK Debug: 119 164 arm_adi_v5.h:638 dap_dp_poll_register(): DAP: poll 4, mask 0x80000000, value 0x80000000 Debug: 120 166 cmsis_dap.c:808 cmsis_dap_swd_write_from_queue(): refusing to enable sticky overrun detection Debug: 121 169 openocd.c:151 handle_init_command(): Examining targets... Debug: 122 169 target.c:1843 target_call_event_callbacks(): target event 19 (examine-start) for core imxrt.cpu Debug: 123 169 arm_adi_v5.c:1095 dap_get_ap(): refcount AP#0x0 get 1 Debug: 124 173 arm_adi_v5.c:1038 dap_find_get_ap(): Found MEM-AP AHB3 at AP index: 0 (IDR=0x04770041) Debug: 125 181 arm_adi_v5.c:825 mem_ap_init(): MEM_AP Packed Transfers: disabled Debug: 126 181 arm_adi_v5.c:836 mem_ap_init(): MEM_AP CFG: large data 0, long address 0, big-endian 0 Debug: 127 185 target.c:2628 target_read_u32(): address: 0xe000ed00, value: 0x00000000 Error: 128 185 cortex_m.c:2363 cortex_m_examine(): [imxrt.cpu] Cortex-M PARTNO 0x0 is unrecognized Debug: 129 185 target.c:1843 target_call_event_callbacks(): target event 20 (examine-fail) for core imxrt.cpu 基本的に、この状況では CPU ID は 0 として読み取られるため、デバッガーはコアと通信できないようです。 元のスレッド (上記リンク) では、このエラーはフラッシュの JEDEC リセットが行われていないことが原因であると示唆されていました。しかし、スレッドでリンクされている記事を掘り下げたところ、これはXIP拡張モードでフラッシュチップを使用する場合に固有の問題のようです。このモードでは、通常のコマンドは機能しないため、チップをリセットするときに、チップを最初にXIP Enhanced(別名Continuous Read)モードから解除するJEDECリセットを使用しないと、ブートが失敗します。 ただし、この状況は MIMXRT1060_EVK ボードの構成と一致しません。すべてのフラッシュ シーケンスを再確認しましたが、XIP 拡張モード は有効になっていません -- 実際、フラッシュはそれをまったくサポートしていません。さらに、MCUはリセット後も動作し続けます。ただフラッシュすることはできません。これは、この問題がMCUがXIPフラッシュを読み取れないために引き起こされたものではないという決定的な証拠です。 むしろ、ここで起こっているのは、(a) MCU をリセットすると ARM JTAG TAP が何らかの形で無効になり、CPU がデバッグ ポートを介して通信しなくなるか、(b) MCU をリセットすると SWD が使用するピン マッピングが干渉するため、MCU がリセットされた後に SWD 接続自体が切断されると考えています。NXP側の誰かがこれが問題であることを確認し、ここで何が起こっているのかを説明できると本当にありがたいです。 今のところ、私は "-Oconnect_mode=pre-reset"をpyocdに渡すという1つの回避策を見つけました。これにより、接続前にリセットが発行され、問題の発生が防止されているように見えます。残念ながら、LinkServerで同様の回避策を見つけることができなかったため、基本的に私のアプリケーションでは使用できません。少なくとも、LinkServerに「接続前にリセット」オプションを追加するか、MIMXRT CPUIDが0になったときに検出してリセットを試みるフォールバックモードを追加していただければ幸いです。 i.MXRT 106倍 Re: コア NVIC_SystemResetコール後にデバッガが MIMXRT1062 に接続できない このギャビンを見ていただきありがとうございます。これに対する修正/回避策が近いうちにLinkServerのロードマップにあるかどうか知っていますか?(実際の問題の修正、または接続前にLinkServerにHWリセットを行わせる方法のいずれか)。これにより、Mbed OSの自動テストスイートにLinkServerを使用することはほぼ不可能になります -- PyOCDを使用する必要があり、はるかに遅くなります。 Re: コア NVIC_SystemResetコール後にデバッガが MIMXRT1062 に接続できない こんにちはギャビン! この問題はMbed OSとはまったく関係がないと思います。実際、Mbed OSはMCUXpresso SDKの上に構築されており、SDKの起動コードとNORフラッシュ構成をほとんど変更せずに使用しています。 この問題は、既存の MCUXpresso プロジェクトに NVIC_SystemReset() の呼び出しを追加することで再現可能にする必要があります。(ボードがリセットループに陥るのを避けるために、ボタンが押されたときだけリセットするのはおそらく良い考えでしょう)。 はい、LinkServer 24.9.75でDAPLinkファームウェアを実行しているMIMXRT1060 EVKBボードを使用しています。 これについてあなたの助けをありがとう、これが理にかなっていることを願っています!
View full article
MemAcc 在数据闪存中工作,但在代码闪存中不工作 各位聪明人,大家好, 我们目前正在为 S32K324 开发引导加载程序,并将MemAcc与S32K3_S32M27x 实时驱动程序 ASR R21-11 版本 4.0.0 P19驱动程序包中的底层Mem_43_INFLS驱动程序一起使用。 我注意到,只要我将数据写入 Data-Flash 部分,MemAcc_Write() 函数就能完美运行。一旦我有想要写入驱动器的代码闪存部分,就会写入 16 字节到 128 字节之间的数据,然后才导致硬故障。 我已经检查了 HFSR 并且它指出了 FORCED Hardfault 并且 BFSR 确实显示了IMPRECISERR 。 我尝试写入的内存地址是 0x440000 - 0x442000。与 8k 扇区边界对齐的代码闪存部分,在闪存之后仍未初始化。所以它只包含 0xFF。 我尝试切换到 C40 驱动程序进行测试运行,但当驱动程序返回 STATUS_SUCCESS 时,Flash 没有接受任何数据。但这里并没有发生硬故障。 有人知道我该如何进一步调试我的问题吗? 回复:MemAcc 在数据闪存中有效,但在代码闪存中无效 我确实找到了仅在 ISR 期间发生的错误的解决方案。 将写入功能加载到 SRAM 中时,驱动程序设置没有问题。问题是,当我写入 C-Flash 块 0 时,触发了 ISR。ISR 的代码被放置在这个 C-Flash Block 0 内,导致 RWW 错误。 这解释了为什么它可以在其他 Flashblock 内工作,并且在中断被禁用时可以工作,但在中断启用时却不能工作。 回复:MemAcc 在数据闪存中有效,但在代码闪存中无效 我刚刚再次测试检查所有状态寄存器。 BFSR 没有显示不精确的错误,它显示 IBUSERR。 DFSR 也显示 9,表示部分出现域故障。
View full article
最近デバッグが失敗した(LPC-Link.2でLPC11U68を使用) 最近、独自のPCBでLPC11U68を デバッグすることに失敗しました 。症状は、プログラムをダウンロードして実行できるが、ブレークポイントによって中断が発生しなくなることです。シングルステップ、ステップリターン、ステップオーバーなどの「実行」コマンドの多くは効果がありません。実行(ショートカットキーf8)は正常に機能します。一時停止アイコンは正常に機能します。 これまでに、1)ターゲットのPCBを変更しましたLPC11U68、2)LPC-Link2インターフェースを変更しました、3)MCUXpressoを再起動しました、4)ホストコンピューターを再起動しました。 どんな提案でもいただければ幸いです。 jドラム コアとメモリ Re:最近デバッグが失敗しました(LPC-Link.2でLPC11U68を使用) こんにちは。 デバッガーは、最初の (そして唯一の) エラー以来、正常に動作しています。すでに述べたように、 修正 は コンソールからgdbデバッガを使用することでした。 IDEデバッガがロックアップした理由(設定されたブレークポイントに到達しなかったり、1ステップも実行しなかったりする)については、まだ答えがありません。再起動、再コンパイル、または再起動を行っても問題は解決しませんでした。そのインシデントの間、プログラムはまだ正常に実行されており、一時停止することができましたが、IDE タイプのデバッグは可能ではありませんでした。 2週間後に解決済みボタンを設定しています。 jドラム Re:最近デバッグが失敗しました(LPC-Link.2でLPC11U68を使用) ありがとうございました@Pavel_Hernandez  LPCopenを MCUXpresso IDE v11.8.0 [ビルド 1165] [2023-07-26]。MCU と SDK は LPC11U68 には適用されません。 gdb を使用してデバッガーを再び機能させたため、ブレークポイントは以前と同様に設定できます。チップは最大3つのブレークポイントを受け入れます。 jドラム Re:最近デバッグが失敗しました(LPC-Link.2でLPC11U68を使用) こんにちは、プロジェクトをクリーンアップし、更新して再度ビルドすることをお勧めします。私の側でこれをリプレイする方法はありますか?使用しているMCUは何ですか? IDEのバージョンとSDKについて教えてください。 よろしくお願いいたします パベル Re:最近デバッグが失敗しました(LPC-Link.2でLPC11U68を使用) こんにちは。さらなるアップデート gdb デバッガを使用することで、sprintf() のアセンブラコードの奥深くにブレークポイントを設定することができました。マシン語のウィンドウを探していたところ、プログラムがついにブレークポイントにヒットして停止しました。 おそらく、コードが無限ループに陥り、設定されたブレークポイントのいずれにも到達しなかったのでしょうが、だからといって、デバッガがプログラムの開始時にも 1 ステップも実行しない理由を説明できません。 IDE添付のスクリーンショット。 jドラム まだ疑問に思っています。
View full article
Needed Step by step guidance to integrate Wi-Fi using IW612 module I am currently working on a project that involves integrating WiFi module using the IW612 module with an STM32 micro-controller and I would appreciate your guidance on the integration process .  Could you please provide any documentation or resources that detail the following : 1. Recommended software libraries or SDKs for the STM32. 2. Example code for establishing a WiFi connection.  3. Any specific configuration settings. Re: Needed Step by step guidance to integrate Wi-Fi using IW612 module Hi, @komal21  Thanks for your feedback. Then would you mind me closing this case by mark my answer as accepted solution? Best regards, Christine. Re: Needed Step by step guidance to integrate Wi-Fi using IW612 module Thank you for your valuable guidance. Re: Needed Step by step guidance to integrate Wi-Fi using IW612 module Hi, @komal21  Thanks for your reply. I am very sorry for the inconvenience, we do not have the special driver for STM32 MCU. The only way is porting by yourself by referring our I.MX RT platforms running RTOS: Getting Started with NXP-based Wireless Modules on i.MX RT Platforms Running RTOS - User manual Or you can think about our RW612 which has integrated MCU and also it can support Wi-Fi6, BLE and Thread. Best regards, Christine. Re: Needed Step by step guidance to integrate Wi-Fi using IW612 module can we interface this IW612 with STM32 it is possible? NXP provide any driver so using of that we can Interface STM32 MCU with IW612? Re: Needed Step by step guidance to integrate Wi-Fi using IW612 module Hi, @komal21  Anything else I can for you on this case? Best regards, Christine. Re: Needed Step by step guidance to integrate Wi-Fi using IW612 module Hi, @komal21  Anything else I can for you on this case? Best regards, Christine. Re: Needed Step by step guidance to integrate Wi-Fi using IW612 module Hi, @komal21  Thanks for creating case to us. We do not have special guidance for STM32 because it is not our NXP own MCU. But for your reference, this user manual should be helpful for you: Getting Started with NXP-based Wireless Modules on i.MX RT Platforms Running RTOS - User manual And to configure Wi-Fi/Bluetooth features like establishing connections and configurations based on MCU platform, you can refer to this user manual: NXP Wi-Fi and Bluetooth Debug Feature Configuration Guide for i.MX RT Platforms - User manual Best regards, Christine.
View full article