Questions tagged [gnu-arm]
41 questions
0
votes
0 answers
I am facing error "The toolchain is unable to build a dummy C file" while building simple hello world application on cmd
I am facing error "The toolchain is unable to build a dummy C file" while building simple hello world application on cmd. I have Windows 10 64 bit machine.
I have installed all necessary tools and packages for Windows as per instructions on website…

J R
- 1
- 1
- 3
0
votes
1 answer
Assembly file(.S) throw errors with GNU ARM toolchain in Eclipse Photon
I ported an assembly file from ARMCC syntax to GNU syntax, but it is throwing an error during compilation.
Environment: GNU ARM toolchain for ARM7 in Eclipse 4.8 (Photon).
Requirement: Porting from Keil ARMCC to GNU ARM toolchain in Eclipse.
It…

Utsav
- 1
- 1
0
votes
1 answer
How could SSCANF provide so strange results?
I am in 4-day fight with this code:
unsigned long baudrate = 0;
unsigned char databits = 0;
unsigned char stop_bits = 0;
char parity_text[10];
char flowctrl_text[4];
const char xformat[] = "%lu,%hhu,%hhu,%[^,],%[^,]\n";
const char…

mixerito
- 13
- 3
0
votes
1 answer
STM32 Boot from specific NOR block
I've ported an STM32F4 project from Keil uVision5 to Eclipse (GNU MCU Plugin).
In my Keil uVision5 project, I used to use 7th block (0x080E0000) for my boot code (I verify that using STM32 ST-LINK Utility tool that my boot code is really at 7th…

sanchop22
- 2,729
- 12
- 43
- 66
0
votes
0 answers
Is it possible to compile a firmware targeting minimum difference from previous version?
I am using gnu-arm to generate the .hex files for my MCU. I want to send firmware updates over the air, using a limited bandwidth channel, so the idea is to just send an incremental update, using the difference between version.
Is it possible with…

Vitomakes
- 315
- 4
- 12
0
votes
1 answer
GNU assembler: creating a symbol using macro argument
I have a macro which creates labels, but I only want to create those labels if they aren't already defined. The problem is that the label is built using a macro argument, and the assembler doesn't like symbols generated using macro arguments. This…

bja1288
- 9
- 1
- 4
0
votes
1 answer
Error due to GNU ARM toolchain usage in IAR workbench
I recently started programming with STM32F4Discovery board and am using IAR workbench as the IDE. I am supposed to use an already developed program in Eclipse as a part of my project. When I imported this into IAR Workbench, I get the following…

smyslov
- 1,279
- 1
- 8
- 29
0
votes
1 answer
Excluding GNU as (GAS) standard startup code
I want the GCC to exclude the startup code it link automatically with building process
what should i do?
So that i have my Own Startup assembly code defining labels (_start, _exit,..etc)

iwahdan
- 429
- 1
- 5
- 14
0
votes
1 answer
how to set or replace a file on project explorer on gnu arm eclipse or cdt?
I'm studying eclipse cdt plug-in development use gnuarmeclipse.
previous question.
I need to set or replace a file(such a linkerscript) in project explorer.
I know it change on project properties -> C/C++ Build -> Settings -> Tool Settings -> GCC C…

WhiteCat
- 13
- 1
- 6
0
votes
2 answers
#pragma for GNU ARM
I want to enclose an entire C file in a output section,
Here is the example code I am trying:
#include
#pragma arm section code = ".sec_ro"
int main(void)
{
printf("Hi\n");
}
#pragma arm section
I used :
arm-none-linux-gnueabi-gcc -S…

user2807984
- 23
- 2
- 7
-2
votes
2 answers
how does decimal to hex conversion work in assembly?
I am trying to figure out how 12345 in decimal produces 0x39 0x30 in hex. Can anyone explain this? It has been a while since intro to assembly. The suggested posts helped me a bit, but none have an example that illustrates how this works.
.hword…

user3326293
- 817
- 1
- 14
- 37