Developer support experience survey - We value your feedback
Ask questions and find answers on STM32Cube packages, including HAL, LL and middleware, and expansion software.
Most recent activity
Hi Community, I have a customized OpenBootloader that works well in debug build but is not working when the same is built for release. After some investigation, it was found that execution hitting hard fault at OPENBL_FLASH_JumpToAddress when OpenBootloader_DeInit() is executed which in turn calls HAL_RCC_DeInit().What may be the reason it is not working in the release build?Please find the OPENBL_FLASH_JumpToAddress implementation:void OPENBL_FLASH_JumpToAddress(uint32_t Address) { Function_Pointer jump_to_address; /* Deinitialize all HW resources used by the Bootloader to their reset values */ OpenBootloader_DeInit(); /* Enable IRQ */ Common_EnableIrq(); jump_to_address = (Function_Pointer)(*(__IO uint32_t *)(Address + 4U)); /* Initialize user application's stack pointer */ Common_SetMsp(*(__IO uint32_t *) Address); jump_to_address(); }
Has anyone implemented the Classic USB DFU class without using Azure RTOS for STM32H5xx Devices. There is an example support for the CDC Communication available on the Community but i was unable to find the DFU Example. If anyone has an example please share. @B.Montanari Please Suggest.
Hi, I'm getting a hard fault on MX_TIM1_Init() but only during debug sessions. When I set a breakpoint after initialization, then I can step through and everything works. Why is this happening?
Hello,I am using a Nucleo H755ZIQ development board and want to test the network communication with the M4 core in combination with FreeRTOS and LWIP, but I am running into a problem.For the setup process I have used the network tutorial from "Adam BERLINGER".https://community.st.com/t5/stm32-mcus/how-to-create-project-for-stm32h7-with-ethernet-and-lwip-stack/ta-p/49308 The problem is, that i cant build my project and i will always receive the following error message for the M4 project:../LWIP/Target/ethernetif.c: In function 'HAL_ETH_RxLinkCallback':../LWIP/Target/ethernetif.c:906:3: warning: implicit declaration of function 'SCB_InvalidateDCache_by_Addr' [-Wimplicit-function-declaration]../LWIP/Target/ethernetif.c:906: undefined reference to `SCB_InvalidateDCache_by_Addr' To my knowledge the function is part of the cache handling for M7 processors.But in my case i am using the M4 core of the H7 which does not have a D-Cache. Has someone an idea how to solve this issue?
I am confused: I want to have 1ms AZURE RTOS tick timer - but no idea how to set.What I see:AZURE RTOS defines 10ms tick timer (UX_PERIOD_RATE, TX_TIMER_TICK_PER_SECOND)I see as well, when using tx_thread_sleep(1000); - it sleeps 10 second (not 1) - OK, obvious with 100 set for all the AZURE RTOS timer configs (macros)But I cannot force to get 1ms ticks: even I change all macros I could find, e.g. UX_PERIODIC_RATE, TX_TIMER_TICKS_PER_SECOND to 1000 - this happens:I see the TIM6 INT comes fast, assuming with 1ms period (I debug with toggling a LED in TIM6 INT). But after a short period of time (approx. 1...2sec) the TIM6 INT changes to something like 10Hz (much slower now and I can see the LED toggle).I can clearly see the LED toggling and my "delay" command (which should wait for X milli-seconds) is still wrong.Questions:how to change to a 1ms tick timer (for AZURE RTOS)?can it be that the TIM is reconfigured by a LIB function? (to a much slower rate)It do not find anything in sou
Hello,I've recently been using Thread application examples like "Thread_FTD_Coap_Multicast", but when I tried adding other features such as ADC, I encountered errors due to redundancy caused by too many files.I'm wondering how to start a new clean project with STM32CubeMX and then incorporate the Thread protocol afterwards.Have you ever done this? If so, do you have any suggestions?Thank you.
Hi,it's possible to swap Tim1 and Tim2 to use the example N-pulse waveform generation application example - part 1? Bests Pedahl
Hi all,I am designing an application on a STM32L431. I need to consume the least amount of power. The MCU will have to use the CAN module both in transmit and receive mode. The reference manual does not give too much details on how the lower power mode work with each of the peripherals. For example, if I set the device in low-power sleep mode and I receive a CAN message, it will wake up the CPU clock and main loop restart? Can I set the Tx mailboxes of the CAN buffer and immediately send the device in low-power sleep mode? The CAN message will be sent anyway?
I have a NUCLEO-H723ZG.From the STM32 examples, in the LwIP_UDP_Echo_Server/STM32CubeIDE/STM32H723ZGTX_FLASH.ld file, we have: .lwip_sec (NOLOAD) : { . = ABSOLUTE(0x30000000); *(.RxDecripSection) . = ABSOLUTE(0x30000200); *(.TxDecripSection) . = ABSOLUTE(0x30000400); *(.Rx_PoolSection) } >RAM_D2 AT> ROM However, when creating a project with STM32CubeIDE 1.13.1, We don't get to set the Rx_PoolSection. Also, in the generated ethernetif.c file I got: #if defined ( __ICCARM__ ) /*!< IAR Compiler */ #pragma location=0x30000000 ETH_DMADescTypeDef DMARxDscrTab[ETH_RX_DESC_CNT]; /* Ethernet Rx DMA Descriptors */ #pragma location=0x30000100 ETH_DMADescTypeDef DMATxDscrTab[ETH_TX_DESC_CNT]; /* Ethernet Tx DMA Descriptors */ #elif defined ( __CC_ARM ) /* MDK ARM Compiler */ __attribute__((at(0x30000000))) ETH_DMADescTypeDef DMARxDscrTab[ETH_RX_DESC_CNT]; /* Ethernet Rx DMA Descriptors */ __attribute__((at(0x30000100))) ETH_DMADescTypeDef DMATxDs
Hi,My thread starts working with the features I mentioned below: panID = 0x2222U; channelNB = 12U; networkKey = (otNetworkKey) { .m8 = {0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0xFF} }; I want to change this config in mcu working. How can I do this? I changed my values and I tried the code below: otError error; error = otLinkSetChannel(NULL, channelNB); if (error != OT_ERROR_NONE) { return AKUS_ERROR; } error = otLinkSetPanId(NULL, panID); if (error != OT_ERROR_NONE) { return AKUS_ERROR; } otNetworkKey *ptr_key = (otNetworkKey*)&(networkKey); error = otThreadSetNetworkKey(NULL, ptr_key); if (error != OT_ERROR_NONE) { return AKUS_ERROR; } but my thread app fails when I use this codes.Best regards.
Hello There, I'm working on an app utilizing STM32H7A3 with CMSIS-OS2.I'm facing a problem with osDelay(). Most of the time it returns too early than the actual delay. While HAL_Delay() always works fine.I have debugged osDelay(3500) with oscilloscope. It's giving a delay of 141ms.The before and after ticks were also 5537 and 5678 respectively.Freertos tick rate is 1000Hz.I have also tried setting the delay between 500 and 3500. But the actual one comes out to be 100-200ms.Any help is appreciated.Regards, Keshav Aggarwal
I have the following code that I call from a freertos task scheduled with a period of 100 ms.It reads the voltage applied to a pin and return the voltage value as a float. float pinin_pv(void) { /* Return the pin voltage in the interval [0, PIN_VOLTAGE] */ extern ADC_HandleTypeDef hadc1; const uint32_t ADC_RESOLUTION_BITS = 10; const uint32_t pippo = hadc1.Init.Resolution; // Only for explanation const float PIN_VOLTAGE = 5000.0F; // [mV] const float ANALOG_IN_RESOLUTION = PIN_VOLTAGE / (float)(1 << ADC_RESOLUTION_BITS); // [mV]HAL_ADC_Start(&hadc1); HAL_ADC_PollForConversion(&hadc1, HAL_MAX_DELAY); size_t analog_read = HAL_ADC_GetValue(&hadc1); float pin_voltage; pin_voltage = ANALOG_IN_RESOLUTION * (float)analog_read; return pin_voltage; } As you see, I have hard-coded const uint32_t ADC_RESOLUTION_BITS = 10; but I would like to pull this information from hadc1.Init.Resolution; (as example, I defined a variable named pippo in the code abov
hey everyone,I need to get access to device of STM32 board to read Hex file. any idea please ?I am using STM32F401RE.Simo
Dear Community Member, I am working on the data acquisition and logging is SD card. In this project i am using stm32l452RET6 uC to interface SD card in SDIO mode with fatfs. It is working file when we are logging for the shorter time. I am creating only two file in the sd card.Issue 1: Some times create garbage file in the sd card other than 2 files.Issue 2: Some times our data file corrupt and not open on the pc.What are the reason of these issue??
Greetings, I have a problem with LWIP when the D-Cache is enabled. My test program:int main(void){ /* USER CODE BEGIN 1 */ /* USER CODE END 1 *//* USER CODE BEGIN Boot_Mode_Sequence_0 */ int32_t timeout;/* USER CODE END Boot_Mode_Sequence_0 *//* Enable the CPU Cache */ /* Enable I-Cache---------------------------------------------------------*/ SCB_EnableICache(); /* Enable D-Cache---------------------------------------------------------*/ SCB_EnableDCache();/* USER CODE BEGIN Boot_Mode_Sequence_1 */ /* Wait until CPU2 boots and enters in stop mode or timeout*/ timeout = 0xFFFF; while((__HAL_RCC_GET_FLAG(RCC_FLAG_D2CKRDY) != RESET) && (timeout-- > 0)); if ( timeout < 0 ) { Error_Handler(); }/* USER CODE END Boot_Mode_Sequence_1 */ /* MCU Configuration--------------------------------------------------------*/ /* Reset of all peripherals, Initializes the Flash interface and t
Hi,I’m using the latest X-CUBECELLULAR version v7.1.0 on the BL462E-CELL1.However, the modem factory FW version (RK_03_00_00_00_11851_001) isn’t compliant with the X-CUBECELLULAR v7.1.0. From the release notes, the X-CUBECELLULAR v7.1.0 requires RK_03_00_00_00_04121_001.However, I don’t know how and where to download the RK_03_00_00_00_04121_001 modem firmware version.Your help is much appreciated.Kind regards.
AT%CEER?<CR> <CR><LF> %CEER: 1,"NAS-EMM","ATTACH","REJECT",#15,NO_SUITABLE_CELLS_IN_TRACKING_AREA<CR><LF> <CR><LF> OK<CR><LF>Here is the modem configuration:Cellular Service InfosModem state : 4 (Modem registered on network)Signal Quality : 0Signal level(dBm) : 0Operator name :IMEI : 351521100639475Manuf name : Murata Manufacturing Co.Model : LBAD0XX1SC-DMRevision : RK_03_00_00_00_04121_001Serial Number : 351521100639475ICCID : 8944477300000104512IMSI : 208090022802391Network bearer (AcT) : 0 (GSM)IP address&nbs
Hi,I have checked through the inquiries and possible solutions on the ST community for eSIM registration issues on BL462E-CELL1.However, none has worked for me.https://community.st.com/t5/stm32-mcus-embedded-software/b-l462e-cell1-not-connecting-to-truphone/td-p/215965https://community.st.com/t5/stm32-mcus-products/b-l462e-cell1-not-connecting-to-truphone-continued/td-p/166092I'm in South Korea, and the error I get is;"ATCModem:NetworkState (EPS) = NOT_REGISTERED_NOT_SEARCHING""AT%CEER?<CR> %CEER: 1,"NAS-EMM","ATTACH","REJECT",#11,PLMN_NOT_ALLOWED<CR><LF>"I have attached the traces from the TeraTerm serial for more details.- The eSIM is already activated on the Truphone IoT dashboard- Executing "at at%nwoper?" command gives "TRUPHONE".- South Korea is covered for LTE-M by Truephone (https://www.truphone.com/things/plans/coverage/?feature=LTE-M&addon=Asia )The detected IMSI is "204080920719573" which corresponds to the Netherlands - KPN Mobile The Netherlands BV (h
When I run the below code snippet, it just runs for once, however when I added semicolon as in latter code piece, it runs as expected, continously. Could you please tell me why is the difference? /* USER CODE BEGIN WHILE */ while (1) { /* USER CODE END WHILE */ /* USER CODE BEGIN 3 */ while(!(TIM6->SR & TIM_SR_UIF)) TIM6->SR = 0; HAL_GPIO_TogglePin(GPIOD, green_Pin); *************************THE SECOND CODE PIECE IS BELOW************************************** } /* USER CODE END 3 */ } /* USER CODE BEGIN WHILE */ while (1) { /* USER CODE END WHILE */ /* USER CODE BEGIN 3 */ while(!(TIM6->SR & TIM_SR_UIF)); TIM6->SR = 0; HAL_GPIO_TogglePin(GPIOD, green_Pin); } /* USER CODE END 3 */ }
Running into a strange problem . We're working on a safety project and using the ST-provided STL library on an STM32H743. Failing the Flash test when attempting to get 100% test coverage. Mode details in section below.The STL library is configured to test a multiple of sectors at a time (128kByte each).Our usage model is closely derived from the Nucleo reference project that ST provides as an aid to integrate the STL library; and we're using the IAR project in that package.As of today our code utilizes 3 sectors (2 complete and one partial).The Flash test (via STL_SCH_RunFlashTM API) works well on the first 2 sectors, but always fails the 3rd.Turns out, this is because the ST-provided CRC table generator utility (STM32_Programmer_CLI.exe called with option -sl) does not generate CRCs past the last byte of in-use memory inside the 3rd sector.As an attempt to remedy the problem I'm using the memory fill option built into the IAR IDE, to force a fill to a known pattern, different from 0xF
I'm trying to create a composite HID device, mouse+joystick. I'm using the HID mouse profile as a starting point and then add a second interface. I also used an already existing example as a guide: the Arduino core based on the HAL is maintained by ST, and implements a composite HID device mouse+keyboard, which is then used by the Arduino Mouse and Keyboard libraries https://github.com/stm32duino. For what is worth, I modified that code to implement a mouse+joystick device, and everything works as expected in Arduino. Unfortunately that code is not based on the latest HAL, so I cannot simply swap it. I then tried to use the same USB description and init function to create my device in a standard STM32CubeIDE project (below). I can see that the device initializes properly, Windows recognizes it as a composite HID device with the right characteristics, and the mouse interface works perfectly. If on the other hand I try to send data via the joystick interface, it stops transmitting. I use
I have a Nucleo-u5a5zj board and I want to connect a NewLand FM430 scanner that works as a virtual COM port. In the example, I only saw the USB CDC ACM device, but I only need the configuration for the host. Can you give me more explanation of what I should do? I tried using sources from other examples like USBX USB_HOST_CDC_ACM for STM32H7 and didn't get good results. Maybe someone can find me an example of how I can get a USB host in this configuration. Early thanks. PS. I am trying to use AzureRTOS (ThreadX) and USBX
Please let me know if I can use the Azure RTOS free with the STM32F767xx MCU and if it is free how can I use the same on my NUCLEO-F767ZI board? Please response as soon as possible. I need this to use the file system and also the ethernet/USB communication feature and other features. Can this RTOS be used for using all the wired/wireless communication peripherals available on the MCU? We need to make decisions based on this for our project.
Hi Team,Where can I find the driver's files related to BLE module for BlueNRG-M2SA?we are using STM32L475RGT6 MCU to communicate wirelessly using the mentioned Bluetooth module.Kindly help me on this.Thanks
Hi everyone, I’m using H747 eval board and I’ve configured Adc1 and adc2 (on M4) to acquire 3 signals each.I’m using DMA but I can’t read correct values in the buffer..how is it composed? Which is the sequence of channels in the DMa buffer if I have, for example, Channel 0-1-2 on adc1 and channel 3-5-6 on adc2 active? Thanks :smiling_face_with_smiling_eyes:
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.