Questions tagged [arm-none-eabi-gcc]

87 questions
0
votes
0 answers

Problem with flash size of an stm32F4 with a static library

I currently have a very big problem with the link between my stm32 project and a static library that can display different barcodes (QRCode, Datamatrix...) Indeed, I need this library to display different barcodes on an Epaper screen. Unfortunately…
0
votes
1 answer

STM32F7 VMA and LMA with AXIM/ITCM flash

I'm writing some basic bare-metal C code for my stm32f767zi board (using Keil uVision IDE if that matters too) and I would like my vector table (and at some point all the .text stuff too) to have a LMA in flash via the AXIM bus and a VMA in flash…
Dartlead
  • 13
  • 4
0
votes
1 answer

Is there any reference to "main" in the default linker scripts of arm-none-eabi that could interfere when linking from the command line

When using the gnu toolchain particularly arm-none-eabi is there any reason why when using the command line linker option it resorts to what seems an incorrect address to the start of 'main'. However, when 'main' is anything else the correct…
odnal
  • 23
  • 4
0
votes
1 answer

Errors compiling sqrt function for RaspberryPI2 and BeableBoneBlack with arm-none-eabi-gcc compiler

i'm new in this type of coding and i'm trying to do some test executing bare-metal software for Cortex-A processors. I have experience with Cortex-M MCU and i compiled code with an IDE like ARM-Keil and with SDK by Nordic for some BLE jobs. Now i…
0
votes
2 answers

Assertion Failed: The toolchain is unable to build a dummy C file

A number of students + myself have been attempting to set up a Zephyr RTOS build environment under Windows 10, to build applications that target various ARM Cortex M boards. We have each followed the Zephyr "Getting Started Guide" and ran into the…
John Scolaro
  • 695
  • 6
  • 20
0
votes
0 answers

Arm-Embedded-GCC Toolchain - Difference Version 7 and 9

We use the ARM Embedded Toolchain based on GCC for our Cortex-M3 projects (arm-none-eabi maintained by ARM). We lately upgraded from 7.2.1 to 9.3.1 in a project that uses GNU11 and GNU++14 and the newlib-nano (nano.specs) and the optimization level…
user654789384
  • 305
  • 1
  • 4
  • 21
0
votes
1 answer

I have touble when including files with makefile for a stm32f4xx

I'am starting using Linux and I have some trouble using some stm32f4 libraries for my project gcc-testing. All the CMSIS programs needed are inside the STM32F4_Discovery_FW_V1.1.0 and the project is arranged like this: ~ |__ | | | STM32F4XX | …
0
votes
1 answer

Alignment passed as macro in #pragma pack(push,ALIGNMENT) results in code generating hardfault

I'm getting hardfault with following code using both 9-2020-q2-update and 8-2019-q3-update arm-none-eabi toolchains: #define ALIGNMENT ( 1 ) #pragma pack(push, ALIGNMENT) typedef struct a { int16_t i16; uint64_t u64; } a_t; #pragma…
rkrahl
  • 1,159
  • 12
  • 18
0
votes
1 answer

How is it that an arm-none-eabi-gcc code program runs on x86 machine?

Many questions in this forum start with "why does my code not run..." For a change, this one is "why does my code run..." I develop on Ubuntu 18.04 running as a VM machine on a laptop (windows x86). The following program compiled and linked with gcc…
user1238760
  • 61
  • 2
  • 6
0
votes
1 answer

Isn't 'make' program built-in the gcc-arm-none-eabi library?

My English is poor because I'm not a native English speaker. I hope you to understand. I downloaded gcc-arm-none-eabi-9-2020-q2-update-win32.exe version on the…
jjw
  • 282
  • 3
  • 20
0
votes
0 answers

arm-none-eabi-gcc (error: initializer element is not constant)

I'm working through the book Embedded Systems Architecture by Daniele Lacamera. In Chapter 4, The Boot-Up Procedure, we create the Interrupt Vector Table (for an ARM Cortex M4) like this: __attribute__ ((section(".isr_vector"))) void (* const…
Fiddling Bits
  • 8,712
  • 3
  • 28
  • 46
-2
votes
1 answer

Why I can't assign struct returned by a function to struct?

I wrote "lightweight" time library and I have struct and typedef like this: struct tmt { uint16_t year; uint8_t month; uint8_t day; uint8_t hour; uint8_t minute; uint8_t second; uint8_t weekday; uint8_t is_dst;…
Kamil
  • 13,363
  • 24
  • 88
  • 183
1 2 3 4 5
6