Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
Debug tools greyed out with latest SDK_25_12_00, work fine with older SDK_25_03_00 Running MCUXpresso IDE V25.6.136 + evkmimxrt685 board with SDK_25_12_00. When debug starts all debug tool (resume ..) are greyed out and cannot run the project.  Works fine with older SDK_25_03_00 but same problem with SDK_25_06_00 and SDK_25_09_00.  How can i restore the debug tools Re: Debug tools greyed out with latest SDK_25_12_00, work fine with older SDK_25_03_00 Hello Carlos, Posting the screenshot> It happens on all the examples including hello world. It always stops at the first line of the "void ResetISR(void) function i.e. at the line __asm volatile ("cpsid i") (line No 381) in the startup_mimxrt685s.c file in the startup directory. It never get to the main() to start the run.  I am trying to run the evkmimxrt685_dsp_mu_polling_cm33. This example works fine in the 25.03 version. All versions after than (06,09,12) have this problem. Is there some change I should make in the IDE for SDK versions after 24.03 ?.   Thanks  bobvr Re: Debug tools greyed out with latest SDK_25_12_00, work fine with older SDK_25_03_00 Hello Carlos, It happens on all the examples including hello world. It always stops at the first line of the "void ResetISR(void) function i.e. at the line __asm volatile ("cpsid i") (line No 381) in the startup_mimxrt685s.c file in the startup directory. I am trying to run the evkmimxrt685_dsp_mu_polling_cm33. This example works fine in the 25.03 version. All versions after than (06,09,12) have this problem. Is there some change I should make in the IDE for SDK versions after 24.03 ?. I do have a screenshot but how do i post it. Thanks @bobvr Re: Debug tools greyed out with latest SDK_25_12_00, work fine with older SDK_25_03_00 Hi @bobvr  Could you please share which OS your compute has? Linux, Windows 10, Windows 11? Could you please review the BOOT_SEL of the EVK to be properly selected? Re: Debug tools greyed out with latest SDK_25_12_00, work fine with older SDK_25_03_00 Hi @bobvr  Thanks for sharing the details about your setup. Could you please do a mass erase of the flash, and retry to debug it?  To do it please change the link server action at the QuickStart Panel after that return it to Debug using LinkServer probes. Please share a screenshot if you have any error message in the process.  Re: Debug tools greyed out with latest SDK_25_12_00, work fine with older SDK_25_03_00 I am running Windows 11 on a Dell Alder Lake desktop. The boot jumper (JP1) is open which is the default according to the manual (MIMXRT685-AUD-EVKUM Rev 3 - 21 July 2023). I presume this is what you meant by "review BOOT_SEL of the EVK". Thanks bobvr Re: Debug tools greyed out with latest SDK_25_12_00, work fine with older SDK_25_03_00 Carlos, Thanks. Before I do this i wanted to let you know that I have always used the SEGGER J-Link probes and there is "erase flash action using SEGGER J-Link probes" menu option. Should i erase using that or using the link server probes as you mentioned above. Re: Debug tools greyed out with latest SDK_25_12_00, work fine with older SDK_25_03_00 Carlos,  I tried to do a mass erase with the link server but got an error message - screenshot attached.  Thanks  Re: Debug tools greyed out with latest SDK_25_12_00, work fine with older SDK_25_03_00 Hello Carlos,  I deleted the Flash using the Segger J-Link Probes (not the link server probes as that firmware was overwritten by the Segger firmware).  I understand I must use the Segger probes to debug both the ARM core and HiFi4 DSP.  I also updated the Segger firmware to the latest version 8.98.  I deleted the debug launch file,  deleted the workspace to generate a new one on bootup and also power cycled the board.  Still the same problem.  It says a debug session is running but I'm not able to debug.  As i said this happens with all versions after 03 (06, 09 and 12).  It stops at the startup_mimxrt685s.c file as before.    In the debugger console I do see a warning  message but this is probably harmless.  "warning: could not convert 'main' from the host encoding (CP1252) to UTF-32. This normally should not happen, please file a bug report. monitor exec SetRestartOnClose=1 Please advise next steps. Thanks bobvr. Re: Debug tools greyed out with latest SDK_25_12_00, work fine with older SDK_25_03_00 Hi @bobvr  Thanks for sharing that you are using. The issue persists if you try to debug with link server? Please share the error message in case you get one. 
View full article
Failed to load static DPL with 8x DPDMUX Hi Community, Using dynamic creation of DPDMUXs and DPNIs successfully, and generate the DPL by following commands: 8x ls-addni --fs-entries=8 --num-queues=8 -n source /usr/local/dpdk/dpaa2/dynamic_dpl.sh ... 8x restool dpdmux create 8x restool dprc connect dprc.1 --endpoint1= .n.0/1/2 --endpoint2= / /dpni.k> restool dprc generate-dpl dprc.1 > dpl-8-dpdmux.dts Update the static DPL with dpl-8-dpdmux.dtb (generate by dtc tool) for uboot to initiate MC layout. The error shows as blow: [E, mem_mng_get_phys_mem:655] MAJOR mem. manager memory allocation failed [E, mem_mng_get_phys_mem:658] Required size 0x000040000 alignment 0x000000100 exceeds available memory for partition ID 7 [E, init_bman_bp:399, DPDMUX] ID[6] - dpbp_allocate_buffers(), failed to allocate dpbp buffers [E, init_infrastructure:3750, DPDMUX] swlib_init_bman_bp : -12 [E, dpdmux_init:4487, DPDMUX] init_infrastructure : -12 [E, mem_mng_get_phys_mem:655] MAJOR mem. manager memory allocation failed [E, mem_mng_get_phys_mem:658] Required size 0x000040000 alignment 0x000000100 exceeds available memory for partition ID 7 [E, init_bman_bp:399, DPDMUX] ID[7] - dpbp_allocate_buffers(), failed to allocate dpbp buffers [E, init_infrastructure:3750, DPDMUX] swlib_init_bman_bp : -12 [E, dpdmux_init:4487, DPDMUX] init_infrastructure : -12 [E, resman_is_link_permitted:6375, RESMAN] Object wasn't found [E, linkman_probe_cb:205] No common ancestor - Failed to connect dpdmux@6 and dpmac@9 [E, subnode_process:155] Probing module 'connection' return error code -1. Continue dpl processing... [E, resman_is_link_permitted:6375, RESMAN] Object wasn't found [E, linkman_probe_cb:205] No common ancestor - Failed to connect dpdmux@6 and dpni@15 [E, subnode_process:155] Probing module 'connection' return error code -1. Continue dpl processing... [E, resman_is_link_permitted:6375, RESMAN] Object wasn't found [E, linkman_probe_cb:205] No common ancestor - Failed to connect dpdmux@6 and dpni@7 [E, subnode_process:155] Probing module 'connection' return error code -1. Continue dpl processing... [E, resman_is_link_permitted:6375, RESMAN] Object wasn't found [E, linkman_probe_cb:205] No common ancestor - Failed to connect dpdmux@7 and dpmac@10 [E, subnode_process:155] Probing module 'connection' return error code -1. Continue dpl processing... [E, resman_is_link_permitted:6375, RESMAN] Object wasn't found [E, linkman_probe_cb:205] No common ancestor - Failed to connect dpdmux@7 and dpni@16 [E, subnode_process:155] Probing module 'connection' return error code -1. Continue dpl processing... [E, resman_is_link_permitted:6375, RESMAN] Object wasn't found [E, linkman_probe_cb:205] No common ancestor - Failed to connect dpdmux@7 and dpni@8 [E, subnode_process:155] Probing module 'connection' return error code -1. Continue dpl processing... [E, dpl_process:527] Error while parsing 'connections'. Skip processing the rest of DPL. [E, main:198] DPL processing failed; continuing...  Is there any limitation on the static DPL to support same layout as dynamic way? QorIQ LS2 Device Re: Failed to load static DPL with 8x DPDMUX Hi yipingwang, Using '--max-dmat-entries' in dynamic creating layout don't change the final dts by 'restool dprc generate-dpl dprc.1'. So, I just give it a try by adding following elements 'mem-size' and 'max-dmat-entries' in .dts. manually: dpdmux@0 {     compatible = "fsl,dpdmux";     options = "DPDMUX_OPT_CLS_MASK_SUPPORT", "DPDMUX_OPT_AUTO_MAX_FRAME_LEN";     method = "DPDMUX_METHOD_CUSTOM";     manip = "DPDMUX_MANIP_NONE";     num_ifs = <0x2>;     mem-size = <0x100>;  // this is manually added by me     max-dmat-entries = <0x8>; // this is manually added by me }; Unfornately this doesn't fix it, the same error message showing from MC debug. Please also check my dpl as enclosed. Re: Failed to load static DPL with 8x DPDMUX Please try whether the following method is possible. When you create DPDMUX, please specify "--max-dmat-entries=8" to reduce the resource allocation. --max-dmat-entries= max entries in DPDMUX address table. Default is 64. If your problem persists, please share your whole console log to create DPDMUX and generate DPL file. In addition, which processor are you using? Re: Failed to load static DPL with 8x DPDMUX Hi, I've managed to fix this issue by correcting the DPL parameter names.
View full article
MathWorks: Complimentary software and hardware support Hello Freescale Cup Teams,   MathWorks is pleased to support the 2015 Freescale Cup EMEA Competition! Take advantage of our: Complimentary Access to MATLAB & Simulink Your team is eligible for an offer of Complimentary Software Licenses. Your team leader or faculty advisor should review and complete the Student Competition Software Request Form http://www.mathworks.com/academia/student-competitions/software/Freescale_Cup_Offer%20of%20Complimentary%20Software%20License(s).pdf to take advantage of our software offer.   Deploy your Simulink models directly to the Freedom board and shield MathWorks is offering hardware support for the Freescale Cup hardware (FRDM-KL25Z, FRDM-MC-SHLD).  Find all relevant information on http://www.mathworks.com/hardware-support/frdm-kl25z.html and install your the package without additional fees. For more information visit the hardware support page http://www.mathworks.de/hardware-support/ and the MakerZone http://makerzone.mathworks.com/ .   Interactive tutorials There are a total of five tutorials, narrated by specialists from MathWorks that include interactive exercises to reinforce learning on our dedicated webpage: http://www.mathworks.de/academia/student-competitions/freescale-cup/ .   Technical support Send an email to [email protected] .   We are looking forward to working with you and wish you all the best.    Best regards, The MathWorks Student Competition Program  
View full article
S32Kの例 S32K1xx S32K144 例:S32K144 CMPラウンド・ロビンS32DS2.0  例:S32K144バックドア・アクセス・キー検証S32DS1.3  例:S32K144 FlexCAN0 RXFIFO DMA非SDK S32DS13  例:S32K144 PDB ADCトリガDMA ISR S32DS  例:S32K144 Flash RWシンプルS32DS  例:S32K144 DMAメモリ・コピー・テストS32DS  例:S32K144 EEEPROMの使用方法 例:S32K144 EEEPROMの使用方法 - 非SDK  例:S32K144 RTC VLPS  例:S32K144 WDOG RCM割り込み  例:S32K144 SRAM ECC注入  例 S32K144 RAM 保持 S32DS.R1 例:S32K144 I2CマスタMPL3115A2 S32DSR1_v3  例:S32K144 FlexCAN RXFIFO DMA S32DS.ARM.2018.R1  例:S32K144_printf_implementation - S32DS_1.0  例:FreeRTOS環境でのS32k144 UART printf/scanf - S32DS 例:S32K144 LPITタイマを使用した構成可能期間に対するSDK関数の呼び出し  例:S32K144 .noinitセクションの使用方法 例:S32K144 PDB ADC DMA S32DS.ARM.2018.R1   例:S32K144 RAMセルフテスト・シンプルS32DS 2018.R1  例:S32K144ポジショニング独立コード 例:S32K144 FlexCAN疑似ネットワーキングSTOPモードのテストS32DS.ARM.2.2  例:S32K144 LPIT DMA LPSPI  例:S32K144 FlexCAN TX/RX/エラーISRテストS32DS2.2  例:S32K144 FlexIOアイドル検出S32DS2.2 S32K146 S32K146 Set_whole_FlexRAM-as_RAM S32DS.ARM.2.2の例 S32K148 例:S32K148 PDB0-PDB1リングS32DS3.4 RTM4.0.3  例:S32K148 PDB0-PDB1 ring DMA S32DS3.4 RTM4.0.3  例:S32K148 GPIO割り込み  S32K116 例:S32K116 WDOG高速テスト  例:S32K116 LPUART LINスレーブTXRX ISR S32DS.ARM.2.2  例 S32K116 FlexCAN PN STOP S32DS.ARM.2.2 例:S32K116 FlexCAN VLPRテストS32DS.ARM.2.2 S32K118 例 S32K118-SRAM-keep_data_over_SW_reset v0_1 S32DS.ARM.2.2 S32K3XXシリーズ S32K344 例:S32K344 PIT BTCU ADC DMA DS3.4 RTD100   例:S32K344 FlexCAN_Ip TX/RX/EnhanceRXFIFOテストS32DS3.4 RTD200     例Siul2_Port_Ip_Example_S32K344_ITCM_DTCM S32DS3.4RTD300   例:S32K358 FlexCAN TXRX ISR S32DS35 RTD400/500     
View full article
[S32K324 / 定制板] HSE 固件已安装 (0x4039C028=1) 但初始化失败 (0x4038C107=0) 大家好, 我正在寻求有关 S32K324 定制板上 HSE 固件初始化无法完成的问题的建议。 1. 开发环境 MCU:S32K324(定制板) HSE固件:s32k3x4_hse_fw_1.5.0_2.55.0_pb250130.bin.pink 调试器:S32DS + T32 (Trace32) 2. 进度和状态登记册 已成功在 UTEST 区域 (0x1B000000) 中编程 HSE FW 使用标志。 已将粉色图像二进制文件下载到闪存中。 执行上电复位(POR)后,状态寄存器如下: 0x4039C028 (HSE GPR): 0x01 (安装已确认) 0x4038C107 (HSE_STATUS_INIT_OK): 0x00 (启动过程中停止) 3. 问题 我想请教各位专家以下问题: 我首先应该检查什么? 由于安装成功但初始化失败,是否有任何特定的寄存器(例如,故障状态)或硬件信号需要检查以找出确切的原因? 自定义板环境是否会影响初始化失败? 由于我使用的是定制板,我怀疑硬件差异(例如,初始晶振频率)或主核心(M7)的早期时钟(PLL)配置代码可能会干扰 HSE 启动序列。如果这是一个已知问题,能否指导我推荐的启动顺序(例如,在进行任何时钟设置之前轮询 INIT_OK 标志)或可能的解决方案? 任何线索都将对我们大有帮助。感谢您的支持! Re: [S32K324 / Custom Board] HSE FW Installed (0x4039C028=1) but Init Failed (0x4038C107=0) 您好, 非常感谢您提供的清晰指导。 首先,我使用演示应用程序进行固件安装,然后在系统启动状态下转储 MU 和 HSE GPR 寄存器值。如果这些注册地址有任何错误,请告知我。 结果如下: 1. MU0 寄存器(基地址:0x4038C000)     2. HSE GPR 寄存器(基地址:0x4039C000)   请您审核一下这些数值好吗?我非常希望您能提供专业意见,帮我判断这些是否表明存在具体的错误原因,例如时钟配置冲突或固件认证失败。 再次感谢您的时间和支持! Re: [S32K324 / Custom Board] HSE FW Installed (0x4039C028=1) but Init Failed (0x4038C107=0) 请问您能否提供以下信息? MU寄存器、FSR、GSR等: HSE GPR3: Re: [S32K324 / Custom Board] HSE FW Installed (0x4039C028=1) but Init Failed (0x4038C107=0) 谢谢。但我需要看到 HSE 核心处于 WFI 状态时的屏幕截图,而不是 RESET 后立即显示的屏幕截图。
View full article
EdgeLock SE050/SE051 功能查询(适用于基于 Ed25519/X25519 的物联网设备) 您好,NXP团队, 我们正在评估 EdgeLock SE050/SE051 系列产品,以用于基于 Raspberry Pi 的物联网设备,希望您能指导我们选择最合适的零件编号。 我们的主要需求是安全存储和硬件执行加密操作。 该设备是树莓派 4,运行树莓派操作系统(Linux)。 我们希望就以下几点得到澄清: 1. 密钥存储 - SE050/SE051 能否安全地存储不可导出的私钥? - 证书和公钥可以存储在安全元件中吗? 2. 密钥生成 安全元件能否在内部生成密钥对? - 具体来说,它是否支持在安全元件内生成 Ed25519 和 X25519 密钥对? 3. Ed25519 操作 - 安全元件内部是否可以支持 Ed25519 签名和签名验证? 4. X25519 操作 - 能否使用不可导出的私钥在安全元件内部执行 X25519 密钥协商(ECDH 共享秘密计算)? 5. AES 操作 - 该安全元件是否支持 AES 加密和解密操作? - 如果支持,支持哪些AES模式?   6. 存储读/写 - 存储/删除/访问类似WiFi密码的文件? 7. Linux/Raspberry Pi 集成 - 是否有适用于 Raspberry Pi OS 的 SDK 或中间件? - 是否有示例应用程序演示上述操作? 8. 产品选择 - 对于上述要求,您会推荐哪款 EdgeLock SE050/SE051 型号? - 推荐的几种方案之间主要有哪些区别? - 是否有更新的 EdgeLock 产品更符合这些要求? 我们的预期用途是: - Ed25519 用于设备认证/JWT 生成签名 - X25519 移动设备配置密钥协议 - 使用派生会话密钥进行 AES 加密/解密 - 存储和处理安全文件,例如 Wi-Fi 密码等。 - 物联网设备的大规模部署 如果可以,我们也希望您能提供以下任何链接: - 相关数据表 - 应用说明 - SDK 文档 - 评估板 - Linux/Raspberry Pi 示例 谢谢你的帮助。 此致, 萨希尔·派 Re: EdgeLock SE050/SE051 Capability Inquiry for Ed25519/X25519-Based IoT Device 嗨@SahilPai , 请允许我发表以下意见: 1. 密钥存储 - SE050/SE051 能否安全地存储不可导出的私钥?//是的,SE05x 上私钥不可导出。 - 证书和公钥可以存储在安全元件中吗?// 是的,证书以二进制文件的形式存储在 SE 中,公钥可以单独存储,也可以与私钥一起存储在 SE05x 中。 2. 密钥生成 - 安全元件能否在内部生成密钥对?// 是的,它支持。 具体来说,它是否支持在安全元件内部生成 Ed25519 和 X25519 密钥对?是的,支持 Ed25519 和 X25519 密钥对。 3. Ed25519 操作 - 安全元件内部是否支持 Ed25519 签名和签名验证?//是的,SE05x 支持 Ed25519 签名和签名验证。 4. X25519 操作 - 能否使用不可导出的私钥在安全元件内部执行 X25519 密钥协商(ECDH 共享秘密计算)?//是的,ECDH 可以使用 SE05x 内部的私钥和也可以存储在 SE05x 中的外部公钥执行。 5. AES 操作 - 该安全元件是否支持 AES 加密和解密操作?//是的, 如果支持,那么支持哪些AES模式?支持 AES 模式:密码块链接(CBC)、ECB、CTR、GCM、CCM。   6. 存储读/写 - 存储/删除/访问文件,例如 WiFi 密码?//是的,SE050/SE051 可以在其安全对象存储中存储二进制对象,包括Wi-Fi 凭证。 7. Linux/Raspberry Pi 集成 - 是否有适用于 Raspberry Pi OS 的 SDK 或中间件?// 是的,详情请参阅https://www.nxp.com/webapp/Download?colCode=SE05x-PLUG-TRUST-MW&appType=license 。 - 是否有示例应用程序演示上述操作?//有。 8. 产品选择 - 对于上述要求,您会推荐哪款 EdgeLock SE050/SE051 型号?//SE050E2 或 SE051C2 均可使用。 - 推荐的几种方案之间主要有哪些区别?//它们都拥有最新的小程序版本,但 SE051 支持小程序升级,而 SE050 不支持。 - 是否有更新的EdgeLock产品更符合这些要求?//没有但目前为止是这样。   更多详情请参阅https://www.nxp.com/products/SE050和https://www.nxp.com/products/SE051 。   希望对您有所帮助。   祝你有美好的一天, 坎 ------------------------------------------------------------------------------- 笔记: - 如果此回复解答了您的问题,请点击“标记为正确答案”按钮。谢谢你! - 我们会持续关注帖子,从最后一条回复发出后持续7周,之后的回复将被忽略。 如果您之后有相关问题,请另开新帖并引用已关闭的帖子。 -------------------------------------------------------------------------------
View full article
外部供給クロック信号の電圧仕様(MCX A185 VLH) 最大値が見つかりません。データシート上のMCXA185VLH MCUのEXTAL48Mピンで許容される電圧。 LPCxxxファミリのマイクロコントローラでは、発振器入力がこの振幅(0.85Vppなど)に非常に厳格であることを知っています。 外部から生成された3.3Vの発振クロック信号を直接EXTAL48Mピンに送ることはできますか? クロック|タイマー MCXA Re: Voltage specification for externally provided clock signal (MCX A185 VLH) 投稿ありがとうございます。 はい、データシートには最大 Vec (外部から提供される入力クロック振幅) が指定されています。電圧はVIHとして表されます。しかし、VIHは0.7xVDDなので、VDD=3.3Vの場合、最大ベクトル。電圧は2.31Vのみになります。 つまり、このデータシートの仕様が間違っているか、VDD=3.3Vの場合、Vecの最大値は実際には2.31Vなのでしょうか? Re: Voltage specification for externally provided clock signal (MCX A185 VLH) こんにちは、 @wyss-11 投稿ありがとうございます! MCXA18にはEXTAL48M入力電圧の定義がありますが、それは独立した固定のEXTAL48M電圧値としてではなく、VDDに対する標準入力しきい値VIH/VILを介して間接的に指定されます。 データシートには、発振のピークツーピーク振幅が標準値として0.6Vと記載されているだけです。 VDDが3.3 Vの場合EXTAL48M、クロックがVIH/VILの閾値を満たし、かつVDD + 0.3 Vの入力制限を超えない限り、3.3 Vの外部発振器で駆動可能です。 Re: Voltage specification for externally provided clock signal (MCX A185 VLH) こんにちは、 @wyss-11 VEC仕様とは、外部発振器入力が有効な低状態および高状態を認識するために必要な最小電圧レベルを指します。 VDD = 3.3 Vの場合、2.31 Vは有効なハイレベルとして検出される最小電圧です。
View full article
VS code extension update broke RTOS viewer Hello, Until now we were using vscode tool version 1.9.20 (old), and we were using https://marketplace.visualstudio.com/items?itemName=mcu-debug.rtos-views to view the status of freertos threads (RT1189). After the update the tool no longer works and just shows "RTOS detection did not finish. It will be resumed on the next halt."  Any suggestions? Thanks Re: VS code extension update broke RTOS viewer Hi, MCUXpresso for VS Code has own RTOS viewer for a long time. Please check https://mcuxpresso.nxp.com/mcux-vscode/latest//html/RTOS-Details.html  Also, old change, the extension migrated from using Microsoft C/C++ Debug Adapter to own debug adapter based on Cortex-Debug. You have to create a new Debug Configuration that will automatically create one based on our debug adapter (you'll notice "mcuxpresso-debug" as type). PS. Please be aware that if you are using Segger debug probe, this requires special enablement for RTOS support (see https://mcuxpresso.nxp.com/mcux-vscode/latest//html/Debug-Views.html#enabling-rtos-awareness) Regards, Cristian Re: VS code extension update broke RTOS viewer Ok I got it working, we where compiling with -Og flag in debug and changing that to -O0 made the viewer work. But I guess the tool needs improvement as Og shall be default for standard edit-debug process?. Unrelated to this, I also see this warning in debug console "warning: could not convert ' \Main.cpp' from the host encoding (CP1252) to UTF-32. This normally should not happen, please file a bug report." Thanks Re: VS code extension update broke RTOS viewer Thanks, In fact the message is coming from MCUXpresso RTOS view itself (I incorrectly referred a different plugin).  I have attached the launch.json and custom device script (it is same as MIMXRT1180-EVK.json for Linkserver 26.3.123, but the "connect-script" is "RT1180_reset.scp".  Our app runs in hyperram and uses SDK 2.16. Freertos variables are correctly set. I can debug an step through our app, but RTOS Details view still shows "RTOS detection did not finish. It will be resumed on the next halt."  Thanks Re: VS code extension update broke RTOS viewer @cristiantepus any updates on this? Re: VS code extension update broke RTOS viewer Today I found that MCUXpresso RTOS viewer does not work in release mode, and does not show anything. But https://marketplace.visualstudio.com/items?itemName=mcu-debug.rtos-views works with -Og and in release modes, but cannot work with current mcuxpresso vscode plugin (gets disabled?). Is there a way to bring that back? Re: VS code extension update broke RTOS viewer Hi @arunkumar_g, The RTOS details view we offer is relying on the existence of some symbols inside the ELF file (e.g. "FreeRTOSDebugConfig", "pxCurrentTCB", "uxCurrentNumberOfTasks", and many more). I agree that the "RTOS detection did not finish. It will be resumed on the next halt." does not guide on what went wrong and we'll make sure to make this clearer. Regarding the results you obtained for "debug" vs. "release", I'd say this is the result of compiler/linker optimizations -- required symbols are stripped-out so any consumer will not find these. In this case, not only the RTOS Details view will fail but the low-level GDB Thread Awareness (LinkServer, J-Link, PEmicro) will be unable to show and debug FreeRTOS tasks in Call Stack view. In this case, I can only suggest you make sure you update the code so that you ensure the presence of the required symbols in both, "debug" and "release" build modes. We'll make sure to update the documentation and the information from the tool to make it clear what symbols are required but are missing -- thus making the views unable to show data. You also mentioned that MCU Debug RTOS view is working in this particular case. Could be, but the last time I checked there was no support any kind of versioning support (version is found by inspecting "FreeRTOSDebugConfig"). And keep in mind that the FreeRTOS data structures are really specific to the RTOS version. To enable MCU Debug views you could ask the maintainers how to add the "mcuxpresso-debug" debug adapter (MCUXpresso specific) in the supported list. Given that you're using a project based on an old SDK 2.16, I'd also suggest switching to the latest MCUXpresso SDK based on CMake & Kconfig.   Some useful links: - RTOS Details: RTOS Details — MCUXpresso for VS Code 26.04 documentation - MCUXpresso SDK: MCUXpresso SDK Documentation — MCUXpresso SDK Documentation   Thanks, Adrian
View full article
带有 S32K5xx RTD 的时钟 IP 发出的 S32DS 警告 0.8.0 使用 S32K5xx RTD 时 0.8.0编译时,我收到了来自时钟 IP 模块的许多警告。 有办法纠正它们吗? 这些警告是否可以忽略? 有计划把它们修好吗? Re: S32DS Warnings from Clock IP with S32K5xx RTD 0.8.0 你好@DirkEtzler、 谢谢您的提问。如前所述,S32K5 系列目前是 NPI(新产品推出)设备。因此,所有支持请求必须直接通过指定的恩智浦 FAE 处理。 或者,请通过以下网址创建支持票据: https://support.nxp.com/s/?language=en_US 系统会自动将您的请求转给相应的 FAE 团队,以便提供进一步帮助。 感谢您的理解。 顺祝商祺! 帕维尔
View full article
TagXplorer - 没有可用的阅读器 我花了几个小时尝试将 TagXplorer 与 Identiv uTrust 3700 阅读器连接起来,但无法成功。我尝试用 OpenJDK 和 Oracle Java 8 运行 TagXplorer。无论我怎么尝试,用户界面(和日志)总是显示"没有可用的阅读器" 。 我已经安装了 Identiv 驱动程序。我使用的是 macOS 11.1,我已经在“安全与隐私”中启用了 java 的启用输入。 有人遇到过这样的问题吗? Re: TagXplorer - No reader available 我在使用 TagXplorer 时也遇到了同样的问题,为了找到可靠的解决方案,我一直很苦恼。我偶然发现了一个有助于简化收入计算的工具,在计划过程中使用加州净工资资源,就更容易准确地估算出实得金额。希望这能帮助其他同样受困于没有阅读器的人。 Re: TagXplorer - No reader available 我曾在 Mac 上试用过一段时间,但在遇到一个又一个问题后,最终改用了 Windows。 Re: TagXplorer - No reader available 你好 我在Mac上遇到了同样的问题,MAC OS Sonoma,也是使用Identiv uTrust 3700读卡器。我直接从Identiv网站上安装了驱动程序 我的 Java 版本是 1.8.0_421,虽然可以通过其他应用程序(如 NFC 工具)访问阅读器,但 "no reader available" 。 有谁在 MAC 上取得了成功? 非常感谢! Re: TagXplorer - No reader available 更新: 我第三次重新安装了驱动程序,现在可以连接标签了。但在我尝试运行的每个操作中(例如"读取 NDEF") 我现在得到的信息是"没有可用的支持阅读器" 。 Re: TagXplorer - No reader available 我用 sudo 命令运行该命令,在 TagXplorer 中找到了阅读器。 但是标签不会出现,当在阅读器上放置 NFC 标签时,LED 会发出一些信号,但是在 TagXplorer 中点击 " Connect Tag " 之后我会收到消息 " 税收不可用 "。 Re: TagXplorer - No reader available 有人解决了这个问题吗? 我这里也有同样的问题 Re: TagXplorer - No reader available 有人在 Mac 上解决了这个问题吗? 在 Windows 10 上,我把 Open FX Directories 放在了与 TagXplorer 相同的目录下,这一切都很完美,但在我的两台 Mac 上,TagXplorer 却无法看到阅读器。 我试着把驱动程序的 symobilc 链接放到与 TagXplorer 相同的目录下,但没有成功。 我可以看到读卡器已插入 USB 上的设备。 似乎与上述问题相同--在 64 Intel 上运行 12.5。 附上 Mac 目录运行时的屏幕截图。 我把 OPen FX 代码放在应用程序的一个文件夹中,然后在终端运行以下命令,成功地在 TagXplorer 目录中运行 TagXplorer: java --module-path /Applications/javafx-sdk/lib --add-modules javafx.controls,javafx.fxml -jar TagXplorer-v1.2.jar   欢迎就如何让 TagXplorer 看到阅读器提出任何想法 🙂   Re: TagXplorer - No reader available 我也遇到了和你完全一样的问题。 Re: TagXplorer - No reader available 您能否更具体地说明您是如何将其与 JavaFX 结合使用的?(安装 + 启动 TagXplorer) Re: TagXplorer - No reader available 更新: 在卡塔琳娜上,在我的一台老式 2013 Macbook Pro 上,阅读器没有通过 USB Adam Elements 6 端口 USB-C HUB 插入,而是直接插入 USB 2.0 端口,并且安装了 Oracle Java 9,阅读器立即就能读取。运行 jar 的输出显示与上述相同。 那么,卡塔利娜与大苏尔的对比可能是?pcsctest 确实检测到了阅读器。     Re: TagXplorer - No reader available @aaronqli @piotr_arteia 我现在已经在 Ubuntu 20.04 上试过了,结果大致相同。我采取的步骤是 在 Virtualbox 上安装 Ubuntu 按照设置指南安装 uTrust 3700 F 的驱动程序 安装 Oracle Java 9,因为其中包括 JavaFx - 检查版本 启动机器-使用 pcsc_scan 检查读卡器是否已连接(参见屏幕截图) 运行 TagXplorer - 结果与 MacOS 上一样,没有连接阅读器         本主题中是否有人对此有其他想法。如果有任何建议,我将不胜感激。我还附上了运行 jar 时的输出结果。 Re: TagXplorer - No reader available @aaronqli非常感谢你的更新。 🙂 我尝试使用 Oracle Java 11,但仍然没有显示。您使用什么命令运行 jar?你引用了 javafx 吗?如果是,是哪个版本?最后是 .jarTagXplorer 1.2?我真的很感谢您的帮助,这让我有点抓狂。 Re: TagXplorer - No reader available 给你们的快速更新:在我安装了 Oracle Java 11 的笔记本电脑(Big Sur,Macbook Pro late 2017)上运行正常。也许罪魁祸首是 OpenJDK / JavaFX Re: TagXplorer - No reader available 最后,我成功地在 Windows 10 电脑上实现了这一功能。 我在上一篇文章中说得不够准确。Windows 机器上的问题是 TagXplorer 无法启动。我成功地使用了这里给出的解决方案 https://community.nxp.com/t5/NFC/TagXplorer-v1-2-jar-cannot-start/m-p/918596#M5608,在第二次尝试启动应用程序时,它确认了设备。 我还是没有办法在 Mac 上做到这一点。 感谢您的回放! Re: TagXplorer - No reader available @piotr_arteia不幸的是,我这边没有。我有点困惑。 Re: TagXplorer - No reader available 这里也有同样的问题。 在 MacOS Catalina、BigSur 和 Windows Home 上检查了最新的 JDK 和驱动程序。 计算机能看到读取器,但 TagXplorer 却看不到。 @aaronqli,@WillHill,@Jonmixnblend你弄明白了吗? @Kan_Li,@IvanRuiz请提供帮助! Re: TagXplorer - No reader available 我的情况与@WillHill完全相同,但安装了 Big Sur 11.2.3、uTrust 3700F、uTrust 驱动程序。 使用: openjdk 15.0.2 2021-01-19 OpenJDK 运行时环境(版本 15.0.2 +7) OpenJDK 64 位服务器虚拟机(版本 15.0.2+7,混合模式、共享) ,我不得不下载并解除对 JafaFX 16 的隔离,才能让 TagXplorer 应用程序正常工作。 我知道 uTrust 已安装并正常运行,因为 pcstest 已成功完成,而且我可以在https://github.com/martinpaljak/GlobalPlatformPro中使用它。 很好。 Re: TagXplorer - No reader available 我遇到了同样的问题, 我使用的是 macOS BigSur 11.1 版 Java 8 更新版 281 我通过 USB 插入了 uTrust 3700 F(指示灯亮起,说明有电) 我从这里安装了驱动程序https://files.identiv.com/products/smart-card-readers/common-drivers/uTrust_MAC_Driver.zip 我已经重新启动了机器。 我正在运行 TagXplorer v1.2,当我按下连接阅读器时,得到的信息是"No Supported reader available" ,而下拉菜单中没有列出阅读器。 Re: TagXplorer - No reader available 在试图访问重要信息时遇到 "没有可用的阅读器 "信息,这听起来令人沮丧。我以前也遇到过类似的问题,仔细检查文件兼容性或尝试在不同的浏览器中打开文件通常会有帮助。当我需要可靠地获取当地房产详细信息时,我通常会参考杰克逊房产查询,因为它将记录整理得井井有条,而且易于浏览。希望访问问题能尽快得到解决,这样每个人都能不受干扰地浏览内容。 Re: TagXplorer - No reader available 感谢您分享这一最新消息!对于想要快速获取详细记录的人来说,您可能会发现布雷沃德县的文件非常有用,因为它以易于访问的格式提供了全面的信息。您可以查看更多详细信息,随时了解最近的申报和官方记录。这是一个方便的资源,可以有效地跟踪当地的房地产事务。     Re: TagXplorer - No reader available 我最近在试图访问一些记录时也遇到了同样的问题,这让我非常沮丧。我发现,使用马萨诸塞州遗嘱认证案例等资源对于浏览不同文件和了解相关流程非常有帮助。它使查找特定信息变得更加容易,尤其是在标准阅读器无法加载的情况下。绝对值得遇到类似情况的人一看。
View full article
S32 Design Studio 3.6.5 Release Announcement Product Release Announcement Analog & Automotive Embedded Systems S32 Design Studio 3.6.5 The Analog & Automotive Embedded Systems (AAES) - Software Development Tools Engineering Team at NXP Semiconductors is pleased to announce the release of the S32 Design Studio 3.6.5 with support for: AMCU AP RAS APN S32K3 Family S32G Family S32R41 Family S32J Family S32K1 Family S32ZE Family S32R45 Family   S32M2 Family S32N Family S32R47 Family       SAF8xxx Family   Major Features for S32 Design Studio 3.6.5 Installer S32 Design Studio 3.6.5 is delivered with all public NPI's in a single 2.63GB installer to improve first time user experience. Additional packages for alpha customers are available based on Flexera entitlement and can be installed on top of S32 Design Studio 3.6.5 using Extension and Updates.   Installer will require admin rights only when the user chooses to install components which need elevation (Visual Studio Redistributable or debugger drivers). If a user chooses a custom installation only with S32DS IDE and its components (no drivers) the installation will finish without admin rights. Platform IDE and UI Integrated Cody, the open-source Eclipse plugin from Sourcegraph, into S32 Design Studio. This plugin is installed by default, allowing users with a valid Cody license to log in directly within S32DS and access Generative AI features. Note: Users must agree to the Sourcegraph Terms of Service before using Cody. Enabled integration with the NXP Application Code Hub, allowing users to browse available examples and import them directly from the hub page into S32 Design Studio. Note: the application examples will be published soon on the Application Code Hub URL. Note: This image is taken from internal sources. The illustrated examples are currently under development and will be available soon. Extended the Quick Fix mechanism for the missing NPI and Real Time Drivers packages. Basically, an error message displays in the Problems view whenever the IDE identifies a missing package (build tool, NPI, RTD) associated with the current project. The Quick Fix automatically installs the missing package if it is available in the configured Update Sites. Note: not all scenarios are covered, there may be cases where the tool cannot determine if a package is missing. A new Recent tab has been added in S32DS Extensions and Updates to display the latest installed packages, providing a clear history of user actions related to package installations. In addition, the default sorting was changed in All tab to bring greater visibility to NXP packages. Added support for drag-and-drop of S32 Design Studio p2 update sites / installable packages into the S32DS Extensions & Updates window. Users can now simply drag the ZIP file into the window, and the package will be automatically inserted and selected, requiring only a click on Next to complete the installation. Significant improvements to Secure Debugging:  Added a dedicated Debug Card view that allows users to generate debug card binaries based on custom input. Implemented Challenge & Response functionality for Linux environment.  Enabled Secure Registry Key view for managing secure registry keys on Linux.  UI is aligned to the secure debugging functionality latest changes introduced by HSE2. Extended the S32 Debugger OS awareness support with FreeRTOS. OS threads are now visible in S32 Design Studio and user will be able to individually debug them. Extended the command line support to display OS threads and objects. Enable debug in low power mode with S32 Debugger for S32K3xx devices:  The debug session will recover after core exits low power or standby mode, allowing the user to continue application debugging. Debugging from the first instruction after low power exit is now possible by using this configuration command when starting the debug session: monitor template config :ccs:S32K3XX:SoC#0 6 1 Expanded the S32Trace debug-info parser to fully support DWARF-5, adding compatibility with projects using GCC 11.4 and newer. Major Features for NPIs S32N Family S32Flash Programmer improvements for erase and verify write operations on S32N5. S32G2/G3, S32J100, and SAF8xxx Families S32J100 development package is now public and delivered inside S32DS installer. Enabled debugging support for S32G2 devices on VDK R10. S32Flash Programmer enhancements for erase and verify write operations. Various bug fixes and improvements for arm cores and accelerators. This release is available for download on: S32 Design Studio 3.6.5 can be found on  nxp.com  Flexera catalogue S32 Design Studio for S32 Platform v.3.6 Target Audience: S32 Design Studio 3.6.5 and bundled NPIs releases are targeted for public audience. The Installation Procedure for Packages: Download S32 Design Studio v3.6.5, available on nxp.com and in Flexera catalogue S32 Design Studio for S32 Platform v.3.6. If you have any local admin restrictions(ex. Admin by Request) the installer will request elevation, alternatively you can use “Run as Administrator” to run the installer. Download any additional packages if it’s required. Start S32 Design Studio v3.6.5 and install the desired package. Go to  Help > S32DS Extensions and Updates. For additional packages, in the S32DS Extensions and Updates dialog box, drag the ZIP file into the window, and the package will be automatically inserted and selected, requiring only a click on Next to complete the installation, or click Add Update Sites. Navigate to the directory with the downloaded ZIP file. Choose it and click Open, then click OK. You will get back to S32DS Extensions and Updates and can use this dialog to select desired packages.​​ Technical Support: Please use the public community for general questions: https://community.nxp.com/community/s32/s32ds For internal packages please use INTERNAL S32DS NXP Community space:https://community.nxp.com/groups/internals32ds
View full article
S32K144:SimulinkでPWM生成にFlexIOピンを使用する方法はありますか 現在、SimulinkでPWM生成にFlexIOピンを使用する方法を理解しようとしています。Simulinkには、PWM生成にFlexIOピンを使用するためのブロックは見当たらず、I2C、SPI、およびUARTのみに使用されています。どんな助けでも大歓迎です。 Re:S32K144:SimulinkでPWM生成にFlexIOピンを使用する方法はありますか 教えて頂きありがとうございました
View full article
aarch64Linuxカーネルメモリ管理 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> aarch64 linuxカーネルメモリマッピングレイアウトと基本的な管理内容についての簡単な紹介。 内容は次のとおりです。 実行後のカーネルの仮想メモリのレイアウトとマッピング i.MX8QM/QXPカーネル予約メモリレイアウト カーネルメモリの割り当て方法と技術(Buddy、cma、IONなど) DMAバッファ管理、SWIOTLB、IOMMU GPU メモリ管理 さまざまなユースケースに合わせてメモリをカスタマイズする方法 安定性とパフォーマンスを向上させるためにCMAの使用を避ける方法 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> aarch64 linuxカーネルメモリマッピングレイアウトと基本的な管理内容についての簡単な紹介。 内容は次のとおりです。 実行後のカーネルの仮想メモリのレイアウトとマッピング i.MX8QM/QXPカーネル予約メモリレイアウト カーネルメモリの割り当て方法と技術(Buddy、cma、IONなど) DMAバッファ管理、SWIOTLB、IOMMU GPU メモリ管理 さまざまなユースケースに合わせてメモリをカスタマイズする方法 安定性とパフォーマンスを向上させるためにCMAの使用を避ける方法
View full article
eIQ Toolkit for MCU - 入门实验室 eIQ Toolkit 使用直观的GUI(名为eIQ Portal)和开发工作流工具以及命令行主机工具选项(作为eIQ ML软件开发环境一部分)支持机器学习开发。 开发人员可以创建、优化、调试和导出ML模型,以及导入数据集和模型,快速训练并部署神经网络模型和ML工作负载。 eIQ Portal提供可直接集成到eIQ推理引擎(如TensorFlow Lite和TensorFlow Lite for Microcontrollers)的输出TensorFlow Lite模型。使用名为Model Runner的工具,eIQ Toolkit还可以生成运行时洞察,帮助优化i.MX RT和i.MX设备上的神经网络架构。 这些实验将介绍如何使用eIQ Portal。建议按照以下顺序进行: 数据导入实验室 Model Runner实验室 这些实验室为使用FRDM-MCXN947和i.MX RT1170-EVK而编写,但也可以使用其他支持eIQ的设备。 MCX N i.MX RT1050 i.MX RT1060 i.MX RT1064 i.MX RT1160 i.MX RT1170 i.MX RT1180 i.MX RT500 i.MX RT600 有关eIQ Toolkit中包含的Time Series Studio工具的详细信息,请参阅Time Series Studio实验指南。 为了 i.MX RT
View full article
MBDT中的CAN总线处理 我正在使用 NXP 的 MBDT for S32K344 来配置 FlexCAN0。我想了解 CAN 消息处理的哪些部分由 NXP 模块/工具箱管理,哪些部分需要由应用程序处理。 仲裁和缓冲区处理是否由驱动程序/工具箱管理?例如:如果我先发送 0x18FEF111,那么 0x18FEEF00 都不会出现在总线上。但如果先发送 0x18FEEF00,则两者都会被发送。当两者同时触发信号时,只会显示其中一个。 那么,在同时发送多个帧时,是否需要为每个消息 ID 分配专用的发送硬件对象? MBDT 或 SDK 是否处理消息优先级,并在未收到 ACK 时自动重试? 如果高优先级 ID 失败(例如,没有收到 ACK),是否会阻塞其他消息?我们如何检测并从中恢复? 为了避免阻塞或消息丢失,模型中是否需要手动管理缓冲区分配或传输时序? 在 MBDT 中配置多个 Tx 消息 ID 的最佳方法是什么?使用动态缓冲区。 请明确哪些是内部处理的,哪些是我们需要在应用程序中处理的。 示例模型 Re: CAN Bus Handling in MBDT 你好@SorinIBancila , 我遇到了需要发送的帧数超过可用 HTH 硬件对象数量的情况。由于 S32CT 无法利用 CanIf 发送缓冲实现,您能否推荐一种基于 Simulink 的缓冲解决方案来解决此问题? 谢谢,此致敬礼! 桑德什 Re: CAN Bus Handling in MBDT 你好, 32 个 Can Hw 对象数量并非限制。根据你所使用的MCU型号,你还可以进一步提高这个限制。您可以修改 Can Hw Object Count 的数量,但如果您输入的数字过大,S32CT 将报错。 顺祝商祺! 索林·班奇拉 Re: CAN Bus Handling in MBDT 明白了!如果我需要发送超过 32 条消息,是否应该创建额外的发送硬件对象?另外,在 S32K3 中使用 S32CT,单个 CAN 收发器或控制器下最多可以配置多少个硬件对象? 想了解在限制条件下,如何以最佳方式构建大型消息集的 HOH。 Re: CAN Bus Handling in MBDT 你好, 你认为一次需要发送多少条信息? 我已在 S32K358 HVBMS 参考设计上测试了以下场景: 使用单个 TX 硬件对象,并将Can 硬件对象计数设置为 32(以允许缓冲区中最多 32 条消息)。 在 Simulink 中,我向消息缓冲区填充了 32 条消息,随着缓冲区填充的进行,消息优先级也随之增加,以验证仲裁过程。 结果: 正如预期的那样,由于消息缓冲区尚未完全填充,因此发送的第一批消息优先级较低。大约在第 6 条消息时,缓冲区已满,我们可以看到优先级较高的消息会先发送。 由于你想使用单个收发器,因此实际上不可能同时发送所有消息。 顺祝商祺! 索林·班奇拉 Re: CAN Bus Handling in MBDT 索林,你好 感谢您的意见! 我想说明在使用动态缓冲区时,在 MBDT 中配置多个 Tx 消息 ID 的最佳方法。就我而言,该控制器用于电动汽车应用,采用基于 J1939 的 CAN 设置,涉及数百个循环消息。 在 S32CT 中为每条消息创建单独的硬件对象似乎既不可扩展也不实用。我希望使用单个 Tx 硬件对象来动态处理多个消息,并通过一个 CAN 接口同时传输它们。 请问针对这种使用场景,推荐的配置或最佳实践是什么?另外,请推荐一些我需要参考的文档,以便了解 MBDT 中配置设置的工作原理和相关函数。 Re: CAN Bus Handling in MBDT 你好, 首先,我想指出的是,S32K3xx 的 MBDT 是基于 S32K3 RTD 的版本。外围设备的配置是在 S32 配置工具中完成的,以便您可以灵活地进行所需的设置。因此,要检查 NXP 的 MBDT S32K3xx 是否支持某个功能,您可以检查外设(在 S32K3 RTD 中)使用的源代码及其在 S32 配置工具中的可用设置。 在工具箱中,您可以在此处找到 FlexCAN 外设的实现: {toolboxRoot}/src/S32K3_RTD/SW32K3_S32M27x_RTD_R21-11_6.0.0/eclipse/plugins/Can_43_FLEXCAN_TS_T40D34M60I0R0/ 笔记!根据您使用的 MBDT S32K3 版本不同,S32K3 RTD 的名称可能会有所不同。 你问题的答案是基于我的经验,可能并不完全准确。 1、2 和 5:该工具箱不处理任何仲裁,但我不太确定 SDK 中有哪些选项可用于此目的。在你的示例中,你创建了另一个CanHardwareObject并使用它来发送第二条消息,但这种方法可能难以管理。第二个解决方案可能是增加Can Hw 对象计数,以允许缓冲区中存在更多消息。 3:S32K3 的 MBDT 不处理任何消息优先级。据我所知,FlexCAN 控制器负责重试发送消息,直到收到 ACK 为止,同时将消息阻塞在缓冲区中。 4. 检测消息是否已发送的一种方法是使用硬件中断回调中的CanIf_TxConfirmation中断来标记消息已发送。如果指定的 PDU 没有触发信号中断,则表示该消息未发送。此外,还有一个中断( CAN_ControllerBusOff )可用,当满足 CAN 总线关闭的条件时,该中断会产生触发信号。在 S32 配置工具中,有一个选项可以从总线关闭状态自动恢复。 如有任何疑问,请随时回复。 此致, 索林·班奇拉 Re: CAN Bus Handling in MBDT 你好, 您好,我认为绕过硬件对象数量限制的一种方法是配置多个 CAN 控制器并将它们连接到同一总线上。然后,为了避免接收来自其他 CAN 控制器的消息,您可以利用过滤代码和掩码在控制器级别直接丢弃消息。(卸载MCU)。 然后,在 Simulink 中,您可以使用 CAN 控制器向总线发送数据,无论是通过轮询方式还是您认为合适的任何方式。 我还没有尝试过这种方法,但我会随时向你汇报它是否有效。 此致, 索林·班奇拉
View full article
关于 S32K312 上 FlexCAN 增强型 RX FIFO + DMA 操作的说明需要澄清 你好 , 我们目前正在研究基于 S32K312 的 FlexCAN 增强型 RX FIFO 和 DMA, enhanced FIFOenhanced FIFO增强型先进先出   我们正在使用 rtd v 7.0.1,希望就我们遇到的几个问题和观察结果进行澄清。 1. MEX 配置验证 请您确认启用 DMA 的 FlexCAN 增强型 RX FIFO 的推荐 MEX 配置是什么?我们希望确保我们的配置符合预期的RTD使用模型。 2. 增强型接收 FIFO + DMA 数据丢失观察 根据 FlexCAN 勘误表中的建议,启用增强型 RX FIFO 时,以下消息缓冲区将不使用: MB0–MB7、MB10、MB12、MB20、MB22、MB30、MB32、MB40、MB50 和 MB60。 我们的配置如下: 增强型接收 FIFO 已启用 DMA已使能 水印配置为 10 个条目 DMA 将 FIFO 数据传输到软件缓冲区。 观察到的行为: CAN 消息已正确接收到增强型 RX FIFO 中。 DMA 可以成功传输数据,直到达到水印级别。 DMA完成中断被触发。 此后,在预期的下一个 FIFO 位置(从第 11 个 FIFO 条目开始)中未观察到传入的 CAN 消息。 观察到数据丢失和异常的先进先出(FIFO)行为。 请解释一下这种情况下的预期行为以及出现消息丢失的可能原因? 3. FlexCAN_Ip_RxFifo DMA 重配置 在调试 RTD 驱动程序时,我们观察到 FlexCAN_Ip_RxFifo API 似乎会重新配置 DMA 参数。 具体来说: 次要循环计数似乎已配置为 16 传输大小似乎为 4 字节 这导致总传输大小为 64 字节(或根据解释约为 68 字节),这似乎与参考手册中描述的增强型 RX FIFO 条目大小不符。 能否解释一下这个 API 的预期功能以及这些 DMA 设置背后的原理? 4. 增强型接收 FIFO 存储器观察 调试过程中还观察到,尽管 DMA 似乎将数据从 FIFO 传输到软件缓冲区: FIFO 内存区域仍然包含较旧的消息 ID。 内存浏览器似乎只显示第一个增强型 RX FIFO 元素。 先进先出位置似乎没有按预期更新。 附上屏幕截图供参考。 能否解释一下这是否是预期行为,以及在运行时调试期间应该如何解释增强型 RX FIFO 内存? 5. 结构尺寸不匹配 我们还观察到 RTD 结构与参考手册之间存在差异。 FlexCAN_Ip_MsgBuffType 在 RTD 中的大小:78 字节 根据参考手册,增强型 RX FIFO 元素大小为:80 字节 请问您能否解释一下: 为什么会出现这种尺寸差异? 是否需要考虑包装/对齐方面的问题? DMA 传输应该配置为 78 字节还是 80 字节? 预期用途案例 我们的要求是使用: 增强型接收 FIFO 基于DMA的接收 消息接收过程中不会出现 CPU 中断。 预期行为是: CAN 消息到达增强型 RX FIFO。 DMA 会自动将 FIFO 条目传输到软件缓冲区。 正常运行不需要软件轮询或接收中断处理。 有意避开增强型 RX FIFO 保留的消息缓冲区(MB0–MB7、MB10、MB12、MB20、MB22、MB30、MB32、MB40、MB50 和 MB60),而其余的消息缓冲区则用于传输。 申请它 请问您能否提供以下信息: 任何能够演示增强型 RX FIFO 与 DMA 操作的示例项目。 针对此用例推荐的RTD配置。 澄清 RTD 目前是否支持使用 DMA 进行连续增强型 RX FIFO 接收而无需软件重新激活。 任何实现增强型 RX FIFO + DMA 接收的裸机驱动程序示例。 感谢您的支持。 Re: Clarification Required on FlexCAN Enhanced RX FIFO + DMA Operation on S32K312 您好, 1. MEX 配置验证 A:看来您的 MEX 与您描述的设置不符。 - 水印设置为 1 - DMA传输配置并非必需,驱动程序会自动配置DMA,除非您想要自行设置DMA参数和传输方式。 2. 增强型接收 FIFO + DMA 数据丢失观察 A:DMA 完成中断后,所有接收到的消息都会被读取,并且分配的 DMA 通道将被禁用。 因此,如果不再调用 FlexCAN_Ip_RxFifo,RXFIFO 仍然会从条目 0 开始接收消息,但由于 DMA 没有再次启动,因此不会读取 RXFIFO。 3. FlexCAN_Ip_RxFifo DMA 重配置 A:什么是次要循环计数?驱动程序本身将次要循环大小(字节)设置为 80,以便从 RXFIFO 读取最多 64 字节的有效负载消息以及 IDHIT 和时间戳信息。 所以,我其实不太明白你的计算方法。或许可以分享一下你的代码 4. 增强型接收 FIFO 存储器观察 A:仅第一个增强型 RX FIFO 元素区域可见,表示增强型 FIFO 输出端口地址范围。调试期间不建议显示 RXFIFO 内存。为了使 FIFO 引擎正常运行,CPU 在 DMA 操作期间不应访问增强型 FIFO 输出端口地址范围,实际上显示此内存空间会导致对其进行读取。 5. 结构尺寸不匹配 A:FlexCAN_Ip_MsgBuffType 不能完全反映 RXFIFO 结构。传输结束时,驱动程序读取内部缓冲,并将相应的数据填充到用户缓冲区的相应字段中。 如上所述,DMA 应设置为每次 DMA 请求读取 80 字节。 驱动程序的编写方式是,在 DMA 完成并调用 FLEXCAN_EVENT_DMA_COMPLETE 事件后,需要重新激活 DMA(调用 FlexCAN_Ip_RxFifo)。 您可以参考下面的演示来增强 RXFIFO 和 DMA 的使用,但这是在 RTD400 中实现的。 https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K344-FlexCAN-Ip-TX-RX-EnhanceRXFIFO-DMA-test-S32DS3-5/ta-p/2015832 BR,彼得
View full article
imx8m 在不使用 WDOG_B 信号的情况下 RESET <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 您好, 我在自定义 imx8m 板上运行监视程序时遇到了问题。 我们的主板不使用 WDOG_B 信号进行 PMIC RESET,我们无法对此进行更改。 在 u-boot 中重置主板的工作原理与参考手册中给出的相同: 将 0x3028000 寄存器设置为 e.g.0x14 重置了 SOC,我的监视程序超时也是状态寄存器中重置的来源。此外,断言 SRS 位还会重置 SOC 并在状态寄存器中提供正确的重置源。 启动 Linux 后,这不再起作用——在强制监视程序超时后,SOC 就死机了。 电压源是 SOC 启动所需的,因此不会有问题。我们从 EMMC 和 RST 启动 引脚连接。 是否有其他提示可以检查,或者是否有人有相同的设置(没有 WDOG_B 信号到 PMIC)? 谢谢、 沃尔夫冈 i.MX 8M | i.MX 8M Mini | i.MX 8M Nano Yocto Project Re: imx8m reset without WDOG_B signal usage 添加此回复是因为我设法通过软件解决了同样的问题: 带有 IMX8MN + PCA9450 的定制板 使用 KConfig 自定义 Linux 发行版 RESET cmd 在 U-Boot 中起作用 任何 Linux 监视程序命令(重启等)都会挂起但不会 RESET 系统 GPIO2 (WDOG-B) 引脚不响应 Linux 看门狗命令 就我而言,有两个问题: 我没有在 KConfig(CONFIG_IMX2_WDT/imx2_wdt.c)中启用正确的 WDT 驱动程序。因此,内核无法正确处理看门狗命令。 主线内核中的 PCA9450 驱动程序(pca9450-regulator.c)无法正确处理重置控制寄存器选项——特别是无法进行完全的冷重置。我的设计要求 PCA9450 重启所有功能域的电源,但即使在 RESET 期间,驱动器也不会重启 LDO1/2 域的电源。PCA6450 数据手册提供了在所有功能域中循环电源的选项,只是主线内核驱动程序中没有处理这个问题。下面是探针函数的代码片段: if (of_property_read_bool(i2c->dev.of_node, "nxp,wdog_b-warm-reset")) reset_ctrl = WDOG_B_CFG_WARM; else reset_ctrl = WDOG_B_CFG_COLD_LDO12;   "WDOG_B_CFG_COLD 缺少一个选项。" 就我而言,我只是将其硬编码到我自己版本的驱动程序中,然后手动将其转入编译树。 虽然超级笨拙,但作为概念验证还是行之有效的。 我不确定是否有人是内核维护者,但我只是一个前端人员...   tl;dr: 1) 确保你在内核中编译了正确的 WDT 驱动程序,2) 如果你使用的是 PCA9450 PMIC,请检查稳压器驱动程序以确保它能给你完整的冷RESET流程。   希望对大家有所帮助! Re: imx8m reset without WDOG_B signal usage 我最近遇到了这个问题,发现它与 PSCI cpu-idle 有关。如果你禁用 CONFIG_ARM_PSCI_CPUIDLE,或者使用 cpuidle.off=1 启动这通常会禁用 cpuidle 我发现系统正在按预期进行热RESET。不过,我不确定是什么原因造成了这种情况。 Re: imx8m reset without WDOG_B signal usage @siva_prabhakara你找到解决这个问题的固件了吗? Re: imx8m reset without WDOG_B signal usage 你好,我在基于 imx8mm 的自定义板上遇到了同样的问题。Uboot “RESET” 命令按预期运行,但是linux的 “重启” 命令挂起,没有任何特定的错误输出。 有人知道如何在不修改硬件的情况下解决这个问题吗? 提前感谢! Justin D. Re: imx8m reset without WDOG_B signal usage 你好,西瓦、 就像沃尔夫冈一样。在我们"修复了" ,或者让我说是优化了硬件之后,我们就没有再调查这个问题了。我们仍然使用内核 5.4.47。与此同时,还推出了更新的版本。也许其中包含一个修复程序。但老实说,我并不指望它。 如果你能找到任何软件修复方案,那就更有意思了。 顺祝商祺! 塞德里克 Re: imx8m reset without WDOG_B signal usage @cedric_starke 我在 imx8mm (5.4) 上也遇到了同样的问题kernel),您或其他人是否能够找出这里的软件问题? Re: imx8m reset without WDOG_B signal usage 你好,沃尔夫冈、 谢谢您的回答。我们也是用这种方法来完成重启工作的。幸运的是,我们已经 打算幸运的是,我们在电路板布局中已经考虑到了这一点,即使用一个未配备的电桥。在下一个版本中,我们将插入这座桥梁。 但在我看来,这是imx8m迷你软件包的软件问题。因为 uboot 可以在没有 POR_B 信号的情况下进行 RESET,而且 imx8m nano 也可以在 uboot 和 linux 中进行 RESET。 我们使用 4.14.98 和 5.4.47 版本对此进行了测试。在这两个"问题中," 。这只是为阅读本主题的其他人提供信息。 如果有人发现了软件错误,请随时发布,因为我们仍然对正确的解决方案感兴趣。 顺祝商祺! 塞德里克 Re: imx8m reset without WDOG_B signal usage 你好,塞德里克、 我们没有找到/搜索解决方案,但在下次重新设计中通过 100k PU 将 WDOG_B 引脚连接到 SOC RESET 引脚 (POR_B)。这样我们就可以在不触摸 PMIC 的情况下通过 看门狗 RESET SOC。 此致, 沃尔夫冈 Re: imx8m reset without WDOG_B signal usage 你好@wolfgang_baer、 我知道,这个问题其实并不新鲜,但我们的 imx8m mini 也遇到了同样的问题,我只想请教你们解决这个问题的办法。 此外,我们还发现,IMX8M mini 也会出现这种情况。我们为 imx8m nano 使用了相同的印刷电路板,该 SOC 能够正确重启。 因此,如果您能与我们分享您最后的状态,我们我们将不胜感激. 顺祝商祺! 塞德里克 Re: imx8m reset without WDOG_B signal usage 你们好 试着退出 SRSR RESET 状态寄存器 (0x3039005c)。它可以工作,但看起来状态从未改变过。无论我如何启动/重启/重置/关机/wdog/,i.mx8mm src_reg srsr 每次都是 0x01。 是否存在无法正常工作的已知问题? 还是我做错了什么? u-boot-imx_2019.04 u32 get_imx_reset_cause(void) { struct src *src_regs = (struct src *)SRC_BASE_ADDR; i@@ f (reset_cause == -1) { printf (" 0 src_regs %.8x\n ", src_regs); printf (" 0 src_regs %.8x\n ", & src_regs); printf (" 0 src_regs-> srsr %.8x\n ",src_regs - > srsr); printf (" 0 src_regs-> srsr %.8x\n ", & src_regs-> srsr); reset_cause = readl (& src_regs-> srsr);pr intf (" 1 重置原因 %.8x\n ", reset_cause); /* 保留 U-Boot 的值 */ #if! 已定义 (CONFIG_SPL_BUILD) & &! defined (CONFIG_ANDROID_BOOT_IMAGE) /* 稍后我们将读取安卓的 ssrs 状态,因此我们不会 * 在此处 清除状态。 */ writel (reset_cause,& src_regs-> srsr);printf (" 2 写入RESET原因 %.8x\n ", & src_regs-> srsr); printf (" 2 读取RESET原因 %.8x\n ",src_regs-srsr);printf (2 读取RESET原因 %.8x\n,src_regs-srs r) > srsr); #endif writel(reset_cause,& src_regs-> srsr); printf(" 3 2写入RESET原因 %.8x\n ",& src_regs-> srsr); printf(" 3read RESET原因 %.8x\n ", src_regs-> srsr);} 返回 reset_cause; } 感谢您的帮助。 Re: imx8m reset without WDOG_B signal usage <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 嗨,雷哈尼、 对不起--没有。我还没有找到解决这个问题的办法。 基本上,恩智浦表示要RESET PMIC——但这对我们来说也是行不不通的。 如果我们找到了解决方案,我会在这里报告。 此致, 沃尔夫冈 Re: imx8m reset without WDOG_B signal usage <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 你好,沃尔夫冈、 我也有同样的问题。你找到答案了吗? 此致, Reyhaneh Re: imx8m reset without WDOG_B signal usage <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 你好 让我看看原理图。我会提出申请。 此致, 尤里。 Re: imx8m reset without WDOG_B signal usage <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 你好,尤里、 是的,我们使用的是最新版本的 DDR 工具(V2.10)和最新的 LPDDR4 Excel 表(v23)。 压力测试可以在我们的板上正常运行。 如果我禁用 WDOG_B 断言功能,我还能在 EVK 板上看到同样的效果: -看门狗在 u-boot 提示符下工作-> 它会重置设备 -启动到 linux 提示符后-> 同样的监视程序调用只会使设备停止/冻结 此致, 沃尔夫冈 Re: imx8m reset without WDOG_B signal usage <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 你好 由于 i.MX8M 的 SPL 包含用于 DDR PHY 和 DDR 控制器初始化 以及 DDR PHY 培训的代码,因此通常建议使用 DDR 工具中的最新固件; 它应提供所有必要的初始化。 此外,让压力测试生效是有意义的。 https://community.nxp.com/docs/DOC-340179 此致, 尤里。 Re: imx8m reset without WDOG_B signal usage <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 你好,尤里、 在 u-boot 中对内存进行一次简单的 mtest 显示没有错误。 此外,在板启动期间进行的DDR工具压力测试现在显示出错误。 关于您在第一个帖子中提到的内存命令的文档/更改,您有什么提示吗? 谢谢! 沃尔夫冈 Re: imx8m reset without WDOG_B signal usage <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 你好 是否可以对U-boot进行简单的内存测试-以排除内存问题? 此致, 尤里。 Re: imx8m reset without WDOG_B signal usage <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 你好,尤里、 感谢您的快速回复。我知道有人建议断电,但如前所述,我们目前没有选择。 关于记忆。您的意思是在 SPL 中的 LPDDR4 初始化代码中执行上述命令吗? 您是否有关于这些命令的文档提示,因为我目前只是在 SPL DDR 初始化中使用 DDR 工具生成的 初始化代码。 你是否也知道为什么它能在 u-boot(命令提示符下)运行,但在加载 Linux 之后不行? 记忆方面有什么不同? 谢谢,非常感谢你们的帮助、 沃尔夫冈 Re: imx8m reset without WDOG_B signal usage <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 你好    建议断开板上所有元器件的电源(电压), 即使处理器RESET,因为某些外部设备,例如eMMC,SD, QSPI、DDR)可能处于不可预测的状态;因此系统启动不起作用。   我认为,在您的案例中,记忆就是原因。也许有必要发布 在 LPDDR 初始化开始时使用 preCharge All 命令并 RESET 读取 FIFO 指针。   祝您愉快, Yuri ------------------------------------------------------------------------------- 注: - 如果本帖回答了您的问题,请点击"标记正确" 按钮。谢谢! - 我们会在最后一次发帖后的 7 周内跟踪主题,之后的回复将被忽略 如果您以后有相关问题,请另开新主题并参考已关闭的主题。
View full article
S32K376 整车控制器VCU – 如何在 S32DS 中实现基于 SPI 的 DIO (MSDI)? 我正在开发 S32K376 整车控制器VCU POC 板,其中 MSDI 设备通过 SPI 连接。 从原理图来看,使用了以下 MSDI 相关信号: SPI 信号:MSDI_CS、MSDI_SCLK、MSDI_MOSI、MSDI_MISO 控制/状态信号:msdi_intb, msdi_wakeb 模拟/多路复用信号:MSDI_AMUX 用于数字输入和输出的MSDI SGx / SPx 引脚 我想使用带有 S32 配置工具 (S32CT) 的 MBDT(Simulink)来实现这一目标,但我不清楚正确的软件方法。 具体来说,我需要以下方面的指导: 如何在 S32CT 中配置和使用 SPI 引脚以使其与外部 MSDI 设备配合使用 MSDI_INTB 和 MSDI_WAKEB 应如何配置(DIO 与 ICU/EXTI)并在 MBDT 中处理 如何在软件中访问MSDI 数字输入/输出(SGx / SPx) 是否有任何 MCAL 支持模式? 还是应该通过自定义 SPI 命令 + 应用级抽象来实现? MSDI_AMUX 通常应如何处理(ADC 路径/预期用途) 我没有有效的参考资料或示例来展示在 S32K376/96 整车控制器VCU & 电池管理系统 示例 POC 项目中使用 MBDT + S32CT 的流程。 请提出建议的实施方法(分步实施或分块实施) Re: S32K376 VCU – How to implement SPI-based DIO (MSDI) in S32DS? 你好@mariuslucianand 能否请您对此发表评论? 先行致谢。 BR, Petr Re: S32K376 VCU – How to implement SPI-based DIO (MSDI) in S32DS? 大家好 由于没有人回复,我尝试了很多方法,但在使用 S32K396 在同一 VCU POC 板上工作时发现,外部 MSDI 设备通过 LPSPI3 连接。但是,SPI 初始化在运行时会出现总线故障。 观察到的问题 在执行 Lpspi_Ip_Init() 时,代码在以下位置出现故障: Base->CFGR1 = PhyUnitConfigPtr->Cfgr1; 调试器观察: 实例 = 3 基地址 = 0x40364000 寄存器内容如下verid = 53248 param = 53249 cr = 53249 sr = 53249 紧随其后:BusFault: imprecise data access error HardFault escalation:在访问 LPSPI3 的寄存器时发生。 请提供以下帮助: 具体是哪些配置/设置(参见附件)不正确?或 要正确访问 MSDI I/O 引脚数据,还需要哪些额外设置/MBDT 块集? Re: S32K376 VCU – How to implement SPI-based DIO (MSDI) in S32DS? 你好 请查看以下文章,获取有关配置 SPI 外设以从 MC33CD1030 IC 获取数据的帮助: 如何:使用恩智浦 MBDT 在 S32K396BMS-EVB 上安装 MSDI MC33CD1030 请注意,本文主要介绍从 MC33CD1030 IC 发送和接收数据的 SPI 配置。有关 CD1030 的更多信息,请查阅其数据表。 顺祝商祺! 索林-班奇拉
View full article
Connection problem with MCXN647 (Ee(42) error) Hi, I am having a problem with my FRDM-MCXN947 . Whenever I try to debug or flash my project, I get this error : I don't know if it's related, but it started when I changed this line in a while(1) loop to increase its frequency : SDK_DelayAtLeastUs(30000, SystemCoreClock); -> SDK_DelayAtLeastUs(10000, SystemCoreClock); I didn't update before the problem occurred, but I updated LinkFlash afterwards and it didn't solve anything. I already tried SPT erase but it didn't work. (Maybe I did it wrong.) On the SPT, after activating ISP mode, I was able to perform the “build image” and “write image” operations, but erasing still does not work. Thank you in advance for your help. PS: Please excuse my English and technical vocabulary, I am just starting this project at engineering school. Boot ROM|Booting | Flash Clock|Timers MCXN USB Re: Connection problem with MCXN647 (Ee(42) error) Hi @Peter-D  Please try using the Flash Programmer inside the SPT tool to erase and program a blinky SDK demo, and check whether it works properly. For details, please refer to the video in the attachment. If these steps work well but you still cannot debug with the onboard debugger, please use an external debugger to test. If you still have issues, please feel free to contact me. Thank you. BR Alice Re: Connection problem with MCXN647 (Ee(42) error) Hi @Alice_Yang, Thank you very much for your reply. I followed the instructions in the video, and the method works to make the LED flash. However, I get the same error when I return to the debugger from the MCUXpresso IDE. If the problem comes from the onboard debugger, I don't think I'll buy an external debugger such as PEMicro or SEGGER J-Link (if that's what you were referring to) especially since the board I'm using was lent to me at school. If I can't find a solution, I'll continue to use the flash programmer, which also works for my project, and I'll ask my professors if they have an external debugger. Best regards, Peter Re: Connection problem with MCXN647 (Ee(42) error) Hello @Peter-D  I’m not sure if the debugger on your board is actually broken. Please try updating the debugger firmware by following the instructions here: https://docs.nxp.com/bundle/UM12018/page/topics/Updating_MCU_Link_firmware.html  After the update, power cycle the board, create a new workspace in MCUXpresso IDE, import a fresh SDK demo, and try debugging again. It would be better if you could take a video and share it with me. I’ll help you check it. Thank you.     BR Alice Re: Connection problem with MCXN647 (Ee(42) error) Hello @Peter-D Thanks for your video. Please delete the .launch file (in below picture)and erase your board again. Use the Debug button shown in the picture below to start debugging. If it still doesn’t work, I recommend replacing the board. By the way, I will be on New Year holiday and will return on January 5th. If you still have questions, please contact me on that day. Thank you for your understanding, and Happy New Year! BR Alice Re: Connection problem with MCXN647 (Ee(42) error) Hello @Alice_Yang Thank you for your reply. I updated LinkServer as suggested, but I think I already had it after the problem appeared. I tried the update again anyway, then power-cycled the board, created a new workspace, and imported a demo project, but I am still getting the same Ee(42) error when trying to debug. I have recorded a short video showing the process, which I have attached. Thank you for your help, and I wish you a happy new year. Best regards, Peter
View full article
需要帮助:在 RT1189 上从 FlexSPI2 QSPI 闪存启动 我们正在尝试在自定义硬件上启动用户应用程序。这种定制硬件仅有 FlexSPI2 QSPI 闪存,使用端口 A 上的主引脚组进行连接。闪存设备是美光 MT25QU256ABA。RT1189 (RT1189CVM8C) 上的启动 ROM 无法正确配置内存,启动失败。但是,恩智浦安全配置工具可以成功读取和写入数据。 闪存配置块 (FCB) 是使用安全配置工具创建的: XIP 启动标头在映像编译本身中被禁用。取而代之的是,安全配置工具被配置为使用从简化用户界面生成的 FCB,使用上面屏幕截图中显示的确切设置。虽然上述截图中没有显示,但"测试连接" 已通过。 此外,当安全配置工具(此后称为 " SPT ")提示配置外部存储器时,处理器和该工具可以成功读取 FlexSPI2 内存。如下图所示。 当用户打开闪存编程器工具时,在弹出窗口中单击 " 是 " 和/或单击 " 配置外部存储器 " 按钮将导致 SPT 使用上面显示的闪存配置模块设置来初始化 FlexSPI2 闪存以进行编程。 以下屏幕截图是在刷新完整应用程序映像(偏移量 0x400 处的 FCB,偏移量 0x1000 处的用户应用程序)后捕获的: 这让我相信闪存配置块是正确的。 RT1180 上的以下熔丝位被烧毁。所有其他熔丝位均为默认值: BOOT_CFG0 [6] (BT_FUSE_SEL)-> 1b,用于启用从熔丝启动 BOOT_CFG2[7] (FLEXSPI_INSTANCE) -> 1b,用于选择 FlexSPI2(默认为 FlexSPI1)。 将 BOOT_MODE 引脚设置为 000b(用于 " 从内部熔丝启动)会导致 RT1189 没有任何活动。它需要启动到"无限循环" 模式,然后再返回到串行下载器模式,才能再次与它通信。 将 BOOT_MODE 引脚设置为 100b(用于从 FlexSPI " 启动 ")会导致 RT1189 保持 " 卡住 ",但可以被 jLink 调试探测器停止。 尝试使用 BOOT_MODE 100b 从 FlexSPI 启动后暂停时,检查 FlexSPI2 内存区域显示全部为零: 值得注意的是,"all zeroes" 与 RT1189 的 FlexSPI2 存储器区域的默认状态不一致。以下屏幕截图是在未配置外部存储器的情况下启动到串行下载器模式后捕获的: 最后一件事:用户应用程序中 MCUXpresso 示例的链接器脚本已更改为从 FlexSPI2 启动: 注意:截图中的标题显示"0x14000000" ,但"0x04000000" 才是代码中使用的真实值。这是一个错字 这一点在 SPT 中有所体现: 综上所述,我目前的理解是这样的: FCB 必须正确,否则 SPT 将无法与连接到 FlexSPI2 Bank A 的外部闪存交互。 ROM 本身在启动时必须尝试以某种不同于 SPT 的方式初始化该外部存储器。如果没有 RT1189 启动 ROM 的源代码,如果不对其进行逆向工程,我就无法进一步调试,而作为恩智浦的客户,我们无意这样做。 我的问题 是我们的配置出了什么问题导致了这种行为? 有没有办法调试启动 ROM 以了解为什么它无法初始化闪存? 谢谢 Re: Help Needed: Booting from FlexSPI2 QSPI Flash on RT1189 @Sam_Gao、 感谢您的回复。 正如原帖所述: 启动实例的选择正是你在评论和 AN14589 中指定的内容:BOOT_CFG2 [7] 是为了选择 FlexSPI2 而烧掉的。 应用程序代码被链接到指定的 FlexSPI2 内存映射区 (0x04000000)(m_start_flash 更改为 0x04000000)。在你的回复中,你以 " 0x40000000 " 的形式给出,这不正确,如上面提到的应用笔记和 RT1189 参考手册中所述: FCB 出现在预期偏移位置。我们甚至把闪存芯片换成了可以正常工作的 MIMXRT1180EVK,但仍然无法正常工作。 使用逻辑分析器,我们得以确定闪存配置模块很可能由启动 ROM 读取——不久之后,时钟速度从 30 MHz 变为 125 MHz,读取数据通过 SPI 数据线传输。 有没有什么机制可以进一步调试启动ROM或启动顺序? Re: Help Needed: Booting from FlexSPI2 QSPI Flash on RT1189 经过数周的努力,我能够通过链接到 ITCM (0xFFE00000) 而不是 XIP 来启动处理器。但这个主题仍然相关 -- 为什么 FlexSPI2 上的 XIP 无法正常工作? Re: Help Needed: Booting from FlexSPI2 QSPI Flash on RT1189 您好, 在像 RT1189 这样的设备上,它似乎无法从 FlexSPI2 QSPI 闪存启动,这通常源于一些常见的配置区域。以下是潜在问题的详细介绍,以及如何调试启动 ROM 过程以确定根本原因。 参考 AN14589:https://www.nxp.com/docs/en/application-note/AN14589.pdf 1。检查启动实例选择: 需要明确告知启动 ROM 使用 FlexSPI2 而不是默认的 FlexSPI1。 这由 BOOT_CFG2[7] 熔丝或引脚控制。 你需要确保 BOOT_CFG2[7] 设置为 1 才能选择 FlexSPI2 作为启动实例。 仍需要正确设置主启动模式引脚 ( BOOT_MODE[2:0]) 才能从串行 或非 (例如,'100')启动 2.应用程序链接器地址:为 FlexSPI2 制作可启动映像时,必须链接应用程序代码,以便从 FlexSPI2 内存映像运行。FlexSPI2 的起始地址为 0x40000000 。你需要修改项目的链接器文件,将闪存起始地址( m_flash_start )设置为 0x40000000 。参考:AN14589 第7页。 3.FCB:启动 ROM 需要在闪存的开头(通常在偏移量 0x400 处)有一个有效的 512 字节配置块,才能正确初始化外部 QSPI 设备。如果此模块缺失、损坏或与您使用的特定闪存芯片不匹配,则启动 ROM 将无法与闪存通信。更多详情,请参阅https://docs.mcuxpresso.nxp.com/secure/latest/06_processor_specific_workflow.html#preparing-source-image-for-rt118x-devices Re: Help Needed: Booting from FlexSPI2 QSPI Flash on RT1189 看来没有问题。 有关启动 ROM 和启动顺序的信息,请参阅 https://www.nxp.com/docs/en/application-note/AN14589.pdf 了解更多详情。 当设备"卡住时",不要将其RESET。例如,使用 JLink/debugger 直接连接到运行中的内核,检查以下寄存器状态: 程序计数器 (PC): 如果 PC 处于 0x2xxxxxxx(ROM 区域),则表示 ROM 仍在运行或陷入无限循环(如等待外设响应)。 如果 PC 指向 0x002xxxxx(OCRAM)或其他 RAM 区域,则 ROM 可能尝试了跳转,但应用程序崩溃了。 如果 PC 指向 0x4000xxx(FlexSPI2 AMBA 区域)并被读取为全零或出现总线错误,则会发生跳转,但是 XIP 访问失败。
View full article