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,I found an issue with the CubeMX 6.16.1 during the TouchGFX usage. I generated the files by TouchGFX 4.26 (selected the Stm32h7s7 development board with 24bpp project) and opened the cubemx to generate the code (I've been using vscode so I changed only the toolchain/IDE to Cmake and and with these settings the project was flashed and worked everything correctly.However, when I wanted to use the generate perpheral initialization as par of 'c/h' files and screen was struggled and couldn't read it's content. Nothing else was changed. In the visual studio I cleaned and rebuild the project but it did not work at all.Would it be possible to solve this?Thank you in advance!
I have legacy SBSFU based system running on an stm32f429 for a few years now, based on the STM32F413ZHT6 demo code that was present in the package. I am now interesting to using the KMS feature of SBSFU but after reading um2622 /seeing https://www.youtube.com/watch?v=YjiNaTHQp2s I am a bit at a dead end on how to start as none of the kms files seem to be compiled in my bootloader. I am now getting the impression there is no KMS support at all on an stm32F4, this based on the fact that for example Figure 14 with the project folder structure in um26222 shows images with _KMS but this does not exist for the stm32f4 version I started from. So is KMS a no-go on STM32F4 because it uses features not available on STM32F4 ?Looking at Figure 4 SBSFU security IPs vs. STM32 series of um2262 this seems to be the case if I understand that correctly (it seems to be needing this Firewall thing) ?If it is not supported, I would suggest adding this information at the very
I am trying to integrate a very simple TouchGFX Application into the SBSFU (I only really need SB right now) application, on STM32U5A9J-DKI've switched out the Nonsecure application for mine, I've modified flash_layout to do primary only, no external loader, 1 image. I modified the template loader script to have a Framebuffer section that spans SRAM3 (minus the secure section) and SRAM5. I'm using the startup_stm32...c that the original nonsecure application uses.Right now. It builds and boots, and shows "Jumping to first Image Slot" and just sits. I think it's getting into the Appli_Secure, because the Users LEDs on my board are lighting up.I found some verbiage elsewhere that indicates that I likely need to unsecure the IOs and SRAMs that the new NonSecure application uses, but when I start doing that, things go haywire.For example, I've got my project setup so that I can switch back to using the original demo Appli_NonSecure with my modifed flash_layout.h and linker script, and so I
I would like to know how I can program 2 MCUs (stm32wb55cgu6) simultaneously.Currently, I am programming the FUS and BLE binaries (firmware developed by the company).We need to double production, but I can't program via DFU because an error always occurs in one of the MCUs. Is it possible to program 2 MCUs simultaneously, or is that not possible?
Hello,Recently, I’ve been asking several questions about STM32WB55 BLE behavior, and the respected @FilipKremen has provided me with great support.It turns out that all this time I was actually working with fake Chinese chips. I suspect that some of the strange issues I faced were due to that.So, I’ve now bought original STM32WB55RGV6 chips and replaced them in my devices.However, with exactly the same firmware (which worked fine on the fake chips), the BLE does not start at all.Here’s what I tried:Regenerated the project using CubeMX and CubeIDECreated a fresh new BLE project following this official tutorial: https://www.youtube.com/watch?v=CKYWy7LKL68&list=PLnMKNibPkDnG9JRe2fbOOpVpWY7E4WbJ-&index=16Tested on two different custom boards — same resultOn both boards, other functions seem fine (e.g. I can toggle LEDs on button press, and I can hit the button interrupt in debug)(I flash the chips via J-Link)However, when I set a breakpoint at void APP_BLE_Init(void), th
I have an STM32L011F4P6 with an RTC. It is running at 3.3V and 16 MHz off the internal HSI RC clock. The RTC is driven by a +/-20ppm 32.768 KHz crystal. It is running at room temperature (23-25C). After calibration, I am losing several seconds per day! What's wrong?Here's more information:I have a auto-calibration routine where it will output a 1Hz signal on PA2 and capture the rising edges using TIM2 channel 3, running at 16 MHz. I capture the start time (1st edge), I interrupt on overflow and add 65536 to a 32bit variable, and I capture the final (33rd) edge to get the total number of 16MHz clocks in 32 seconds according to the RTC. At the same time, I have a GPS module with a 1Hz output fed into PA10. I set up TIM21 channel 1 identically to the TIM2 setup, to capture the total number of 16MHz clocks in 32 seconds according to the GPS.I take the two numbers and find the difference, not in PPM but in units of calibration (0.954 PPM)
On a custom board, I would like to use the BlueNRG GUI (v.4.7.1) to run the tests described in AN4818 (rev.8) using the DTM firmware embedded in BlueNRG-1_2 DK 3.2.3.I got a connection and I am able to send basic commands, like ACI_TEST_TONE START and STOP. I see the RF signal very clearly. So, the connection with the device is good.If I open the IFR Device configuration to start LS crystal measurement and HS startup measurement I can select the options but as soon as I press the WRITE button, I got an HCI Timeout error and I need to reset the BlueNRG to get the link again.ON a side note, as soon as I connect with the Blue GUI I got a message saying "Old firmware detected on the motherboard", but I am already using the latest.Any idea? It would be nice to leverage on the BlueNRG GUI to run these tests and fine tune the LF crystal and the HS crystal startup time.Kind regardAndrea
In my project I've set the SPI clock to 125MHz; with a SPI prescaler value=4 all works good, when I set it to 2 the SPI stops working and ther is no clock signal.Any helps ? Thank youCarloV
I call HAL_UART_Init() with LPUART1 at 20Mbaud but when I activate assertion it fail at IS_UART_BAUDRATE().The IS_UART_BAUDRATE() is not correct for LPUART that can have a baudrate up to 53.3 Mbaud.Also for UART, the comparaison in IS_UART_BAUDRATE() should be <= instead of < like in IS_LL_USART_BAUDRATE().
Hello,I recently deployed multiple individual PyTorch models onto my STM32H7A3ZI-Q. My workflow ended up being:1. Convert from .pt -> .onnx -> .tf -> .tflite (quantized)2. Build an X-CUBE-AI project via CubeMX3. Swap models in same project using ST Edge AI Core CLI4. Writing scripts to semi-automate this flowIt works, but setting this up involved quite a few manual steps. Is this the most effective manner to approach this? Curious how others handle thisRegards,Ernest
Title modified by an ST moderator to be inline with the content. My goal is to establish CAN communication between Riverdi display - RVT50HQSFWA01 and my laptop. After developing a test GUI using TouchGFX 4.26.0, when I added the code patch for CAN communication then I keep on getting various build errors due to comaptibility issue between TouchGFX and STM32Cube IDE packages. If anyone has tested CAN communication for Riverdi Display boards that can help then kindly reply. I have been trying to get this done for quite sometime now and have been stuck at what seemed like a very simple task. For the sake of reference, the latest build error is : make: *** No rule to make target 'C:/TouchGFXProjects/LIB_display_1/TouchGFX/target/CortexMMCUInstrumentation.cpp', needed by 'Application/User/TouchGFX/target/CortexMMCUInstrumentation.o'. Stop.make: *** Waiting for unfinished jobs...."make -j22 all" terminated with exit code 2. Build might be incomplete. 06:43:53 Build Failed. 2 e
Hi,I've a project with TouchGFX and FreeRTOS on an STM32H7RS. I was updating the library, regenerating the code from CubeMX but, I've noticed that, for some reason, the file \Appli\TouchGFX\target\generated\nema_hal.c has changed// from - #define NEMAGFX_MEM_POOL_SIZE 16128 /* NemaGFX byte pool size in byte */ // to + #define NEMAGFX_MEM_POOL_SIZE 24320 /* NemaGFX byte pool size in byte */but I can't find in the .ioc inside the CubeMX where this value is set and why it has been changedThanks
I've had problems with sd_diskio.c used for SD card I/O with FatFs.CubeMX version is 6.16.0.I'm using SDMMC with DMA, so consideration needs to be given to cache coherency and alignment.I have both these set:#define ENABLE_SD_DMA_CACHE_MAINTENANCE 1#define ENABLE_SCRATCH_BUFFERHowever, I've found some bugs in the code:In SD_read, the alignment check:#if defined(ENABLE_SCRATCH_BUFFER)if (!((uint32_t)buff & 0x3)){#endifshould have the 0x3 changed to 0x1f, as cache alignment requires 32-byte alignment, not 4-byte.There's another case of this in SD_write.Furthermore, there's a bracketing problem in SD_write with the code under ENABLE_SCRATCH_BUFFER conditional compilation, which is supposed to be invoked when the buffer is misaligned as an else condition for if (!((uint32_t)buff & 0x1f), but is instead an else condition for a DMA success check. This means that the scratch buffer code does not run at all when a buffer misalignment is detected.To fix it, I added a closing brace
Greetings!I have the following system:STM32U073CCVBAT pin is connected to a super-cap, and it's voltage was measured to be above the required minimum.During system reset (NRST) it behaves according to my expectations, the RCC_BDCR remains unchanged, but if it is disconnected from Vcc, then upon connecting it back, the LSESYSEN bit is set to 0. This seems reasonable, and is generally not a issue to me, but the reference manual claims that this shouldn't happen? (Everything else works perfectly.)Am I missing something obvious here?Couldn't find any other mention of the bits behaviour.
Hello. My current set up is STM32Cubeide 1.19 which has an integrated version of the CubeMX (6.15)I'm currently working on some st git examples, that seem to have been created with CubeMX (6.16), thus i cannot open the .ioc file on cubeIDE. I installed cubeMX 6.16 in order to edit the .ioc file and hit generate. Once i tried to build the project on cubeIDE though i got various errorsmake: *** No rule to make target 'C:/Users/asantorinaios/STM32CubeIDE/workspace_1.19.0/BLE_Beacon/Drivers/STM32WBAxx_HAL_Driver/Src/stm32wbaxx_hal_gtzc.c', needed by 'Drivers/STM32WBAxx_HAL_Driver/stm32wbaxx_hal_gtzc.o'. Stop. "make -j12 all" terminated with exit code 2. Build might be incomplete.If i try to exclude said file from the build, i another similar error. Is the cubeMX 6.16 incompatible with the 1.19 cubeIDE. Do i need to download cubeide 2.0 or is there another solution ?
Hello ST Community team,About the Typo, on the Table 1 of the RM0473, we have a reserved region between SRAM1 and SRAM2a (from 0x2000 3000 and 0x2002 FFFF) the size of this region is 180 Kbytes and not 36 KBytes as mentioned on the Doc.please have a look at this.
I am configuring a dual-CPU project for the STM32WL55JC in CubeMX. This microcontroller has two CPUs: a Cortex M4 and a Cortex M0+. CubeMX lets users select the CPU that each peripheral is bound to. As illustrated in the image at the bottom of this post, the SUBGHZ peripheral is forced into being used by the Cortex M0+. In case the text in grey box in the image is unclear, it says "Peripheral SUBGHZ could not be removed from context "Cortex-M0+ (M0P)" as it's forced for this Peripheral."However, the datasheet says "An RF low-layer stack is needed and is to be run on CPU1 or CPU2, whereas the host application code is preferably run on CPU1." (Page 15). Here, CPU1 refers to the Cortex M4 and CPU2 refers to the Cortex M0+. This implies to me that the SUBGHZ peripheral should be bindable to either CPU. Can the SUBGHZ peripheral be operated by the Cortex M4, or is the Cortex M0+ only capable of using it?
HelloI'm considering running an LSTM(RNN-based model) model file, on the STN32N657 NPU.However, I understand that the NPU is CNN-based and therefore cannot run on it.Is there a way to run an LSTM model file on the NPU?I understand that theoretically, it's possible to convert an LSTM to a 1D CNN or TCN.Has anyone converted an LSTM model to a 1D CNN or TCN and tested it on the NPU?Is there an example file available?Thank you.
Hello, I am working on implementing an object detection application for the STM32N6570-DK, starting from the reference projects:STMicroelectronics/x-cube-n6-ai-people-detection-trackingSTMicroelectronics/STM32N6-GettingStarted-ObjectDetection I'm encountering a blocking issue when implementing the inference pipeline: During debugging, I found that the inference execution blocks indefinitely at LL_ATON_OSAL_WFE() on line 105 of Appli\App\Src\app_nn.c. The code is stuck in the following loop:static void NN_RunInference(void) { LL_ATON_RT_RetValues_t ret; do { ret = LL_ATON_RT_RunEpochBlock(&NN_Instance_od_yolo_x_person); if (ret == LL_ATON_RT_WFE) { LL_ATON_OSAL_WFE(); // <-- Blocks here } } while (ret != LL_ATON_RT_DONE); LL_ATON_RT_
Hi,I am working on STM32N6570-DK Edge AI development on Windows and I am facing a board programming error when using stm32ai-modelzoo-services. I would like some guidance on the possible root cause and recommended troubleshooting steps.EnvironmentHost OS: Windows 11 Board: STM32N6570-DKTools and versions:STM32CubeProgrammer: v2.20.0 STEdgeAI: 2.2cubeIDE:1.19.0Python: 3.9 Model and datasetModel: st_yolo_xDataset: MS COCO Completed steps:Followed the official instructions to install and configure stm32ai-modelzoo-services on WindowsSuccessfully ran chain_tqeb (training / quantization / evaluation / benchmark) to completionThe quantization output folder contains:Quantized model artifacts (e.g. .tflite / .onnx as produced by the pipeline)A user_config file adapted from the official examplesProblem descriptionWhen running chain_qd or the deployment step for the STM32N6570-DK, the proces
Hello, We have developed an image capturing application successfully based on STM32H7xxxx and OV7725 camera. We are now targeting to port the application to target STM32U5xxxx with the same camera. But it looks the DMA doesn't works as expected. The DCMI DMA complete callback is firing with no image data in the target buffer. Please guide us how to port the application from H7 to U5.Best regards-Shubhendu Bikash BanerjeeAttaching here snaps of the configurations we made so far.DCMI GPIODCMI NVICDCMI parametersGPDMA1 channelsGPDMA1 CH0GPDMA1 securityCode snippet:#define IMAGE_FRAME_WIDTH 320 #define IMAGE_FRAME_HEIGHT 240 #define IMAGE_BYTES_PER_PIXEL 2 #define IMAGE_BYTES_COUNT (IMAGE_FRAME_HEIGHT * IMAGE_FRAME_WIDTH * IMAGE_BYTES_PER_PIXEL) static uint32_t gDCMIBuff[IMAGE_BYTES_COUNT / sizeof(uint32_t)] = { 0 }; static volatile bool gWaitForFrame = false; CaptureFrame{ gWaitForFrame = true; halReturn = HAL_DCMI_Start_DMA(&hdcmi, (uint32_t) DCMI_M
Hi,Recently, I have been evaluating the DAC accuracy of STM32H743. The data sheet mentions the SNR and ENOB , but I have no idea how to test it. Could you please provide a testing method or a testing plan? Looking forward to your reply.
Hello @Imen.D , A side question: RM0440 for G4 says oversampling mode does not support offset. Any change to this position as like the H7 change? Solved: 'H7 ADC offset correction in oversampling mode - STMicroelectronics Community Thank you. SK
Hello,I am encountering difficulties installing the ST Edge AI v3.0.0 application. During installation, the client cannot connect to MyST, even though my credentials work correctly on the ST website.I have also configured the HTTP proxy in the installer exactly as I have for other ST products, which functioned without issue. Nevertheless, the installer repeatedly displays the following error:“Issue while connecting to MyST. Please verify username, password, or internet access.”Could you please advise on how to resolve this problem?Thank you for your assistance.Best regards,JeM
Hi everyone,I’m bringing up USART2 on an STM32 using bare-metal Rust (#![no_std]), direct register access (no HAL, no CubeMX).The CODE looks correctlyHowever, the data itself is wrong.Instead of transmitting 'A' (0x41), the terminal consistently receives values like:0xCE0x05(always stable, but never 0x41).#![no_std]#![no_main]use core::ptr::{read_volatile, write_volatile};use core::panic::PanicInfo;use cortex_m_rt::entry;#[panic_handler]fn panic(_: &PanicInfo) -> ! {loop {}}#[inline(always)]fn r(addr: u32) -> u32 {unsafe { read_volatile(addr as *const u32) }}#[inline(always)]fn w(addr: u32, val: u32) {unsafe { write_volatile(addr as *mut u32, val) }}/* ================= BASE ================= */const RCC: u32 = 0x4402_0C00;const GPIOA: u32 = 0x4202_0000;const USART2: u32 = 0x4000_4400;/* ================= RCC ================= */const RCC_AHB2ENR: u32 = RCC + 0x08C;const RCC_APB1LENR: u32 = RCC + 0x09C;const RCC_CCIPR2: u32 = RCC + 0x0DC;/* ================= GPIO =======
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.