Questions tagged [nucleo]

STM32 Nucleo boards are a line of STM32-based embedded development boards manufactured by ST Microelectronics.

228 questions
0
votes
1 answer

Using Tim2 inside interrupt handler for STM32F1

I am blinking LED using TIM2 General timer. Code in main.c HAL_TIM_Base_Start_IT(&htim2); void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim){ if(htim->Instance==TIM2){ HAL_GPIO_TogglePin(GPIOB, LED_Pin); } } When the…
ussrback
  • 491
  • 2
  • 8
  • 22
0
votes
1 answer

Can not blink the LED PA5 on Nucleo board

Could you please help me to identify where i make the mistake? LED is on PA5 port. int main(void){ HAL_Init(); SystemClock_Config(); GPIO_InitTypeDef GPIO_InitStruct; __HAL_RCC_GPIOA_CLK_ENABLE(); GPIO_InitStruct.Pin =…
ussrback
  • 491
  • 2
  • 8
  • 22
0
votes
1 answer

header files in iks01a2_conf.h template

I was trying to use code generated by STM32CubeMX. I've generated project for SW4STM32, but I have problem with iks01a2_conf_template.h file. Im supposed to replace the header file names with the ones of the target platform and rename the file to…
Dudek
  • 3
  • 2
0
votes
1 answer

How to flash MB1355C and/or MB1293C from the STM32WB55 Nucleo Pack on Linux?

I would like to program the (MB1355C and/or MB1293C) devices from an STM32WB55 Nucleo Pack on my (Ubuntu 18.04.3 LTS) machine - preferably with the convenience of an eclipse based IDE that supports debugging features. I…
0
votes
1 answer

Running Libsodium on Mbed (Nucleo L476RG) - Mutex not allowed in ISR context

I'm trying to run some code that uses libsodium on an Mbed board. While just including the library and running sodium_init() the following error is thrown on mbed sterm: ++ MbedOS Error Info ++ Error Status: 0x80010133 Code: 307 Module: 1 Error…
Yuri van Geffen
  • 853
  • 1
  • 7
  • 21
0
votes
2 answers

How to convert STM32 snippet (code examples) written for target device STM32F072B to STM32F030r8

Dears, I am newbie in embedded systems. I have downloaded code examples from st.com written for target device STM32F072B. As I am using Nucleo-64 with STM32F030r8 MCU, I need to convert the downloaded code examples to support my target device…
niyast
  • 11
  • 4
0
votes
0 answers

STM32F446 HAL_UART_Receive_DMA writing directly to GPIOA->ODR doesn't work

I'm experimenting with the STM32 nucleo board STM32F446. uint8_t data[x]; HAL_UART_Receive_DMA(&huart2, &data, x); This piece of code works when I send bytes to the PA3 and through DMA it writes to data the x bytes I sent. However, when &data…
pterodragon
  • 429
  • 8
  • 16
0
votes
1 answer

STM32 Nucleo F103RB: LD1 slow blinking with external supply

I'm trying to use a Nucleo F103 RB (stm32) with an external supply (5V) but it seems it can't work because the led LD1 is blinking slowly between RED and OFF. According to the manual, it means "At power-on before USB initialization". I'm afraid I…
dmg
  • 1
  • 1
  • 2
0
votes
1 answer

How to get a PWM signal on port D6 (PE_9) on a STM board?

I'm programming a board and want a PWM signal to appear on a pin to drive a LED. I'm using a STM32 NUCLEO-F207ZG board, and only low-level register programming. It is not working. I've looked into the manual, datasheet and application note. Also…
0
votes
0 answers

How to Interface STM32F302R8 with ADS1256 using spi communication?

I've tried interfacing the Nucleo-F302R8 and the High precision AD/DA waveshare board using SPI communication. While do so I'm unable to transmit or receive data. I've used spi3 for communication and gave a i/o for chip select pin. the spi_clk pin…
0
votes
3 answers

Setting up Serial USB communication between STM32 and PC with Mbed library

I hava an STM32 f401RE. I am using Mbed library for setting up a conexion from STM32 to PC. I want to send via serial a char sequence to the board. As an answer i expect a blinking LED. E.g: led1 results in LED ON, led2 results in LED OFF. The…
Cătălina Sîrbu
  • 1,253
  • 9
  • 30
0
votes
1 answer

how should i write to sd card effectively in Mbed?

I have been trying to record data to my NUCLEO F746ZG by using an sd card. This is my code: #include "mbed.h" #include "SDFileSystem.h" //#include "Hx711.h" #include //#include "ep29.h" //#include "wsdef.h" //#include "image.h" //#include…
alim2018
  • 1
  • 1
0
votes
0 answers

if statement doesn't work on Nucleo64 but it does on Maple mini

I have a code that works on Maple Mini but I have to change hardware to Nucleo F030r8 because it has more ADC's and it totally sucks. In the modbus_update() function there is a check of the size of inputBuffer and the following code should run only…
0
votes
0 answers

GPIO interrupts firing when not input provided

I have a few GPIO pins configured as an input as well as a button. The interrupt for the button works great (I need to add some debouncing). But sometimes when the button is pushed, or if I just touch the header pins with my fingers, the other gio…
user8094905
  • 163
  • 1
  • 1
  • 6
0
votes
2 answers

Incorrect value when reading GPIOB_IDR register

I struggle with stm32f030r8 arm programming on atollic true studio ide. I have some problem with reading correct data from idr register. I make pull down PUPR register of GPIOB(0,1,2,3). Other pins of GPIOB is output that i make with MODER…