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,I am trying to communicate with my bms using raspberry pi.I am using 8 cells in series connected to AEK-POW-BMSCCTX from C0 to C8 (from cell taps-P1 connecter). From the P4 side VIO-3V, Vdd- 5v, GND. I have also connected the MISO,MOSI,CS and CLK of the pi with corresponding pins in bms. Also TXEN-high, DIS-low, BNE-low.Using this run a sample Spi code and there is no correct reply. I just need to know is this connections correct? any extra connections do i have to do?Also after connections, D9,D8 and D2 leds of my bms is light up. When spi is activated D7 led should blink but not in my setup. I hope i get this problem solved.Hardware we’re using now1× AEK-POW-BMSCCTX (one node powered with 8 cells for bring-up).Raspberry Pi with /dev/spidev0.0 enabled.Cell stack: C0..C8 populated (8 cells ≈ 26 V).Two GND_EXT pins tied to pack negative as per BMS hold manual.Actual wiring (current)P1 (cells)C0–C8 → 8 cell taps (≈ 26 V total)GND_EXT(×2) → pack negativeP4 (logic, to Raspberry Pi)
Spoiler (Highlight to read) Hi,I created a TouchGFX project for the STM32MP135F-DK board. When compiling the project, the error listed below appeared. Despite the error, I was able to load and debug the application on the board using the same procedure applied to any example running on DDR memory.I verified that "the application binary file 'STM32MP135F-DK.stm32'" was not generated in the folder: Project Folder>\Binary\apps\STM32MP135F-DK.stm32 as per the link:https://wiki.st.com/stm32mpu/wiki/How_to_install_X-TouchGFX_MPU_AddonI am using a computer running Windows 11, is it necessary to install any additional software to generate this file? make -j12 all arm-none-eabi-size STM32MP135F-DK.elf text data bss dec hex filename530448 785264 134112 1449824 161f60 STM32MP135F-DK.elfFinished building: default.size.stdout ../../Utilities/ImageHeader/postbuild_STM32MP13.sh "C:\ST\STM32CubeIDE_1.18.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for
Hello guys!I am trying to configure U-Boot on a stm32mp257f-dk board so that I can use the “ums” command with SuperSpeed. After configuring the device tree, I managed to configure the usb3dr as usb3(as it says in the debug printf written on the terminal after calling the command). After doing this and running the “ums” command, in the console I get an error message saying “Cannot get PHY1 for usb@48300000”. After a little bit of research, I could not find a combophy driver in the U-Boot source code. Fast forward, I managed to do a configuration for the COMBOPHY(porting it from the linux driver), and it does not return any error. The command works now but it falls back silently from SuperSpeed to HighSpeed. My question is, even if the COMBOPHY is configured properly in U-Boot, is the dwc3-generic U-Boot driver capable of configuring the USB3DR peripheral to do the handshake for SuperSpeed?I managed to verify the SuperSpeed in Linux so there isn't any Hardware problem rela
Hello, I am trying to figure out if disabling the Offset Cancellation on the LSM303AGR would impact the wake up trigger mechanism. From what I could find, the LSM303AGR is an AMR sensor that uses the magneto-resistant property of a film to change its resistance based on the value of an external field. However, a constant bias is present due to imperfections of the sensor and to remove those, a set and reset of the film is performed to create a uniform direction of the resistive elements. When the set and reset functionality is disabled, the film particles will point to arbitrary directions.This bias is similar to a hard-iron offset that will shift the center of the magnetic sphere, however the sensor imperfections bias can drift with time and temperature. The trigger mechanism that we are aiming for needs to wake up the MCU when the relative change in the magnetic field exceeds a threshold. So when the threshold includes this constant bias (which could be updated in
anyone know who to contact about an error in the datasheets? In the AN6109 (device application note) of the ISM330BX datasheet on page 65/107 in section 8.2 FIFO registers there are three line I believe have errors: – SFLP_GBIAS_FIFO_EN bit of the EMB_FUNC_FIFO_EN_B register in order to enable batching the gyroscope bias data in FIFO (the SFLP embedded function must be enabled)– SFLP_GRAVITY_FIFO_EN bit of the EMB_FUNC_FIFO_EN_B register in order to enable batching the gravity vector data in FIFO (the SFLP embedded function must be enabled)– SFLP_GAME_FIFO_EN bit of the EMB_FUNC_FIFO_EN_B register in order to enable batching the game rotation vector data in FIFO (the SFLP embedded function must be enabled) these three lines should say EMB_FUNC_FIFO_EN_A register not EMB_FUNC_FIFO_EN_B register. also, and this part I'm less sure about, on the same document on page 57/107 in section 6.5 Sensor fusion functions I think the "the specific configuration b
In the RM0456 at 33.4.31 Oversampler it say:The division coefficient M consists of a right bit shift up to 10 bits, and is defined using the OVSS[3:0] bits in the ADC_CFGR2 register.But at 33.6.5 ADC configuration register 2 (ADC_CFGR2), it allow up to 11 bits:Bits 8:5 OVSS[3:0]: Oversampling right shift1011: 11-bit right shift
why more than one STM32 SPI Slave connect to master means More SS need ?
Hi,i need to modify the default debug uart serial in device tree of all the boot components (including u-boot, tf-a, optee etc) in stm32mp257f-ev1. I saw that external-dt_%.bb is fetching git://github.com/STMicroelectronics/dt-stm32mp.git and also EXTERNAL_DT is enabled by default, but i want to use my custom dt for the fial build by default instead of stm32mp257f-ev1.dtb.I want to add my custom dt with the custom name as default dtb used in all the component, im hoping for a solution for this to maintain all my dt at one place and modify. i have too many changes to make and i dont want to patch the stm32mp257f-ev1.dts in the kernel source tree. Hoping for a quick reply, thanks in advance.
I used STM32CubeIDE a long time ago but then switched to another IDE. Now for some reasons I try to use again STM32CubeIDE. I want to keep my build system (command line based on makefile and arm-none-gcc) and use the IDE only for debug. Environment is windows + STM32CubeIDE v1.10 (I know it's old but I am not admin of my machine).I created a "STM32 project" and linked it to my source directory tree then I went to Debug Configurations > STM32 C/C++ Applications > New configuration. The first problem I had is that it doesn"t find the project, so I had to browse directly for the .elfThen I disabled autobuildAnd I've got the message "unsupported build configurations, MCU ARM GCC required for debug". ARM-GCC was not included in this version of STM32CubeIDE ?Am I doing it wrong ?
I'm trying to debug TF-A BL2 on my stm32mp157f-dk2 kit 1. Memory card is setup. Partition 1&2 is copied with TF-A2. I'm expecting that if I connect a debugger, open a debug session with open OCD and gdb , I would be able to connect to the target3. I would set breakpoint at entry point of BL2 and reset the target by debugger.4. After reset I would be able to halt the CPU at entry point and then I go on with debugging.. Is this approach valid?Or it's not possible to debug TF-A with this method? I tried it and I find problems: 1. I can put breakpoint on bl2_main but it never hits.2. I can't reset and get the connection back by using stm32cubeide 3. Can't access the address 0x2ffcxxxx Can someone shed light on this topic?
Hi,i have a confusing problem, i have a simple routine to compute values and it needs to return the result as a double. just before the return the value is correct but the calling routine does not get passed this value. i know there can be some alignment issues with double variables. i am using STM32CubeIDE Ver 1.18.1 To overcome i simple create a global variable and assign this the right value and it all works. however why am i not able to return the double value?any help appreciated.Mark
ST moderator edited the title to give more visibility on the issue/subject Hello, I have a board with an STM32C092KCU6 where the main clock is using the HSI48 internal oscillator but I also have an 8MHz crystal for the HSE oscillator to use for FDCAN for higher precision. When the HSE is clocking just the FDCAN module the CAN does not work. I can get the CAN to work by using HSI48 as the FDCAN clock source. I can also get the CAN to work if I use HSE as the main clock (but it is too slow) or if I enable the clock output MCO2 with HSE as its source or also if I enable the RTC module and set HSE as its source. So it seems that the HSE oscillator will only work if it is being used on FDCAN + one other place. Osc for core CAN clk RTC clk MCO2 CAN working? HSI48 HSE - - No HSE HSE - - Yes HSI48 INT - - Yes HSI48 HSE HSE - Yes HSI48 HSE - HSE Yes HSI48 HSE - HSI48 No I first thought this was a gain margi
I am using STM32CubeMX in version 6.14.1 with STM32U585OIY6QTR selected.Trying to Setup VREFBUF Mode I can not set anything since it is greyed out.VREF should be supported by this MCU.
Hi,is there a possibility to do the complete chain to product state "closed" by non secure user code ?I have a custom bootloader which usually did a set of the old RDP Level.Now, with a STM32H57 device we have to use the new product state. I'm able to set the state to provisioning. But when i use RSSLIB_PFUNC->NSC.DataProvisioning i end up in a hard fault. I tried to set the provisioning data by ST Cube programmer later on which succeeded. But unfortunately i can not regress to open because the password is wrong. Any hints about that ? Thanks in advance.
Hi,I'm looking into creating a custom tool to provision our STM32H533 boards which will allow a non-trusted 3rd party to flash the firmware, configure the Option Bytes and program secret keys into the OptionByte Key storage areas.I cannot see any way to program the OB Key data via the API. Is it possible?For reference, the CLI parameter would be -sdp secret_key_file.obkThanks in advance.Michael Waites
Hi everyone, I'm using an STM32H743 MCU with an LTDC display and lvgl for management.I'm using the graphics accelerator correctly to decode an mjpeg video in YCbCr, but I can't convert it to RGB565 with DMA2D.If I try to convert without DMA2D, I get times of about 350 ms per frame (792*408). Decoding is successful in DMA. static void video_playback_task(lv_timer_t * t) { if (!MJPEG_GetNextFrame(Video_Buffer, Video_Size, &offset, &frame)) { lv_timer_del(video_timer); video_timer = NULL; printf("Fine video\n"); return; } JPEG_Decode_DMA(&hjpeg, frame.start, frame.size, Frame_Buffer); DMA2D_CopyBuffer((uint32_t*)Frame_Buffer, uint32_t*)Frame_Buffer_Rgb, IMAGE_WIDTH, IMAGE_HEIGHT); img_dsc.data = Frame_Buffer_Rgb; lv_img_set_src(img, &img_dsc); lv_obj_invalidate(img); HAL_GPIO_TogglePin(Check_ADAS_GPIO_Port, Check_ADAS_Pin); } static void JPEG_Decode_DMA(JPEG_HandleTypeDef *hjpeg, uint8_t *FrameSrc, uint32_t FrameSize, uint8_t *YCbCr_Dst) { JPEGSourceAdd
Hello,I have been working with a NUCLEO-WBA55CG board and the X-NUCLEO-IKS02A1 expansion board. I am running into an issue where the project fails to build after I enable the X-CUBE-MEMS software pack.Here are the steps to reproduce the problem:In STM32CubeIDE, create a new STM32 project using the "Board Selector" for the NUCLEO-WBA55CG.In the Pinout & Configuration view, enable the I2C1 peripheral and assign it to pins PB1 and PB2.Under "Software Packs," enable X-CUBE-MEMS1 for the IKS02A1 and select I2C1 as the communication interface.Generate the code and build the project.After building, I receive the following error messages in the console.../Drivers/BSP/STM32WBAxx_Nucleo/stm32wbaxx_nucleo.c: In function 'BSP_PB_Init': ../Drivers/BSP/STM32WBAxx_Nucleo/stm32wbaxx_nucleo.c:316:56: error: 'BSP_B1_IT_PRIORITY' undeclared (first use in this function) 316 | uint32_t BSP_BUTTON_IT_PRIO[BUTTONn] = {BSP_B1_IT_PRIORITY, | ^~~~~~~~~~~~~~~~~~ ../Drivers/BSP/STM32WBAxx_Nucleo/stm32wbaxx_
Hello,I have an issue reading and writing to and from the M95P32. So far it has never worked. I tried using the official ST driver https://github.com/STMicroelectronics/stm32-m95p32/tree/main but nothing happened. I don't know if the write was successfull but when I tried to read back the data, I only receive 0x00. Here is a sample of the code used#define USE_SPI #include "m95p32.h" std::int32_t eeprom_init() { return 0; } std::int32_t eeprom_deinit() { return 0; } std::int32_t eeprom_read( uint8_t *data, uint8_t size ) { silentlib::spi_lock cs_pin{ device::instance().eeprom_cs }; return HAL_SPI_Receive( &hspi3, data, size, 1000U ) == HAL_OK ? 0 : -1; } std::int32_t eeprom_write( uint8_t *data, uint32_t size ) { silentlib::spi_lock cs_pin{ device::instance().eeprom_cs }; return HAL_SPI_Transmit( &hspi3, data, size, 1000U ) == HAL_OK ? 0 : -1; } std::int32_t eeprom_sendrecv( uint8_t *data_transmit, uint8_t *data_receive, uint16_t size ) { sile
I am having trouble understanding the behavior of the Timers on the STM32F429I-DISC board. I have an application using TouchGFX with FreeRTOS, which is kind of working as expected but the timer-based activity seems to be too slow, so I am trying to debug and verify the clock frequency (which is triggering my ADC conversions), but nothing is matching or giving anything as expected. I commented out everything else on the code (including FreeRTOS, TouchGFX etc) and leaving just the timer and ADC initialization. Main system clock is set to PLL with a frequency of 144MHz and I am using Timer8 to trigger ADC on triple simultaneous regular mode and Timer11 to try to measure this interval. At first I've set Timer8 also to trigger an output event (pin toggle), and measuring it with the oscilloscope gave me exactly the expected frequency (Timer frequency / 2). But debugging is not showing anything useful at all. Here is the initialization of the timers:void MX_TIM8_Init(void) { /* U
Can somebody please help me. The code below is initializing the RTC. The clock works I can set and read time and date no problem. Somehow if I change these register: hrtc.Init.AsynchPrediv = 131; hrtc.Init.SynchPrediv = 10; It has no impact on the clock accuracy I keep on gaining time. I would have thought by "tweaking" the values it will either speed up or slow down the RTC. Code was generated by using the STM32 cube IDE. /** Initialize RTC */ hrtc.Instance = RTC; hrtc.Init.HourFormat = RTC_HOURFORMAT_24; hrtc.Init.AsynchPrediv = 131; hrtc.Init.SynchPrediv = 10; hrtc.Init.OutPut = RTC_OUTPUT_DISABLE; hrtc.Init.OutPutPolarity = RTC_OUTPUT_POLARITY_HIGH; hrtc.Init.OutPutType = RTC_OUTPUT_TYPE_OPENDRAIN; if (HAL_RTC_Init(&hrtc) != HAL_OK) { Error_Handler(); } /* USER CODE BEGIN Check_RTC_BKUP */ /* USER CODE END Check_RTC_BKUP */ /** Initialize RTC and set the Time and Date */ sTime.Hours =
Hi,I have a toubles with a debuging my program.I started from the begining... so I create a empty project in VSCode for this MCU (setup is CLANG only). I build the empty program. It has 702 B. Debuging is working at this point.But after create a "data" in flash with this code: #include <stdint.h> #include <sys/cdefs.h> #define TARGET_FLASH_SIZE_B (64*1024) extern const uint8_t size_filler[TARGET_FLASH_SIZE_B]; void __attribute__((noinline)) force_data_use(void) { volatile const uint8_t *ptr = size_filler; uint8_t dummy = ptr[0]; } const uint8_t size_filler[TARGET_FLASH_SIZE_B] = { [0] = 0xAA, [TARGET_FLASH_SIZE_B - 1] = 0x55 }; int main(void) { /* Loop forever */ force_data_use(); for(;;); }Debug can't be launched... But if you replace line 4 with:#define TARGET_FLASH_SIZE_B (63*1024)it works... So I think there is some problem with flash size erasing / flashing. The MCU has 2 kB per page and two banks. Here is DEBUG CONSOLE: STMicroe
Able to spin the motor using 446 + IHM08M1 – 6 Step – Hall Sensor - Open Loop Mode, using MCSDK.But don’t know how to analyse the SW & HW.HW based: How to see the Hall Sensor & PWM action? (Got a CRT, no DSO). Any Monitor or Watch Window?SW Based: PWM_PERIOD_CYCLES or M1_HALL_TIM_PERIOD or M1_HALL_IC_FILTER – How to search & see the configured values in code?CubeMonitorRF/Power/UCPD – Possible to use for my application?Also, Want to change the direction – FOR & REV – With a Ramp up & Down.Guidance Required.
Hello, I am looking for the programming specification document in order to develop a socket and algorithm to program this device. I am aware the device is in obsolete state. Appreciate if anyone can share this information. Thanks
We're using the following circuit to measure a battery voltage @ 20 kHz for use in motor control.We are having some issues though, where the ADC suddenly starts measuring 0 V (0 in the data register) and gets locked in this state. In this state, we also measured 0 V at the MCU pin on the board, and a resistance < 20 Ohm between the pin and GND, both using a multimeter. The issue is not fixed by a reset (pulse on the NRST pin), only removing the battery and power cycling the MCU.How and why can/does this happen?We initially thought it was overvoltage and tried connecting a PSU directly to an ADC pin on the STM32G474RE NUCLEO board. We only started seeing abnormalities at 6 V and destroyed the ADC at around 9 V, so this does not seem to be the reason.The ADC is clocked 170/4 = 42.5 MHz and configured as follows (from IOC file):ADC1.CommonPathInternal=null|null|null|null ADC1.DMAContinuousRequests=DISABLE ADC1.EOCSelection=ADC_EOC_SEQ_CONV ADC1.EnableAnalogWatchDog1=false ADC
hi team,I'm facing issue connecting stm32mp25 gui tool with the STEVAL$USBI2CFTA bridge, the GUi tool says No bridge connected.I still haven't connected the other end of the USBI2C bridge to PMIC stpmic25a.I have installed the required FTDI 260Q drivers, and also the FTDI testing software which detects the usbi2c bridge and im able to send the i2c messages and detect the slave, but the STPMIC25 GUI says no bridge connected.FYR im using windows 11.Hoping for a quick reply for this issue. Thanks in Advance.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.