Multi Source Translation Content

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Multi Source Translation Content

讨论

排序依据:
S32K311ブートローダーの移植 現在、S32K312で動作するブートローダープロジェクトをS32K311に移植しています。私はS32 Design StudioとNXP RTD 4.9.0、GCCコンパイラを併用しています。S32K311 / RTD 4.9環境に特有の、ベクターテーブルとリセットハンドラに関連する2つの深刻な問題に遭遇しています。 問題 1: デバッガーのリセット時にすぐに UsageFault が発生します。PEMicro デバッガーを起動すると、main() に到達する前にリセット スクリプト中にコアがすぐにクラッシュします。 スクリプトのリセット(…)が完了しました。 UsageFault: 無効な EPSR.T または EPSR.IT フィールドで実行された命令。 ハードフォールト:障害がハードフォールトにエスカレートしました。 startup_cm7.sを確認しました。および Vector_Table.s。Reset_Handler に .type が欠落していることに気づきましたReset_Handler、%function指令が出され、ELFのエントリポイントが偶数アドレス(例:0x00402421ではなく0x00402420)となり、自然とCortex-M7でARMモードのUsageFaultが発生します。 .type ディレクティブを修正し、ベクター テーブルで LSB が Thumb モードに設定されていることを確認した後でも、PEMicro デバッガーはリセット直後にこの UsageFault を時折スローします。 問題 2: 割り込みが 0x0 (初期化されていない RAM ベクタ テーブル) にジャンプする リセットの問題を正常に回避して main() に到達すると、ハードウェア割り込み (FlexCAN や SWT など) がトリガーされた瞬間にシステムがクラッシュします。PCは0x00000000にジャンプします。 メモリを調査したところ、__interrupts_ram_start (0x20000000) にある RAM ベクタ テーブルが完全に初期化されていない(ゼロで埋められている)ことがわかりました。私たちは以下のことを発見しました。 startup_cm7.s初期化の最後にはVTORを__RAM_INTERRUPT_STARTに設定しますが、ROMからテーブルをコピーすることはありません。 IntCtrl_Ip_Init(&IntCtrlConfig_0)(プラットフォームコンポーネントによって生成)は、INT_CTRL_IP_ENABLE_VTOR_CONFIGが有効であればVTORを設定しますが、デフォルトのベクターテーブルをフラッシュからRAMにコピーしません。 この問題を回避するために、main.c に手動で for ループを記述し、ベクター テーブルを __interrupts_init_start から __interrupts_ram_start に物理的にコピーし、IntCtrl_Ip_InstallHandler() を呼び出す前に S32_SCB->VTOR を更新する必要がありました。 Unified bootloader Demoからベースコードを取得しました CANのS32K311ブートローダーが移植されて投稿された投稿を知っている人はいますか? Re: S32K311 bootloader porting こんにちは、 @ujwal12さん Cortex-M7の場合、ベクターテーブルのリセットハンドラエントリは、LSBが設定されたアドレスを使ってサムモードを示す必要があります。Reset_Handler記号が関数記号として正しく生成されていないと、リンカーがベクトルテーブルに偶数アドレスを配置し、起動時にUsageFaultが発生することがあります。そのため、一般的にはstartup_cm7.sの変更は推奨しません。または Vector_Table.s。 設計上、S32K3 RTDはRAMベースのリロケーション可能な割り込みベクトルテーブルを使用しています。起動時に、ベクターテーブルがフラッシュメモリからRAMにコピーされ、VTORはRAM上のテーブルを指すように更新されます。 S32K311用ブートローダーのサンプルコードの入手可能性に関してですが、現時点ではS32K311を特に対象とした公式のブートローダーのサンプルコードは存在しません。最も近い参考文献は、 Bootloader to アプリケーション Jump DS3.5 RTD300 S32K312 、すでに使っているUnified Bootloaderデモです。 また、Unified Bootloaderは非公式のNXPデモであり、コミュニティフォーラムでのみ公開されているため、NXPの技術サポートからはサポートされていません。 BR、VaneB
查看全文
USB implementation on m7 core for i.MX 8M Nano processor I need some guideance for implementing usb for i.MX 8M Nano processor m7 core, I used the nxp sdk for it. But the drive is not responding back and the signal from the controller is weak. Re: USB implementation on m7 core for i.MX 8M Nano processor Hello, Unfortunately, there is no driver available for USB in the official i.MX SDK release. It may be possible to port it from other devices for example i.MXRT, but the PHY and USB non-core registers are different, and it will not be straightforward to port but, needs to be implemented in your side. Best regards.
查看全文
MAYA-W166 与 IW416 如何使用 BT_WAKE_HOST 唤醒主机 请问如何使用 BT_WAKE_HOST 触发操作系统注册器? Re: MAYA-W166 WITH IW416 HOW TO BT_WAKE_HOST 您好, 请问您使用的是什么操作系统和主机? 请查看AN12849 。 问候, 丹尼尔。
查看全文
8M Nanoプロセッサ向けのm7コア i.MX USB実装 8M NanoプロセッサのM7コア i.MX USBを実装するための指針が欲しいです。NXP SDKを使いました。しかしドライブは応答せず、コントローラからの信号も弱いです。 Re: USB implementation on m7 core for i.MX 8M Nano processor こんにちは、 残念ながら、公式の i.MX SDKリリースにはUSB用のドライバーは提供されていません。 i.MXRTなどの他のデバイスから移植することは可能かもしれませんが、PHYとUSBの非コアレジスタが異なるため、移植は容易ではなく、お客様側で実装する必要があります。 よろしくお願いいたします。
查看全文
How to trigger different reset events on S32K3 for verification Is there a recommended way to trigger each reset source on the evaluation board for verification purposes? For example: DEBUG_DEST SW_DEST HSE_SNVS_RST ...... I want to know all bits corresponding to the register DES & FES
查看全文
如何触发 S32K3 上的不同复位事件以进行验证 为了验证目的,是否有推荐的方法来触发评估板上的每个复位源? 例如: 调试目标 SW_DEST HSE_SNVS_RST ...... 我想知道与 DES 和 FES 寄存器对应的所有位。
查看全文
MAYA-W166 WITH IW416 HOW TO BT_WAKE_HOST Please tell me how to trigger OS Registrar using BT_WAKE_HOST. Re: MAYA-W166 WITH IW416 HOW TO BT_WAKE_HOST Hi, Could you please tell me what OS and host are you using? Please take a look at AN12849. Regards, Daniel.
查看全文
基于 i.MX 8M Nano 处理器的 m7 内核上的 USB 实现 我需要一些关于在 i.MX 8M Nano 处理器 m7 核心上实现 USB 的指导,我使用了 nxp sdk。但是驱动器没有反应,控制器发出的信号很弱。 Re: USB implementation on m7 core for i.MX 8M Nano processor 你好, 遗憾的是,官方 i.MX SDK 版本中没有 USB 驱动程序。 或许可以从其他设备(例如 i.MXRT)移植过来,但是 PHY 和 USB 非核心寄存器不同,移植起来并不容易,需要你自己来实现。 顺祝商祺!
查看全文
S32k3用の5Vまたは3.3VのI/O電源 こんにちは、みんな、 現在、 NXP S32K3 ファミリーをベースにした自動車用ECUを設計しており、MCUのI/O供給領域に最適な構成を評価しています。 私の理解では、このデバイスはI/OドメインAとドメインBに対して、以下のような異なる電源供給オプションに対応しています。 ドメインA = 5V、ドメインB = 5V ドメインA = 3.3V、ドメインB = 3.3V ドメインA = 5V、ドメインB = 3.3V 各構成の主な設計上のトレードオフや選択基準を理解しようとしています。具体的には: 入出力領域において、5Vと3.3Vを使用する場合の主な利点と欠点は何ですか? 一般的に混合電圧構成(5 V / 3.3 V)が好まれる自動車用途はどこですか? EMC/EMIの性能、消費電力、信号の整合性、堅牢性、インターフェースの互換性に関して、この選択を促す影響はあるのでしょうか? NXPは、各I/O供給オプションの理論や推奨ユースケースを説明するアプリケーションノート、ハードウェア設計ガイドライン、または参考文献を提供していますか? これまでのS32K3プロジェクトから得られた設計のアドバイスや教訓があれば、ぜひ教えていただけるとありがたいです。 ご回答をお待ちしています。
查看全文
S32k3 的 5V 或 3.3V I/O 电源 大家好, 我目前正在设计一款基于NXP S32K3系列的汽车 ECU,并且正在评估 MCU I/O 供电域的最佳配置。 据我了解,该设备允许为I/O 功能域 A 和功能域 B提供不同的供电方式,例如: 功能域 A = 5 V,功能域 B = 5 V 功能域 A = 3.3 V,功能域 B = 3.3 V 功能域 A = 5 V,功能域 B = 3.3 V 我正在尝试了解每种配置的主要设计权衡和选择标准。具体来说: 在 I/O 域上使用 5 V 与 3.3 V 相比,主要优缺点是什么? 在哪些汽车应用中,通常优选混合电压配置(5V/3.3V)? 在电磁兼容性/电磁干扰性能、功耗、信号完整性、稳健性或接口兼容性方面,是否存在影响这一选择的重要因素? NXP 是否提供任何应用笔记、硬件设计指南或参考文档,解释每种 I/O 供电选项的原理和推荐用例? 我非常感谢您能提供任何设计建议或从之前的 S32K3 项目中汲取任何经验教训。 谢谢!
查看全文
Regarding the issue of S32K3XX being unable to automatically create a local IP address. 屏幕截图 2026-09-18 100140.pngScreenshot 2026-09-18 100140.png 屏幕截图 2026-09-18 100315.pngScreenshot 2026-09-18 100315.png 屏幕截图 2026-09-18 100756.pngScreenshot 2026-09-18 100756.png Hello: I've created my own local IP address in S32DS and disabled the local IP address in the LWIP protocol stack, but I get an error during single-step debugging, failing to establish a connection, as shown in the bottom right image above. What could be the problem? Is some setting missing? Is it that creating a local IP address is not allowed and must be configured in the protocol stack? Thank you again for taking the time to reply despite your busy schedule! Re: 关于S32K3XX无法自己建立本地IP地址的问题 Hello @sunshine88   , The IPv4 address itself is not the cause of this error. lwIP allows a static IPv4 address to be provided directly through netif_add() . According to the debugger screenshot, netif_add() returns NULL because the network-interface initialization callback, ETHIF_INIT , does not return ERR_OK . Therefore, the failure occurs during initialization of the Ethernet interface or its lower-level driver, before the interface can be added to lwIP. In your TCP/IP Stack configuration screenshot, the Enable iface option is not selected. Please enable the network interface and configure the required static IPv4 address, subnet mask, and gateway there. Then regenerate the configuration and use the initialization sequence from the corresponding S32K3 lwIP example. If you still want to assign the address in the application, please first verify whether netif_add() succeeds. Please note that this only makes the initialization failure easier to detect. It does not correct the underlying GMAC/Ethernet configuration. I recommend first building and running the original lwIP example for your exact S32K3 device and software-package versions without modifying its network initialization. Once the original example works, change only the static IPv4 address and confirm the result. Please also provide the following information if the initialization still fails: Exact S32K3 device and evaluation board S32 Design Studio version RTD and TCP/IP Stack package versions The definition of ETHIF_INIT and the error returned by that function Whether the unmodified lwIP example works on the same hardware It appears that the same question was submitted in three separate Community posts. To keep the troubleshooting information in one place, please continue the discussion in only one of them. Best regads, Pavel
查看全文
Safety Mechanism SM1.INTERCONNECT_EDC _GASKET I need to enable the SM1.INTERCONNECT_EDC_GASKET safety mechanism for my project. I am using AUTOSAR RTD 3.0.0 and the S32 Design Studio (S32DS) tool to generate the code. Could you please clarify the following: 1.  Is there an option available within S32DS to enable this safety mechanism? If so, could you guide me on how to enable it? 2.  If this option is not available in S32DS, what is the recommended way to enable it? Please share example code if possible.
查看全文
S32K311 bootloader porting I am currently porting a working Bootloader project from the S32K312 to the S32K311. I am using S32 Design Studio along with NXP RTD 4.9.0 and the GCC compiler. I am encountering two severe issues related to the Vector Table and Reset Handler that seem specific to the S32K311 / RTD 4.9 environment. Issue 1: Immediate UsageFault on Debugger Reset When launching the PEMicro debugger, the core crashes immediately during the reset script before ever reaching main(). Reset script (...) completed. UsageFault: An instruction executed with an invalid EPSR.T or EPSR.IT field. HardFault: A fault has been escalated to a hard fault. We checked startup_cm7.s and Vector_Table.s. We noticed that Reset_Handler was missing the .type Reset_Handler, %function directive, causing the ELF entry point to be an even address (e.g., 0x00402420 instead of 0x00402421), which naturally causes an ARM-mode UsageFault on the Cortex-M7. Even after fixing the .type directive and ensuring the Vector Table has the LSB set for Thumb mode, the PEMicro debugger still occasionally throws this UsageFault immediately upon reset. Issue 2: Interrupts jump to 0x0 (Uninitialized RAM Vector Table) When we successfully bypass the reset issue and reach main(), the system crashes the moment a hardware interrupt (like FlexCAN or SWT) triggers. The PC jumps to 0x00000000. Upon investigating memory, we found that the RAM vector table at __interrupts_ram_start (0x20000000) is completely uninitialized (filled with zeroes). We discovered that: startup_cm7.s sets VTOR to __RAM_INTERRUPT_START at the end of initialization but never copies the table from ROM. IntCtrl_Ip_Init(&IntCtrlConfig_0) (generated by the Platform component) sets VTOR if INT_CTRL_IP_ENABLE_VTOR_CONFIG is enabled, but it also does not copy the default vector table from flash to RAM. To work around this, we had to write a manual for-loop in main.c to physically copy the vector table from __interrupts_init_start to __interrupts_ram_start and update S32_SCB->VTOR before calling IntCtrl_Ip_InstallHandler(). got the base code from Unified bootloader Demo does anyone know a post where the bootloader for S32K311 with CAN was ported and posted?? Re: S32K311 bootloader porting Hi @ujwal12  For the Cortex-M7, the Reset Handler entry in the vector table must indicate Thumb mode by using an address with the LSB set. If the Reset_Handler symbol is not generated correctly as a function symbol, the linker may place an even address in the vector table, which can lead to a UsageFault during startup. For this reason, we generally do not recommend modifying startup_cm7.s or Vector_Table.s. By design, the S32K3 RTD uses a RAM-based relocatable interrupt vector table. During startup, the vector table is copied from Flash to RAM, and VTOR is updated to point to the RAM-based table. Regarding the availability of an S32K311 bootloader example, there is currently no official bootloader example specifically targeting the S32K311. The closest references available are the Example S32K312 Bootloader to Application Jump DS3.5 RTD300 and the Unified Bootloader Demo that you are already using.  Also, please note that the Unified Bootloader is an unofficial NXP demo that has only been published on the community forum, and therefore it is not supported by NXP technical support. BR, VaneB
查看全文
关于S32K3XX无法自己建立本地IP地址的问题 屏幕截图 2026-09-18 100140.png屏幕截图 2026-09-18 100140.png 屏幕截图 2026-09-18 100315.png屏幕截图 2026-09-18 100315.png 屏幕截图 2026-09-18 100756.png屏幕截图 2026-09-18 100756.png 你好:            现在我在S32DS 中中自己建立本机IP地址,设置LWIP协议栈中本地IP地址失效,但是单步调试时会报错,无法建立链接,如上最下面右侧所示,请问问题出在哪里?是缺少什么设置吗?难道时不允许自己建立本地IP,必须在协议栈中配置吗?          再次感谢在百忙之中回复! Re: 关于S32K3XX无法自己建立本地IP地址的问题 你好@sunshine88 , IPv4 地址本身并不是造成此错误的原因。lwIP 允许通过 netif_add() 直接提供静态 IPv4 地址。 根据调试器截图, netif_add() 返回 NULL ,因为网络接口初始化回调函数 ETHIF_INIT 没有返回 ERR_OK 。因此,故障发生在以太网接口或其底层驱动程序初始化期间,在将接口添加到 lwIP 之前。 在您的 TCP/IP 协议栈配置截图中, “启用接口”选项未被选中。请启用网络接口,并在该接口上配置所需的静态 IPv4 地址、子网掩码和网关。然后重新生成配置,并使用相应的 S32K3 lwIP 示例中的初始化序列。 如果您仍然想在应用程序中分配地址,请先验证 netif_add() 是否成功。 请注意,这只是使初始化失败更容易被检测到。它无法修正底层 GMAC/以太网配置。 我建议首先针对您的 S32K3 设备和软件包版本构建并运行原始的 lwIP 示例,不要修改其网络初始化。如果原示例运行正常,则仅更改静态 IPv4 地址并确认结果。 如果初始化仍然失败,请同时提供以下信息: 精确的 S32K3 设备和评估板 S32 设计工作室版本 RTD 和 TCP/IP 协议栈软件包版本 ETHIF_INIT 的定义以及该函数返回的错误 未经修改的 lwIP 示例是否能在相同的硬件上运行 同一个问题似乎在三个不同的社区帖子中被提交了。为了将故障排除信息集中在一个地方,请只在一个地方继续讨论。 此致敬礼, 帕维尔
查看全文
功能安全 SM1.INTERCONNECT_EDC_GASKET 我的项目中需要启用 SM1.INTERCONNECT_EDC_GASKET 安全机制。我使用的是 AUTOSAR RTD 3.0.0 和 S32 Design Studio (S32DS) 工具来生成代码。 请您澄清以下问题: 1. S32DS 中是否有启用此功能安全机制的选项?如果有,能否指导我如何启用? 2. 如果S32DS中没有此选项,那么启用它的推荐方法是什么?如果可以,请提供示例代码。
查看全文
Is there a way to prevent task switching while BluetoothLEHost_Init() is executing? Hi, I have a question regarding BluetoothLEHost_Init() in the KW47 SDK. My application is running on FreeRTOS, and several tasks are created in advance using xTaskCreateStatic(). After creating these tasks, I call BluetoothLEHost_Init() to initialize BLE. While stepping through the SDK, I observed that during communication with the NBU, the initialization process waits for inter-task events. As a result, other lower-priority tasks are scheduled and start running while BluetoothLEHost_Init() is still executing and before the function call itself returns. To clarify, I am not referring to the host initialization completion callback provided to BluetoothLEHost_Init(). I do not need to wait for that callback. My concern is that task switching occurs before BluetoothLEHost_Init() returns. I would like to prevent other application tasks from running until the BluetoothLEHost_Init() function call itself has returned. My questions are: ・Is there any configuration, API, or recommended method to prevent task switching while BluetoothLEHost_Init() is executing (for example, while waiting for NBU communication)? ・Is there a way to ensure that BluetoothLEHost_Init() completes and returns without yielding execution to other tasks? ・If such a method exists, could you please provide guidance or an example of the recommended approach? My goal is to ensure that no application tasks begin their normal processing until BluetoothLEHost_Init() has returned. Any advice would be greatly appreciated. Re: Is there a way to prevent task switching while BluetoothLEHost_Init() is executing? Hi @t_hosomi, hope you are doing well. You can hold the execution of other tasks with different FreeRTOS approaches as explained below: Suspend tasks (vTaskSuspend) after creating them before starting the scheduler, this will make the task start in a suspended state which will make the scheduler not to switch to other tasks. Therefore, after returning from the BLE initialization, you would resume their execution (vTaskResume). Create an event group that blocks all tasks you require to run after BLE initialization and configure the wait for the event group bits to be indefinite. This approach would require jumping to each task and block them through the event group wait time, this will make the tasks to be inactive until the event group bits are cleared by the BLE initialization task. For both options I'd suggest referring to the FreeRTOS Reference Manual and for the second option, you may refer to the "freertos_event_cm33_core0" example from the SDK as it demonstrates how to create event groups and set tasks to wait for events. Please let me know if the information helps cover your requirements.
查看全文
Status and Reliability Inquiry for SPC5200CVR400B Dear NXP Support Team, We are using the SPC5200CVR400B IC in our product. Could you please confirm: Whether SPC5200CVR400B is active, obsolete, or discontinued. If this device is still being manufactured. Whether any known issues related to data/software corruption have been reported for this device. Recommended methods to prevent or diagnose such corruption. A suitable replacement/alternate part if the device is obsolete or approaching end-of-life. Your guidance on the possible root causes and corrective actions would be highly appreciated. Thank you for your support. Best Regards, Abhijeet Solanki [email protected] Re: Status and Reliability Inquiry for SPC5200CVR400B The SPC5200CVR400B is in End of Life status. It means currently you are not manufacturing this IC Per NXP's standard practice for similar inquiries, reliability data (FIT rates, qualification reports) is not shared publicly on the NXP Community. Such requests are handled via a private support ticket. Private support ticket? Re: Status and Reliability Inquiry for SPC5200CVR400B Hello, Whether SPC5200CVR400B is active, obsolete, or discontinued. The SPC5200CVR400B is in End of Life status If this device is still being manufactured. Whether any known issues related to data/software corruption have been reported for this device. Per NXP's standard practice for similar inquiries, reliability data (FIT rates, qualification reports) is not shared publicly on the NXP Community. Such requests are handled via a private support ticket. A suitable replacement/alternate part if the device is obsolete or approaching end-of-life. No Official NXP Drop-in Replacement. Option 1 — MPC5200CVR400B (Functional Equivalent, NOT Automotive-Qualified) Option 2 — MPC5121 / MPC5125 (Nearest Architecture-Compatible Parts) Option 3 — i.MX Applications Processors (Recommended Migration Path) Best regards, Peter
查看全文
SPC5200CVR400B 的状态和可靠性查询 尊敬的恩智浦技术支持团队: 我们的产品中使用了SPC5200CVR400B集成电路。 请您确认一下: SPC5200CVR400B 是处于活跃状态、过时状态还是已停产状态。 如果这款设备仍在生产的话。该设备是否已报告任何与数据/软件损坏相关的已知问题? 预防或诊断此类损坏的推荐方法。 如果设备已过时或即将报废,则可使用合适的替代/备用零件。 如果您能就可能的根本原因和纠正措施提供指导,我们将不胜感激。 感谢您的支持。 顺祝商祺! 阿比吉特·索兰基 [email protected] Re: Status and Reliability Inquiry for SPC5200CVR400B SPC5200CVR400B 已停止生产。 这意味着您目前没有生产这种集成电路。 根据 NXP 对类似查询的标准做法,可靠性数据(FIT 率、鉴定报告)不会在 NXP 社区公开分享。此类请求将通过私人支持工单处理。 私人支持工单? Re: Status and Reliability Inquiry for SPC5200CVR400B 你好, SPC5200CVR400B 是处于活跃状态、过时状态还是已停产状态。 SPC5200CVR400B 已停止生产。 如果这款设备仍在生产的话。该设备是否已报告任何与数据/软件损坏相关的已知问题? 根据 NXP 对类似查询的标准做法,可靠性数据(FIT 率、鉴定报告)不会在 NXP 社区公开分享。此类请求将通过私人支持工单处理。 如果设备已过时或即将报废,则可使用合适的替代/备用零件。 没有官方的NXP替代产品。 选项 1 — MPC5200CVR400B(功能等效,但未通过汽车行业认证) 选项 2 — MPC5121 / MPC5125(架构最接近的兼容器件) 选项 3 — i.MX 应用程序处理器(推荐迁移路径) 此致, 彼得
查看全文
Regarding the issue of S32K3XX failing to establish its own IP address on the LWIP protocol stack. 屏幕截图 2026-09-18 100140.pngScreenshot 2026-09-18 100140.png 屏幕截图 2026-09-18 100315.pngScreenshot 2026-09-18 100315.png 屏幕截图 2026-09-18 100756.pngScreenshot 2026-09-18 100756.png Hello: I've created my own local IP address in S32DS and disabled the local IP address in the LWIP protocol stack, but I get an error during single-step debugging, failing to establish a connection, as shown in the bottom right image above. What could be the problem? Is some setting missing? Is it that creating a local IP address is not allowed and must be configured in the protocol stack? Thank you again for taking the time to reply despite your busy schedule! Re: 关于S32K3XX 在LWIP 协议栈上自己建立IP地址无法建立的问题 Hello @sunshine88 , The IPv4 address itself is not the cause of this error. lwIP allows a static IPv4 address to be provided directly through netif_add() . According to the debugger screenshot, netif_add() returns NULL because the network-interface initialization callback, ETHIF_INIT , does not return ERR_OK . Therefore, the failure occurs during initialization of the Ethernet interface or its lower-level driver, before the interface can be added to lwIP. In your TCP/IP Stack configuration screenshot, the Enable iface option is not selected. Please enable the network interface and configure the required static IPv4 address, subnet mask, and gateway there. Then regenerate the configuration and use the initialization sequence from the corresponding S32K3 lwIP example. If you still want to assign the address in the application, please first verify whether netif_add() succeeds. Please note that this only makes the initialization failure easier to detect. It does not correct the underlying GMAC/Ethernet configuration. I recommend first building and running the original lwIP example for your exact S32K3 device and software-package versions without modifying its network initialization. Once the original example works, change only the static IPv4 address and confirm the result. Please also provide the following information if the initialization still fails: Exact S32K3 device and evaluation board S32 Design Studio version RTD and TCP/IP Stack package versions The definition of ETHIF_INIT and the error returned by that function Whether the unmodified lwIP example works on the same hardware It appears that the same question was submitted in three separate Community posts. To keep the troubleshooting information in one place, please continue the discussion in only one of them. Best regads, Pavel
查看全文
BluetoothLEHost_Init() の実行中にタスクの切り替えを防止する方法はありますか? こんにちは、 KW47 SDKのBluetoothLEHost_Init()について質問があります。 私のアプリケーションはFreeRTOS上で動作しており、いくつかのタスクはxTaskCreateStatic()を使って事前に作成しています。 これらのタスクを作成した後、BluetoothLEHost_Init() を呼び出して BLE を初期化します。SDKsをステップアップしていると、NBUとの通信中に初期化プロセスがタスク間イベント情報を待っていることに気づきました。その結果、BluetoothLEHost_Init() がまだ実行中で、関数呼び出し自体が戻る前に、他の優先度の低いタスクがスケジュールされ、実行が開始されます。 念のため申し上げますが、私が言及しているのは、BluetoothLEHost_Init() に提供されるホスト初期化完了コールバックのことではありません。私はそのコールバックを待つ必要はありません。 私が懸念しているのは、BluetoothLEHost_Init() が戻る前にタスク切り替えが発生することです。BluetoothLEHost_Init()関数呼び出し自体が戻るまで、他のアプリケーションタスクの実行を防ぎたいです。 私の質問は以下のとおりです。 ・BluetoothLEHost_Init()を実行している間(例えばNBU通信待ち中)にタスク切り替えを防ぐための設定、API、または推奨される方法はありますか? ・BluetoothLEHost_Init()が完了し戻ることを他のタスクに譲ることなく確実にする方法はありますか? ・もしそのような方法が存在するなら、推奨される方法の指針や例を教えていただけますか? 私の目標は、BluetoothLEHost_Init()が戻るまで、アプリケーションタスクが通常のプロセッシングを開始しないようにすることです。 どんなアドバイスでも大変ありがたいです。 Re: Is there a way to prevent task switching while BluetoothLEHost_Init() is executing? こんにちは、 @t_hosomi さん。お元気でお過ごしでしょうか。 以下に説明するように、異なるFreeRTOSアプローチで他のタスクの実行を保留することができます: スケジューラを起動する前にタスクを作成した後、タスクを一時停止(サスペンド)すると、タスクが一時停止状態に始まるため、スケジューラが他のタスクに切り替わらなくなります。したがって、BLEの初期化から戻った後、それらの実行を再開します(vTaskResume)。 BLE初期化後に実行すべきすべてのタスクをブロックするイベントグループを作成し、イベントグループのビットを無期限に待つ設定をしてください。この方法は各タスクにジャンプし、イベントグループの待ち時間でブロックする必要があり、これによりBLE初期化タスクによってイベントグループのビットがクリアされるまでタスクは非アクティブになります。 どちらの選択肢も FreeRTOSリファレンスマニュアル を参照することをお勧めします。後者については、イベントグループの作成方法やイベント待ちタスクの設定を示すSDKの「freertos_event_cm33_core0」例を参照することをお勧めします。 この情報がご要望にお応えできるかどうか、お知らせください。
查看全文