Hello all,
I've recently began working with the 9S12XDP512 board from Technological Arts, and I've having a bit of trouble. I'm sure these are just growing pains, but I've got a couple of problems I could use some advice on:
1.) I'm using CodeWarrior 5.9.0 (info from the About CodeWarrior menu) with SRecCvt GUI to compile my .s19 then convert it to the correct format as I understand it. I know my board and loading technique are in order, because I'm able to load this .s19 file (acquired from a website):
S2147F4000CF400016405587CE10008E100027056AD9
S2147F4010000820F6CE405ACD10008E405A2706184C
S2147F40200A307020F516402A20FE34B7751B9EC6D0
S2147F4030FF7B025AC6FF7B02584A8000E02010C6EC
S2147F4040FF7B02584A8000E07902584A8000E020D1
S20E7F4050EEB757303D1D0016073D02
S2147FFFD0FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFAD
S2147FFFE0FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9D
S2147FFFF0FFFFFFFFFFFFFFFFFFFFFFFFFFFF40004B
S21478000034B7751B9ECC00006C1E2007EC1EC30010
S212780010016C1EEC1E8CFA0025F2B757300AEB
onto the flash memory and it works just fine (blinks the LED). However, when I try to simulate the output using CodeWarrior and SRecCvt, I don't get anything like this. Mine, after conversion, looks like this:
S21CFE8000C6FF7B025A7B02584A801AFEC6FF7B02584A801AFE790258C3
S21CFE801820EE1869AE2003186280EC80B74DCDFA0035B746C7873BB74A
S21CFE80306416C0312DE93A0AFEC011FDC00F270E35ED31EC3169700453
S21CFE804834FB310326F2FEC013EC31270BED31180A30700434F920F160
S21CFE80600AFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF12
S21CFEBFF0FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFCF2100C6055B134AD3
S21CFF80088038FE4A8000FE0000C015C03B00000000000000000000000E
S21CFF80200000000000000000000000000000000000AC8418AE82311B80
S21CFF80388405400000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF76
S9030000FC
If my settings are correct (which may be part of the problem), I'd expect my output, which was compiled with the same*.c file, to be similar to that of the previous, correct .s19. When I load this not-so-snazzy code on the board, obviously it doesn't work. Any advice for me on this issue? I just want to write a program to blink the LED on the board using CodeWarrior and SRecCvt.
2.) Where can I find a good document on how to code for the 9S12XDP512? I'm a software engineer by profession, using only high-level languages, and I'm a bit out of my element. I am used to having large developer communities to leech information from, but it seems like there isn't as much "entry-level" information for these micro controllers. I don't want my hand held throughout the process, but I'd like some good info that can get me started. Any ideas?
Thanks in advance for your help. Like I said, I'm new to all of this, so I'll go ahead and claim ignorance for any fouls in my post.
-Derrick