Multi Source Translation Content

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Multi Source Translation Content

ディスカッション

ソート順:
FRDM-MCXA156: SWO Trace (Data, Profile & Interrupts) Not Working in MCUXpresso IDE Hello Everyone, I am currently working with the FRDM-MCXA156 development board and have been facing an issue with SWO (Serial Wire Output) while debugging. Although the application debugs successfully, I am unable to receive any data in the SWO Trace windows, including: SWO Data SWO Profile SWO Interrupt Trace SWO ITM Console To troubleshoot the issue, I have already verified the following: The SWO pin has been correctly configured using Config Tools. The TRACE clock is enabled and configured to 96 MHz, matching the MCU core clock (MCXA156 runs at 96 MHz). The project is being debugged using LinkServer with the on-board MCU-Link probe. Despite these configurations, all the SWO trace windows remain empty during debugging. For reference, I have attached screenshots of the SWO Trace Configuration, SWO Data, SWO Profile, and other windows, along with the relevant project configuration. I would greatly appreciate any guidance or suggestions on what might be causing this issue or if there are any additional configuration steps required to enable SWO trace on the FRDM-MCXA156. Thank you for your time and assistance. #swo #frdm-mcxa156  Development Board MCXA Re: FRDM-MCXA156: SWO Trace (Data, Profile & Interrupts) Not Working in MCUXpresso IDE With respect to previous thread, The screenshot of SWO enable configuration and clocks are attached below. Thanks Re: FRDM-MCXA156: SWO Trace (Data, Profile & Interrupts) Not Working in MCUXpresso IDE Hello @sidsal  For the FRDM-MCXA156 board, resistor R36, which connects the SWO signal to the onboard debugger, is DNP (not populated) by default. Could you please populate R36 and test again? Alice_Yang_0-1786344510075.png Thank you. BR Alice Re: FRDM-MCXA156: SWO Trace (Data, Profile & Interrupts) Not Working in MCUXpresso IDE Thank you for pointing this out @Alice_Yang . I checked the FRDM-MCXA156 schematic and confirmed that R36, which connects the P0_2/SWO signal to the onboard MCU-Link debugger, is marked as DNP. I also noticed that on the FRDM-MCXN947, the equivalent SWO connection (R130) is populated with a 0 Ω resistor. Could you please confirm whether R36 on the FRDM-MCXA156 should also be populated with a 0 Ω resistor to enable SWO tracing through the onboard MCU-Link debugger? Additionally, could you please clarify why R36 is left unpopulated (DNP) by default on the FRDM-MCXA156? Is there a specific board-design reason or limitation that requires it to remain unpopulated? So I cannot use SWO feature?  Thank you for your help. Re: FRDM-MCXA156: SWO Trace (Data, Profile & Interrupts) Not Working in MCUXpresso IDE Hello @sidsal  " Could you please confirm whether R36 on the FRDM-MCXA156 should also be populated with a 0 Ω resistor to enable SWO tracing through the onboard MCU-Link debugger?" ->>Yes. If you want to use the SWO function, you need to install a 0 Ω resistor or solder the connection accordingly. “Additionally, could you please clarify why R36 is left unpopulated (DNP) by default on the FRDM-MCXA156? ” ->>I think this is because not all users require the SWO function, so the 0 Ω resistor is not populated by default. Thank you. BR Alice Re: FRDM-MCXA156: SWO Trace (Data, Profile & Interrupts) Not Working in MCUXpresso IDE Thank you for your support @Alice_Yang .
記事全体を表示
Important question about motor control Hi, I am using the board S32K344MINI-EVB with driver GD3000 and Sunrise motor. I have tested a program where you can manage the speed of motor with the project "S32K344:mc_pmsm_1sh_s32ct". I have different questions because I want to prove new options.    JonAnder_Amante_1-1770196663700.png 1. I want to use the evaluation board to realize the control of motor, so I want to do the control FOC (2 controllers PI) but I want to simulate the plant (the motor PMSM) and the power electronics (GD3000). In this example, how I can modify it to simulate the plant but continue perfoming the control from the evaluation board? I suppose that I have to change something of state machine block but I don´t know what I have to change.  2. Could you tell me the pins that I am using to send different signals from GD3000 (driver of motor) to motor PMSM? I have information in your website about this but I don´t if that´s the case. I send you a pdf with this information, although it´s not yhe same board I think the pins are the same (INFO_Driver_MOtor.pdf). Thank you for all,  Jon Ander Amante   Re: Important question about motor control Hi, @JonAnder_Amante, You can find the answer to the initial thread here: missing Motor Control PMSM example in the 1.60 version of the S32K3 MBDT Best regards, Dragos Re: Important question about motor control Hi @JonAnder_Amante , In order to use the S32K344MINI-EVB, the following modifications are needed on the board: stefanvlad_0-1770819182442.png 1. Remove resistors R396 and R397, located on bottom PCB near DC Jack: stefanvlad_4-1770819788524.png 2. Populate with 0 (zero) Ohm  resistors R413, R414 and R418 located near J4 connector: stefanvlad_3-1770819728806.png And also because the VDD_HV_A is supplied with 3.3V instead of 5V: stefanvlad_2-1770819465940.png We need to modify the parameters for the Udc and Idc Gains: stefanvlad_6-1770820165900.png %% Application scales MBD_I_MAX = 20.625; MBD_U_DCB_MAX = 29.7;   After this we can connect the DEVKIT-MOTORGD (GD3000) board on top of S32K344MINI-EVB: stefanvlad_5-1770819975008.jpeg Now Open FreeMASTER and run the example and check iABC waveforms: stefanvlad_7-1770821519787.png  Best regards, Stefan V. Re: Important question about motor control Hi,  Thank you for your reply. At now, I want to realize only the control of FOC in the board "S32K344 MINI-EVB", that is to say, I have another block of the plant that it´s represented the motor PMSM (Sunrise) with power electronics but I have to use the control of FOC with MBD. In this example, could you tell me which block I have to keep and what blocks I have to remove? JonAnder_Amante_0-1770883302148.png I think that I have to keep the current loop and speed loop in the block called "state machine" but the problem is there are many variables and different blocks with different jumps between them.  JonAnder_Amante_1-1770883826681.png Basically, my project´s target is to use the same control of FOC from this project but to use another plant. Thank you for all,  Jon Ander Amante Re: Important question about motor control Hi @JonAnder_Amante , I am not sure i understand what other plant you want to use, another motor maybe? We currently support the Sunrise Motor with parameters in s32k344_mc_pmsm_2sh_s32ct_data.m and Linix Motor with parameters in s32k344_mc_pmsm_2sh_s32ct_data_linix.m If you have any other motors, you will need to modify the parameters accordingly in data.m files, then do a clean Build. Have a good day, Stefan V. Re: Important question about motor control Hi, 1. I want to use Sunrise motor with its parameters but my question is if there is any block in SImulink that represents the plant because I want to have a block of the plant on one hand and the controller on the other.  2. Moreover, I send you the parameters of motor Sunrise and I don´t know if you can confirm that the dates are true. PARAM_Rs = 0.192; % Resistencia del estator [Ohms] PARAM_Mpp = 2; % Pares de polos [-] PARAM_Ld = 0.000096; % Inductancia eje D [H] PARAM_Lq = 0.000107; % Inductancia eje Q [H] PARAM_Ke = 0.005872; % Constante Back-EMF [V.sec/rad] PARAM_J = 0.12e-4; % Inercia [kg.m2] PARAM_r32_F_IP_Wb_motor1 = 0.00518; % Flujo magnetico   %% Parametros diseño LAZO DE CORRIENTE %Loop Bandwidth = 150 [Hz] %Loop Attenuation = 1 [-] %Loop sample time = 0.0001 [sec] %----------------------------------------------------- f_cutoff_current = 150; % Frecuencia de corte deseada [Hz] w0_current = 2 * pi * f_cutoff_current; % Frecuencia natural [rad/s] xi_current = 0.707; % Amortiguamiento Ts_current = 1 /fsw; % Tiempo de muestreo   % Cálculos eje D Kp_D = (2 * xi_current * w0_current * PARAM_Ld) - PARAM_Rs; Ki_D = (w0_current^2) * PARAM_Ld; % Cálculos eje Q Kp_Q = (2 * xi_current * w0_current * PARAM_Lq) - PARAM_Rs; Ki_Q = (w0_current^2) * PARAM_Lq;   % Current Loop Control (Calculado según NXP GFLIB) %---------------------------------------------------------------------- MBD_CLOOP_LIMIT = 0.9;   % Eje D (D-axis) MBD_D_CC1SC = Kp_D + (Ki_D * Ts_current / 2); MBD_D_CC2SC = -Kp_D + (Ki_D * Ts_current / 2);   % Eje Q (Q-axis) MBD_Q_CC1SC = Kp_Q + (Ki_Q * Ts_current / 2); MBD_Q_CC2SC = -Kp_Q + (Ki_Q * Ts_current / 2); 2. I send you the scheme that I am using in Simulink. My idea is  JonAnder_Amante_1-1771229540348.png JonAnder_Amante_2-1771229553893.png JonAnder_Amante_4-1771229596623.png JonAnder_Amante_3-1771229577117.png My idea is to not use the physical motor and to simulate it with the green block you see in the photos. and to perform the control (current loop and speed loop) with the MCLIB blocks.   Thank you for all; Re: Important question about motor control Good morning, I am using one of your evaluation boards, specifically the FRDM-A-S32K344 board, with the ‘S32K344_mc_pmsm_1sh_s32ct’ example in MATLAB and Simulink. The problem I’m having is that when I connect the interface to the Freemaster, some variables don’t appear and show up as a question mark; in other words, they aren’t being detected or aren’t implemented. Also, I’m trying to load the .elf file in case there was a compilation error, and I’m getting some errors saying that certain variables aren’t being detected. Could you help me? JonAnder_Amante_0-1780475763418.png JonAnder_Amante_1-1780475763497.png If i try to reload the file .elf I have: JonAnder_Amante_2-1780475763491.png Re: Important question about motor control Hello, If variables are not detected in the FreeMASTER project make sure that the elf file is properly selected from the settings. If it is properly set, check in the model if the variables are set to External or Volatile. Otherwise, the FreeMASTER is not able to detect them. Best regards, Sorin Bancila
記事全体を表示
MRF300AN 27MHz Ref DesignTVS and Power Sequence Hi NXP Team, Two questions on MRF300AN-27MHz reference design: Q1: Can I put a 110V TVS across drain to ground for protection? Vds is 133V. Is this a good choice? Q2: What is the exact power-on sequence? Gate bias before drain or drain before gate? Also, should RF drive be ramped up slowly or can I apply full drive directly? Thanks. Re: MRF300AN 27MHz Ref DesignTVS and Power Sequence Hello, In general, the TVS reverse standoff voltage should be selected above the maximum normal operating drain voltage to prevent unintended conduction during normal operation, while still providing protection against abnormal transient events. Regarding the power-up sequence, the drain supply can be applied before the gate bias, or vice versa. Both approaches are acceptable in a stable and properly tuned circuit. Additionally, it is recommended to ramp up the RF drive gradually rather than applying full drive abruptly, as this helps ensure a smoother startup and reduces stress on the device under operating conditions. Hope this helps!
記事全体を表示
Problem with my project Good morning, I am using one of your evaluation boards, specifically the FRDM-A-S32K344 board, with the ‘S32K344_mc_pmsm_1sh_s32ct’ example in MATLAB and Simulink. The problem I’m having is that when I connect the interface to the Freemaster, some variables don’t appear and show up as a question mark; in other words, they aren’t being detected or aren’t implemented. Also, I’m trying to load the .elf file in case there was a compilation error, and I’m getting some errors saying that certain variables aren’t being detected. Could you help me? JonAnder_Amante_0-1780474522107.png JonAnder_Amante_1-1780474600546.png If i try to reload the file .elf I have: JonAnder_Amante_2-1780474650900.png Re: Problem with my project Hello, If variables are not detected in the FreeMASTER project make sure that the elf file is properly selected from the settings. If it is properly set, check in the model if the variables are set to External or Volatile. Otherwise, the FreeMASTER is not able to detect them. Best regards, Sorin Bancila
記事全体を表示
HSE AB Swap works from bare metal but fails after MCAL clock setup on S32K312 Hi, I am working on HSE-B AB Swap on an S32K312 MINI-EVB with HSE firmware version 0.2.55.0 (ab_swap variant). The board is in OEM_PROD lifecycle and Bank A is currently active. Both banks hold the same HSE firmware version. I have a working reference where a bare-metal main function polls HSE INIT_OK and then submits the activate passive block service. That call returns success and the swap applies on the next reset. Bank B contains a valid IVT with pointers compiled for the lower address space per section 11.3 of RM00286. The same MU submission code, moved into a bootloader after MCAL clock initialization, returns HSE response 55A5A26A (invalid address). HSE INIT_OK stays set. Other HSE services (AES, RSA, SHA) work correctly in this state. The only difference between the working and failing runs is that the bootloader path writes the MC_CGM MUX 0 divider registers during clock initialization, keeping the source on FIRC but changing the AIPS_SLOW to HSE_CLK ratio from 1:1 (SBAF default) to 1:4. My main question: what does the invalid address response refer to for the activate passive block service, since the service takes no data structure? Is there a documented sequence for reconfiguring MC_CGM dividers after HSE has reached INIT_OK, that keeps this specific service usable? I can share the failing binary, register dumps, and clock config on request. Thanks Re: HSE AB Swap works from bare metal but fails after MCAL clock setup on S32K312 Hi David, Thank you for the guidance about the DCF client. To make sure I set this up correctly on the first attempt, could you please clarify a few things: 1. Point 5 in your list says the MC_CGM MUX 0 source must be PLL_PHI0. Is this a hard requirement — does the activate passive block service require the system clock to be on PLL, or can it also work with the system running on FIRC (48 MHz)? 2. Could you share the earlier points 1 to 4 from the same list? We only have points 5 and 6 in the image and suspect we are missing prerequisites. 3. Point 6 gives the DCF value for a 120 MHz HSE clock scenario. For a 48 MHz FIRC configuration with AIPS slow clock at 12 MHz (1:4 ratio), what value should be programmed into the UTEST_MISC DCF record's clock mode and gasket control bit field? 4. What is the exact UTEST address on S32K312 for this record, and is there a sample or a Design Studio / Cyclone algorithm file we can use to program it safely? Since UTEST is one-time programmable, we want to be certain before writing. 5. Are there any other DCF records required for AB Swap beyond UTEST_MISC — such as an OTA enable marker in UTEST, or OTA indicators inside the active and passive blocks? If yes, please share those as well. Board context: HSE firmware 0.2.55.0 ab_swap variant, OEM_PROD lifecycle, INIT_OK and OEM SU rights bits set. Thanks a lot, Re: HSE AB Swap works from bare metal but fails after MCAL clock setup on S32K312 I guess you don't have setup DCF client what is necessary for use as you described. davidtosenovjan_0-1786371576770.png Re: HSE AB Swap works from bare metal but fails after MCAL clock setup on S32K312 1) I didn't want to take a screenshot of point 5, but point 6. 2) It is taken from RM: davidtosenovjan_0-1786445766359.png 3) The key point is ratio 1:4. Also it is described in RM embedded attachment (S32K3xx_DCF_clients.xlsx) davidtosenovjan_1-1786445766362.png 4) DCF record address to be programmed you will have to find out yourself (to find first location with 0xFFFF_FFFF). Specifically is should be around address 0x1B000780, but double check it before programming. See following document to understand DCF records: https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/MPC57xx-DCF-records/ta-p/1114884 Also DCF calculator exists: https://community.nxp.com/t5/S32K-Knowledge-Base/S32K344-DCF-Configurator/ta-p/1986243 I have been using TRACE32 script as follows: ; Program UTEST do ~~\demo\arm\flash\s32k3.cmm prepareonly flash.Program 3. /OTP ;put lines generated by S32K344 DCF configurator data.set 0x1B000780 %QUAD 0x0010000460000101 ;dcf_client_utest_misc flash.Program off Mentioned DCF calculator also allows you to create S-records that may be programmed by any programmer/debugger. 5) OTA flag is programmed automatically when AB_SWAP HSE FW is being installed, user don’t need to care of it. I am not aware of other DCF configurations needed. Re: HSE AB Swap works from bare metal but fails after MCAL clock setup on S32K312 Hello, Follow-up: I have prepared the DCF record for dcf_client_utest_misc per your instruction (value 0x0010000460000101, target address 0x1B000768 — first free QUAD on my board, verified). However, S32DS + PEmicro Multilink debug configuration silently skips the UTEST write — bytes at 0x1B000768 remain FFFFFFFFFFFFFFFF after the flash session. What is the correct tool/procedure to program a single DCF record into UTEST OTP on S32K312 using PEmicro Multilink (or any tool that ships with S32DS 3.6.4)? Do I need a specific flash algorithm file, a different debug configuration, or the standalone S32 Flash Tool?
記事全体を表示
Matlab2023a Envokes S32DS3.5 Encountered Error Dear MBDT Team. We are using MATLAB2023a scripts to generate code after compiling Simulink models, then call eclipsec.exe to perform headless background compilation. Once the build is completed, a hyperlink is created in the Simulink Diagnostic Viewer to directly open the workspace corresponding to the compiled project. This workflow worked perfectly with S32DS 3.4. However, after upgrading to S32DS 3.5.8, two issues have occurred: Issue 1: Clicking the hyperlink that's created by Simulink will launch the background process s32ds.exe, which then pops up and exits immediately. We have tried several solutions like adding the parameter "-vm \bin\javaw.exe" to s32ds.ini (this has no effect on s32ds.exe), and prioritizing the JDK 11 path in system environment variables. None of these attempts resolved the problem. Issue 2: As previous described, calling eclipsec.exe via MATLAB scripts triggers the error shown in the screenshot: Java was started but returned exit code=1. We set "\bin\javaw.exe" and JDK 11 path at the top of system environment variables. The Command Prompt correctly displays Java 11 (64-bit), yet Simulink compilation still attempts to load jvm.dll. After deleting "client\jvm.dll" or "server\jvm.dll", the program will locate java.exe instead, but still reports an error with exit code=4. In addition, manual compilation remains successful in all cases. All the related files and settings will be uploaded for your reference. Please help give your advice to fix this. Thank you. Re: Matlab2023a Envokes S32DS3.5 Encountered Error Hello, From what I understand from your message, you have a Simulink Model and generate code for it using the Embedded Coder. Then you have set up a workflow to compile the code using eclipsec. The main problem I see is that MATLAB do not currently use the correct Java version. Have you tried to contact them about this problem? Moreover, I suspect that you don't use Model Based Design Toolboxes developed by NXP (e.g. S32K3, S32K1 etc). Let me know if I am wrong. Best regards, Sorin Bancila
記事全体を表示
Debug interface recommendations for Kinetis and LPC? I do most of my development on the Kinetis series, and potentially some LPC parts in the near future. I've got a drawer full of debug interfaces from P&E Micro, including a Cyclone ACP that I use most. I sometimes find myself switching from the $600 Cyclone to the $20 LPC-Link2 because the Cyclone has so many weird problems with MCUXpresso. Honestly the LPC-Link2 does most of what I need, it's just a bit slow. Should I be looking at Segger interfaces? Can someone recommend a reliable, reasonably fast interface that's well-supported in MCUXpresso (and hopefully CodeWarrior 11 as well) that doesn't cause crashes all of the time, or fail to halt a running target? Trace support would be nice. Thanks! Re: Debug interface recommendations for Kinetis and LPC? Hi @richard37  Thank you for your post! You may want to consider a SEGGER J-Link. It supports both Kinetis and LPC devices when used with MCUXpresso, and it is also natively supported by CodeWarrior 11. This makes it a good alternative if you need a debug probe that can be used across both development environments and device families.
記事全体を表示
Random occurences of timeouts while reading variables Hello, I have been working on a battery test rig set up by my predecessors on the project. The test rig uses an nxp S32K144EVB board connected via usb to a computer. The code is built from a simulink file and monitoring of the test is made via FreeMASTER 3.2. The project has been working on a laptop for a few months and it has been necessary to configure a new laptop as a replacement. However, even while installing the same FreeMASTER version, the same drivers and using the same project files, all variable reads as "?" due to timeout errors after a seemingly random duration. Any help would be greatly appreciated. Logged errors after 12 minutes of runtime with no issues : fbw_0-1784820901163.png Re: Random occurences of timeouts while reading variables Hello, I don't think I encounter that problem yet but I have a few suggestions, maybe they can help: Try to power up the S32K144EVB from a 12V power supply instead from the USB. Getting Started with the S32K144EVB  Try different methods to connect the FreeMASTER project to the EVB: Use the onboard USB connector External Serial2USB convertor Use a debug probe to connect directly to the S32K144 MCU Try to reduce the refresh time for non critical variables Prevent the laptop to enter sleep mode (as it might cut USB power to save battery). Try to create a new FreeMASTER project from scratch. Best regards, Sorin Bancila
記事全体を表示
MBDT FOR S32K1XX MEIDEI_0-1783149479446.png Could you please explain why this configuration prevents the message from being sent successfully? Is there a need for additional modules? Re: MBDT FOR S32K1XX Hello, What board are you using? If you are using the S32K146 evaluation board, please note that the UART instance connected to the microUSB is actually LPUART1. If you are using an external serial converter, please check the schematic for the board to see that it is actually connected to LPUART0 (the instance you configured in the model). You might want to check included examples in the toolbox to see how to configure and use different peripherals. You can check the Quick Start Guide for S32K146 to have an overview of the most important connectors found on it: Getting Started with the S32K146 Evaluation Board for General Purpose  Best regards, Sorin Bancila.
記事全体を表示
S32 IDE开发环境RTD插件无法安装 需要S32 IDE开发环境安装S32ZE RTD插件开展S32Z280处理器软件开发工作,在环境中无法安装,提示如图1,在NXP官网无法下载,提示需要License,请提供License获取渠道,谢谢。 Re: S32 IDE开发环境RTD插件无法安装 不客气,有任何问题随时联系! Re: S32 IDE开发环境RTD插件无法安装 第一个连接要求账号登录,登录后没有显示安装包下载路径。第二个连接进入“汽车软件包管理器”后成功下载到安装包,谢谢。 Re: S32 IDE开发环境RTD插件无法安装 Hi,Flynn_T 1.您看这个链接可以下载吗?最新的RTD版本应该是2.0.1 QLP01,版本列表中没有你提到的1.1.45。另外注意,2.0.1 QLP01的RTD,需要的S32DS IDE的版本是3.6.1。 Design : Product Information : Automotive SW - S32Z/E - Real Time Drivers (RTD) Joey_z_0-1786528248987.png 2.这个链接您也可以看下,是否可以下载。 汽车软件包管理器 | NXP 半导体 BR Joey Re: S32 IDE开发环境RTD插件无法安装 Hi, BR Joey     我使用的S32 IDE的版本是3.6.10。需要安装的RTD版本是1.1.45,我NXP官方网站没有找到S32Z/E RTD插件的下载路径,请提供一个下载连接。 Best Regard Flynn_T Re: S32 IDE开发环境RTD插件无法安装 Hi,Flynn_T 您使用的S32 IDE的版本是多少呢?RTD版本是多少呢? 在IDE中加载S32Z/E RTD插件一般不需要license。 BR Joey
記事全体を表示
mc9s08qg8 compiler proto type: i have a product using this chip. it is not obsolete. i have the code to compile, from 1980. what i want to do, is update the cs v6.3 code on windows 11. i want to update the product from and evaluation unit to a working unit, to be released to manufacturers of sewing equipment. I have three lines of c code to update the product for production.  HISTORY: BOBBIN SHOW < 1980. displayed prototype of unit at the show and sold 15 copies for $150 each. I developed specialized gate array chips at International Microciruits INC(IMI) to implement functions. WELL, the unit was a single use. I got a patent and I put the  BOBBIN CONTROLLER "BC" away until 1983.  Used the mc9s08qg8 chip to up grade the BC to many more functions. living on welfare, i did not have money to further my business. NOW i took the developed unit out of storage, and being 72 i am trying to finish off the last coding to get the latest functions. i am going to try to sell it big before i die. my last move before i die, i can not loose. If u can not help me further, i am going to TI and use their chips. U have me locked out of your devlopment software. So i got maybe 12 years left, and ur chip is the core of the product. If U R not intersested in this product, i will go to TI. I do not have time to play with you business cycles. I figure if the unit takes off, i can sell 20,000 units. It works better than i tought 43 years ago, So am I in or out. I need the BDM drive for my wiztronics. com board interface and cw 11.1 to finish the final unit off. ALSO, i am still on SS. NO money, only a dream. i can not afford $500 fora P&E USB multilink Universal prgrammer. Maybe u would like to "venture capital" the device. u got the whole c code, which i downloaded to u!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! the ball is in ur court. Re: mc9s08qg8 compiler Hello I give you a suggestion on your other post if it could help you in repairing the BDM driver to use the device in CodeWarrior mc9s08qg8 drivers Could you confirm if you have consulted with Wiztronics about the driver's usage in their boards, do you have any feedback? Best Regards
記事全体を表示
MIMXRT1160 XIP fails randomly I have multiple boards running XIP from octal flash at 166 MHz. One of them fails occasionally  with "undefined instruction" error.  I've suspected signal integrity issues but I do not have test points on the PCB, so the only way to check that has been reducing speed from 166 MHz to 133 MHz, which appears to "fix" the problem with that particular board.  It's probably telling that the error appears most often when chainloading the application from mcuboot. It is more rare during application runtime. I can't find a reliable way to trigger it too - need to power-cycle the board several times until the fault appears.  Is there a way I can diagnose this XIP failure with more precision? Re: MIMXRT1160 XIP fails randomly Hi @tbonkers , The behavior you describe is most likely caused by insufficient read-sampling margin (setup/hold) at 166 MHz, due to tight PCB-routing/signal-integrity headroom on the Flash data lines. This also explains both symptoms: dropping to 133 MHz widens the sampling window so the issue "disappears"; and the mcuboot chainload is the first, dense, cache-cold instruction fetch right after a cold reset, where margin is tightest — hence it fails most often there, while runtime fetches mostly hit cache and rarely trigger it. We suggest the following checks, all software-side and requiring no PCB test points: Start with dummy cycles. Verify that the dummy-cycle count in the read LUT strictly matches your Octal Flash datasheet spec at 166 MHz. If an auto-generated FCB (e.g., from the provisioning tool) uses a lower value, set it to the datasheet-specified value, and you may add 1–2 extra dummy cycles to widen the data-valid window and increase sampling margin. Insufficient dummy cycles place the first data beat in the turnaround/not-yet-settled region — a classic source of intermittent errors. Verify the read sample-clock source . 166 MHz is only in-spec when readSampleClksrc=3 (kFlexSPIReadSampleClk_ExternalInputFromDqsPad: read strobe/DQS provided by the Flash device). If it is currently 0 or 1, 166 MHz is out of spec, which is fully consistent with "133 MHz fixes it." Please confirm a real DQS trace exists on the PCB and use this mode. If intermittent faults persist after these adjustments, you can run at 133 MHz as a safe baseline while isolating the 166 MHz margin bottleneck via steps 1–3 above. And this post may also help: https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Octal-flash-IS25WX256-dummy-cycles/m-p/2178828   Best wishes, Gavin Re: MIMXRT1160 XIP fails randomly Error log or schematics sharing could be helpful, how about the failing rate till now? Re: MIMXRT1160 XIP fails randomly Hi @Gavin_Jia , I've tested the read command with different dummy cycles count, and the failure is still there. I've set the number of dummy cycles in the flash volatile register to 20 so that it can support 166 Mhz. According to the flash datasheet it should support up to 200 MHz with 20 dummy cycles. readSampleClksrc=3 is set by the bootROM, confirmed with debugger connected. The DQS trace does exist.  Sometimes the fault happens while application is running, after the first major flash read. Re: MIMXRT1160 XIP fails randomly Hi @tbonkers , Thanks for the detailed testing. Based on your findings, this is most consistent with the 166 MHz Octal DDR XIP read path operating at the edge of its sampling / signal-integrity margin. readSampleClksrc=3 and the DQS trace are necessary but not sufficient conditions: in DDR DQS mode, the RT1160 side still requires the DQS-to-SIO relative skew to stay within ~±1 ns, and 166 MHz is the interface's upper limit, so margin is minimal.  I’ve looked into more resources, and the following solutions may help you resolve the current issue without modifying the PCB: Apply DLL errata ERR011377. The RT1160 errata states that after the DLL lock-status bit is set, an immediate read/write to the external flash may still return wrong data due to a timing issue; the workaround is to wait at least 512 FlexSPI root-clock cycles after the lock bit is set before accessing flash. Please ensure this delay is applied in every path in the bootloader and application that reconfigures FlexSPI/DLL/clock — this fits well with "most frequent at chainload, intermittent at runtime." Run a quantifiable RAM-resident stress test (more effective than repeated power-cycling). Place the test code and fault handler in ITCM/OCRAM, repeatedly read large flash blocks from the AHB memory map with CRC comparison, sweeping 166/133/120 MHz. If the error rate drops sharply as frequency decreases, it confirms a timing/SI-margin issue. For the mcuboot case:  if the bootloader ever erased/programmed the external NOR, you must invalidate I/D-cache before jumping to the application; also confirm the application does not re-initialize FlexSPI with different clock/DLL/LUT/pad settings. If in the end only 166 MHz fails while 133 MHz is stable, we recommend 133 MHz as the safe operating frequency for the current board; if 166 MHz is mandatory for production, the PCB DQS/SCLK/SIO length-matching, impedance, crosstalk, and pad drive strength should be reviewed, with test points added for these signals in the next revision. Best regards, Gavin
記事全体を表示
i.MX8MP: SError & Page Fault when running M7 with SAI3 audio enabled NXP 官方团队,您好: 我们在使用 i.MX 8M Plus 平台开发系统,运行 Linux A53 与 FreeRTOS M7。在尝试将 SAI3 音频接口分配给 Linux 使用的同时运行 M7 时,遇到了内核崩溃(SError / 页错误)。 1. 软件版本与环境: Kernel 版本:Linux 5.10.72 U-Boot 版本:U-Boot 2021.04 M7 SDK:MCUXpresso SDK for i.MX8MP (rpmsg_lite_str_echo_rtos) 参考官方文章:NXP Knowledge Base: Test SAI3 while running M7 firmware with remoteproc 2. 系统配置情况:   <1> M7 固件(m7.bin)存放在系统分区,并在 U-Boot 阶段通过 bootaux 0x007e0000 命令直接启动。 <2> 在 Cortex-A53 Linux 侧,我们使用挂载在 SAI3 + I2C3 + SDMA3 总线上的物理声卡芯片(SGTL5000)。 <3> Cortex-M7 负责 GPIO2_IO09 管脚上的 采集并触发高频采样中断,并通过 RPMsg 虚拟串口(/dev/ttyRPMSG30)与 A53 Linux 进行跨核数据交互。 3. 遇到的问题: 不调整声卡资源到A53的话,/dev/ttyRPMSG30设备操作是正常的; 目前需要应用A53的声卡设备,参考了官方帖子<Test SAI3 while running M7 firmware with remoteproc>后做出了以下调整,但内核启动会存在问题,改动部分如下: <1> 内核 dts配置已恢复声卡配置到A53,如附件 <2> u-boot dts: 分配了声卡资源到A53,如 <3> ATF,将 SAI3、sdma3 和 i2c3 分配给 A53,修改imx8mp_bl31_setup.c,如: <4> M7 SDK: 注释BOARD_BootClockRUN和BOARD_RdcInit函数涉及AUDIO的改动,如附件 和 4. 内核 dmesg 崩溃日志: 开机进入内核会卡主,log如下: [ 2.992289] i2c i2c-1: IMX I2C adapter registered [ 2.997631] SError Interrupt on CPU2, code 0xbf000002 -- SError [ 2.997634] CPU: 2 PID: 135 Comm: kworker/2:1 Not tainted 5.10.72-gf8ca51a867fa-dirty #56 [ 2.997636] Hardware name: EMB-3512-V11-M7 (DT) [ 2.997638] Workqueue: events deferred_probe_work_func [ 2.997642] pstate: 80000005 (Nzcv daif -PAN -UAO -TCO BTYPE=--) [ 2.997644] pc : i2c_imx_probe+0x31c/0x8fc [ 2.997645] lr : i2c_imx_probe+0x2b0/0x8fc [ 2.997647] sp : ffff8000126a3af0 [ 2.997648] x29: ffff8000126a3af0 x28: ffff80001135c3f0 [ 2.997654] x27: ffff0000c50aa880 x26: 0000000000000023 [ 2.997660] x25: ffff0000c50aaca0 x24: ffff0000c50aa8f0 [ 2.997666] x23: ffff800011d7c090 x22: ffff0000c4410e40 [ 2.997672] x21: ffff80001135c428 x20: ffff0000c041d800 [ 2.997677] x19: ffff0000c041d810 x18: 0000000000000020 [ 2.997683] x17: 0000000000000000 x16: 0000000000000000 [ 2.997689] x15: ffff0000c44112b8 x14: 0000000000000000 [ 2.997695] x13: ffff0000c4410e40 x12: ffff8000126a3a70 [ 2.997700] x11: aaaaaaaaaaaaaaab x10: 0000000000000060 [ 2.997706] x9 : ffff800011b993b4 x8 : ffff800011b99000 [ 2.997712] x7 : 00007dfed2122a00 x6 : 000000000007a120 [ 2.997718] x5 : 0000000000b71aff x4 : 0000000000000002 [ 2.997723] x3 : 0000000000000002 x2 : 0000000000000000 [ 2.997729] x1 : ffff0000ff86ea08 x0 : ffff800013c8000c [ 2.997736] Kernel panic - not syncing: Asynchronous SError Interrupt [ 2.997741] CPU: 2 PID: 135 Comm: kworker/2:1 Not tainted 5.10.72-gf8ca51a867fa-dirty #56 [ 2.997742] Hardware name: EMB-3512-V11-M7 (DT) [ 2.997744] Workqueue: events deferred_probe_work_func [ 2.997747] Call trace: [ 2.997748] dump_backtrace+0x0/0x1a0 [ 2.997750] show_stack+0x18/0x70 [ 2.997751] dump_stack+0xd0/0x12c [ 2.997752] panic+0x16c/0x334 [ 2.997754] nmi_panic+0x8c/0x90 [ 2.997755] arm64_serror_panic+0x78/0x84 [ 2.997757] do_serror+0x64/0x6c [ 2.997758] el1_error+0x90/0x110 [ 2.997760] i2c_imx_probe+0x31c/0x8fc [ 2.997762] platform_drv_probe+0x54/0xb0 [ 2.997763] really_probe+0xec/0x4d0 [ 2.997765] driver_probe_device+0x58/0xc0 [ 2.997766] __device_attach_driver+0xa8/0x10c [ 2.997768] bus_for_each_drv+0x78/0xd0 [ 2.997769] __device_attach+0xd8/0x180 [ 2.997771] device_initial_probe+0x14/0x20 [ 2.997773] bus_probe_device+0x9c/0xa4 [ 2.997774] deferred_probe_work_func+0x80/0xc0 [ 2.997776] process_one_work+0x1cc/0x350 [ 2.997777] worker_thread+0x2bc/0x46c [ 2.997779] kthread+0x154/0x160 [ 2.997780] ret_from_fork+0x10/0x30 [ 2.998109] SMP: stopping secondary CPUs [ 2.998111] Kernel Offset: disabled [ 2.998113] CPU features: 0x0240002,2000200c [ 2.998114] Memory Limit: none 请帮忙看看问题点,是否有相关文档和改动可以解决,期待你们的建议和答复!感谢! 回复: i.MX8MP: SError & Page Fault when running M7 with SAI3 audio enabled 已解决,需要完整关闭M7端的音频配置才可以
記事全体を表示
NXP SR040 Peak Power Consumption Hello, what is the peak power consumption of the SR040? And can I get a breakdown of Tx/Rx/idle? Re: NXP SR040 Peak Power Consumption Hello, Hope you are doing well. Sorry for the inconvenience this might cause you but as the information of this product it's under NDA (Non-Disclosure Agreement) the information it's not public. For more information about the chip could you please contact one of our distributors available in the Distributor Network|NXP? Or if you have any direct contact who helped you getting this device, please contact them. If you are looking for information about our UWB products or you are interested in this technology, I would recommend you check these Development Kits and Modules from our Partners (Trimension UWB Partners). In case you are interested in one of these Kits/Modules, you would need to go directly with them to know the process and the support that they can provide them, as the support path for this technology is through them. The documentation and software are distributed by the corresponding UWB Module partner. By selecting a module, you will be guided to our partner’s page where you can access datasheets, application notes, and the required enablement Regards, Ricardo
記事全体を表示
Could someone please help me find the Safety Manual for the S32K3? Hi everyone, I'm looking for the Safety Manual for the NXP S32K3 MCU family. Could someone help me find it or provide information on how to access it? Re: Could someone please help me find the Safety Manual for the S32K3? Hi Have you already signed an NDA with NXP? If you are unsure whether company has signed an NDA with NXP, please tell me company's full name or address. If you already have a valid NDA, please refer to this document to register a Secure File account. Once you have Secure File access, you can click on Secure in the documentation section of the S32K3 product page and download the Safety Manual. Safety Manual S32K3.png Best Regards, Robin
記事全体を表示
MCUXpresso SDK Latest Version - Recommended Approach for Flash Data Storage Hi Team,   I am evaluating the latest version of the MCUXpresso SDK and working with an NXP MCU.       For saving small configuration parameters (device settings, calibration values, counters, etc.) into internal Flash memory, what is the currently recommended approach?     Specifically:   1. Is it better to use a dedicated Flash storage area or EEPROM emulation (where supported)?   2. Are there any performance or reliability considerations when performing frequent Flash write operations? 3. Does NXP provide any example projects demonstrating best practices for parameter storage and wear leveling? 4. Are there any SDK libraries recommended for managing persistent configuration data? I have reviewed the available SDK documentation, but I would appreciate guidance on the recommended implementation approach for new projects.   Re: MCUXpresso SDK Latest Version - Recommended Approach for Flash Data Storage Hello @Manjuanth, I see you've posted this on the S32K's product forum, however, S32K's MCUs are not compatible with MCUXpresso, and use S32 Design Studio instead. Could you share which NXP MCU you are using? Best regards, Julián 
記事全体を表示
MCX W23 Power Profile Tools for CGM This page is dedicated to the Kinetis MCX W23 Power Profile Tool for Continuous Glucose Monitoring (CGM). It will help you to estimate the power consumption in your CGM application and evaluate the battery life time of your solution. This page will contain dedicated power profile tool for: CGM full application using the MCX W23 product christophe_menard_0-1786027418500.png AN14157 Power consumption analysis AN14660 Power management id: Wireless connectivity forum [start:July 31 2026]
記事全体を表示
Kinetis MCX Wxx (KW47 & MCX W72) 蓝牙定位电源我的工具 本页面专用的 Kinetis KW47 和 MCX W72 功率我的本地化工具 (CCC CS)。 它将帮助您估算应用(汽车和工业物联网)中的功耗,并评估解决方案的电池寿命。 本页面包含一个专用的、用于以下用途的我的电源工具: 汽车和工业物联网定位应用(CCC CS) 汽车行业: KW47 SDK 中提供了 2 个汽车应用示例: ...\kw47b41zevk\wireless_examples\bluetooth\digital_key_car_anchor_cs ...\kw47b41zevk\wireless_examples\bluetooth\digital_key_device_cs 工业物联网 (IIoT) ... MCX W72 SDK 中提供了 2 个 IIoT 应用示例: ...\MCX W72\boards\mcxw72w148evk\wireless_examples\bluetooth\loc_reader ...\MCX W72\boards\mcxw72w148evk\wireless_examples\bluetooth\loc_user_device AN14628_KW47_CCC_CS_Power_Profile_estimator tool_release.pdf id:NXP知识库 [开始日期:2021年5月27日] [截止日期:2021年6月27日]
記事全体を表示
Kinetis MCX Wxx (KW47 & MCX W72) Power Profile Tools for Bluetooth Localization This page is dedicated to the Kinetis KW47 and MCX W72 Power Profile Tool for Localization (CCC CS). It will help you to estimate the power consumption in your application (Automotive & IIoT]) and evaluate the battery life time of your solution. This page contains a dedicated power profile tool for: Localisation application (CCC CS) for Automotive & IIoT Automotive : 2 automotive applications example are available in the KW47 SDK: ...\kw47b41zevk\wireless_examples\bluetooth\digital_key_car_anchor_cs ...\kw47b41zevk\wireless_examples\bluetooth\digital_key_device_cs IIoT 2 IIoT applications example are available in the MCX W72 SDK: ...\MCX W72\boards\mcxw72w148evk\wireless_examples\bluetooth\loc_reader ...\MCX W72\boards\mcxw72w148evk\wireless_examples\bluetooth\loc_user_device AN14628_KW47_CCC_CS_Power_Profile_estimator tool_release.pdf id:NXP-Knowledge-Base [start:May 27 2021] [end:June 27 2021]
記事全体を表示
Kinetis MCX Wxx(KW47およびMCX W72)Bluetoothローカライゼーション用パワープロファイルツール このページはKinetis KW47およびMCX W72 Power Profile Tool for Localization (CCC CS)に特化しています。 これにより、あなたの用途(オートモーティブおよび工業電気)での消費電力を推定し、ソリューションのバッテリー寿命を評価するのに役立ちます。 このページには、以下の用途に特化した電源プロファイルツールが含まれています。 オートモーティブ&IIoT向けのローカリゼーションアプリケーション(CCC CS) オートモーティブ : KW47 SDKには2つの自動車アプリケーションの例があります: ...\kw47b41zevk\wireless_examples\bluetooth\digital_key_car_anchor_cs ...\kw47b41zevk\wireless_examples\bluetooth\digital_key_device_cs IIoT MCX W72 SDKには2つのIIoTアプリケーション例があります: ...\MCX W72\boards\mcxw72w148evk\wireless_examples\bluetooth\loc_reader ...\MCX W72\boards\mcxw72w148evk\wireless_examples\bluetooth\loc_user_device AN14628_KW47_CCC_CS_Power_Profile_estimator tool_release.pdf id:NXPナレッジベース [開始日: 2021年5月27日] [終了日:2021年6月27日]
記事全体を表示