STM32 MCUs Embedded software

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Reading pins of a port in one line of code

Posted on October 14, 2015 at 05:17I am working on project which is generated by Cube and uses HAL drivers. I require to read states of a number of pins on a port. Currently I am doing like this:  //read PC0 to PC7 to check for state (on or off)  re...

embedonix by Associate III
  • 1463 Views
  • 3 replies
  • 0 kudos

Why my project stuck in HAL_Delay()?

Hi,i have started this project using X-Cube-IOTA1 package and i added all libraries i need to replicate the same project example which is IOTA-Client. i manage to compile my version and run in the the STM32 B-L4S5-IOTA1 using freeRTOS, but the proble...

Skane by Associate II
  • 2951 Views
  • 7 replies
  • 0 kudos

STM32G473CBT freezes jumping to bootloader

I have a custom board using the STM32G473CBT6 MCU. BOOT0 is pulled-down by a 100k resistor and is used as GPIO (output) at runtime. The firmware is generated by CubeMX, with the addition of a C++ file for the 'user' application. The board works fine,...

StefanH by Associate III
  • 387 Views
  • 2 replies
  • 0 kudos

Resolved! Tasks work strangely in FREERTOS

Started learning FREERTOS and ran into a problem.I showed 3 pieces of code of the same tasks.All 3 pieces of code work differently.Code 1void Task1(void *argument) { int j = 0; for(;;) { HAL_GPIO_TogglePin(GPIOB, GPIO_PIN_0); for(j=0; j<100000...

root437 by Associate II
  • 439 Views
  • 4 replies
  • 0 kudos

Resolved! Two questions about HAL_GPIO_EXTI_IRQHandler

1- Using cubre-mx I enabled two IRQ lines, each generate its own ISRvoid EXTI0_IRQHandler(void){ HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_0);}andvoid EXTI15_10_IRQHandler(void){ HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_0);}Why HAL joint together both IRQ handlers ...

dhs by Associate III
  • 649 Views
  • 4 replies
  • 0 kudos