This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM2732-Q1: R5 Code execution abnormal issue

Part Number: AM2732-Q1


Hi,

My customer run code on AM2732-Q1 R5F, always found one strange issue that when executing the assemble code "ldr r3, 0x10280000", it cannot get right value. Shown below the right value should be 0x102c9d1c, while the value in R3 is 0x102DBD1E after executing. If add breakpoint at the assemble code then execute the result would be correct. Customer already tried two compiler versions, ti-cgt-arm_20.2.2.LTS and ti-cgt-armllvm_2.1.1.LTS, both have same issue.

would u pls help check and add comments here, any unclear let me know in time, thanks. 

Below also listed the compiler option for your check.

       MY_PROJECT_COMPONENT_COMPILER_RELEASE_OPTION = -c -qq -pdsw225 --endian=little -mv7R5 --fp_mode=strict --abi=eabi -ea.s --symdebug:dwarf --embed_inline_assembly --gcc --float_support=vfpv3d16 --code_state=16 -ms -O2 -s --optimize_with_debug --code_state=16 --abi=eabi -g --display_error_number --diag_warning=225 --diag_wrap=off --gen_func_subsections=on --preproc_with_compile --enum_type=int --auto_inline=0

 

MY_PROJECT_COMPONENT_COMPILER_RELEASE_DEFINE = -DBUILD_R5F -DTRACE_ENABLE -DDEBUG_BUILD -DASSERT_ENABLE -DAUTOSAR_431 -DSOC_AM273X

 

 

MY_PROJECT_COMPONENT_COMPILER_RELEASE_LINK_FLAGS = --run_linker -w -q -u _c_int00 -c --diag_suppress=10068 -mv7R5 --diag_suppress=10063  --define=-define=ENABLE_ASILB_CHECK --define=BUILD_R5F -qq --diag_warning=225 --diag_suppress=23000 -z -a --rom_model --warn_sections --reread_libs --unused_section_elimination=on --compress_dwarf=on --copy_compression=rle --cinit_compression=rle --reread_libs --disable_auto_rts --generate_dead_funcs_list=$(PROJECT_BUILD_BINARY_PATH)/feedback.txt -z -a --rom_model --warn_sections --reread_libs --unused_section_elimination=on --compress_dwarf=on --copy_compression=rle --cinit_compression=rle --reread_libs --disable_auto_rts --generate_dead_funcs_list=$(PROJECT_BUILD_BINARY_PATH)/feedback.txt