Other Parts Discussed in Thread: AM3358, AM5728, AM1705, CCSTUDIO
Tool/software: Code Composer Studio
I am running a simple bare metal program on the EVMK2E development kit but when enabling neon/hard floating point arithmetic it causes an undefined instruction. It appears that the coprocessors are not being enabled properly or in time.
It seems similar to the issue mentioned in the related question here https://e2e.ti.com/support/tools/ccs/f/81/t/531151 . I can confirm using the debugger that This is identical to startup code that I have run successfully on both AM3358 and AM5728. Targeting an A15 core on both AM5728 and EVMK2E.
I am using CCSv8. In the thread above the TI employee never got back with test results so I do not know of any official solution to this issue? This problem exists even in a pregenerated hello world project from CCS tools after enabling the VFP in project settings. I am currently trying to locate the CPACR register to verify its value.
Project Device - K2GEVM
Linker - 66AK2Gxx.lds
Compiler - GNU v7.2.1
Summary of flags: -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -mfpu=neon -Dk2g02 -DAM5K2E02 -Darm0 -Os -ffunction-sections -fdata-sections -g -gdwarf-3 -Wall -specs="rdimon.specs"