Developer support experience survey - We value your feedback
Join discussions in the Product Forums. Ask questions, learn from your peers, and share insights on ST solutions to accelerate your design journey.
Most recent activity
Hi everyone,I’m currently working on a project using the ST B-G431B-ESC1 discovery kit to drive a 24V 250W BLDC hub motor. I'm using the SimpleFOC library for control and have added a small heatsink to the board to manage temperatures.The issue is that after running for a short period, I keep losing MOSFETs; they just randomly burn out. The motor wasn't even under heavy load when it happened, but I was trying to tune the PID, so there was some jerking.What could be causing this? Is it likely an overvoltage spike, an overcurrent issue, or something else entirely? How can I find the root cause, and is this board truly capable of driving a 250W–350W motor continuously, even with enough cooling?
In STM32CubeIDE, it is possible to view two different source files side by side by dragging editor tabs with the mouse. However, there is no keyboard shortcut or command to move the active editor to the left/right split.This slows down workflow when frequently comparing files (e.g., main.c and app.c). A command such as “Move editor to right/left split” with assignable key binding would greatly improve productivity.Best regards.
Hi, I have a functioning project that fully compiles with only three warnings, but when I debug it and examine C structures in the live expressions viewer the the data (GovTrimControl_P structure ) appears to be offset by 4 bytes, yet the memory browser shows the correct values and when the mouse hovers over a value that value is correct: The Build Analyser also reports the address of GovTrimControl_P correctly Compile Problem Output: The values for the GovTrimControl_P structure are set at bootup to: /* Parameters (default storage) */ struct P_GovTrimControl_T_ { real32_T FreqSP; /* Variable: FreqSP */ real32_T kD; /* Variable: kD */ real32_T kI; /* Variable: kI */ real32_T kN; /* Variable: kN */ real32_T kP; /* Variable: kP */ }; typedef struct P_GovTrimControl_T_ P_GovTrimControl_T; /* Block parameters (default storage) */ P_GovTrimControl_T GovTrimControl_P = { /* Variable: FreqSP */ 50.0F, /* Variable: kD *
We are using 2 KNX IC on our project. One of them for communication and some LEDs other one (STKNX) just for driving LEDs not for communication. But of course is directly connected to KNX_BUS line. When we applied Surge test , TVS couldn't protect the device.I found some solutions but of course is effects other part of design.TVS is 36V bidrectional.If I choose 100R for 68R connected to pin3 R68 which is transmitter pin, everthing is fine. Passing the test. KNX timing is also good. However, Voltage on VDDHV is lower as excepted, and LEDs are flickering (blinking).1- How can i juice more power from STKNX? 2- Is this a big problem when i choose 100R instead of 68R, because we are not using STKNX as communication IC.Thanks. Cvgate 10uF, Cvddhv - 330uF
Im using STM32SD library on my stm32f407vet6 board. I want to make a logging system for my application. My initial logic is: on setup we count number of files in our root directory and create a new file named dataLog{fileNumber}. Then we write data into that file and check if its not empty. In given code example im always getting only last write into file (fouth write). As ive got this library only works in FILE_WRITE or FILE_READ modes. I trtied to use FA_OPEN_APPEND modifier but when im using this im getting errors while file creating.And another thing is that im always getting a lot of initialization errors and file open errors overall while using this library, maybe it depends on me using stm32f407vet6, any advices would be great. Now i will try to use an advice from github issue of "unstable work with sdcard on stm32f4" - i'll try to redefine the value of the SD_CLK_DIV to bigger value. #include <STM32SD.h> int fileNumb
Hi,we use the STM32MP157C with almost the same RAM layout as the STM32MP157F-EV1, except that the SDRAM chips are from Micron (MT41K256M16). The PMIC is also the same as the one on the evaluation board, and the settings therefore are identical. TF-A, optee, u-boot and kernel are active.On almost all boards, we see sporadic page faults from the kernel (one in 400 warm starts), distributed across the RAM (all entries from different starts):[ 0.000000] BUG: Bad page state in process swapper pfn:d0cfc [ 0.000000] page:(ptrval) refcount:1 mapcount:0 mapping:00000000 index:0x0 pfn:0xd0cfc -- [ 8.840693] BUG: Bad page state in process tar pfn:f77ae [ 8.840730] page:769addeb refcount:1 mapcount:0 mapping:00000000 index:0x4 pfn:0xf77ae -- [ 9.664655] BUG: Bad page state in process rc pfn:f70c8 [ 9.664691] page:c59745a8 refcount:1 mapcount:0 mapping:00000000 index:0x4 pfn:0xf70c8 -- [ 0.000000] BUG: Bad page state in process swapper pfn:eace6 [ 0.000000] page:(ptrval) refcount:1 mapcount:0 mappi
Hi all,I have a board designed using the STWLC38 as the Qi Rx. An ESP32 is the host controller using I2C to configure the STWLC38. The communication works OK and I can set and read various registers.I have two questions on this configuration:The STWLC38 datasheet lists the functions of all the various registers but doesn't list the addresses for many of them. Are these available elsewhere?The STWLC38 is powered from the Qi coil so that I can only read/write when I have a successful pairing. How can I save my custom parameters to RRAM using I2C?Thanks in advance.
Hello,I am trying to get Ethernet-over-USB working on a STM32U585. I want to be able to use both RNDIS and CDC-ECM, but I decided to start with RNDIS first. After a lot of trial and error and research, I am running out of ideas as to why my PC does not show any devices in USB Viewer on the port where I connected the circuit board. I am developing on a B-U585I-IOT02A.I based my work on the following example: https://github.com/STMicroelectronics/stm32-usbx-examples/tree/main/Projects/STM32H735G-DK/Applications/USBX/Ux_Device_RNDISI provide my code here (if not mentioned it is generated by CubeMX). I did not touch files if code is not shown here:main.c: int main(void) { /* Reset of all peripherals, Initializes the Flash interface and the Systick. */ HAL_Init(); /* Configure the System Power */ SystemPower_Config(); /* Configure the system clock */ SystemClock_Config(); /* Initialize all configured peripherals */ MX_GPIO_Init(); MX_ICACHE_Init(); // HINT: this function
我使用的芯片是G071RB,当我使用STM32UCPD发status,直接从FF01(PD协议的DP模式)变成0x00000,并且在抓包发现再发送的时候没有发VDO000000001,返回的数据中HPD为0,有没有大佬知道怎么解决 Translation: I'm using the STM32G071RB MCU. When I send a status update using STM32UCPD, it jumps directly from FF01 (DP mode of the PD protocol) to 0x00000. Packet capture shows that VDO000000001 is not sent during retransmission, and HPD is 0 in the returned data. Does anyone know how to solve this?
Hi everyone,I’m using an STM32L562 MCU and outputting LSE (32.768 kHz) to MCO for measurement.In LSE crystal mode, I see a large frequency deviation on the oscilloscope (much larger than expected ppm-level error).To rule out the crystal itself, I checked the 32.768 kHz crystal and it seems OK.Then I tried LSE bypass mode (feeding an external 32.768 kHz clock into the LSE pins). In this case, the MCO output frequency error becomes very small, and the waveform/frequency looks correct.So I suspect there might be an issue with the LSE oscillator circuit (load caps, PCB layout, drive strength, leakage, etc.) when running in crystal mode.Questions:Has anyone experienced large LSE frequency error in crystal mode on STM32L562 / STM32L5 series?Any common root causes (wrong load capacitors, stray capacitance, drive level, board leakage, etc.)?Any recommended debugging steps or configuration tips (e.g., LSE drive settings, oscillator startup behavior, measurement method, etc.)?Thanks in advance!&
Hey, I am using the STM32G0B0VET (16MHz HSE) with a virtual com port over USB. The virtual com port is working fine but as a backup I would love to be able to let the user reflash the device. I was thinking of using the DFU for this since then the user would only need a standard USB cable (consumer electronics hopefully high volume). I exposed a button that can pull BOOT O high (small reprogram button you have to push). (Normally in the field updates are not needed but I would like to have this as a backup). Now I have the following problem when I boot the device (that is flashed) when pressing the button (keeping BOOT 0 high) my PC sees the virtual COM port and not the DFU device. It is thus running the usual code and not entering the bootloader. If I erase the STM32 with the ST link I can access the DFU just fine with the boot button. Does anybody have a fix for this? Best regard and thanks already for the help.
Hello There I have question regarding calibration of offset and cross talk for VL53L4CD / VL53L4ED.For my application i need to config Signal Threshold, Sigma Threshold, Timing Budget etc to other than sensor's default value, So, my question is should i do xtalk & offset calibration with sensor's default config? or i need to do calibration with my custom config? Regards
Hello, I am driving a motor using the STEVAL-SPIN3201. The code is generated via the mc workbench.When I test the programm, the motor behaves like that:The motor starts up slowly according to the start up procedure I chose in the workbench.Then suddenly the motor moves with fullspeed for some seconds.After this the motor slowes down to the desired speed. Now I am able to change this speed via the motor pilot. When I change the Kp and Ki value, I can reduce the duration of the "full speed periode". However, it is still there. Can you explain what is happening and why the motor moves to full speed for a short time? Thanks a lot for your help!Florian
I have one question regarding the HAL_FLASH_Program function. I use the HAL_FLASH_Program many times during the runtime of the firmware. I use it to store log, warnings and errors in the several flash pages. When the page is full and I must write into it I erase the page, obviously. However, at the very begining I also want to store the "reset cause" (an entry in the flash pages) of the last power cycle (switch on off). Was it a BOR, WWDOG, IWOG, PINRST, etc, etc,..? Unfortunately, I am unable to successfully use HAL_FLASH_Program with a HAL_OK. It seems as if HAL_FLASH_Program does not work at the very beginning of the firmware application... does it sound crazy? Could it be that this function needs some time to work. /** * @brief The function's role is to save the log data into the log page/s. */ mid_error_t flash_program_loop_2(const uint8_t * data_in) { HAL_FLASH_Unlock(); /** * first we check if the next position to writ
Hello,I currently working with the STEVAL-25R3916B kit and using the ST25R3916 GUI to tune the antenna. My goal is to achieve a target amplitude of 2600 mV or higher, but the system remains around 2 V even when 5 V is selected for RF power on the reader expansion board.I’ve noticed that the amplitude displayed in the GUI is significantly lower than the target value after performing antenna tuning, and the parameter AAT_B reaches its maximum limit of 255.Here are the outputs and screen copies.-Startup TabST25R3916 Reader Board Detected.. 'ST25R3916-DISCO (MB) v1.4.3' FW=1.4.3 Chip variant ST25R3916B
Hi,i have new design that i am migrating to the STM32G071 and having issues with the SPI1 port PB3,PB4,PB5. Changing CPOL and or CPHA during init code do not seem to have any impact, when powered down and restarted.I am seeing 9 clock pulses when set to 8 bit data. Suspect this might be issues with the overall SPI setup.the init code is simple changed to the absolute simplest format.ignoring setting the PB3,4,5 GPIO pins as they are good i can see the signals on the cro// bidirectional mode full 2 lineSPI1->CR1&=~SPI_CR1_BIDIMODE;// set as masterSPI1->CR1|=SPI_CR1_MSTR;// CPOL clock idle lowSPI1->CR1&=~SPI_CR1_CPOL;// CPHA rising clock edgeSPI1->CR1&=~SPI_CR1_CPHA;// set LSBFIRST low we send MSB firstSPI1->CR1&=~SPI_CR1_LSBFIRST;// set up SSM pinSPI1->CR1&=~SPI_CR1_SSM;SPI1->CR1&=~SPI_CR1_SSI;// configure data size 8 bitsSPI1->CR2|=(SPI_CR2_DS_2|SPI_CR2_DS_1|SPI_CR2_DS_0);// set the reception thresholdSPI1->CR2|=SPI_CR2_FRXT
下面是我的部分函数,普通串口按照这个配置,是可以正常进入回调函数,但是LPuart却不能进入回调函数,不知道问题出在哪里,使用stm32cubemx6.16.0,附件是ioc文件, Post Edited by ST moderator to apply source code formatting and translate from Chinese to English to comply with the community rule: Below are some of my functions. With this configuration, the standard serial port can enter the callback function normally, but LPuart cannot. I'm unsure where the issue lies. Using STM32CubeMX 6.16.0. The attached file is the I/O configuration file. void StartControlPowerTask(void const * argument) { /* USER CODE BEGIN StartControlPowerTask */ HAL_StatusTypeDef ret; __HAL_UART_ENABLE_IT(&hlpuart1, UART_IT_IDLE); __HAL_UART_CLEAR_IDLEFLAG(&hlpuart1); ret = HAL_UARTEx_ReceiveToIdle_DMA(&hlpuart1, rxl1_dma_buffer, RX_BUFFER_SIZE);//rs232 /* Infinite loop */ for(;;) { osDelay(1); } /* USER CODE END StartControlPowerTask */ } void HAL_UARTEx_RxEventCallback(UART_HandleTypeDef *huart, uint16_t Size) { if (huart->Instanc
Hi AllI have a question about the debugging the M4 when we are using OpenAMP Lets say we have a simple example from the docs , and i am creating debug config and i am expecting the code to be flashed and the communication to work (while debugging) but that is not the case. What is happening is the following , when debugging the code hangs on MX_OPENAMP_Init(RPMSG_REMOTE, NULL); and this is because the M4 is a slave and waits for the A7 to send a signal , but that is never happening because the A7 core is not aware of the debug. Is there a straightforward way to debug ? instead of attaching to a running target , restarting the M4 core etc.I cannot find anything on the internet Thank you
The X-NUCLEO IKS4A1 cannot operate correctly in MEMS Studio with the default sensor selection on the board. I have the nucleo f401re.
Hello,I am trying to get the VS-Code extension to work on my Intel-Mac. I already have it running on my Windows machine no problem.The problem is, that the extensions won't activate. I have created a new project using CubeMX and choose CMake as the toolchain. Then I installed the STM32 CLI tools, as well as cmake and the ARM compiler.Then I am opening the project in VS-Code and CMake asks for a target. I choose Debug.CMake extension output:[proc] Executing command: /usr/local/bin/cmake --version [proc] Executing command: /usr/local/bin/cmake -E capabilities [kit] Successfully loaded 2 kits from /Users/jan/.local/share/CMakeTools/cmake-tools-kits.json [presetController] Reading and validating the presets file "/Users/jan/Dev/fischer-technik-motor-controller/CMakePresets.json" [presetController] Successfully validated /Users/jan/Dev/fischer-technik-motor-controller/CMakePresets.json against presets schema [proc] Executing command: uname -s [presetController] Expanding presets file /Users
Hi, I'm trying out the VL53 series to try to measure the height of liquids in a container. In my use case, we are measuring sauce in sauce cups - ranch dressing, hot sauce, etc. One issue we have noticed is that with oil or oily sauces such as olive oil. The sensor is not responding with the correct depth measurement. The sauce can be 4-6 inches from the sensor. Looking at the documentation, there could be some cross talk issue, however we don't what sauce will be used. (The user can provide different sauces) - Do you have recommendations on how to get better results with this sensor?
If I am correct, the descriptions of - HRTIM_ADC2R - Bit 22 - HRTIM_ADC3R - Bit 19 - Bit 13 - HRTIM_ADC3R - Bit 22 - Bit 13 - Bit 10 - Bit 5 - Bit 4 - Bit 0are not correct in the RM.They all describe trigger event generation but the trigger output in all these seem wrong:E.g.: HRTIM_ADC2R, Bit 22,Original Text: "This bit enables the generation of an ADC trigger upon timer C reset and roll-over event, on ADC trigger 1 output."It should be: "This bit enables the generation of an ADC trigger upon timer C reset and roll-over event, on ADC trigger 2 output."Also, I want to ask, if this forum is the right place to give feedback on documentation issues?Best Simon
I am working with the following tool versions:MC Workbench: v5.4.8STM32 Firmware Package: v1.11.3STM32CubeMX: v5.6.1Since I don’t have the Bull Running C1700KV motor, I’m using a 900KV motor with a 6S battery. I’ve already run the profiler, obtained the motor results, and entered those parameters into MCSDK.My question is: Which additional parameters should I adjust to generate reliable firmware for this setup?
Hi!If I look at the datasheet of STM32WL31xx, I find Table 34. PA impedance which tells e.g. an optimum load impedance of 32 Ω // 16 nH in line 5 (high power, 868MHz) This STM32WL31xx is (according to the datasheet) available in VFQFPN32 and VFQFPN48 packages.-----Now, while reading the AN5457 (RF matching network design guide for STM32WL Series), I get confused. This AN should cover the whole STM32WL31 and STM32WL33 series , right? So It should definitely be valid for my STM32WL31K8 in VFQFPN32 pakage?Now to my questions:1.) If the AN5457 is applicable, why does PA matching impedance measurements in Appendix A not contain any PA impedance measurements for the VFQFPN32 package?2.) If I compare the datasheet PA load impedance given at the top of this post with the "next best" data of the UFQFPN48 package, the values are not anywhere near that of the values in the datasheet. Can anyone tell which impedance value I should use as a starting
The erroneous configuration in the tx_initialize_low_level.S is this: LDR r1, =0x40FF0000 // SysT, PnSV, Rsrv, DbgMThe tx_initialize_low_level.S file is generated upon selecting ThreadX 'Core' in the STM32CubeMX v6.15.0, and the above line is thereafter never changed. Specifically, upon enabling 'Enable BASEPRI support' and selecting a very common value of 5 for the TX_BASEPRI_VALUE, the above line is not updated accordingly. Not syncing the SYSTICK IRQ priority with the TX_BASE_PRI_VALUE of course leads to a system failure.This issue can be duplicated by creating a brand new project with STM32CubeMX v6.15.0 and it can be seen in the sample projects included in the Applications/ThreadX in the STM32Cube_FW_U5_V1.8.0
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.