Hello,
I am new to GNUPro development. I am trying to create a very simple test program (just setting an output pin to high) for the NEC v850ES (?PD70F3718). Unfortunately I have troubles getting the code to run.
I was able to compile the v850 toolchain for a windows host. I used the following command:
/src-cross/configure --host=i686-pc-cygwin --target=v850-elf
--prefix=/project/install -exec-prefix=/project/install/H-i686-pc-cygwin
The compilation and installation process of the tool chain worked very fine. Then I compiled my test program and converted the outcome to .hex with the following commands:
v850-elf-gcc -Wall -mv850e test.c -o test
v850-elf-objcopy -O ihex test test.hex
In a next step I uploaded the .hex file with my NEC Minicube flash programmer. Unfortunately the hardware is not doing anything.
My questions are:
1) Is there any sample "workspace" for the NEC v850 available where I can start? I read a lot of articles, news group postings etc. . I am not sure how to configure crt0, makefiles, gcc, linker scripts correctly for the v850. There are so many possible error sources, I am simply stuck. I didn't modify any of these files in my first attempts. Even if there is no complete sample workspace, a working makefile, crt0 or linker script file would help me a lot!2) If there is no sample for the v850 available, are there some kinds of similar samples available you may recommend where I can start?
3) I noticed that my compiled hex file is loaded into the wrong flash segment. I modified this by adapting the objcopy command with the parameter --change-address. After this fix the code is loaded into the correct segment but the v850 is still not doing anything. In my opinion there is some kind of start-up problem relating to crt0 or linker scripts.I would appreciate very much any little help!!
Best regards,
Norbert