I have recently received my P3041DS. So I had an opportunity to try a few things with it.
From this I came out with a mixture of successes and not so successful in certain areas.
Successes:
- ran the bareboard programs using USB tap debugger successfully
- using a bootloader from vxworks I was able to bootup in ROM successfully.
This requires to configure SW7 and copying the image so that it is booted in ROM bank area.
With this, it boots in vxworks menus instead of U-BOOT. Selecting SW7 back to default settings
starts the U_BOOT again.
Not so succesful:
So my starting point with this is....I am using BareBoard example in CW development studio 10.5.2 that simply prints
"Welcome to CodeWarrior"
From this build it produces an Elf binary file (executable)-->Entry point address: 0x100108
and would like to load (in RAM) the executable and run it after U-BOOT is launched on target.
Loaded Elf image:-
=> tftp 1000000 bareboardExample.elf
Using FM1@DTSEC5 device
TFTP from server 192.168.178.63; our IP address is 192.168.178.65
Filename 'bareboardExample.elf'.
Load address: 0x1000000
Loading: ###############
done
Bytes transferred = 220004 (35b64 hex)
=> bootelf 1000000
## Starting application at 0x00100108 ...
Bad trap at PC: 100474, SR: 29200, vector=800
NIP: 00100474 XER: 00000000 LR: 00100428 REGS: 003dfd28 TRAP: 0800 DAR: 00000000
MSR: 00029200 EE: 1 PR: 0 FP: 0 ME: 1 IR/DR: 00
GPR00: 00100428 003DFE18 7FE2DF30 0010C6F0 0010CA40 0010C178 003DFF50 00000000
GPR08: 0000000C 003DFF60 00000000 0010D034 20222042 00115050 00000001 003DFF50
GPR16: 7FE30F14 00000000 7FE30F30 7FE30F00 7FFB0BE8 7FF3C3E4 7FFB0034 7FF803FC
GPR24: 0010C6F0 0010CA40 00000001 0010C178 00000001 00000001 7FF94810 00100108
Call backtrace:
DEADBEEF 00100428 0010003C 0010016C
Exception in kernel pc 100474 signal 0
### ERROR ### Please RESET the board ###
-------------------------------------------------------------------------------
Here I Converted Elf image into bin image using GNU tools objcopy
Using FM1@DTSEC5 device
TFTP from server 192.168.178.63; our IP address is 192.168.178.65
Filename 'bareboardExample.bin'.
Load address: 0x1000000
Loading: #################################################################
###########
done
Bytes transferred = 1101932 (10d06c hex)
=> go 0x00100108
## Starting application at 0x00100108 ...
Bad trap at PC: 100108, SR: 29200, vector=800
NIP: 00100108 XER: 00000000 LR: 7FF3C124 REGS: 7fe2dca8 TRAP: 0800 DAR: 00000000
MSR: 00029200 EE: 1 PR: 0 FP: 0 ME: 1 IR/DR: 00
GPR00: 00100108 7FE2DD98 7FE2DF30 00000001 7FE30F14 7FE30F14 00100108 00000010
GPR08: FFFFFFFE 00000020 00000020 7FE2DDA0 7FF3C178 70578A80 00000000 00000000
GPR16: 7FF999A4 00000000 7FE30F30 7FE30F00 7FFB0BE8 7FF3C3E4 7FFB0034 7FF803FC
GPR24: 00000000 00000000 00000000 00000000 00100108 7FE30F14 7FF94810 00000002
Call backtrace:
00000002 7FF3C198 7FF4E97C 7FF4EF88 7FF4F104 7FF51EF0 7FF3ABA0
7FF3164C
Exception in kernel pc 100108 signal 0
### ERROR ### Please RESET the board ###
----------------------------------------------------------------------------------
Also used in the above with 'go' command 0x0100108 (Entry point address) in U-boot area
with no success.
What is the problem, are the images which I have build and converted are not
compatible with U-BOOT or am I not loading images in the correct Ram locations.
To confirm the issue with images, maybe its better if someone can provide me an example of an image file already built to load on my target board.
(Assuming someone out there has a similar board and was able to build an image that can be loaded/run in U-boot).
Can anyone assist me with this.
Thanks
Chris