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 Team, Currently, I am working on the STM32N657-DK EVB with an SPI interface (ADS118 sensor). I have enabled SPI5 in the .ioc file. The configured pins are: PE11 – SCK PH8 – MISO PG2 – MOSI PA3 – CS According to the schematic, these pins are connected to the CN12 connector. My question is whether these pins can communicate correctly using the SPI5 interface or not. Secondly, I want to generate PWM signals. Could you please let me know which pins are suitable for PWM generation on this board? I tried using the CN11 and CN12 connectors to drive PWM signals on pins such as PE9, PE10, and PE11, but PWM is not being generated. Kindly let me know your inputs.
I am developing a custom board using STM32H523RET6.It has a USB type C port, and I am trying to send some data from PC to the board through it, and decided to use USB CDC ACM with standalone mode. The code is based on this and this.ux_device_class_cdc_acm_write_run worked perfectly, but ux_device_class_cdc_acm_read_run doesn't work.No matter what kind of texts I send, ux_device_class_cdc_acm_read_run returns "T" (84). The code I am using is this;uint8_t UserRxBuffer[APP_RX_DATA_SIZE]; VOID USBX_DEVICE_CDC_ACM_Read_Task(VOID) { ULONG actual_length = 0; UX_SLAVE_DEVICE *device; device = &_ux_system_slave->ux_system_slave_device; /* Check if device is configured */ if ((device->ux_slave_device_state == UX_DEVICE_CONFIGURED) && (cdc_acm != UX_NULL)) { #ifndef UX_DEVICE_CLASS_CDC_ACM_TRANSMISSION_DISABLE /* Set transmission_status to UX_FALSE for the first time */ cdc_acm -> ux_slave_class_cdc_acm_transmission_status = UX_FALSE
New question Moved from this thread. Hello @mƎALLEm Thankyou for the reply. I was trying to connect stm32U585aii6Q and STM32N6 with same audio codec MB1219 & wifi, of course one at a time. Can you guide is it possible to do. Thanks Regards, Sakshi
How may I use STM32MP257F-EV1 PCIe in *Endpoint Mode*? I am looking to connect two STM32MP257F-EV1 devices together via PCIe; one device in PCIe host mode, and the other in PCIe endpoint mode.1) Physical connectionAccording to the boards user manual, I see that the PCIe interface is presented on CN13 and described as a Mini-PCIe. How can I connect two STM32MP257F-EV1 devices together via PCIe?2) Clock configurationSection 8.9.1 talks about a 100MHz Ref Clock options. There appear to be three options: (1) SOC generates a clock, (2) SOC takes external clock from U33, or (3) SOC takes clock from the mini-PCIe connector. The selection of an option refers to several "R###" on/off choices. Are these choices made by adjusting surface mount resistors?If we aim to connect one eval board ("Host mode") to another ("Endpoint mode"), should we aim to bring bring board's clock to the other? Or provide same external clock to both boards?Where is this exte
Hi, I'm using stm32h7, currently working with SPI + DMA in HAL library, because of HAL overhead I want to move to LL library, where can I get the SPI+DMA using LL library examples, regards, Srinath
Hello everyone,I am interfacing ADXL345 in stm32f103c8t6 by using I2C connection. I have fixed the set up on a board. I would like to know if I can identify the movement of adxl by observing the changes in x, y, and z values if there is no vibration but the board is moving smoothly, that is, to the right or left. If not, how can I predict when the adxl will go forward or backward without relying on the sensor's tilt or vibration? I just want to create a basic activity detector where the logic would be :1. If the setup does not move, the output should be zero.2. If the setup is vibrating and moving, the output should be one.3. If it is simply vibrating (and not moving in space), the output should be 0.So, basically, I want to detect actual movement and not just vibration noise.I noticed that when the movement is smooth or constant ADXL345 values do not change much, so my logic is not detecting that as “motion.”STM32f103c8t6<-> ADXL345PB6<->SCL PB
Hi thereI'm a little embarrassed to post this, but.. Coming from Microchip world I would just change TRISx, so simple.As I've learned so far the MX are in charge for setting up a port.But in my application I need to set a 8 bit wide port for parallel interface to a device.Also it needs to change output <> input.My first thoughts were not to tell the MX about the device on port PC0 to PC7.Then do the setup "manually" in the code.But then again I think this so common, there must be a MX way of doing this. Thank you.
Hello!I am currently troubleshooting an issue on a customized board based on the STM32F469IIT6 MCU. The board leverages MIPI-DSI Video Burst Mode to render a TouchGFX UI on the display.The problem manifests as follows: the display works perfectly normal when the video signal initializes, but the image intermittently shifts within 5 minutes after power-on.I have captured the MIPI-DSI video signal using an oscilloscope for analysis. The results indicate that the synchronization signal of the DSI output remains stable as expected, while a noticeable delay occurs in the pixel data transmission — which is the direct cause of the image shifting issue.I had confirmed that the registers of the DSI and LTDC wasn't changed before and after the shift. The DSI and LTDC shows no warnings or errors.What could be the root cause of this? Is there any solutions?You can find the shifted image displayed and the wave captured in the attachment.
Hi. I'm having trouble using the old USB Host Middleware to read a USB stick with a STM32U545.I've tried to follow this article, doing my best to adapt it for the host middleware and also using the "FatFs_USBDisk" example project for the F767 Nucleo board and a usbh_conf.c/.h written by a coworker for another U545 project which supposedly worked at least once.My code fails in Enumeration when the MCU tries to get the device descriptor - The MCU sends a SETUP packet and a DATA0 packet with 0 bytes (instead of the expected 8) and the stick sends an ACK. The MCU then sends an IN packet and the stick sends a NACK. The IN & NACK are then repeated for many frames until the stick sends a STALL instead.Can anyone help me identify where the bug is and how to fix it?Thanks.
Hi, 1》In the dark,Place the white target 140mm from the sensor call function Status = VL53L0X_perform_offset_calibration(&vl53l0x_dev,0x8c0000,&pOffsetMicroMeter); 2》In indoor environments ,Place the black target 600mm from sensor call function Status = VL53L0X_perform_xtalk_calibration(&vl53l0x_dev, 0x2580000, &pXTalkCompensationRateMegaCps); 3》in main function Status = VL53L0X_set_offset_calibration_data_micro_meter(&vl53l0x_dev,&pOffsetMicroMeter); Status = VL53L0X_SetXTalkCompensationRateMegaCps(&vl53l0x_dev,pXTalkCompensationRateMegaCps); Is the above process correct? But &n
Hi allI am looking for a solution to prevent the NULCEO-H563ZI board from resetting every time the USB-C cable to the PC is plugged in and out. The virtual COM port of the ST-LINK is used to send configuration data to the board. Therefore, it is not so handy if it resets itself every time I unplug the PC. It is supposed to continue to run.The NUCLEO is supplied by 3.3V from a host board, so no PWR-SEL jumper is set and SB1 is removed. The on-board crystal oscillator is used (SB48 and SB50 equipped with 0R's and SB49 of ST-LINK clock is removed). Thanks for your inputs :)
Hi,If I use STM32CubeIDE 1.19 to start a new project for the STM32H755 Nucleo board, the startup assembly files in both the CM7 and CM4 sub-projects are the same file with the same contents, startup_stm32h755zitx.s. It looks like this file is the one generated for the M7 core that just gets copied over to the M4 directory, because inside it has: .cpu cortex-m7Now, I know both cores share all the peripherals and interrupts. But I would assume the ".cpu" definition would need to be cortex-m4 for the M4 core. So far I haven't seen any issue, but this is probably a hidden bug.Thanks,-m
Hi, I am creating application using LPBAM configuration. The application simply is:Enter stop mode 2- Use ADC4-12bit channel 22 (PC4) to measure voltage using clock HSI or MISK- ADC wdog to generate interupt when the value reach threshold to exit stop mode 2- LPTIM1 will trigger ADC4 500ms cycle using clock LSE- LPDMA1 channel1 to store converted data, and save to array adc4_buffer[1]- LPDMA1 channel 0 ensure queue run LPBAMWhat I have done:ADC4 configuration (ADC4 global interrupt enable in NVIC)LPTIM1 configurationLPDMA configuration (LPDMA channel 0 interrupt enable)Scenario queueThen I generate code and face this warningI already createt project without Trust Zone, also check LPBAM check log but cannot verify it. So I need help. Thank you
Hi Everyone, I've followed STguide on Ethernet on H755 using RTOShttps://community.st.com/t5/stm32-mcus/how-to-create-a-project-for-stm32h7-with-ethernet-and-lwip-stack/ta-p/49308/page/2/show-comments/trueand a github on ETH on bare metal (my case)https://github.com/AngryCarrot61/NUCLEO-H755ZI-Q_003_ETH?tab=readme-ov-file i got the board to work and ping, I've implemented MPU and connected it to a laptopDHCP is disabled, my laptop ip is 10.0.0.100, subnet 255.255.255.0, gateway 10.0.0.1the mcu ip is 10.0.0.60The ping works only if i flash the M4 core with an empty application which gets halted by the HSEM (it never works unless i flash the M4 first after power up) and the connection never lasts more than a minute. Looking for some help, i've included the whole zip file of the project if someboy could replicate it on their machine, i'm using a H755ZI nucleo boardThe problem seems to be releated to Rx heap size, but I'm lost
What is meant by watermark concept in chromArt Controller, Whats the application of it can you explain in detail and clearly
Hi Sir,From the schematics of steval-usbc2dp, the AUX channel is connected to both STM32 MCU and display unit(sink).Does it mean, STM32 MCU can access DPCD information between Host terminal(source) and display unit(sink), or transmit DPCD to display unit instead of Host terminal?Thanks,Eric Fu
I am facing very weird issue in STM32 ADC.1. I used single channel in polling mode and interrupt mode the value i got was 4095, even the pin voltage was 1.7V, i used DSO to look for any serious noise on the pin but it was clean.Also if i gave 0V to this pin (pin 29 Ch10) it displayed adc value round 30.2. Then i tried DMA for single channel CH0 it behaved same.3. Then i tried DMA for 3 channel Ch9,Ch10,Ch11... behavior was same but this time if i touched any of the ADC Channel from ch9 & ch11 the value of Ch 10 became 2200, which was quite correct.4. Then i tried DMA for only Ch10 then adc value became 4095 for 1.7V and touching any pin doesnt do anything.Just if i give 0V instead of 1.7V adc value come near to 30-40.5. Circuit checked multiple times its a custom PCB, connections are solid.. track distances are well above the standard.6. I am using STM32CUBEIDE to generate the code. Unable to figure out what wrong i am doing. for information:- I have used ADC of STM32 mul
Hi there,I am quite new to this embedded platform. I am trying to work on enabling uart7 on the STM32H7S78-Discovery kit, while working on this display GUI using touchgfx designer 4.26.0. After scouring through some videos it is recommended to open up .ioc configuration file using STM32cubeMX to enable the peripheral (e.g uart7). However after generating code and using STM32cubeIDE to flash the H7S78 discovery kit the screen goes blank after reset button was pushed. Could you advice what is the right workflow with touchgfx -> STM32cubeIDE and STMcubeMX (to enable peripherals) -> back to touchgfx to further add/change touch buttons etc
Hello,I am experiencing a persistent verification error when flashing an STM32H7 via USB DFU using the STM32_Programmer_CLI. The exact same command and hardware work perfectly on Windows, but fail consistently on macOS.Environment:Tool: STM32CubeProgrammer CLI v2.9.0 (also tested on newer versions)OS: macOS vs Windows 11Hardware: STM32H7 custom boardConnection: USB DFU ModeFile: .hex file (approx. 44MB) containing internal flash and external memory data.The Problem: On macOS, the download reaches 100%, but the Verification fails at 98%. The error always points to the start address 0x0800E000 reporting a byte mismatch (0x00 instead of 0x70).Log Comparison Observations:Windows (Working): The log explicitly shows individual sector erases: erasing sector 0003 @: 0x0800c000 done.macOS (Failing): The log shows Erasing memory corresponding to segment 0... but never confirms the individual sectors as "done." It seems the erase operation is being skipped or failing silently on the Mac DFU stack
Hi Everyone, I wanted to add a audio codec with stm32U585aii6Q can anyone share he reference or guide how can it be done. Thanks Regards Sakshi
Hello,I am working with STM32H745 (dual core Cortex-M7 and Cortex-M4) and I am trying to understand the correct and supported way to stop and then restart the M4 core from the M7 core using software only, without resetting the whole chip.My goal is to implement a core-local watchdog mechanism where the M7 core keeps running and supervises the M4 core. If the M4 gets stuck or stops responding, the M7 should be able to stop or reset the M4 and then start it again cleanly.I have read the reference manual and found the following:SYSRESETREQ via AIRCR triggers a full system reset, so it is not suitable for this use case.Disabling RCC clocks does not actually stop the Cortex-M4 core execution.HAL_PWREx_ReleaseCore(PWR_CORE_CPU2) only releases CPU2 from the HOLD state and does not reset or stop a running M4 core.I found the MP_GRSTCSETR register and the M4 reset bit mentioned in some discussions, but the CMSIS and HAL naming is confusing and it is not fully clear whether this is the recommend
HI Sir, "Could you please check the following switching frequency waveform images? The setup is: 24V input, 12V output (max load ~1.8A), R-FSW = 68kΩ, inductor = 15μH, and COMP configured as 680Ω + 33nF (parallel with 1nF) — see the images below. This 12V output powers both a mini PC and a 200Hz PWM backlight circuit. Which value should we use for R15: 680Ω, 10kΩ, or another resistance?"
Hello, everyone on the forum. I am using ThreadX and FileX to write files to an SD card on the STMH735G-DK. I successfully created a directory using fx_directory_create and created a file using fx_file_create. This time, we'll tackle directory deletion using fx_directory_delete. However, if the directory contains files, deletion will fail with error code FX_DIR_NOT_EMPTY. How can I search for filenames within a directory using FileX? If anyone knows anything, please give me some advice.
Hello everyone, I am working on a project related to CAN communication, and I don't have complete knowledge about the RTR Remote and RTR DATA features within CAN. Should I use RTR Remote in a complex system?
Hi there,My team has designed a dual motor control board, and I'm responsible for spinning the motors.I have already added the board to MCSDK6 and generated the project without error.However, when I add the code like MC_StartMotor1() after initialization, both the motors are static.I don't know the reason why the motor can't spin.Find the board file and the schematic in the attachments.Can someone help me double-check if I did something wrong?Thanks for your help. May you have a goooood day!
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.