95 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
33
views
DJI PSDK Unable to compile in uVision5
I am writing some minimal code for flight control subscription with DJI's Payload SDK for my Matrice 400. I am programming the GigaDevice MCU GD32F527ZMT7 on the E-port development board directly with ...
1
vote
1
answer
114
views
Compiling c with armcc, how do I avoid clang-diagnostic with armcc syntax when using clang-tidy static analysis
Have you ever encountered a situation where clang-tidy will report error for some armcc syntax and some armcc commands when performing static analysis with the armcc compiler?
for example:
error: ...
1
vote
0
answers
63
views
Can ARMCC generate a warning for implicit conversion?
I am trying to find the armcc equivalent of the gcc option that generate a warning if there is a sign mismatch when passing in integers into a function.
In gcc, these compiler options will generate an ...
1
vote
3
answers
83
views
Questions about non-byte aligned access of STM32F4 series MCU
Recently I encountered a bug in non-aligned byte access, so I did an experiment and encountered some doubts, as follows:
Why does the system not crash when my code below accesses non-aligned bytes?
...
1
vote
0
answers
224
views
Error: L6200E: Symbol __stdout multipy defined (by stdio_streams.o and retarget.o), when include stb_image.h
I am using keil to develop my mcu project.
After I include stb_image.h in main.c, I got this error message
.\Objects\JinshenTekDigitalLightingBoard(M433LE8AE).axf: Error: L6200E: Symbol __stdout ...
1
vote
1
answer
178
views
Function pointer initialized at NULL but evaluated at 0xffffffff
I am trying to use ARMCC Keil toolchain with CMake in vscode. I copied asm/compiler/linker flag from a working Keil project, except that I don't use .crf and .d files everywhere.
I have a strange ...
-3
votes
4
answers
305
views
Keil compiler v5 to v.6
I'm forced to switch from ARMCC v5 to CLANG(v.6). Here is the problem.
I have some struct that includes a pointer to the function which gets as a parameter pointer to the same structure.
So I do
...
3
votes
1
answer
1k
views
Show the complete build command in Keil
(Related question, never answered: Show complete commands during build in Keil uVision)
Hi,
I am using μVision V5.38.0.0 with the compiler armcc V5.06 update 7 (build 960).
Below, you can see "...
1
vote
0
answers
114
views
optimization flag '-falign-functions' is not supported in armcc
How to achieve a similar effect to -falign-functions of gcc flag in armcc.
I'm using armcc to compile my C program, I think some functions suffer from performance degradation due to addresses not ...
0
votes
1
answer
65
views
GCC ARM preprocessor computes wrong negative number
This question relates to arm-none-eabi-gcc version 5.4.1. (I know is rather old but I must use it).
int32_t tmp = INT32_MIN / 2;
This produces the following assembly:
mov.w r3, #1073741824 ; ...
0
votes
1
answer
74
views
Why I got error A1616E when compile in DS-5 with embedded assembly
I got below error message when compile a simple c file with an __asm function. It seems "MSP" is not recognized. I can build after comment out "MRS R0, MSP". What I am missing ...
0
votes
0
answers
300
views
ARM Inline assembly for C code not executing
I am trying to use inline assembly for an ARM C code.
My 'main.c' code looks something like this:
...
void jump()
{
__asm
{
B 0x15000
}
}
INT32 main(void)
{
...
Write val1 into register ...
TJ1's user avatar
- 8,700
1
vote
1
answer
3k
views
What is the difference between armcc and armclang?
armcc and armclang are the compilers for embedded C and C++ code. Recently, armclang has been gaining popularity as an alternative compiler.
What is the difference between armcc and armclang? Is there ...
0
votes
1
answer
125
views
Misplaced preprocessor character '\'
I'm trying to get a bunch of C modules written in 1994 for a Panasonic 3DO lib to compile with armcc. I've run into an error which I'm kind of confused about. My knowledge of C is not that deep, so ...
1
vote
3
answers
2k
views
Assigning a variable using binary format. '0b' is causing an error in ARM Keil µVision
I am working on a project with the TM4C123GH6PM microcontroller using Keil version 4.7. When I assign a value to a variable in binary format like the following:
unsigned char tmp = 0b11000011;
and ...