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 There,So, I got some of the STM32C011J6 MCUs for my simple project of reading sensors data and generating an interrupt.But I am in a dilemma, that the MCU's has I2C Pins, SWD Pins for programming, GPIO pins to act as interrupt but how to initialize it in CUBEMX.I am planning to build PCB after I successfully assign pins in CUBEMX.When I choose I2C, It blocks the SWD Pins and Vice versa. Also, is External Crystal necessary for such MCU? Looking forward to most of the suggestions and resources.My plan is to read a sensor data via I2C and generate interrupt on a GPIO Pin.
Been reading thru the F103 datasheet to try and figure out why my TinyUSB based code isn't working. The datasheet says.. "For mono-directional/single-buffer endpoints, a single register can be used to implement two distinct endpoints". The F103 has 8 physical endpoint registers. There are no flags in those registers to set mono or bidirectional mode. Each register only holds one EP address value. My application requires creating EP0 (IN+OUT) + 4 * (Bulk IN+Bulk OUT+Interrupt In)=2+4*(1+1+1)= 14 EP addresses in total. The datasheet continues on to say "The number of registers is 8, allowing up to 16 mono-directional/single-buffer or up to 7 double-buffer endpoints(a) in any combination. For example the USB peripheral can be programmed to have 4 double buffer endpoints and 8 single-buffer/mono-directional endpoints." So how can you get 14 EP addresses into 8 endpoint registers?
(MCU running, requires power cycle) I am trying to configure an 8080 16-bit parallel LCD using FMC on an STM32H5563 development board, but it is inconsistent and unstable. I am getting a logic analyzer and will be able to provide screenshots of the signals in a bit. Tutorials I have referenced:Phil's LabControllerstechNick Nagy GitHub Tutorial Issue:My test code initializes the display and then alternates filling the entire screen between red and white.For the display to show anything at all, I must perform a full power cycle (physically unplug and re-apply power). Toggling the LCD RESET pin or following the reset sequence from the datasheet does not reset the display.Once reset, on the first draw or two, only about 3/4 of the display is updated then begins updating the full screen correctly. After a few seconds the display freezes, stopping on either red or white. MCU does not freeze, the display just stops updating (tested by including a LED toggle in the loop).So
Greetings,I am bring up a new HW design with the IIS2DLPC accelerometer integrated into the design.I am trying to bring up a Linux IIO device driver for this device, and the kernel does not currently have direct support for the IIS2DLPC, however it does support the LIS2DW12, which from looking at thedatasheet for both, they appear to be SW compatible.Can I just code the device tree node to specify the LIS2DW12?accelerometer@18 {compatible = "st,lis2dw12";reg = <0x18>;status = "okay";st,drdy-int-pin = <1>;interrupt-parent = <&sysfpga>;interrupts = <SYSFPGA_INT_ACCELEROMETER>;interrupt-names = "ACCELEROMETER-INT1";};Thanks,Ken
I am trying to get my own DSI and LTDC code to run on STM32H757I-EVAL in preparation for custom hardware. In parallel, I am trying to get the example code to run (see this thread).I've made some progress with my own code by reading AN4860 and following the steps "34.14 Programming procedure" in RM0399. I copied OTM8009A_init() from TouchGFX example code and adapted it to my code. I can successfully configure the panel and sending panel on/off commands has the desired effect.When I step over OTM8009A_init(), the display shows blocks of noise (see image below). As soon as LTDCEN is set in LTDC_GCR, all LTDC register values change to 0x2220. Is this normal?It never seems to read from my RAM buffer, and I never get anything else on the screen. I also find it strange that if the code is stopped just after CMCR is cleared, then the noise is not on the screen.I've read many forums of DSI and LTDC issues, and clock timing seems to be one of the biggest culprits but I've double-
Hello,I would like clarification on the behaviour of STM32U3 devices when Readout Protection (RDP) Level 1 is enabled.Configuration:TrustZone: DisabledDebug interface: SWD/JTAGQuestions:With RDP Level 1, is Flash completely unreadable by any third-party tool or by any boot mode (system memory boot, RAM boot, etc.), except when accessed by application code running on the MCU?With RDP Level 1, is application debugging still supported (attach debugger, halt, step, breakpoints), and are there any known limitations compared to RDP Level 0?Any confirmation or documentation reference would be appreciated.Thank you,Vijay
Hello, I'm working into writing firmware image to a STM32H7A3AII6Q via internal boot-loader. I'm using AN2606 and AN3155 as reference documents. The boot-loader entry sequence I'm using:State 1: BOOT0: high RST: lowState 2: Wait 200 msState 3: BOOT0: high RST: highThen I'm sending 0x7F over USART2 but, getting no response(0x79).Can you please help me what might be wrong here?
Hello, I want to use the STM32 H723ZG Nucleo board 144p in my LoRaWAN project. For that, I need my microcontroller to consume less than 10uA of current in standby or sleep mode. Is that achievable? If yes, then,1- What will be the hardware?2- clock configurations?3- What will be the configurations in the IOC file?4- How can I not give power to the Ethernet port?or if there is anything else i need to keep in mind.
Hello everyone. I'm a beginner to STM32 and STWIN. I'm experimenting with the DATALOG2 firmware on STWIN.My question is about customizing this firmware. What I want to do is keep the DATALOG2 functionality as-is, but add an extra feature: when the accelerometer value exceeds a certain threshold, output a High signal on a GPIO pin or turn on an LED.(I couldn't find any GPIO pins in the STWIN schematic!) STEVAL-STWINKT1 https://www.st.com/en/evaluation-tools/steval-stwinkt1.html The firmware is here.GitHub : FP-SNS-DATALOG2 Firmware Package https://github.com/STMicroelectronics/fp-sns-datalog2 Since my development environment is STM32CubeIDE, should I open the .project file within the following STM32CubeIDE directory in the GitHub using CubeIDE and modify the source code there? https://github.com/STMicroelectronics/fp-sns-datalog2/tree/main/Projects/STM32L4R9ZI-STWIN/Applications/DATALOG2/STM32CubeIDE
Hello, recently I was able to flash a programm on the STM32G474CET3 but I am unable to track Live Variables.I wrote a simple program that just increases a cnt variable each second.My .ioc configuration: Every help is appreciated.
Hi ST Team,We are using CAN on STM32L562 in classic mode.After configuring, we se FDCAN.PSR.ACT to be 1 as can be seen in screenshot below.This means, node is neither receiver nor transmitter.Why is this happening ? We are able to receive the data, but the CAN controller does not send the ACK when a frame is received which results in retransmission of the frame from the transmitting node.Tried configuration:hfdcan1.Init.AutoRetransmission = ENABLE;hfdcan1.Init.StdFiltersNbr = 1;Yet ACT bits in FDCAN1->PSR becomes '0x1' when the instruction "CLEAR_BIT(hfdcan->Instance->CCCR, FDCAN_CCCR_INIT);" is executed (i.e. while leaving the initialization).It can be seen in the screenshot below.Please find the below attached screenshots.
In HTS221 sensor I have issue that H0_T0_OUT and H1_T0_OUT, H0_RH and H1_RH value is same like belowT0_degC float 20.5T1_degC float 52.5T0_OUT int16_t 1028T1_OUT int16_t 0H0_RH float 29.5H1_RH float 29.5H0_T0_OUT int16_t 0xf7f7 (hex)H1_T0_OUT int16_t 0xf7f7 (hex)This is my codeInit functionuint8_t HTS221_Init(HTS221 *hts221, I2C_HandleTypeDef *hi2c) { hts221->hi2c = hi2c; uint8_t data[2]; if (HTS221_ReadRegister(hts221, HTS221_WHO_AM_I, data, 1) != HAL_OK) { return 1; // Error reading WHO_AM_I register } if (data[0] != HTS221_WHO_AM_I_VALUE) { return 2; // WHO_AM_I value does not match expected value } // Read calibration data if (HTS221_ReadRegister(hts221, CALIB_0, data, 2) != HAL_OK) { return 3; // Error reading calibration data } hts221->H0_RH = (float) (data[0]) / 2.0f; // H0_rH_x2 hts221->H1_RH = (float) (data[1]) / 2.0f; // H1_rH_x2 if (HTS221_ReadRegister(hts221, CALIB_2, data, 2) != HAL_OK) { return 4; // Error reading temperature calibration data
The SDDataLogFileX example stores the wave file for the digital microphone but in the following docs it wrongly say that it store for the analog microphone :UM2626 at pages 15 (2.1.5) and 30 (2.2.6)FP-SNS-STBOX1_Quick_Start_Guide at page 27
Hello everyone, I plan to use the LPS28DFW barometer to measure the final pressure after a drop from 30 atm. I only need to sense the final pressure within the sensor’s specified working range, but I’d like to know whether exposure to the initial 30 atm would cause mechanical damage to the device. Or, at what pressure can I expect the sensor to break?Thanks!
Hello guys,for my bachelors project I have decided to build an embedded signal monitoring and classification tool, based on the STM32H7S3L8 Nucleo dev board (NUCLEO H7S3L8). I want to use all 14 available channels of the 2 adcs (technically each ADC has 14, but then pin assignments are shared, which is not beneficial) and i want to let the ADCs stream the data via HPDMA in the SDRAM. Unfortioutly I came across many problems with the configuration and programming, especially with clock configuration of the ADC+DMA in the scanning mode. Do some of you already have a working solution to the DMA placement in SDRAM (0x300000 32kB I believe) and with working ADCs you would like to share. Also, do you enable callbacks in that case?Usually I would share my config and code and ask for help to the specific problem, but as I am not at home and already lost my mind with this ******* DMA I might try it that way.Thanks so much and happy holidays !
My partner and I are creating an app designed for P2P as well as traditional user/vendor interaction. We need a wearable that can create a mutual event on the back end when the two wearables touch or are in close proximity. I see the ST25R3916 or STM32 chips may be suitable but wondering if there’s already a wearable with these capabilities or if one can be designed/created that’s suitable for kids. I also see there’s a wearable - STEVAL-WESU1. Can the STM32 be used in the WESU1? I have additional requirements, like haptics, visual indicators, etc, that I can provide info on but I can’t find a wearable that can create a P2P event. Any help is appreciated
..
this topic is rare,and i cant find a system learning information,can st develeper friends tell us how to use this peripherals, link to ADC DMA......
I have a question regarding how the averaging filter works in the LPS28DFW pressure sensor (AVG[2:0] in CTRL_REG1).I am wondering whether:A) AVG controls internal ADC oversampling for each individual pressure measurement (i.e., multiple internal samples averaged to create one output sample),orB) AVG performs a moving average across multiple output samples after they are generated. In other words, does the AVG setting reduce noise by oversampling within one output period, or does it smooth several consecutive output samples?
Hi i have a custom lsm6dsv module that is getting a strange result after 6a 9c then cycles through int of the imu 9c seem to make it restart its process and loop it for a for until 6a is back and 9c comes back and does the exact same process and unsure what i should look at next [ i am new to logic analyzing oscilloscope scopes signals seem fine i feel like im missing something badly Parts 100nf caps 5.1k resistor tired 10k but I thought lower them could solve it? Before I do anything dumb I need input on what could cause this i can also provide logic files from pulse veiw Thanks
VL53L4CD In this sensor how to use it stm32G071RBt6 controller, maximum how many device can connect?
Please tell me about the STATUS_REG for ASM330LHH. I'm using SPI communication. A similar question was posted earlier, but the situation is slightly different.When I ran the same program on 30 board-mounted samples, 29 of them showed a change in STATUS_REG within 400ms after the ASM330LHH setting, but one remained 0 without any change.I'm guessing from this that is not a sowtware problem, but I would appriciate a list of possible factors as the cause.
Hi Team, We are working with the LSM6DSOX sensor and integrating it with two different MCUs: nRF5340 and ATSAMD51, using the I2C communication protocol. We have been able to successfully read the device ID, accelerometer data, and gyroscope data. Additionally, we've implemented our own logic for step detection and step counting. Recently, we learned about the Machine Learning Core (MLC) feature, which provides useful capabilities like detecting activity states (idle, walk, run). We obtained the .ucf file for MLC, used the UNICO tool to generate the corresponding .h file, and attempted to integrate it into our application. We followed the documentation and tried monitoring the MLC_STATUS (0x70) register to track activity states. Challenges faced: First Attempt with nRF5340 MCU: Initially, we tested the MLC functionality with the nRF5340 MCU using I2C communication. However, when we read the 
Hello, I am working on adding a pedometer to the Sensorwatch project using this chip.I have the step counter working well, and I also have it working with the LIS2DW. Here's a video of it :)The LIS2DW works by sending 12.5Hz worth of data from its FIFO every second to the host uC, which runs an algorithm to count the steps.I am finding with a Nordic Power Profiler that the LIS2DUX uses about 6uA to run the step counter.The LIS2DW uses nearly 15uA.But I found that I can heavily lower the battery-draw of the LIS2DW by only reading the FIFO and performing the math only if more than 0.06G is seen, which is seen by an interrupt signal, whic make sthe current draw for 90% of the day to be close to 1uA.Can anything be done with the LIS2DUX to bring it closer to that efficiency?The goal of the project is to only need to replace the battery once a year, which means that we'd want no more than an average 2uA draw from the chip. Questions:1) What is the most battery-efficient
Hi,according figure 3 in the datasheet, the pin in the middle (let's name it pin 11) is connected to GND, but this pin is missing in table 1.The linked technical note TN0018 advises to avoid any GND/copper/via below the IC (Figure 12).The eval board STEVAL-MKI220V1 has a pad for pin 11 but the pad is left floating.The SamacSys-symbol/footprint contains this as Pin 11 / GND_3I see multiple contradictory solutions:1. no pad for pin 11 in the footprint, pin 11 is left floating (complies with TN0018, but contradicts eval board, SamacSys-footprint and maybe the datasheet)2. add a pad for pin 11 in the footprint, but leave the pad floating (violates TN0018, but complies with the eval board)3. add a pad for pin 11 in the footprint, and connect the pin to GND (violates TN0018 and eval board, but seems to be suggested by the datasheet)What is the correct solution?RegardsBjoern
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.