This function contains a lot of tags that need to jump, but at compile time there are these errors. this is ARM compilation and C mixed,How should this error be handled? I need help,thanks!
This function contains a lot of tags that need to jump, but at compile time there are these errors. this is ARM compilation and C mixed,How should this error be handled? I need help,thanks!
Hi,
The Keil errors are explained here: infocenter.arm.com/.../index.jsp
A1762E Branch offset 0x out of range of 16-bit Thumb branch, but offset encodable in 32-bit Thumb branch This is caused when assembling for Thumb-2 if an offset to a branch instruction is too large to fit in a 16-bit branch. The .W suffix can be added to the instruction to instruct the assembler to generate a 32-bit branch.
Try appending a .W
to the failing instructions, example: BEQ.W
Hi,
The Keil errors are explained here: infocenter.arm.com/.../index.jsp
A1762E Branch offset 0x out of range of 16-bit Thumb branch, but offset encodable in 32-bit Thumb branch This is caused when assembling for Thumb-2 if an offset to a branch instruction is too large to fit in a 16-bit branch. The .W suffix can be added to the instruction to instruct the assembler to generate a 32-bit branch.
Try appending a .W
to the failing instructions, example: BEQ.W