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
Hai All,I am working on STM32F205VET and I have enabled USB Mass storage, SD Card and FATFS. I need to use SD card and USB mass Storage at a time, that means need to access the files.But I found that based on the FATFS_LinkDriver preference makes that one device in Disable mode. I am giving the Initialization function here. void MX_FATFS_Init(void){ /*## FatFS: Link the USER driver ###########################*/ retUSER = FATFS_LinkDriver(&USER_Driver, USERPath); /*## FatFS: Link the USBH driver ###########################*/ retUSBH = FATFS_LinkDriver(&USBH_Driver, USERPath); /* USER CODE BEGIN Init */ /*Use the first link driver for SD card and second for USB*/ /* additional user code for init */ /* USER CODE END Init */} Can yo
Hi, I am using stm32wb55 mcu with freeRtos, I changed the timebase source time to TIM17 as recommended when using freeRTOS but I am facing unxpected behavior unless I use TIM17 as the source time base the HAL_Delay is not working and the uwTick is stack on zero until the freeRtos schedular starts. What I noticed that I did not get the TIM17 interrupt until the OS starts what is not clear for me, I changed the timebase source so I can call the HAL functions which are using the DELAY before the freeRTOS starts.Any Idea BR Basel
Hi Experts,I have used a SM32L412 series EVK (Master) and thought of interfacing it with ICM-42688P sensor(Slave) using SPI interface.As per ICM-42688 4 wire SPI timing diagram and spec, we conclude that it will work on Motorola NSSmode with (Clock polarity 1 and clock phase 1(2 nd edge)).And I configured the MCU with the above configuration using STM32CubeIDE and tried to communicate with the slave device. Communication is not happening properly and by probing the CS, CLK, MISO and MOSI lines using oscilloscope, there is no transaction on MISO line. The address sent from master is not properly sampled by slave.Later, surfing the google regarding this issue, I came across this document “STM32L4 - SPI Serial Peripheral Interface REV 2.0”. In this, it is mentioned that Motorola will support only CPHA =0. Is there a way to communicate with Motorola NSS mode with (Clock polarity 1 and clock phase 1(2nd edge)) using STM32L4 EVK?
Hi community,I'm a fresher. I have an experiment to read data frames from the Ethercat network as follows:I use ethernet polling mode on Nucleo - F767Zi to read the data frames and I only receive a single data from the Ethercat slave. I checked on Wireshark and found that: there were 2 signals sent from the Ethercat master and 2 response signals from the Ethercat slave. I want to read all the data on the Ethercat network but I don't know why I lost 3 data. It is directly related to HAL_ETH_ReadData(ETH_HandleTypeDef *heth, void **pAppBuff) in stm32f7xx_hal_eth.c but I don't know where I am missing?Any help will be appreciated. Thank you!
Hi everybody,STM32 Cellular can use modem serial port in both "stream mode" to exchange data (LWIP module), or "characters mode" (CS module) to send AT commands.I need to switch from "stream mode" to "characters mode". How can I do this?Note 1: I need to do this switching to query RSSI signal by AT commands (after modem getting working PPP connection). It should be already done by STM32 Cellular inside, but It doesn't. In particular, when funtion CST_polling_timer_callback is called, the state machine is always CST_MODEM_DATA_READY_STATE and never goes to CST_WAITING_FOR_SIGNAL_QUALITY_OK_STATE. Note 2: using x-cube-cellular 3.0.0
Entered into low power STOP modeHAL_PWR_EnterSTOPMode(PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI); Reconfigured LTDC when exiting from STOP mode, LTDC is not driving the display.SystemClock_Config();HAL_ResumeTick();__enable_irq();MX_LTDC_Init();
KeyInputMemory[column_count] = (uint16_t)(GPIOB->IDR); uint16_t mask = 0x0FFF; KeyInputMemory[column_count] &= mask; if (KeyInputMemory[column_count] == StoredKeyInput[column_count]) { // KeyInputCounter[column_count]++; if (KeyInputCounter[column_count] > 5) { StoredKeyInput[column_count] = KeyInputMemory[column_count]; // Reset the counter //KeyInputCounter[column_count] = 0; } } else { // Store the current key i
Hi any one knows the free rtos available heap size function???
I've downloaded the x-cube_classb application, but none of the projects will build for EWARM In addition to a few warnings, the linker fails: unable to allocate space for sections/blocks with a total estimated minimum size of 0x220 bytes (max align 0x4) in <[0x2000'0030-0x2000'1fff]> (total uncommitted space 0x1b74). EWARM version: 9.30.1.50054 Compiler version : 9.30.1.335 Is this classB code incompatible with this version
hii, static WOM_Status_t App_Server_Thread_Entry(ULONG thread_input){printf("\r\n***********server started task ***********\r\n"); ULONG SourceIpAddress;NX_PACKET *DataPacket;ULONG bytes;UINT SourcePort;ULONG BytesRead; /* create the TCP socket */ret = nx_tcp_socket_create(&NetXDuoEthIpInstance, &TCPSocket, "TCP Server Socket", NX_IP_NORMAL, NX_FRAGMENT_OKAY,NX_IP_TIME_TO_LIVE, WINDOW_SIZE, NX_NULL, NX_NULL); /* Create a TLS session for our socket. This sets up the TLS session object for later use */ret = nx_secure_tls_session_create(&server_tls_session, &nx_crypto_tls_ciphers_ecc, server_tls_crypto_metadata, sizeof(server_tls_crypto_metadata)); /* Initialize ECC parameters for this session. */ret = nx_secure_tls_ecc_initialize(&server_tls_session, nx_crypto_ecc_supported_groups, nx_crypto_ecc_supported_groups_size, nx_crypto_ecc_curves); /* Set the packet reassembly buffer for this TLS session. */ret = nx_secure_tls_session_packe
hi! I am using spi code off reference manual because i need make a function for write register and read the register. but with Hal not work well. i am make other function name:but, this code not work, i copy of reference manual:i don´t know how put code in this new forum, excese me.actually, i use the next code, but not work well:
hi, I use STM32_Safety_STL to test STM32L433RC RAM, but when configureRam, return "STL_ERROR",please help:code :#define RAM_SECTION_SIZE 128U //STL hard coded#ifdef STL_DISABLE_RAM_BCKUP_BUF#define RAM_BACKUP_BUFFER_SIZE 0#else#define RAM_BACKUP_BUFFER_SIZE 32U#endif#define TEST_RAM_START_ADDR (0x20000000U + RAM_BACKUP_BUFFER_SIZE)//#define TEST_RAM_START_ADDR (0x20000000U)#define TEST_RAM_SECTION_NB 1 /* 8 RAM sections are tested */void stl_ram_test(void){ STL_TmStatus_t StlRamStatus=STL_ERROR; STL_MemSubset_t RamSubset; STL_MemConfig_t RamConfig; RamSubset.StartAddr = TEST_RAM_START_ADDR;// RamSubset.EndAddr = TEST_RAM_START_ADDR + (TEST_RAM_SECTION_NB * RAM_SECTION_SIZE) - 1; RamSubset.EndAddr = TEST_RAM_START_ADDR + (TEST_RAM_SECTION_NB * RAM_SECTION_SIZE); RamSubset.pNext = NULL; RamConfig.pSubset = &RamSubset; RamConfig.NumSectionsAtomic = TEST_RAM_SECTION_NB; /* 1 shot */ /* Init STL */ if (STL_SCH_
Hello,I'm using STM32H745XIH(M7 side) & interfacing 1280X800 LCD-TFT with STemWin library.In MPU_Config I've defined 2 region as NON_CACHE(8MB) and CACHE(8MB) in SDRAM(Starting address 0xC0000000).Framebuffer define in NON_CACHE region & aGuiDataMemory define in CACHE region.For 2 framebuffer(with ARGB8888) it works fine but some lag found in screen while transition.So, define NUM_BUFFERS=3 in LCDConf.c, and extend the NON_CACHE region to 16MB & also define SDRAM LENGTH = 24M in linker script. Now my program crashes at run time when i try to access CACHE memory(memset aGuiDataMemory in GUI_X_Config function).Debugging code gives Hardfault at this point.When I change linker script CACHE start address from 0xC00000(for 2 buffer configuration) to 0x1000000(for 3 buffer configuration) program crashes as above mention.In Build Analyzer,2 framebuffer consumes 7.8125 MB3 framebuffer consumes 11.71875 MBIn linker script:MEMORY{ SDRAM (xrw) : ORIGIN = 0xC000
Hello,using STM32CubeIDE 1.13.2 with V1.11.1Sending some bytes over uart with DMA works so far, but i am wondering, why it is not possible to use DMA-TransferComplete Callback for this normal-mode transmission.Directly in the lib-function "UART_DMATransmitCplt" i can see that the callback "HAL_UART_TxCpltCallback" is definitely not called if i use DMA_Normal mode (only in circular mode, of course). Is this a bug, or is this intentionally left?How can i get an callback if a normal DMA-Transfer is completed, i don't want to poll the DMA-Flags. thanks an best regards
I start the safety functional software by the example from "STM32CubeExpansion_STL_G0_V1.1.0". From the readme.txt, it mention "Install ST CRC tool", but it is "STM32CubeProgrammer", is this tool has built in CRC function? by post-build steps command line? \"STM32_Programmer_CLI.exe\" -sl Another question is, the compiler generate error message during build: "STM32_Programmer_CLI.exe"' is not recognized as an internal or external command, how to setup the path to make it pass?
https://www.st.com/resource/en/user_manual/um3083-stm32g0-series-iec-60730-selftest-library-user-gui...Hello.As I said, I have a question about the STM32G0 Series IEC 60730 self-test library user guide in the link above.What I'm curious about is where the TM (test module) in the link above is located.It's different from what I have on the link, but I'm using something similar and no matter how hard I look it up, I don't know where TM is.Please reply.Thank you.
Hello everyone,In my project i am using STM32F107VCT6 MCU. When i tried to control gpio pin it is not changing state from low-high/ high-low. I am only getting issue with PB3. In hardware i have connected this pin to SCK pin of W25Q16. I have enabled gpio clock and set the mode of this pin to output_PP(Implementing SoftSPI).CODE SNIPPET:Note: Code generated in keil. I have enabled CMSIS core & selected required device files(Startup + GPIO,RCC & FRAMEWORK from StdPeriph Drivers) I only want to use standard peripheral library(LL). I have tried it with other gpios & it is working absolutely fine. As well as PB3 is working fine if i use HAL. So please can you help what should be done in strandard peripheral library to make it work.
Hello Everyone,I tried the GFX02Z1 "HelloWorld" firmware example on the Nucleo H723ZG. Apparently the example does not work in DMA mode but alway gets stuck in DMA_TxErrorCallback. When switching to No DMA mode it works perfectly well.Did anyone encounter the same problem? Due to performance issues I'd really like to have the DMA mode running.I appreciate any help :)
Hello experts, I am using stm32f779I - Eval kit, I got stuck in receiving the CAN from other node wheres as transmit from my node is working fine. The IDE and packages am using as follows. stm cube ide 1.13.1 stm cube mx 6.9.1 package: stm cube F7_v1.17.1 Below is the CAN initialization code I am using /* CAN initialization */ CAN_FilterTypeDef sFilterConfig; /*##-1- Configure the CAN peripheral #######################################*/ CanHandle.Instance = CAN1; CanHandle.Init.TimeTriggeredMode = DISABLE; CanHandle.Init.AutoBusOff = DISABLE; // CanHandle.Init.AutoWakeUp = DISABLE; // CanHandle.Init.AutoRetransmission = ENABLE; CanHandle.Init.ReceiveFifoLocked = DISABLE; // CanHandle.Init.TransmitFifoPriority = DISABLE; CanHandle.Init.Mode = CAN_MODE_NORMAL; CanHandle.Init.SyncJumpWidth = CAN_SJW_1TQ; CanHandle.Init.TimeSeg1 = CAN_BS1_6TQ; CanHandle.Init.TimeSeg2 = CAN_BS2_2TQ; CanHandle.Init.Prescaler = 6; if (HAL_CAN_Init(&CanHandle) != HAL_OK) { /* Initial
I notice that ST has announced it's roll out of licenses for Azure RTOS on specific STM32 devices during 2021:https://www.st.com/content/ccc/resource/sales_and_marketing/presentation/product_presentation/group1/5b/4f/89/bf/8f/18/4e/83/Microcontrollers_STM32Cube_AzureRTOS/files/Microcontrollers_STM32Cube_AzureRTOS.pdf/jcr:content/translations/en.Microcontrollers_STM32Cube_AzureRTOS.pdfThe limited documentation so far makes reference to ThreadX, FileX, NetX/NetX Duo and USBX. The only component not mentioned is GUIX. So my question is:Will there be graphics driver support from ST for GUIX?I know there is TouchGFX, but it would be a pity not to support the entire Azure infrastructure.
When implementing Real-Time Operating System (RTOS) timers in my embedded system, I've encountered certain challenges and concerns. I'm interested in discussing potential issues such as race conditions, priority inversion, resource contention, overhead, timer accuracy, timer expiry handling, memory management, and effective debugging strategies to ensure the reliable operation of timers within my RTOS-based application. Can anyone share their experiences or insights on how to mitigate these issues and ensure the robust performance of RTOS timers in embedded systems?
Are there any LSM6DSOX libraries for esp32 specifically?
I am using STM32CubeMX and HAL libs to send and receive CAN messages on an STM32F413ZH. stm32f4xx_hal_can.c tells me to #define USE_HAL_CAN_REGISTER_CALLBACKS = 1 which I have done in both main.h and stm32f4xx_hal_conf.h (if I don't put it in the latter, the function HAL_CAN_RegisterCallback() doesn't get built)In main.c I have:...HAL_Init();SystemClock_Config(); MX_CAN1_Init();...static void MX_CAN1_Init(void){ /* USER CODE BEGIN CAN1_Init 0 */ /* USER CODE END CAN1_Init 0 */ /* USER CODE BEGIN CAN1_Init 1 */ /* USER CODE END CAN1_Init 1 */ hcan1.Instance = CAN1; hcan1.Init.Prescaler = 8; hcan1.Init.Mode = CAN_MODE_NORMAL; hcan1.Init.SyncJumpWidth = CAN_SJW_2TQ; hcan1.Init.TimeSeg1 = CAN_BS1_8TQ; hcan1.Init.TimeSeg2 = CAN_BS2_3TQ; hcan1.Init.TimeTriggeredMode = DISABLE; hcan1.Init.AutoBusOff = DISABLE; hcan1.Init.AutoWakeUp = DISABLE; hcan1.Init.AutoRetransmission = DISABLE; hcan1.Init.ReceiveFifoLocked =
Can anybody point me to example of two or more ADC channels polling?I'm trying to measure two channels of one ADC but it looks like it reads one channel twiceInitialization:static void MX_ADC1_Init(void) { ADC_MultiModeTypeDef multimode = {0}; ADC_ChannelConfTypeDef sConfig = {0}; hadc1.Instance = ADC1; hadc1.Init.ClockPrescaler = ADC_CLOCK_ASYNC_DIV1; hadc1.Init.Resolution = ADC_RESOLUTION_12B; hadc1.Init.ScanConvMode = ADC_SCAN_ENABLE; // scan all channels? hadc1.Init.ContinuousConvMode = DISABLE; hadc1.Init.DiscontinuousConvMode = DISABLE; hadc1.Init.ExternalTrigConv = ADC_SOFTWARE_START; hadc1.Init.ExternalTrigConvEdge = ADC_EXTERNALTRIGCONVEDGE_NONE; hadc1.Init.DataAlign = ADC_DATAALIGN_RIGHT; hadc1.Init.NbrOfConversion = 2; hadc1.Init.DMAContinuousRequests = DISABLE; hadc1.Init.EOCSelection = ADC_EOC_SEQ_CONV; //<<<< hadc1.Init.LowPowerAutoWait = DISABLE; hadc1.Init.Overrun = ADC_OVR_DATA_OVERWRITTEN; if (HAL_ADC_Init(&hadc1) != HAL_OK)
hi I am working on keyboard project where i want to read B port"KeyInputMemory[column_count] = (uint16_t) HAL_GPIO_ReadPin(rowport, GPIO_PIN_All);iam taking rows as input... whenever key is pressed it should be read that pin.... how can i see whether particular address is stored or not in software
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.