Main Site Documentation

Error message in sample program RLP_Starter_Example


#1

When I try to run the sample program RLP_Starter_Example in the line "RLP.LoadELF(elf_file); "the error:“An unhandled exception of type ‘System.InvalidOperationException’ occurred in GHIElectronics.NETMF.Native.dll” is reported. I have rebuild the elf-file :Adding the correct path for the rlp.h file to the #include instruction (don’t no why / is used in the path in the example) of the .c code file, activated the rlp address and size for USBizi (that what I use) in the rlp.header file and replace the old elf-file with the new one. Below is a copy of the compiler output. An idea whats going wrong?

C:\RLPExample\RLP_User\USBizi\RLP_Starter_Example\Native>make
rm .o ./Output/.elf ./Output/.map
rm: cannot remove `
.o’: No such file or directory
make: [clean] Error 1 (ignored)
arm-none-eabi-gcc -c -g -mlittle-endian -mcpu=arm7tdmi -Wall -I. -I./include -m
apcs-frame -fno-builtin -g0 RLP_test1.c -o RLP_test1.o
arm-none-eabi-gcc -c -g -mlittle-endian -mcpu=arm7tdmi -Wall -I. -I./include -m
apcs-frame -fno-builtin -g0 RLP_test2.c -o RLP_test2.o
RLP_test2.c: In function ‘ArgumentTest’:
RLP_test2.c:25:2: warning: implicit declaration of function ‘strcmp’ [-Wimplicit
-function-declaration]
arm-none-eabi-gcc -nostartfiles -Wl,–Map -Wl,./Output/RLP_test.map -lc -lgcc -W
l,–omagic -T RLP_LinkScript.lds -o ./Output/RLP_test.elf RLP_test1.o RLP_test2.
o


#2

Using RPL.Enable an unlock will help, but it would it make easier to mention it in the tutorial!


#3

Which tutorial are you using?


#4

Wiki RLP Getting Started


#5

try inserting

#include <string.h>

at the top of the C file.