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
Starting from V2.13 the STM32CubeProgrammer_CLI adds strange empty lines into the .hex file when adding CRCs using the --safelib command.Example:...:20F9C000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF47:20F9E000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF010002010100000032B840D616:00FA000006:00FA000006:00FA000006...:00FA000006:00FA000006:020000044807AB:20FA0000D8E292E5D9D0BDBC4BA59A0800855CA4FBEF5C19E0AC58BC12F208DD16414D16DA:20FA20007C32E22F87D80DB1ACEF0F2AC0E8EA3883BA937EC9278191C221243352C16A6BDA...Each empty line has the address of the first free place into the original .hex (seme address where CRCs will be added) but no data and the number of lines seems to be equal to the number of CRC lines added.This is annoying because later I use srec_cat tool and I get lots of warnings about these empty lines! Any suggestione?Thanks!
I'm trying to flash an an NUCLEO-N657X0-Q board with the STM32N6 using STM32CubeProgrammer v2.20.0. I have two NUCLEO-N657X0-Q boards here: One of them flashes just fine, the other one refuses to work. Both boards are in development mode (BOOT jumpers set accordingly as described here https://github.com/STMicroelectronics/STM32N6-GettingStarted-ImageClassification?tab=readme-ov-file#boot-modes). In STM32CubeProgrammer, I have selected the appropriate External loader to be able to write to the external flash memory.As a simple experiment, I am trying to erase a sector of the external flash memory. I am using the exact same STM32CubeProgrammer settings for both boards. Erasing the flash works just fine on one of the boards, but on the other board, I get the following error:Did I accidentally enable some kind of flash memory protection? How do I disable it? Or is my board broken? The board still boots the old code in the flash memory when in flash boot mode, so I don't thin
Hello ST Community,I am working on an STM32U585AII6Q microcontroller with TrustZone enabled. My goal is to revert the RDP level from 2 (0xCC) back to 0 (0xAA) using STM32CubeProgrammer GUI.#### Steps I Followed:1. Defined OEM2KEY in the "Secure Programming" menu.2. Set RDP to Level 2 successfully.3. Tried to unlock RDP2 using the "Unlock RDP2" option in STM32CubeProgrammer.- Log shows: "Unlock RDP2 password successfully done."4. Gave power cycle and attempted to change RDP value from 0xCC to 0xAA in the "Read Out Protection" menu.#### Issue:- When I try to apply the change, I get the error:**DEVICE NOT HALTED**- The debugger cannot connect to the MCU after this step.#### Hardware Setup:- BOOT0 pin connected to VDD for RSS boot.- Using STM32CubeProgrammer v2.19.0.#### Questions:1. What is the correct sequence to regress from RDP Level 2 to Level 0 when TrustZone is active?2. How to resolve the "DEVICE NOT HALTED" error during regression?3. Do I need to power-cycle or use a specific mode
Update: I found out that HAL_PWR_EnableWakeUpLine() must be enabled to wake up the system.The system now wakes up correctly from Stop3 mode. With the SMPS enabled and all pins configured as analog, the current draw is approximately 5 µA, which matches the values given in the datasheet./**********************************************************************************************************************************/ Hello everyone,I am working with NUCLEO-U385RG-Q board and using the RTC wake-up timer as the wake source for low-power modes. I noticed consistent differences between STOP2 and STOP3:IssueThe RTC wake-up interrupt works reliably in STOP2.The exact same configuration does not wake the system from STOP3.ConfigurationLSE is running (32.768 kHz crystal).RTC is clocked from LSE.RTC wake-up timer is configured via HAL_RTCEx_SetWakeUpTimer_IT().No other wake sources are enabled.QuestionsAre there additional registers or power settings required for STOP3 to allow RTC wake-up e
I am trying to measure DC output of an RF detector (AD8363) using STM32H723's ADC. The Signal that is to be measured has about 80 mV - 90 mV of high frequency noise embedded on it. Due to inaccuracies in the measurement I am probing the measurement circuitry and therefore would like to know:The 5 pF capacitance of ADC is total capacitance of the 12 or 16 capacitors inside ADC or just that of one capacitor?What is the resistance of the ADC's sample and hold switch?Is there any model of ADC Circuitry, that includes parasitic as well?What is the tracking bandwidth of the ADC?
Hi -I am trying to bring up a new design - a 3 phase forward converter, using the HRTIM to fire six gate drives. Under normal design loads it works great, but for normal loading I have the CONT bits set for master and subs. For light loading, I need to keep a minimum on-time, so must drop the frequency. I could reduce the resolution by using a smaller PLL multiplier (presently using x8 with a 150 MHz sysclock for a 1.2 GHz HRTIM), but that is unsatisfactory. I tried setting different PLL multipliers for the master and the three sub timers, but found that different PLL settings precludes cross-channel event messaging, so I could not phase the three sub clocks with the master anymore. I suspect I could use the burst mode, but have not researched that yet.The technique I am trying now is linking to TIM1 to start the master for one cycle in one-shot mode. This gives me a proper fixed on-time burst for all six phases, but reducing TIM1 frequenc
Hi - I have an application running a 1 kW 500VDC to 25V DC supply for a klystron filament heater. I am using a 3 phase forward converter - each phase driven by a FET half bridge to a transformer primary returning to input mid-point. I drive the six gate drives using six HRTIM pins.I have programmed this so that each of the gate drive pulses is turned on at a fixed time in the master cycle, and turned off by one of two things: either a timer counter (thus setting duty cycle %) or an event connected to an internal comparator. The comparators use an internal DAC for the -IN reference, and are pinned out to a rectified current transformer on the primary. This then gives me both duty cycle and peak current control for continually adjusting providing regulation.What I would like is a continual running diagnostic where I can read the status from the HRTIM and determine what caused the most recent commutation off (i.e. cou
Post edited by ST moderator to be inline with the community rules for the code sharing. In next time please use </> button to paste your code. Please read this post: How to insert source code. Hi, I am using stm32c071 MCU to store data into flash. I have erased page 63 wrote data into 0x0801F800 then locked the flash and then again unlocked it erased page 63 wrote data in 0x0801F820, but the contents of 0x0801F800 is still there even after page erase. Is this expected? My flash write code eFLASH_ErrorType_t WriteDataToFlash(uint64_t *data, uint32_t address, uint8_t page, uint8_t length) { eFLASH_ErrorType_t err_code = e_SUCCESS; uint32_t *addr = (uint32_t*)address; // Check if flash is busy err_code = CheckFlashBusy(); if(err_code != e_SUCCESS) { return err_code; } // Unlock flash err_code = flashUnlock(); if(err_code != e_FLASH_UNLOCKED) { return err_code; } // Erase page before writing err_code = flashErasePage(page); if(err_code != e_SUCCESS) { return err_
Browsing the STM32CubeMx Docs&Resources page for information.The section "Application Notes for related Tools and Software" includes couple of links to documents targeting a specific MCU different from the currently viewed one.I.e. browsing for STM32H5, or STM32G4 there are also shown "Getting started with STM32N6 MCUs in STM32CubeIDE". And it's the same with WL, L5, MP1, ... CubeIDE ANs.
Hello.I have developed a firmware for Riverdi_121STM32H7.The firmware has Italian and English texts,but we planned to develop a version for Chinese customers, Myanmar, and other non european customers. My doubt is: Unicode::atoi and Unicode::sprintf("%d" produce number in other language, don't ? Thakyou for the answers ...
Hello,I am experiencing an interesting problem on the STM32F303VET:UART1 is used to receive and transmit messages (460800 Baud), DMA1 Channel 4 is used for memory to UART TX buffer transfer, DMA1 Channel 5 for UART RX buffer to memory transfer.Under situations of high load (both reception and transmission) UART1 will stop outputting messages after two bytes. The majority of transmissions work out fine, however the error happens in every test case, though the time to failure differes between approximately 5s and 120s. The problem seems to be caused by an unintended reset of the DMA enable transmitter (DMAT) Bit in UART 1 control register 3 (USART_CR3).Above image shows the error:Trace 1 (orange) shows the TX line of UART1, where only two bytes are transmitted.Trace 2 (red) shows data on RX line. One can see that no RX takes place at the same time as TX.Trace 3 shows a debug pin, it is triggered once when DMA transfer is started.Trace 4 shows another debug pin. It is set HIGH when DMA tr
Heyho,after some *** CAN beginner mistakes on my side, I got the FDCAN BRS 8 Mbit working.Or so I thought. It's only working between my custom boards, as I found out after connecting a Kvaser Leaf v3.With the Kvaser (directly connected to the board's D-sub, termination on, signals on the scope look good (enough)) and BRS on, it only works with max 2 Mbit, and only if the Kvaser's bit timing is set below 70% sampling point.So far I played with changes to TDC, sampling point, SJW, and all bit timings (checked the Kvaser timing website).Any ideas welcome!
Currently, STM32Cube for Visual Studio Code introduces a new bundled package manager which replaces STM32CubeCLT.However, when developing STM32 projects with other IDEs (e.g. CLion), STM32CubeCLT is still required to provide the build environment.This leads to several problems when using multiple IDEs (VS Code + CLion):Separate installations of toolchains (STM32Cube for VS Code and STM32CubeCLT) consume extra disk space.STM32CubeCLT cannot be updated incrementally; users must download the whole package.STM32Cube for VS Code currently cannot manage STM32CubeCLT packages, leading to duplicated toolchain management.By default, tools are installed on C:\ drive, which is inconvenient for users with limited system disk space.Feature request:Allow STM32Cube for VS Code’s package manager to use and manage STM32CubeCLT packages.Benefits:Reduce disk usage by avoiding duplicated toolchains.Simplify updates and package management.Improve developer experience when using multiple IDEs (VS Code + CLi
Post edited by ST moderator to be inline with the community rules for the code sharing. In next time please use </> button to paste your code. Please read this post: How to insert source code. Hello everyone, I have designed a custom PCB using the STM32L031K6 microcontroller. The board includes an external 32.768 kHz crystal oscillator (LSE - Low Speed External). The Problem: I am flashing code to the board using an ST-Link. When running a simple LED blinking application (which uses HAL_Delay), the LED either blinks only once or gets stuck indefinitely within the HAL_Delay function. This strongly suggests an issue with the microcontroller's clock configuration or the LSE activation. Hardware and Code Details: MCU: STM32L031K6 External Oscillator: 32.768 kHz (LSE) Development Environment: STM32CubeIDE Library Used: STM32Cube HAL Problematic Function: HAL_Delay() (This function relies on a properly running clock source, usually SysTick). I will attach the following: S
Hello community,I am running in an issue with the VREFINT calibration value of the ADC.For calculation I use the __LL_ADC_CALC_VREFANALOG_VOLTAGE function from the stm32u0xx_ll_adc.h file and I'm getting wrong values.The Chip is powered with 3.3V and so I expect a reading of approx. 3300 from this function, but what I'm getting is a value of around 2993.The measured voltage at the VDDA/VREF+ pin (48-pin package) is 3.296V, the reading of the VREFINT Channel is approx. 1660.If I change the supply voltage to 3V, I get around 1820 from the VREFINT Channel.The readout of the VREFINT address (0x1FFF6EA4) is 1654 (0x0676) so point 2.1.2 of the errata sheet is not applicable.If I change the value VREFINT_CAL_VREF in stm32u0xx_ll_adc.h from 3000UL to 3300UL the return values are plausible.For me it looks like the calibration was done using 3.3V instead of 3.0V as stated in the datasheet.The marking of the controller reads likeSTM32U073CCT6CQ27C 9R ACHN 435 1M (or LM)Can anyone confirm or is th
I try to understand in details the way the Hash peripheral works on the STM32L552. I need to make the HASH SHA-256 with 224 blocks of 512 bits. The Hash works perfectly until the block 223. Then I enter 16 values in the FIFO (in my code below I have a loop for 15 because I entered previously another value). Then I launch the final digest. I expect the automatic digest of block 224 and the automatic padding in a block 225 to the final hash value. But I always have the wrong value in the final step. Any idea about what I'm missing?
I would like to read some data from the EEPROM on initialization to use in the TouchGFX application.I currently have an API that can request read/write operations from TouchGFX to the backend.At the moment, I've implemented it in the Model.hpp void bind(ModelListener* listener) { modelListener = listener; if (!storageInitialized) { initializeFromStorage(); storageInitialized = true; } }withvoid Model::initializeFromStorage() { #ifndef SIMULATOR StorageResponse_t wr = Storage_Request(STORAGE_CMD_READ, EEPROM_ADDR_STRUCT_2, &struct2, sizeof(struct2)); wr = Storage_Request(STORAGE_CMD_READ, EEPROM_ADDR_STRUCT_1, &struct1, sizeof(struct1)); #endif }but I'm not sure if it's the correct location.I just want to send the read EEPROM command on the first load of TouchGFX and never again
In the above image (logic analyzer) , SPI in DMA was supposed to start at the end of high on the second signal, but it starts a bit later. (3rd signal CS of SPI, 4th signal SCLK)And the SPI was to supposed to be active at every period (the first signal) whose period is 8.607us. The second signal is a slave timer to the first and a period elapsed callback of this signal call HAL_SPI_Receive_DMA.There is also a 1 second timerWhat should i do to correct this? I don't how to proceed, any solutions, learning materal would be really helpful
We are pleased to announce that STM32CubeIDE 2.0.0 release is available. STM32CubeIDE is now independent from STM32CubeMX. With this release, device configuration, previously handled within STM32CubeIDE via STM32CubeMX, is now exclusively available through the stand-alone STM32CubeMX tool. Users will configure microcontroller peripherals and generate initialization code separately in STM32CubeMX, then import the generated projects into STM32CubeIDE for coding and debugging. STM32CubeIDE, is now a stand-alone tool, offers the possibility to create empty project through its own MCU/Board selectors now present inside. What does this change mean for developers? Separate download and installation: STM32CubeMX is no more integrated in STM32CubeIDE, requiring separate download alongside STM32CubeIDE 2.0.0 for configuration and code generation. Tool update flexibility: Developers can update and freeze&n
Hi I am trying to migrate my code from SPL(old version) to HAL based code I have conveted the same setup code to cubemx to generate the init function and I am using a clrc663 IC(card reader) along with it when the Ic Generates an interupt the mcu doesnt process the interuppt but when using test case using software to check the interupt handler it works but when the pin goes from high to low but there is no interupt happening. can anyone explain why it is not working.mcu->spi & interupt ->clrc663DBG: TCONTROL read=0x00state 1 = HIGHDBG: Write IRQ1EN st=0x0000 write=0xC2 read=0xC2DBG: IRQ1 clearedstate 2 = HIGHDBG: TCONTROL written start=0x33state 1 = LOWDBG: Before WaitIrqDBG: MCU IRQ pin after RC663 GLOBALIRQ = LOWthese are the debug outpur ihave used a print statement inside the interupt handle but it is not printed
Could it be time for ST to reveal such an MCU at the summit in a few weeks? Or maybe a Cortex-M55 that actually have integrated flash or MRAM or similar? (STM32N6 is interesting, but I would like to see flash/MRAM/something else integrated...
When using PLL3Q as input with a frequency of 32MHz for USBPHY I have a RCC_CCIPR1 register initialized at value 0x2a00 when entreing USB_CoreReset function that is not correct (should be 0x2b00).
I would like to use the STM32WL33 as a radio receiver and continuously transfer all I/Q samples to my computer for further processing.Also, I want to use the highest possible IQ sampling rate (CHF_E = 0, 500k IQ samples per second = 64 Mbit/s).I've managed to configure it to IQ receiver mode, have it write samples to the databuffers in RAM and output the buffers via USART once both are full.However, I want to record more samples than would fit in the RAM and thus I have to somehow output the buffers faster than they are filled (or equally fast)This is where I've encountered a bottleneck. None of the STM32WL33's interfaces (SPI/USART/I2C/...) can transfer data fast enough, the highest I found is SPI with 32 Mbit/s. So how can I output 64 Mbit/s worth of samples?My idea would be bitbang a parallel interface on the GPIO ports and use another MCU (with a higher clock rate) to convert it to USB or some other serial interface. However, I'd like to know if theres a better way to ac
Hello. I'm working with STM32H573. I have a question related with the use of STSAFE-A110 for TLS. I have to authenticate also the client. I've succeded stablishing TLS mutual authentication with HTTPS server and TCP server (different applications, not related) using this type of functions from NetxDuo with the correct data and test certificates: /* TCP Server */ nx_secure_tls_session_create(); nx_secure_tls_ecc_initialize(); memset(&certificate, 0, sizeof(certificate)); // Server Local certificate nx_secure_x509_certificate_initialize(); memset(&certificate_, 0, sizeof(certificate_)); // Client certificate nx_secure_x509_certificate_initialize(); nx_secure_tls_local_certificate_add(); nx_secure_tls_trusted_certificate_add(); nx_secure_tls_session_start(); /* HTTPS */ memset(&certificate, 0, sizeof(certificate)); // Server Local certificate nx_secure_x509_certificate_initialize(); memset(&certificate_, 0, sizeof(certificate_)); // Client certificate nx_secure_x
I have the STM32F401RE NUCLEO-64 Board and have gone over and over all the instructions but I must be missing something because my board doesn't seem to be read by my laptop. I have everything the way it says on the manual and elsewhere. I have the jumper JD1 off, The other 2 JD's are on and i don't get any reading on my laptop. It doesn't show up anywhere. Not on the ide or the mx programs. Nowhere. If anyone can please help and tell me what I'm doing wrong i really appreciate it. I am connected using a usb to micro i Believe it is or the micro b. Teh one red led stay on the upper right one flashes red and the green led flashers and goes faster or slower depending on when i press the blue button. Thank u
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.