All Questions

Tagged with
Filter by
Sorted by
Tagged with
0
votes
2answers
62 views

Custom bootloader passing control to application code in STM32

I am trying to understand that if for STM32F405 MCU a custom bootloader is used on the MCU then each of the two projects for the custom bootloader and the application code will have their own 'startup....
2
votes
2answers
536 views

Accessing stm32 registers via structs in GCC

I'm trying to roll my own USB device using an STM32F103 blue pill board in C with the GCC arm-none-eabi compiler, but I've run into some strange behavior that I'm trying to understand. I've created ...
1
vote
0answers
86 views

How to create address independent code for STM32F746?

I need to create an address independent, dynamically reallocable code for STM32F746: a code (program) that I will store in one place (i.e. external Flash), than load it into the RAM (internal or ...
2
votes
4answers
3k views

Can I use just plain GCC to compile program for Nucleo?

I have a ST Nucleo F446RE. It's an ARM board which provides quite an interesting interface for uploading programs - it presents itself as USB storage device and the program can be copied on it, which ...
2
votes
2answers
985 views

STM32 NaN value for floating point operations on global variables

I am trying to implement a simple Odometry computation loop. Which is being run in a while loop. Following is the code: ...
5
votes
2answers
664 views

Lightweight (subset) of standard C library (ANSI C library)

I'm porting standard C library for bare metal "OS" (ARM Cortex-M4, ARM GCC). I want to have functions like strlen, sprintf, (and memory allocator, maybe), etc. I've ported PDCLib and Newlib. Newlib ...
0
votes
1answer
126 views

ARM strange behaviour clock speed

I am just starting with ARM and have made a small breakout board with an STM32F030 in TSSOP20 package. I've uploaded the following program which works when the clockspeed of the device is set to 8MHz ...
1
vote
1answer
936 views

STM32L0 Snippets with GCC ARM Toolchain

Currently I try to use the STM32L0 microcontroller series. I found that ST offers a low-level C program collection called STM32SnippetsL0 too, parallel with their complex STM32CubeMX based HAL API. ...
10
votes
3answers
5k views

Eclipse + GNU ARM + STM32 - HAL or SPL

I am going to start with ARM development (after 2 years of AVRs) and have picked up the STM DISCOVERY board with the stm32f4 microprocessor on it. I have decided to go with eclipse + ARM gcc since I ...
0
votes
1answer
4k views

Stm32f103 code examples? [closed]

I'm starting with a small dev board using the STM32F103C8T6. The learning curve is steep and I'm trying to find some examples regarding peripherals. I am using the Coocox IDE, the ARM GCC, and an ST-...
6
votes
1answer
1k views

What is relation between ARM libraries

What is relation between CMSIS libs released by ARM.com, libraries provided by manufacture and GCC ARM libraries ? What is the exact purpose of each? Which of them Should I use?
0
votes
1answer
365 views

STM32 PWM only works correctly when I leave in two unused variables: StartUpCounter and HSEStatus

I'm using the stm32f3discovery board to try and generate the signal for a ws2812 light strip. I've got src/system_stm32f30x.c, which I copied from the StdPeriph ...
0
votes
1answer
2k views

STM32F4xx input pin reads wrong state on first run but not subsequent

I am working on a program which reads the state of a pin at startup to determine an operational mode. When I run the code on first power up, it reads incorrectly, but subsequent resets without power ...
1
vote
0answers
3k views

What shall be changed about stm32f4x7_eth_bsp.c

I am using STM32f407ZGT6. FreeRTOS is running perfectly on Board! I have included Ethernet files. According compilation of Windows Commander stating that it was compiled lacked free. But if one ...
11
votes
4answers
15k views

Endian problem on STM32

I'm using arm gcc (CooCox) to program an STM32F4discovery, and I've been wrestling w/ an endian problem I'm sampling with a 24 bit ADC via SPI. Since three bytes are coming in, MSB first I had the ...
8
votes
2answers
8k views

Move embedded programming from Keil to Linux

I'm currently using Keil to develop for an STM32 discovery board. My project is close to finished, and I'd like to move to a Linux based building environment. I've been using the preconfigured ...
0
votes
2answers
7k views

STM32 crashing to Default_Handler

My STM32F4 Discovery is crashing when I try to run the sin or sinf function with the FPU enabled and with the FPU disabled. ...
4
votes
1answer
3k views

Unable to compile STM32F4 code sample with Eclipse

I'm trying to compile a simple STM32F4 sample using Eclipse with the GNU ARM Eclipse plugin from http://gnuarmeclipse.livius.net/blog/. I'm getting the following errors: and the structure is as ...
16
votes
2answers
17k views

STM32F2: Makefile, linker script and start-up file combination without commercial IDE

I have been working with an STM32F2 (specifically, the STM32F217IGH6 on a development board) for about two months. By far my biggest problem had to do with the "setup", which includes makefile, linker ...