Part Number: AM5728
Tool/software: TI C/C++ Compiler
I am having an issue using inline assembly with the C compiler for a PRU using TI v2.2.1. Under the products tab (under General), nothing is selected.
I am attempting to use the WBS command to wait for the clock pulse, while using a parallel interface, and I am designing for a clock constrained environment. Specifically, the compiler is having issues with the following line:
asm(" wbs r31.t16");
The build output is:
**** Build of configuration Debug for project PRUPort ****
"C:\\ti\\ccsv8\\utils\\bin\\gmake" -k -j 8 all -O
Building file: "../main.c"
Invoking: PRU Compiler
"C:/ti/ti-cgt-pru_2.2.1/bin/clpru" -v3 --include_path="C:/ti/ccsv8/ccs_base/pru/include" --include_path="{Project}" --include_path="C:/ti/ti-cgt-pru_2.2.1/include" --define=am5728 --define=icss1 --define=pru0 -g --diag_warning=225 --diag_wrap=off --display_error_number --endian=little --hardware_mac=on --preproc_with_compile --preproc_dependency="main.d_raw" "../main.c"
1 Assembly Error, No Assembly Warnings
>> Compilation failure
subdir_rules.mk:9: recipe for target 'main.obj' failed
"C:\Users\LUCASR~1\AppData\Local\Temp\{C8D35ACC-9FC3-447F-BB64-C43E44D9ADC1}", ERROR! at line 351: [E0003] Invalid instruction
wbs r31.t8
Errors in Source - Assembler Aborted
gmake: *** [main.obj] Error 1
gmake: Target 'all' not remade because of errors.
**** Build Finished ****
Is there anything wrong with the configuration I am presenting? Other assembly commands are not having that difficulty.