Re:programming LM3s6918
I want to be sure I understand your setup. You are using the ULINK2 to connect to the IDM board, with Keil uVision as the debugger? Are you using the little cable and directly connected to the IDM board? Make sure that the side of the cable with the red wire is connected to pin 1 on the connector on the IDM board. It is not keyed so it is possible to get this plugged in backwards. Pin 1 on the IDM board is marked with a small circle. Also we have found that if you have both the little cable and the wide cable attached on your ULINK2, that the loading in the unconnected wide cable can cause problems. So if yours is like this, try removing the wide cable from your ULINK2 so that the only cable coming out of the ULINK2 is the small cable.
Now, in uVision, click on Project-->Options menu to open the target options dialog. On the utilities tab, there is another setting you need to check. You have already selected "ULINK Cortex Debugger" in the drop down box. Then click on the "Settings" button. There should be a line describing the flash type and size. With Keil uVision, sometimes when you change from the Luminary Eval Board driver to the ULINK driver, it puts a bad value here. If the address range shows a max value of 0xFFFFFFFF then this will not work. In this case, highlight that line and click "Remove". Then click "Add" and from the popup box select "LM3Sxxx 256kB Flash", and then click "Add". From here, click OK on all the boxes to get your way back to uVision.
There is something else you can check. In the target options dialog, go to the Debug tab, make sure "ULINK Cortex Debugger" is in the drop down box, then click settings. Under JTAG Device Chain, you should see a device appear in the list. This tells you that uVision/ULINK2 sees the JTAG port in the microcontroller. Cancel back out of this dialog.
Please let us know how it goes from here.
login or register to reply
|