Multi Source Translation Content

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

Multi Source Translation Content

Discussions

Sort by:
Lauterbach FCCU_Utility 插件 - S32K3xx Lauterbach FCCU_Utility 插件 - S32K3xx MPC57xx_FCCU_Utility_rev0.pdf 这个 Lauterbach 调试插件允许用户直接从调试器界面使用 FCCU 配置。这将加快开发速度,并且无需每次更改 FCCU 配置时重新编译和编程项目。 @Smartling Language Service 所提供的文档描述了如何使用 Lauterbach FCCU(故障收集和控制单元)外围扩展功能用于 S32K3xx 设备。期望用户对 FCCU 机制有深入了解,以便有效使用此扩展。 在这种情况下,这个调试器插件在多种使用场景中都可能非常有价值,例如 FA 或开发过程中的调试。 顺祝商祺! Peter
View full article
S32K144 CAN1 您好, 我有一个 S32K144 EvalBoard(版本 C),我正在尝试使用 CAN1,因为我还有另一块带有 CAN 收发器的板。 我的 Evalboard 通过 USB 与电脑连接。 CAN1_RX (PTA12 (J6_16)) 和 CAN1_TX (PTA13 (J6_14)) 连接到 SBC (TLE9471) 的 RX/TX。 我使用了 FlexCAN 示例,更改了所有 CAN0 -> CAN1,还更新了引脚配置(使用 PTA12/13 代替 PTA4/5)。 然后每隔 500ms 调用函数发送 CAN 消息 (FLEXCAN1_transmit_msg() ) 现在我有两个问题: 1) 重启程序后,程序在 CAN 初始化时崩溃 for(i=0; i<128; i++ ) { /* CAN1: clear 32 msg bufs x 4 words/msg buf = 128 words */ CAN1->RAMn[i] = 0; /* Clear msg buf word */ } DefaultISR: b DefaultISR .size DefaultISR, . - DefaultISR 当我注释掉这一部分时,它不会崩溃。 2) 我在 PTA12 和 PTA13 上安装了一个逻辑分析仪。但我看不到任何信号。 我预计每隔 500 毫秒就会在总线上看到一条 CAN 消息。或者至少在逻辑分析仪上看到一些信号 是否有说明如何正确初始化 CAN1? 通过 USB 使用 CAN0 的 5V 电压是不可能的,对吗? Re: S32K144 CAN1 嗨,@john_2、 首先,能否请您介绍一下您使用的 FlexCAN 示例?我想您指的是AN5413: S32K1xx 系列 Cookbook。另外,您能否确认 TLE9471 是否设置为正常模式并正确供电? 1) CAN1 实例的时钟是否正确,是否处于冻结模式?此外,CAN1 只有 16 MB,因此您需要清除 64 个字,而不是 128 个字:Re:为什么 FlexCAN init 在清除 RAMn 时停止?- 恩智浦社区。 2) 社区共享了一个示例例程,不过他们通过短接 Tx/Rx 测试了通信:已解决:CAN1 在 S32K144 中不起作用 - NXP 社区。 通过 USB 使用 CAN0 的 5V 电压是不可能的,对吗? 没错,EVB 需要 12V 才能连接 CAN,但是,这是针对板载收发器的。对于 CAN1,您需要配置外部收发器或将引脚穿过板自带的 TJA。 致以最诚挚的问候, Julián
View full article
Integrating EdgeLock® SE05X to MIMXRT1180-EVK DISCLAIMER APPLICABLE TO THIS DOCUMENT CONTENTS: Any support, information, and technology (“Materials”) provided by NXP are provided AS IS, without any warranty express or implied, and NXP disclaims all direct and indirect liability and damages in connection with the Material to the maximum extent permitted by the applicable law. NXP accepts no liability for any assistance with applications or product design.  Materials may only be used in connection with NXP products. Any feedback provided to NXP regarding the Materials may be used by NXP without restriction. Abstract This document is intended to guide developers to integrate the EdgeLock® SE050   security chip on the NXP MIMXRT1180EVK  development board to achieve hardware-level security enhancement. A secure element can be easily connected to any system, with the minimal requirements - only power and two pins for I2C are required. Additionally, it is easy to integrate thanks to the support of the Plug&Trust Middleware for the software on the host.  Hardware Prerequisite Host Platform:  MIMXRT1180EVK Expansion Board: OM-SE050X   Hardware setup 1.  Configure the OM-SE05xARD jumpers as below[1]: 2. Configure the jumpers on MIMXRT1180-EVK as default[2]:.  3. Mount OM-SE05xARD on MIMXRT1180-EVK Software Integration There are two methods to integrate the OM-SE05xARD to MIMXRT1180-EVK, one is based on SDK, and the other is based on zephyr. Users may select either of them according to their requirements. SDK Integration: Platform files generation The nano package offers a very simple way to integrate the MW on any MCU platforms, Users just need to add/modify the platform specific files which are maintained in simw-nanopkg/lib/platform folder. Applying the attached patch, you may easily have them as above. Import I2C demo project as a starting point We recommend starting the integration based on the SDK I2C demo as this project contain the sdk I2C driver code already, so for RT1180, we import evkmimxrt1180_lpi2c_polling_b2b_master_cm33 .   exclude the board files and use the ones from the nano package instead. import source files from the nano package Import the example code, here we select ex_se05x_crypto.c and main.c. Add definitions as below for nano package building , as well as the including paths. Building project: Debugging: Zephyr Integration: The integration is much simpler than SDK integration, since the platform specific files are already there, users just need to add the board overlay file for MIMXRT1180-EVK manually. The attached overlay file should be placed in the folder such as "workspace/modules/crypto/nxp-plugandtrust/examples/se05x_crypto/zephyr/boards/". Please note the guide for Zephyr Integration is ready on https://github.com/NXPPlugNTrust/nano-package/blob/master/zephyr/readme.rst , while the tested zephyr version still stays on v3.7.0, which hasn't supported MIMXRT1180-EVK yet. To have the support for MIMXRT1180-EVK, we have to use the latest zephyr, with a modified west.yml file.  Here are the steps we need to go through: $ rm workspace/ -rf $ mkdir -p workspace $ cd workspace/ $ git clone https://github.com/NXPPlugNTrust/nano-package.git //Edit ~/workspace/nano-package/zephyr/west.yml as below $ cd .. $ west init -m https://github.com/NXPPlugNTrust/nano-package.git --mf ~/workspace/nano-package/zephyr/west.yml ~/workspace/ $ cd workspace $ west update Build examples: $ cd workspace/ $ west build -b mimxrt1180_evk/mimxrt1189/cm33 modules/crypto/nxp-plugandtrust/examples/se05x_crypto/zephyr/ --pristine programming and run:   References: [1]EdgeLock SE05x Quick start guide with Raspberry Pi [2]i.MX RT1180 EVK Quick Start Guide
View full article
恩智浦 BLE 鉴定路线图 你好,恩智浦 版本 4.1.0 的 ZSDK 发行说明指定用于 SDK 版本的主机和控制器的 BLE 资格 ID: 3.3.4.2 蓝牙 LE 控制器认证 DN#:Q338616 链接:@https://qualification.bluetooth.com/ListingDetails/265687 3.3.4.3 线程 蓝牙 LE 主机 Zephyr 认证 DN#:Q305748 链接:@https://qualification.bluetooth.com/ListingDetails/227830 有关后续版本(请参阅 @ https://github.com/nxp-zephyr/nxp-zsdk/releases/)未指定任何资格 ID。这是否意味着 BLE 资格 ID 也适用于@v4.2.0?如果不是这样,那么恩智浦的资格认证路线图是什么;恩智浦 会定期重新认证新版本还是留给客户去做? 问候 Tonny Re: NXP BLE Qualification roadmap 你好,@tobg 您使用的是哪种恩智浦蓝牙产品? 如果您提供产品部件号,我可以为您提供我们用于蓝牙认证的控制器侧 QDID。 对于您提供的以下链接,我无法成功打开。 3.3.4.2 蓝牙 LE 控制器认证 DN#:Q338616 链接@https://qualification.bluetooth.com/ListingDetails/265687 3.3.4.3 线程 蓝牙 LE 主机 Zephyr 认证 DN#:Q305748 链接: @https://qualification.bluetooth.com/ListingDetails/227830 顺祝商祺! Christine。 Re: NXP BLE Qualification roadmap 非常感谢 Christine。 我没有找到阅读这份版本说明的方法。 这完美地回答了我的问题。 问候 Tonny
View full article
S32K3 : MCU 驱动器时钟监控模块 CMU_FC 参数计算 这里的副本 S32K3 团队, 客户:HERO Motor corp MCU:S32K3 RTD - 3.0.0 我要求澄清以下 三个问题:-- 1。CMU 阈值计算:参考手册详细说明了计算高阈值和低阈值的公式,这需要知道监测时钟和参考时钟的频率偏差。 -> 如果工具自动计算这些低阈值和高阈值,那么在外部振荡器的情况下,如何假定所需的频率偏差? -> 如果工具不能自动计算这些值,能否告知手动设置低频和高频阈值的正确步骤? 2.如果目前禁用了 CMU 监控,那么启用"MCU 寄存器值优化" 会对其他现有 MCU 配置产生什么影响? 3.我们是否必须启用一些中断才能触发信号时钟监控通知?请使用来自 S32DS MCU 驱动程序的快照图像封装所附的 Word 文件。 优先级:高 RTD S32_CONFIG_TOOL SAFETY_SW Re: S32K3 : MCU driver clock monitoring module CMU_FC params calculation 嗨,Nhi、 感谢你的支持 根据 S32K3 RM 高/低阈值计算公式。 参考时钟偏差和监测时钟偏差都是必需的。 配置工具中的偏差值是针对监测的时钟的,如何获得参考时钟偏差? BR Re: S32K3 : MCU driver clock monitoring module CMU_FC params calculation 您好@jianqiuhu、 驱动程序将获得参考时钟的最大偏差值,按照设备数据表转化为计算高、低频率的公式。 顺祝商祺! Nhi
View full article
KW47— SCH 和数据表之间的直流直流电容(Cout)的值不同。 KW47—数据表显示直流直流电容(Cout)的值为22uf,不得超过最小值(6uf)/最大值(30uf)。但是我们发现像SPF-91101_C这样的恩智浦SCH改用1μf。KW45 SCH 使用的 22uf 与数据表中的值相同。 那么,我们应该使用哪个值呢? Re: KW47— the value of DCDC capacitor (Cout) is different between SCH and datasheet. 你好 请帮助我们检查以下内容 首次成功设计 KW47(汽车级)或 MCX W72(物联网 / 工业级)PCB 的最佳方法 如有任何问题,与我们联系 Re: KW47— the value of DCDC capacitor (Cout) is different between SCH and datasheet. 你好, 我不明白你的意思。我的问题是关于DCDC的输出电容在原理图和数据表之间不匹配,而不是关于如何版本PCB。 Re: KW47— the value of DCDC capacitor (Cout) is different between SCH and datasheet. 你好@nicosuki,希望你一切都好。 对于给您带来的不便,我深表歉意,但由于该设备尚未正式上市,因此有关该产品的大部分信息仍在保密协议之下。现有信息是前面提到的:使用 KW47(汽车)或 MCX W72(物联网/工业)首次版本 PCB 的最佳方法 能否请您联系当初帮助您获得文件的人员? 致以最诚挚的问候, Ana Sofia。
View full article
uart0 in mke06128vqh4 Hello friends, I have a board that I designed with the MKE06Z128VQH4 microcontroller, in which I am using several outputs and inputs. I am using one KBI input, 3 timers, and one counter, so there’s no problem there — I’ve already done the configurations and they work. I am currently working on the UART0 serial port, where I connect a USB-TTL serial adapter to the PC to receive or send data. I haven’t been able to make it send or receive information using the SDK libraries. My configurations using MCUXpresso are as shown in the image: the pins: the clock, i have a external crystal 12MHZ: i can´t put the FEE option because the FLL have error, then i doing the configuration with FBELP. In the UART0 i doing the configuration with interrupt receive and transmitt polling. the sdk installed is: i have the example sdk: With those examples I still can’t get UART0 to work. I need some guidance — I’ve been trying for several days to get UART0 working. Re: uart0 in mke06128vqh4 Hello @Iotelctronic  Thanks for your question. Please first test the UART demo. Does the UART demo work properly on your side? Make sure the hardware connections are correct. Connect the proper TX and RX pins. Measure the TX/RX signals. BR Alice Re: uart0 in mke06128vqh4 Hello @Iotelctronic  Please use the demo as it is without any modifications. I have tested it on my side and found no issues BR Alice Re: uart0 in mke06128vqh4 hi alice! I tested with the demo using polling and it doesn't work. codigo main.c: #include "pin_mux.h" #include "board.h" #include "fsl_uart.h" /******************************************************************************* * Definitions ******************************************************************************/ /* UART instance and clock */ #define DEMO_UART UART1 #define DEMO_UART_CLK_FREQ CLOCK_GetFreq(kCLOCK_BusClk) /******************************************************************************* * Prototypes ******************************************************************************/ /******************************************************************************* * Variables ******************************************************************************/ uint8_t txbuff[] = "Uart polling example\r\nBoard will send back received characters\r\n"; uint8_t rxbuff[20] = {0}; /******************************************************************************* * Code ******************************************************************************/ /*! * @brief Main function */ int main(void) { uint8_t ch; uart_config_t config; BOARD_InitBootPins(); BOARD_InitBootClocks(); config.baudRate_Bps = 115200U; config.parityMode = kUART_ParityDisabled; config.stopBitCount = kUART_OneStopBit; //config.txFifoWatermark = 0; //config.rxFifoWatermark = 1; config.enableTx = false; config.enableRx = false; // UART_GetDefaultConfig(&config); // config.baudRate_Bps = BOARD_DEBUG_UART_BAUDRATE; // config.enableTx = true; //config.enableRx = true; UART_Init(DEMO_UART, &config, DEMO_UART_CLK_FREQ); UART_WriteBlocking(DEMO_UART, txbuff, sizeof(txbuff) - 1); while (1) { UART_ReadBlocking(DEMO_UART, &ch, 1); UART_WriteBlocking(DEMO_UART, &ch, 1); } } Re: uart0 in mke06128vqh4 Hello, I found the problem. The SDK examples and other projects I used with registers were not working for me; they always sent incorrect data and wrong characters. I’m using an external 12 MHz crystal, and it seems that with that crystal you can’t generate an exact baud rate of 115200. However, I changed the configuration to 8 MHz without desoldering the 12 MHz crystal, and it works fine. My big question is: why does it work if I modify the configuration to 8 MHz but don’t change the 12 MHz crystal? The code I’m showing is the modification I made in .freq = 8000000U. Is there an explanation for this? I also wanted to ask if the MKE06Z128VQH4 microcontroller has DMA to use with UART? /*********************************************************************************************************************** * This file was generated by the MCUXpresso Config Tools. Any manual edits made to this file * will be overwritten if the respective MCUXpresso Config Tools is used to update this file. **********************************************************************************************************************/ /* * How to setup clock using clock driver functions: * * 1. call CLOCK_SetSimSafeDivs() to set the system clock dividers in SIM to safe value. * * 2. If external oscillator is used Call CLOCK_SetXtal0Freq() to set XTAL0 frequency based on board settings and * call CLOCK_InitOsc0() to init the OSC. * * 3. Call CLOCK_BootToXxxMode()/CLOCK_SetXxxMode() to set ICS run at the target mode. * * 4. If ICSIRCLK is needed, call CLOCK_SetInternalRefClkConfig() to enable the clock. * * 5. call CLOCK_SetSimConfig() to configure the divider in sim. */ /* clang-format off */ /* TEXT BELOW IS USED AS SETTING FOR TOOLS ************************************* !!GlobalInfo product: Clocks v7.0 processor: MKE06Z128xxx4 package_id: MKE06Z128VLK4 mcu_data: ksdk2_0 processor_version: 9.0.0 * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/ /* clang-format on */ #include "clock_config.h" /******************************************************************************* * Definitions ******************************************************************************/ /******************************************************************************* * Variables ******************************************************************************/ /* System clock frequency. */ extern uint32_t SystemCoreClock; /******************************************************************************* ************************ BOARD_InitBootClocks function ************************ ******************************************************************************/ void BOARD_InitBootClocks(void) { BOARD_BootClockRUN(); } /******************************************************************************* ********************** Configuration BOARD_BootClockRUN *********************** ******************************************************************************/ /* clang-format off */ /* TEXT BELOW IS USED AS SETTING FOR TOOLS ************************************* !!Configuration name: BOARD_BootClockRUN called_from_default_init: true outputs: - {id: Bus_clock.outFreq, value: 20 MHz} - {id: Core_clock.outFreq, value: 40 MHz} - {id: Flash_clock.outFreq, value: 20 MHz} - {id: ICSFF_clock.outFreq, value: 31.25 kHz} - {id: ICSIR_clock.outFreq, value: 37.5 kHz} - {id: LPO_clock.outFreq, value: 1 kHz} - {id: OSCER_clock.outFreq, value: 8 MHz} - {id: Plat_clock.outFreq, value: 40 MHz} - {id: System_clock.outFreq, value: 40 MHz} - {id: Timer_clock.outFreq, value: 20 MHz} settings: - {id: ICSMode, value: FEE} - {id: ICS.BDIV.scale, value: '1', locked: true} - {id: ICS.IREFS.sel, value: ICS.RDIV} - {id: ICS.RDIV.scale, value: '256'} - {id: ICS_C1_IRCLKEN_CFG, value: Enabled} - {id: OSC_CR_OSCEN_CFG, value: Enabled} - {id: OSC_CR_OSC_MODE_CFG, value: ModeOscLowPower} - {id: OSC_CR_RANGE_CFG, value: High} - {id: OSC_CR_RANGE_RDIV_CFG, value: High} - {id: SIM.DIV2.scale, value: '2'} - {id: SIM.DIV3.scale, value: '2', locked: true} sources: - {id: OSC.OSC.outFreq, value: 8 MHz, enabled: true} * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/ /* clang-format on */ /******************************************************************************* * Variables for BOARD_BootClockRUN configuration ******************************************************************************/ const ics_config_t icsConfig_BOARD_BootClockRUN = { .icsMode = kICS_ModeFEE, /* FEE - FLL Engaged External */ .irClkEnableMode = kICS_IrclkEnable, /* ICSIRCLK enabled, ICSIRCLK disabled in STOP mode */ .bDiv = 0x0U, /* Bus clock divider: divided by 1 */ .rDiv = 0x3U, /* FLL external reference clock divider: divided by 256 */ }; const sim_clock_config_t simConfig_BOARD_BootClockRUN = { .outDiv1 = 0x0U, /* DIV1 clock divider: divided by 1 */ .outDiv2 = 0x1U, /* DIV2 clock divider: divided by 2 */ .outDiv3 = 0x1U, /* DIV3 clock divider: divided by 2 */ .busClkPrescaler = 0x0U, /* bus clock optional prescaler */ }; const osc_config_t oscConfig_BOARD_BootClockRUN = { .freq = 8000000U, /* Oscillator frequency: 12000000Hz */ .workMode = kOSC_ModeOscLowPower, /* Oscillator low power */ .enableMode = kOSC_Enable, /* Enable external reference clock, disable external reference clock in STOP mode */ }; /******************************************************************************* * Code for BOARD_BootClockRUN configuration ******************************************************************************/ void BOARD_BootClockRUN(void) { /* Set the system clock dividers in SIM to safe value. */ CLOCK_SetSimSafeDivs(); /* Initializes OSC0 according to board configuration. */ CLOCK_InitOsc0(&oscConfig_BOARD_BootClockRUN); CLOCK_SetXtal0Freq(oscConfig_BOARD_BootClockRUN.freq); /* Set ICS to FEE mode. */ CLOCK_BootToFeeMode(icsConfig_BOARD_BootClockRUN.bDiv, icsConfig_BOARD_BootClockRUN.rDiv); /* Configure the Internal Reference clock (ICSIRCLK). */ CLOCK_SetInternalRefClkConfig(icsConfig_BOARD_BootClockRUN.irClkEnableMode); /* Set the clock configuration in SIM module. */ CLOCK_SetSimConfig(&simConfig_BOARD_BootClockRUN); /* Set SystemCoreClock variable. */ SystemCoreClock = BOARD_BOOTCLOCKRUN_CORE_CLOCK; } Re: uart0 in mke06128vqh4 thanks the problem of clock is the crystal solder is 8MHZ not 12MHZ
View full article
スタンバイ モードから機能をリセットした後のウェイクアップ ソースの認識。 こんにちは、NXPさん 私はスリープウェイクアップアプリケーションに取り組んでいます。スタンバイウェイクアップ用のウェイクアップスリープ構成を構成しました。 私の質問は、スタンバイ ウェイクアップから機能をリセットした後、ウェイクアップ ソースをどのように知ることができるかということです。 Re: Wakeup Source Recognition after function reset from standby mode. こんにちは@aryandis 、 ウェイクアップ後、WISR/WISR_64 レジスタを読み取って、ウェイクアップの原因となったソースを特定CAN。スタンバイ終了後も値はそのまま保持されるため、スタンバイ RAM に保存したり、高速スタンバイ終了を使用したりする必要はありません。 Mcu_GetResetReason() は、前回のリセットがスタンバイ終了だったか、その他のリセット (HW、SW、WDG など) だったかを返しますが、ウェイクアップ ソース用の API はありません。 レジスタを読み取る場合は、メイン ルーチンがレジスタを保存する前にクリアしないようにし、立ち下がりエッジを使用する場合はパッド保持を有効にする必要があることに注意してください (このコミュニティ投稿を参照してください: Solved: WISR_64 no correct after wakeup from fast standby mode on S32K312 - NXPコミュニティ )。 コミュニティからの低電力の例をCAN参照できます。 S32K3 パワーマネージメント AN とデモ - NXPコミュニティ [RTD400 & 500 MCAL & IP] S32K3 パワーマネージメント AN とデモ - NXPコミュニティ MCAL レイヤーは、ウェイクアップ ソースを報告する EcuM モジュールも提供しますが、RTD パッケージは EcuM のスタブ ファイルのみを提供します。これらは参照用として使用することを目的としており、アプリケーションのニーズに応じて変更/置換できます。 よろしくお願いします、 ジュリアン Re: Wakeup Source Recognition after function reset from standby mode. 私は Autosar スタックを使用しているため、ウェイクアップ ソース ID が必要です。 機能リセット後にスタンバイ ドメインに保存するために WISR/WISR_64 値を構成するにはどうすればよいですか? CANどのように設定すればよいか教えていただけますか。 Re: Wakeup Source Recognition after function reset from standby mode. こんにちは@aryandis 、 はい、これはWkpu_Ip_GetInputState() を呼び出し、対応する WKPU チャネルが設定されている場合は TRUE を返し、フラグをクリアします。 ウェイクアップ (スタンバイ終了) 後、NVIC レジスタはデフォルトにリセットされます (すべてのペリフェラル割り込みが無効になります) が、WKPU レジスタの値と以前の状態は保持されます。したがって、ウェイクアップ後にプラットフォーム関数を呼び出してウェイクアップの割り込みを有効にすると(WKPU_IRQn に NVIC_ ISER を構成する)、プログラムはウェイクアップ割り込み関数にジャンプし、どのウェイクアップ ソースが発生したかを判別できます。 ウェイクアップ後の実行モードでウェイクアップの割り込みを有効にするプラットフォーム関数を呼び出さない場合は、Wkpu_Ip_GetInputState() 関数を呼び出してウェイクアップ ソースを判別できます。 ウェイクアップ後に直接レジスタを読み取るCAN。 よろしくお願いします、 ジュリアン Re: Wakeup Source Recognition after function reset from standby mode. はい、質問が1つあります。  EcuMモジュールを有効にし、EcuM_CheckWakeup()内でIcu_Checkwakeup()を呼び出しました。しかし、ICUウェイクアップイベント情報が発生してもEcuM_CheckWakeup()をトリガーできないという問題があります。(チャネル状態がRUNNINGであるため、EcuM_CheckWakeup()を呼び出すことができないためです。) EcuM_CheckWakeup() をどのようにトリガーすればよいですか? ISR と同じウェイクアップ ピンを作成して、EcuM_CheckWakeup()->Icu_CheckWakeup() を呼び出してビット ステータスを WAKEUP_STATE に設定し、EcuM_SerWakeupEvent() を呼び出すことはできますか? ISR として CAN 場合、どうすれば CAN できますか? Re: Wakeup Source Recognition after function reset from standby mode. こんにちは@aryandis 、 申し訳ありませんが、おっしゃる通りです。Icu_Init() 関数を呼び出すと、プラットフォーム 関数を呼び出す前に割り込みフラグがクリアされ、現在のモードが ICU_NORMAL_MODE に変更されます。SO、それ以前に Icu_Init() を呼び出すことはできません。これはドライバの制限のようです。社内チームにフィードバックをお願いします。 また、Icu_GetInputState() 関数内では、Icu_Init() 関数によって初期化する必要があるグローバル変数を使用します。このような状況では、Wkpu_Ip_GetInputState() 関数を呼び出して WISR または WISR_64 のステータスを確認してクリアするか、直接読み取ることができると思います。 よろしくお願いします、 ジュリアン Re: Wakeup Source Recognition after function reset from standby mode. 同じ問題をデバッグしたところ、ウォーム リセットのスタンバイ ウェイクアップ後の Icu_Init の開始時に ICU_NORMAL_MODE が設定されているため、ICU_CurrentMode が原因で EcuM_Checkwakeup が呼び出されなかったことがわかりました。 ウェイクアップ後に EcuM_Cehckwakeup が呼び出されるSOするにはどうすればいいですか? Re: Wakeup Source Recognition after function reset from standby mode. こんにちは、Julian_AragonM さん。スタンバイウェイクアップ後に Icu_Init() で現在のモードを ICU_NORMAL_MODE に変更することに関して、チームに一度連絡していただけますか。これを回避するにはどうすればよいですか? Re: Wakeup Source Recognition after function reset from standby mode. ウェイクアップ ソースは動作しており、ウェイクアップ後に Icu_ReportEvent が来ますが、Icu_CuurentMode 変数が原因で、Icu_Init() から ICU_NORMAL_MODE に初期化され、EcuM_CheckWakeup が呼び出されません。 EcuM_CheckWakeup は Icu_ReportwakeupAndOverFlow ICU ドライバから呼び出されています。 Icu_ReportwakeupAndOverFlow には、変数 Icu_CuurentMode から ICU_MODE_SLEEP マクロまでの条件チェックがあります。 Re: Wakeup Source Recognition after function reset from standby mode. こんにちは、 @aryandis さん。 Icu NORMAL モードでは、ウェイクアップ ソースの処理が妨げられることはありません。Icu が EcuM チェック ウェイクアップを妨げているコード部分を共有していただけますか?ICU モードに関係なく、Icu_CheckWakeup() が呼び出されることは CAN です。 社内チームからも返答がありました。 1.ご存知のとおり、Icu モジュールは、MCAL レイヤーでウェイクアップ ソースを直接チェックできる機能を提供していません。Icu はウェイクアップ ソース情報を EcuM モジュールに転送し、このモジュールはウェイクアップ ソースをチェックします。RTD ドライバでは、EcuM はスタブ モジュールであり、参照として使用することを目的としており、アプリケーションのニーズに応じて変更/置換できます。 ECU 状態マネージャの仕様は次のとおりです。 2. Icu 構成で、ユーザーが「IcuWkpuStandbyWakeSupport」を有効にすると、Icu_Init() は WISR フラグをクリアしません。 プロジェクトで、Wkpu_Ip レイヤーのウェイクアップ ソースを確認するには、以下のコードを参照します。 Icu_Init() 関数の前に Platform_Init(NULL_PTR); を呼び出すと、何らかの理由で WISR フラグが消去されることがわかりました。SO、この関数を Icu_Init() 関数の後に呼び出しました。 よろしくお願いします、 ジュリアン Re: Wakeup Source Recognition after function reset from standby mode. はい、正解です。そして、 Icu_CheckWakeup () は、マッピングした EcuM_CheckWakeup から呼び出されます。また、EcuM_CheckWakeup は、RTD の Icu_ReportWakeupAndOverflow API から呼び出され、SLEEP_MODE をチェックする条件を持ちます。SLEEP_MODE なしで EcuM_CheckWakeup がどのようにトリガーされるか。 それとも、ISR から EcuM_Checkwakeup を呼び出す必要がありますか? これはRTD 3.0.0のスナップショットです Re: Wakeup Source Recognition after function reset from standby mode. こんにちは@aryandis 、 Icu_CheckWakeup () は、ウェイクアップ後に (通常は EcuM によって) 呼び出され、ICU がソースを検証し、それが有効かどうかを EcuM に通知できるようにするためのパブリック AUTOSAR ICU API です。ドライバがSLEEPモードにあるかどうかには依存しません。 Icu_ReportWakeupAndOverflow () は RTD 内部および非 AUTOSAR であり、割り込みコンテキストからすぐにウェイクアップ (およびオーバーフロー) を報告するロジックをバンドルします。   ウェイクアップ後に、Icu_Init() を NORMAL に設定し (IcuWkpuStandbyWakeupSupport = true で WKPU フラグが保持されることを確認)、マップされた EcuM ウェイクアップ ソースを使用して Icu_CheckWakeup() を呼び出すことをお勧めします。これは、Icu_CurrentMode が NORMAL であっても機能します。   よろしくお願いします、 ジュリアン Re: Wakeup Source Recognition after function reset from standby mode. こんにちは@aryandis 、 私の見解では、選択肢は 2 つあります。 1.スタンバイ終了後、EcuM ステート マシンが RUN に移行する前に、 EcuM_Checkwakeup () を呼び出します。これにより、スタンバイ中にウェイクアップ ソースが処理されます。ウェイクアップ ソースが有効な場合、ECU は RUN 状態に戻ります。 これは、ECU 状態マネージャの仕様に記載されています。 2. ISR コンテキストを介してこれを呼び出すと、ウェイクアップ ソースが直ちに処理されます。 よろしくお願いします、 ジュリアン
View full article
use S32K314 DFlash to simulate EEPROM     Hello everyone! At present, the API of C40_ip component is used for the DFlash erase operation in the project. However, I found from the manual that the DFlash and PFlash of S32K314 have a lifespan of only 1000 cycles for sector erase. So I am eager to know how to use NXP approved EEEPROM drivers.     And most importantly, all the components used in this project belong to 'Drivers', not' MCAL '. I would like to know what solutions are currently available to increase the lifespan requirements for DFlaser erase and write cycles in the project.     Looking forward to receiving a response from the community. Re: use S32K314 DFlash to simulate EEPROM Solution for your issue is to use our EEPROM emulation drivers that are part of RTD driver package (FEE driver). Re: use S32K314 DFlash to simulate EEPROM Thank you very much for your reply! At present, I can only find the FEE component in the "MCAL" component, but all existing projects are developed based on the "Driver" component, mainly due to this contradiction. Re: use S32K314 DFlash to simulate EEPROM Thank you very much for your answer! I successfully found this demo in the IDE, and I would like to know if the components of "MCAL" and "Driver" can be mixed together? If possible, is it feasible to use the three fee components from "MCAL" instead of the "C40_ip" component in "Driver" as shown in the demo? Will there be compatibility issues? Re: use S32K314 DFlash to simulate EEPROM Curent RTD version is 6.0.0. Example and used drivers are following: Re: use S32K314 DFlash to simulate EEPROM Thank you for your reply! So to use the functionality of EEEPROM, is it currently recommended to fully use the "MCAL" component for implementation? For projects that have already developed most of the functionality and fully use the "Driver" component, the workload of porting is a bit heavy..... Re: use S32K314 DFlash to simulate EEPROM It is not recommended, you could choose one of these layers. Re: use S32K314 DFlash to simulate EEPROM I think it is basically up to you. Fee component will run above flash sections as defined so you can possibly use other section with IP layer, but it is up to you to guarantee coherency.
View full article
恩智浦(CTN730)编程器型号推荐 我们目前需要使用 J-Link 协议对 NXP CTN730 微控制器进行编程。能否推荐一款合适的恩智浦编程器型号? MCU-Link Pro 支持这种功能吗?如果可以,请提供一些有关配置的信息。我们需要购买编程器。 还有一个问题,我们需要同时下载固件。还请告诉我们如何做到这一点。 期待您的回复。 谢谢。 绿杨 Re: NXP(CTN730) Programmer model recommendation 嗨,KaiLi、 我是绿色的。 您在回复中说我们可以使用 MCU-Link Pro 下载固件。请将相关设计资源发给我。 我需要 MCU-Link Pro 的订单配置清单。请注意,我们需要使用 J-Link 将固件下载到 NXP CTN730。 谢谢。 绿色 Re: NXP(CTN730) Programmer model recommendation 好吧,我需要用公司的电子邮件辞掉账户。对不对? Re: NXP(CTN730) Programmer model recommendation 你好@青阳 LPC-Link2 或 MCU-Link Pro 支持 CTN730。 Re: NXP(CTN730) Programmer model recommendation 你好@青阳 所有与 WLC 相关的设计资源均为网络安全文件,因此请使用贵公司的电子邮件地址注册账户,然后与恩智浦签署保密协议。
View full article
什么是电池管理系统(BMS)?(日文博客) 电动汽车普及的原因是什么? 近年来,全球汽车行业正迅速向电动汽车转型。这不仅是一项技术创新,更是一项由多种因素复杂相互作用驱动的重大社会变革,其中包括: 环境因素:为应对全球变暖,需要减少二氧化碳排放。 电动汽车作为一种可持续的交通工具,因其在运行过程中不排放废气而备受关注。 政策支持:欧洲、中国和其他国家正在努力禁止销售汽油动力汽车。 此外,政府还出台了补贴等政策来促进电动汽车的购买,从而加速了电动汽车的普及。 技术进步:电池性能的提高正在改善电动汽车的续航里程和充电时间。 价格等障碍已经降低,使其成为普通消费者的现实选择。 在此背景下,如何安全管理电池并充分利用其便利性(这对电动汽车至关重要)的技术变得越来越重要。 什么是电池? 电池决定了电动汽车的性能、安全性和使用寿命。 电动汽车电池通常由数十到数百个相互连接的电池单元组成。 电池单元的化学结构多种多样,但每个单元的电压通常约为 3V。 出于组装方便等原因,有时会将多个电池单元捆绑在一起形成一个模块,称为电池模块。 电池组是一种将电池模块、BMS(如下所述)、电缆等部件封装在一个外壳中的设备。 电动汽车电池的总电压范围从几百伏到有时超过 1000 伏不等。 什么是电池管理系统(BMS)?它的作用是保护电池。 电池管理系统 (BMS)是一种用于安全高效地使用电池的管理系统。 电池管理系统 (BMS) 是一个持续监控电池状态并检测和控制异常情况的装置,从而防止事故发生,维护安全,并最大限度地提高性能。 鉴于上述原因,对于电动汽车等使用的可充电高压电池,始终需要电池管理系统 (BMS)。 电动汽车等车辆使用的高压电池的电池管理系统 (BMS) 通常由多个模块组成,每个模块对电池都起着至关重要的作用。 在这里,我们将介绍恩智浦设想的三种典型组件。 CMU(细胞监测单元) CMU 是连接到电池模块上的一个单元,用于测量每个电池单元的电压和温度。 从安全角度来看,实时准确掌握每个电池单元的状态至关重要。该系统具有以下功能: 防止过充和过放 细胞平衡以实现所有细胞的有效利用 早期发现异常细胞 CMU 提供准确的数据,以提高电池的整体稳定性和使用寿命。 CMU 也称为电池管理单元、BCC(电池单元控制器)。 BJB(电池接线盒) BJB 是一种测量整个电池组电流和电压的装置,具有保护功能,可在发生异常情况时物理切断电流。 它包含高压继电器、熔断器、电流传感器等元件,具有以下功能: 过电流和短路检测 安全充电和放电控制 发生异常情况时可靠地中断电流 万一出现问题,BJB 可保护电池、整车以及最终车内人员的安全,从而确保安全。 BJB的另一个名称:电池组监控器(仅用于监控功能) 电池管理单元 (BMU) BMU 是控制整个 BMS 并为其做出决策的中央单元。 它整合来自CMU和BJB的数据,并根据上位机的指令分析和控制电池状态。它具有以下功能: 荷电状态 (SOC) 估算 健康状况 (SOH) 评估 与其他单元(例如车辆ECU和充电器)的通信 电池管理单元 (BMU) 及其控制是决定电动汽车行驶效率和安全性的重要因素。 恩智浦的电池管理系统解决方案 随着电动汽车的发展,电池管理系统(BMS)也需要高精度、高可靠性和高安全性。 恩智浦提供符合这些要求的实用BMS参考设计。 基于ETPL的800V电池管理系统(BMS)参考设计 *ETPL:电传输协议链路 功能安全设计符合 ASIL D 标准 可扩展配置,支持高达 800V 的电压 提供的软件驱动程序 以下文件概述了恩智浦在电气化领域所做的努力。 我们希望您能浏览并了解更多关于我们产品及其功能的信息。 恩智浦的电气化解决方案  这些材料对于计划设计电池管理系统的工程师来说是非常有用的解决方案。 =========================== 更改历史记录 2025年8月28日:博客文章 ========================= 我们目前无法回复此帖子“评论”部分的评论。 对于由此造成的不便,我们深表歉意。如有任何疑问,请参阅“ NXP技术问题-如何联系我们(日语博客) ”。 (如果您已经是恩智浦的分销商或与恩智浦有合作关系,您可以直接询问负责人。) ​ 以下是电池管理系统(BMS)的概述。 电动汽车普及的原因是什么? 什么是电池? 什么是电池管理系统(BMS)?它的作用是保护电池。 恩智浦的电池管理系统解决方案 如果未来与BMS有业务往来的人能够读到这篇文章,我会很高兴。 (阅读时间:5分钟) 介绍 日本博客
View full article
S32K344 - CMU_FCバスクロックとCMU_FC_0の動作 現在、S32K344EVB-T172 評価ボードに CMU_FC モジュールを実装しています。 REF_CNT の計算において「bus_clock」が正確に何を指すのか理解するのに苦労しています。これは「レジスタの読み取り/書き込み操作が実行されるクロック信号」として定義されていますが、これが正確にどのクロックに関連しているのかわかりません。 S32K3XXRMの例ではbus_clockを次のように使用しています。 16 MHz 、 この値に固執すべきでしょうか、それともそれが何を指すのかを知る方法はありますか?特定の相互接続ブリッジを指しているのでしょうか? また、CMU_FC_0、3、4 のプログラミングには問題はありませんが、 HSE_CLKを監視する CMU_FC_5は書き込み保護されており、変更できないようです。 HSE-B が無効になっていることは確かで、 HSE_GPR レジスタと UTEST レジスタを調べて二重に確認しましたが、MUX_0_DC_3 構成によれば、HSE-B コアに 80MHz クロックが供給されるはずです (S32K344 のオプション A - 高性能モードに応じて構成されています)。 Re: S32K344 - CMU_FC bus clock and CMU_FC_0 behaviour こんにちは@fede_ls 、 Bus_clkはAIPS_SLOW_CLKです リファレンス マニュアル (RM) に示されている 16 MHz の値は、例としてのみ使用されます。 実際の実装には、RTD (リアルタイム・ドライバ) MCU ドライバを使用してください。ドライバは、固定の 16 MHz ではなく、AIPS_SLOW_CLK 周波数に基づいて必要な値を動的に計算します。 この計算がどのように実行されるかを確認するには、ドライバのソース コードを参照してください。 CMU_FC_5はアプリケーション コアによって構成できません。 M0+ コアは HSE_B コアです。 この構成に関する詳細な情報が必要な場合は、サポート チケットを送信してください。関連する HSE ファームウェア (HSE_FW) ドキュメントは、秘密保持契約 (NDA) によって保護されています。 ありがとうございました。 よろしくお願いいたします。 ダニエル -------------------------------------------------------------------------------------------------------------------------------------------------- NXPが提供するあらゆるサポート、情報、テクノロジー(以下「資料」)は、明示的または黙示的を問わず、いかなる保証もなく現状のまま提供され、NXPは、適用法で認められる最大限の範囲において、資料に関連する直接的および間接的な責任および損害を一切否認します。NXPは、アプリケーションまたは製品設計に関するいかなる支援についても責任を負いません。資料は、NXP製品に関連してのみ使用できます。資料に関してNXPに提供されたフィードバックは、NXPにより制限なく使用できます。 --------------------------------------------------------------------------------------------------------------------------------------------------
View full article
Configuring S32K312 UART0 DMA with MCAL causes hardfault Hello! I'm using AUTOSAR 4.4 R21-11 RTD3.0.0 D2303. The MCL module is configured as follows The Rm module is configured as follows: The Uart module configuration is shown below: The problem encountered so far is that when initializing the module Mcl (running to Mcl_Init(NULL_PTR);) Part of the code is as follows: Spoiler (Highlight to read) /*================================================================================================== * :: Project: RTD AUTOSAR 4.7 * :: Platform: CORTEXM * Peripheral : S32K3XX * :: Dependencies : none * * :: Autosar Version : 4.7.0 * :: Autosar Revision : ASR_REL_4_7_REV_0000 * :: Autosar Conf. * SW Version : 3.0.0 * Build Version : S32K3_RTD_3_0_0_D2303_ASR_REL_4_7_REV_0000_20230331 * * Copyright 2020 - 2023 NXP Semiconductors * * NXP Confidential. This software is owned or controlled by NXP and may only be used by NXP. * used strictly in accordance with the applicable license terms. By expressly * :: accepting such terms or by downloading, installing, activating and/or otherwise * :: using the software, you are agreeing that you have read, and that you agree to * comply with and are bound by, such license terms. If you do not agree to be * bound by the applicable license terms, then you may not retain, install. * activate or otherwise use the software. ==================================================================================================*/ /** * @file main.c * * @addtogroup main_module main module documentation * @{ */ /* Including necessary configuration files. */ #include "Mcal.h " #include "OsIf.h " #include "Mcu.h " #include "Platform.h " #include "Port.h " #include "Dio.h " #include "Gpt.h " #include "Spi.h " #include "CDD_Uart.h " #include "Lpuart_Uart_Ip_Irq.h " #include "CDD_Mcl.h " #include "CDD_Rm.h " #include "Mcl.h " volatile volatile exit_code = 0 volatile int exit_code = 0 ; /* User includes */ #include #include #include #include "task.h " void Uart_Callback (uint8 HwInstance , Uart_EventType Uart_EventType ) { if ( HwInstance == UART_CTRL_INSTANCE ) { EviyosCtrlUart_Callback ( Event ); } } /*! \brief The main function for the project. \details The startup initialization sequence is the following. * - startup asm routine * - main() */ int main ( int ) { /* Write your code here */ OsIf_Init ( NULL ); #if ( MCU_PRECOMPILE_SUPPORT == STD_ON) Mcu_Init (NULL_PTR). #elif (MCU_PRECOMPILE_SUPPORT == STD_OFF) Mcu_Init (& Mcu_Config). #endif Mcu_InitClock ( McuClockSettingConfig_0 ); #if ( MCU_NO_PLL == STD_OFF) while ( MCU_PLL_LOCKED while ( = Mcu_GetPllStatus () ) { /* Busy wait until the System PLL is locked */ } Mcu_DistributePllClock (). #endif Mcu_SetMode ( McuModeSettingConf_0 ); /* Initialize all pins using the Port driver */ #if (STD_ON == PORT_PRECOMPILE_SUPPORT ) Port_Init (NULL_PTR); #elif (STD_OFF == PORT_PRECOMPILE_SUPPORT) Port_Init (& Port_Config); #endif #if (STD_ON == MCL_PRECOMPILE_SUPPORT ) Mcl_Init(NULL_PTR). #elif (STD_OFF == MCL_PRECOMPILE_SUPPORT) Mcl_Init (& Mcl_Config); #endif #if (STD_ON == RM_PRECOMPILE_SUPPORT ) Rm_Init (NULL_PTR); #elif (STD_OFF == RM_PRECOMPILE_SUPPORT) Rm_Init (& Rm_Config); #endif Platform_Init (NULL_PTR). /* Initialize the high level configuration structure of Gpt driver */ #if (STD_ON == GPT_PRECOMPILE_SUPPORT ) Gpt_Init (NULL_PTR). #elif (STD_OFF == GPT_PRECOMPILE_SUPPORT) Gpt_Init (& Gpt_Config); #endif #if ( SPI_PRECOMPILE_SUPPORT == STD_ON) /* Initialize the SPI driver */ Spi_Init (NULL_PTR); #elif (SPI_PRECOMPILE_SUPPORT == STD_OFF) /* Initialize the SPI driver */ Spi_Init (& Spi_Config); #endif #if (STD_ON == UART_PRECOMPILE_SUPPORT ) /* Initialize the UART driver */ Uart_Init (NULL_PTR); #elif (STD_OFF == UART_PRECOMPILE_SUPPORT) /* Initialize the UART driver */ Uart_Init (& Uart_Config); #endif Fs2400_hal_Init (); Tps92682_hal_Init (); Tps92520_hal_Init (); Eviyos_hal_Init (). /* Start the Gpt timer */ Gpt_StartTimer ( GptConf_GptChannelConfiguration_GptChannelConfiguration_0 , 40000U ); //period = 40000/40000000 = 1ms Gpt_EnableNotification ( GptConf_GptChannelConfiguration_GptChannelConfiguration_0 ). for (;;) { Sys_Task (); if ( exit_code if ( = 0 ) { break ; } } return exit_code return exit_code } /** @} */ /*==================================================================================================* Project : RTD AUTOSAR 4.7* Platform : CORTEXM* Peripheral : S32K3XX* Dependencies : none** Autosar Version : 4.7.0* Autosar Revision : ASR_REL_4_7_REV_0000* Autosar Conf.Variant 😘 SW Version : 3.0.0* Build Version : S32K3_RTD_3_0_0_D2303_ASR_REL_4_7_REV_0000_20230331** Copyright 2020 - 2023 NXP Semiconductors** NXP Confidential. This software is owned or controlled by NXP and may only be* used strictly in accordance with the applicable license terms. By expressly* accepting such terms or by downloading, installing, activating and/or otherwise* using the software, you are agreeing that you have read, and that you agree to* comply with and are bound by, such license terms. by expressly* accepting such terms or by downloading, installing, activating and/or otherwise* using the software, you are agreeing that you have read, and that you agree to* comply with and are bound by, such license terms. If you do not agree to be* bound by the applicable license terms, then you may not retain, install,* activate or otherwise use the software.============== ====================================================================================*//*** @file main.c** @addtogroup main_module main module documentation* @{*//* Including necessary configuration files. */#include "Mcal.h "#include "OsIf.h "#include "Mcu.h "#include "Platform.h "#include "Port.h "#include "Dio.h "#include "Gpt.h "#include "Spi.h "#include "CDD_Uart.h "#include "Lpuart_Uart_Ip_Irq.h "#include "CDD_Mcl.h "#include "CDD_Rm.h "#include "Mcl.h "volatile int exit_code = 0;/* User includes */#include #include #include #include "task.h "void Uart_Callback(uint8 HwInstance, Uart_EventType Event){ if(HwInstance == UART_CTRL_INSTANCE) { EviyosCtrlUart_Callback(Event); }}/*! \brief The main function for the project. \details The startup initialization sequence is the following: * - startup asm routine * - main()*/int main(void){ /* Write your code here */ OsIf_Init( NULL);#if(MCU_PRECOMPILE_SUPPORT == STD_ON) Mcu_Init(NULL_PTR);#elif(MCU_PRECOMPILE_SUPPORT == STD_OFF) Mcu_Init( &Mcu_Config);#endif Mcu_ InitClock(McuClockSettingConfig_0);#if (MCU_NO_PLL == STD_OFF) while ( MCU_PLL_LOCKED ! = Mcu_GetPllStatus() ) { /* Busy wait until the System PLL is locked */ } Mcu_DistributePllClock();#endif Mcu_SetMode(McuModeSettingConf_0); /* Initialize all pins using the Port driver */#if (STD_ON == PORT_PRECOMPILE_SUPPORT) Port_Init(NULL_PTR);#elif (STD_OFF == PORT_PRECOMPILE_SUPPORT) Port_Init(NULL_PTR);#elif (STD_OFF == PORT_PRECOMPILE_SUPPORT) SUPPORT) Port_Init( &Port_Config);#endif#if (STD_ON == MCL_PRECOMPILE_SUPPORT) Mcl_Init(NULL_PTR);#elif(STD_OFF == MCL_PRECOMPILE_SUPPORT) Mcl_Init( &Mcl_Config);#endif#if (STD_ON == RM_PRECOMPILE_SUPPORT) Rm_Init(NULL_PTR);#elif(STD_OFF == RM_PRECOMPILE_SUPPORT) Rm_Init( &Rm_ Config);#endif Platform_Init(NULL_PTR); /* Initialize the high level configuration structure of Gpt driver */#if (STD_ON == GPT_PRECOMPILE_ SUPPORT) Gpt_Init(NULL_PTR);#elif(STD_OFF == GPT_PRECOMPILE_SUPPORT) Gpt_Init( &Gpt_Config);#endif#if(SPI_PRECOMPILE_SUPPORT == STD_ON) /* Initialize the SPI driver */ Spi_Init(NULL_PTR);#elif(SPI_PRECOMPILE_SUPPORT == STD_OFF) /* Initialize the SPI driver */ Spi_Init( &Spi_Config);#endif#if (SPI_PRECOMPILE_SUPPORT == STD_OFF) /* Initialize the SPI driver */ Spi_Init( Gpt_Config);#endif endif#if (STD_ON == UART_PRECOMPILE_SUPPORT) /* Initialize the UART driver */ Uart_Init(NULL_PTR);#elif(STD_OFF == UART_PRECOMPILE_SUPPORT) /* Initialize the UART driver */ Uart_Init( &Uart_Config);#endif Fs2400_hal_Init(); Tps92682_hal_Init(); Tps92520_hal_Init(); Eviyos_hal_Init(); /* Start the Gpt timer */ Gpt_StartTimer(GptConf_GptChannelConfiguration_ GptChannelConfiguration_0, 40000U); //period = 40000/40000000 = 1ms Gpt_EnableNotification(GptConf_GptChannelConfiguration_ GptChannelConfiguration_0); for(;;) { Sys_Task(); if(exit_code ! = 0) { break; } } return exit_code;}/** @} */ Debug situation is as follows: Please help to check what is wrong with the configuration? Re: 使用MCAL配置S32K312 UART0 DMA导致hardfault Hi  Please configure the McuPeripheral -> Peripheral Clock Enable Seems that you forget enable the clock gate of those peripheral: EDMA\DMAMUX_0  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
S32K322 RTD warning fixes Hello NXP Support, I was trying to resolve all the alignment related warnings in my source code, so I enabled the associated warning from the project property. Below is the image of warning in RTD generated file which I need to resolve.  Thanks & Regards Abdullah Re: S32K322 RTD warning fixes Hi @AbdNxp  I am afraid I was not able to reproduce the warning on my side. Could you let me know which RTD version you are using? Also, have you made any changes to the Clock_Ip files in your project? If possible, please share your project so I can take a closer look and help you analyze it further. BR, VaneB Re: S32K322 RTD warning fixes Hello, thanks for reaching out. The alignment warning appears in an RTD-generated file, which is typically auto-generated and not meant for manual modification. To resolve this cleanly: Consider suppressing the warning for generated files or adjusting the warning level to avoid false positives. If modification is necessary, ensure structure members are properly aligned using compiler-specific attributes or padding. Let me know if you'd like help configuring suppression or adjusting your build settings. Best Regards, Kyla Ellis
View full article
动态内存分配疑问 嗨,恩智浦社区、 HEAP_SIZE = DEFINED(__heap_size__) ? __heap_size__ : 0x00001000; 堆内存分配是通过链接器脚本在 SRAM 区域定义的。 谁能告诉我上述堆是否被标准库使用,比如 malloc、calloc 和 free? Re: dynamic memory allocation doubts @vignesh3, 是的 _sbrk 是 malloc() 用来递增 "heap_end "并返回指针的函数。因此,从这个感知上讲,它分配内存。 使用函数 "free()",内存本身就会被释放。这意味着该功能将此内存标记为可重复使用。 Re: dynamic memory allocation doubts 你好@gaurav_sharma、 _sbrk 是用来分配内存的吧? 如果是这样,哪里能免费? 感谢您的回复。 Re: dynamic memory allocation doubts @vignesh3, 是的,C 运行时将使用堆区域来处理动态分配的内存请求。堆是在启动代码中初始化的。链接器使用名为 HEAP_SIZE 的变量定义堆大小。 malloc 使用 _sbrk 函数。 _sbrk 使用链接器中定义的 __heap_limit 等变量。这就是动态分配内存的定义和使用方式。 希望对您有所帮助!
View full article
"Flash_VerifyErase" 在 PRINCE 地区不起作用 我一直在使用 Flash_VerifyErase(),以确保不会读取已擦除的闪存页面并导致硬故障。在我开启 PRINCE 闪存加密之前,这个功能一直运行稳定。 由于某些原因,Flash_VerifyErase() 无法检测到 PRINCE 闪存的已擦除区域,并在我执行读取操作时导致硬故障。函数 Flash_read()似乎不起作用,因此目前我没有办法确保在读取 Flash 时不会出现硬故障。 检测 PRINCE 擦除是否有不同的功能?启用 PRINCE 后,如何防止硬故障? Re: "Flash_VerifyErase" does not work on PRINCE regions 我也有同样的问题。如何安全地阅读加密的 Flash 页面? Re: "Flash_VerifyErase" does not work on PRINCE regions 是的,这是用于 LPC55S69 的 1B 版本硅片--抱歉我之前忘记了这一信息! 请看我的代码,附在下面。注释部分是进行 Flash 读取的推荐方法,但启用 PRINCE 后,这部分代码将不再工作。在启用 PRINCE 之前,我在"else if" 内设置了这个注释块,memcpy 现在就在这里。 status_t status = FLASH_VerifyErase(&flash_instance, addr, PflashPageSize); if(status == kStatus_Success) { memset(data, 0xFF, len); return len; } else if(status == kStatus_FLASH_CommandFailure) { memcpy(data, (void*)addr, len); } else { return -1; } // status = FLASH_Read(&flash_instance, addr, data, len); // // if(status == kStatus_FLASH_EccError) // { // memset(data, 0xFF, len); // return len; // } // else if(status != kStatus_Success) // { // return -1; // } Re: "Flash_VerifyErase" does not work on PRINCE regions 你好,亚历山大、 能告诉我们您使用的部件编号吗?你使用 LPC55xx 系列吗? 总之,我建议您参考 AN12527.pdf 和 AN12527SW.zip,可从以下链接下载: https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/general-purpose-mcus/lpc5500-cortex-m33/high-efficiency-arm-cortex-m33-based-microcontroller-family:LPC55S6x?tab=Documentation_Tab 如果仍有问题,请公布所有代码,以便我们进行审查。 BR 荣向军
View full article
是否需要使用 PDO 和 PDOCLK 来调试和下载 S912ZVML32F3MKH 芯片程序 我使用的是 S912ZVML32F3MKH 芯片。如果不使用 PDO 和 PDOCLK 引脚,只使用 BKCD、RST、GND 和 VDDX,能否正常调试和下载程序?PDO 和 PDOCLK 是否需要下载端口来调试下载程序? Re: Is it necessary to use PDO and PDOCLK for debugging and downloading the S912ZVML32F3MKH chip pro 我使用带有 CodeWarrior 的 Multilink 来刷新固件,一旦我有了正确的驱动程序并正确安装了 BKCD、RST、GND 和 VDDX 连接,它就能顺利运行。最棘手的部分是配置目标设置--感觉就像 FNF 的节奏检查:弄乱一个节拍(或针脚),就什么也同步不了。P&E Micro 的文档和示例项目提供了很多帮助,但一开始可能会有一些尝试和错误。 Re: Is it necessary to use PDO and PDOCLK for debugging and downloading the S912ZVML32F3MKH chip pro 如果我有 Multilink ans Codewarrior,如何下载固件? 我尝试使用 BKCD、RST、GND 和 VDDX。 Re: Is it necessary to use PDO and PDOCLK for debugging and downloading the S912ZVML32F3MKH chip pro 您好, 我们建议使用所有必要的引脚,以便提供所有调试功能。你不知道你是否会需要它,然后你就会想念它。例如,跟踪功能。此外,调试器还可以在需要这些引脚时执行一个属性。我们看不到它,因为它是由调试接口、其协议和属性的实现提供的,这不是我们的产品。当然,如果您检查了自己的具体使用情况,那么这种可能性是存在的,但正如我已经写过的,最好还是使用完整的界面。 顺祝商祺! 拉吉斯拉夫
View full article
32.12 リカバリモードと機能リセット こんにちは、 私はそれに関するたくさんの投稿を読みました。 DCM-DCRWP1 を変更するか、(より危険ですが) 各機能リセットの前に IPMC_RGM->FREC= 0xF をトリガーすることで、リセットを無効にすることができます。 しかし、RM 32.12 リカバリ モードから読み取ったところ、たとえば「SBAF がアプリケーションを起動しない」など、リストされている他のCASEでも、VTOR = 2040_0100 アドレスが発生することがわかりました。 このCASE、PC = 0x2040_012E とスタック ポインター SP= 0x2040_200 がすべて間違っており、SRAM メモリの中央にあることに気付きました。また、PC は 0x2040_012e で無限にループします。 2040_0100 に VT コードを入力する必要があるかどうかはわかりませんが、すべてが停止しています。 HSE はスキップされ、sbaf がアプリケーション コードを直接ロードします。 手伝ってもらえますか ? よろしくお願いします ファビオ Re: 32.12 Recovery mode And Functional Reset こんにちは@FabioG これは JTAG ベースのリカバリ モードと呼ばれます。独自のコードを RAM にロードすることは想定されていません。WFI と無限ループは SBAF によってそこに書き込まれます。このリカバリ モードの目的は、ユーザーがデバッガーを接続して適切なアクション (アプリケーションの再プログラム、フラッシュの内容の確認、構成の変更など) を実行できる場合に、デバイスを何らかの定義済みの状態にすることです。 このような状況で独自のコードを自動的に実行したい場合は、HSE とそのセキュア リカバリ モードをCAN。詳細については、HSE ファームウェア リファレンス マニュアルを参照してください。 または同様に、アプリケーションが破損したときに特定のコードを実行する場合は、以下を参照してください。 https://community.nxp.com/t5/S32K/S32K3 で Hse-AB-SWAP のロールバック機能を有効にする方法/mp/2146151/highlight/true#M51578 よろしくお願いいたします。 ルーカス
View full article
IARコンパイラビルドS32K3 SAF環境 NXPコミュニティの皆様、こんにちは。 IAR コンパイラを使用して、 S32K3 SAF (バージョン 1.0.5) を S32K312 ボードに統合します。 しかし、sCheck を実行すると、SO 多くの質問が表示されます。考えられる原因は.icfの設定が間違っていることですファイルとstartup_cm7.sファイル。IARコンパイラの.icfファイルとstartup_cm7.sを共有していただけますか?ファイル ? よろしくお願いします! 注: 1. sCheck_CacheL1_EccTest() を実行すると、FaultHard になります。 2.sCheck_Flash_Test() を実行すると、ターゲット メモリがアクセス拒否に変更されます。 Re: IAR compiler build S32K3 SAF environment ハイ SAF はプレミアム ソフトウェアです。これはパブリック チャネルであるため、お近くの NXP 担当者/FAE に直接お問い合わせいただくことをお勧めします。 中国FAEは今年SAFに関するトレーニングを開催し、役立つ可能性のある統合の考慮事項についていくつか言及しました: AMCU28-S32 セーフティ ソフトウェア Framework (SAF)とのセーフティの統合.pptx よろしくお願いいたします ロビン
View full article
IAR 编译器版本 S32K3 SAF 环境 你好,恩智浦社区: 我使用 IAR 编译器将 S32K3 SAF(版本 1.0.5)集成到 S32K312 板中。 然而,当我运行 sCheck 时却有很多问题。可能的原因是 .icf 配置错误文件和 startup_cm7.s锉刀因此,能否共享 IAR 编译器的 .icf 文件和 startup_cm7.s 文件?文件 ? 谢谢您! 注意: 1. 当我运行 sCheck_CacheL1_EccTest() 时,结果是 FaultHard。 2.当我运行 sCheck_Flash_Test() 时,目标内存将被改为拒绝访问。 Re: IAR compiler build S32K3 SAF environment HI SAF 是一款高级软件。由于这是一个公共频道,我们建议直接联系当地的恩智浦代表/FAE。 中国FAE今年举办了SAF培训,其中提到了一些可能有用的集成注意事项:AMCU28-将功能安全与S32功能安全软件框架(SAF)集成.pptx 此致敬礼, Robin
View full article