Open AT compilation errors using GCC

ADL, A&D memory, Flash objects, multi-tasking, file system, DOTA.

Open AT compilation errors using GCC

Postby FAQ_Poster » Mon Jan 21, 2013 4:07 pm

“Error: byte or halfword not valid for base register -- `strb r3,[sp]'”

This error occurs when the GCC cross compiler for ARM processor generates invalid assembly language instructions.

Generally, the invalid instruction will be created when GCC trie to optimize the code. Hence, this problem will not occur when the code is compiled with no optimization.

Optimization option is represented by -On where n ranges from 0 to 3. –O0 option (which makes optimization off) can be used to compile the code to eradicate this problem.
User avatar
FAQ_Poster
 
Posts: 254
Joined: Thu Oct 25, 2012 7:10 am
Has thanked: 0 time
Have thanks: 5 times

Topic Tags

compiler, compilation, error, Open AT, GCC

Return to Operating System FAQ

Who is online

Users browsing this forum: No registered users and 1 guest