Home arrow Support arrow Forums

Luminary Micro Forums

<< Start < Prev 1 2 3 Next > End >>

achoox4

Senior Boarder

2007/01/12 13:47

Re:Minimal 811 ref. circ. to program with eval boa

Thanks. I've got exactly 2.5V on LDO (so I guess that's working perfectly, then?), 1k ohm pullups on TRST and RESET, and the clock is at the expected 3.6...MHz with a min of 0.6V and a max of 2.3V (as seen on OSC1 - probing on OSC0 quickly kills the oscillation, as it does on many osc circuits).

I had considered pull-ups on the other JTAG pins because that's usually done, but left them off for the moment because I thought they were only for when nothing is plugged into the JTAG port. I'll try that next.

login or register to reply

achoox4

Senior Boarder

2007/01/12 23:55

Re:Minimal 811 ref. circ. to program with eval boa

Ok, my 101 circuit (theoretically the same as my 811 circuit) works, inasmuch as flashing it (sadly with the Hello project, which doesn't produce easily observable IO activity) worked twice. (Actually, before the first successful attempt, it failed once presumably because I'd forgotten to set "Target" to 101 - and all I got is the same "Error: Flash Download failed - Target DLL has been cancelled" as always instead of the "incorrect target ID" sort of message one might expect...)

Now I've got a new problem: At least on this PC here (Win2k), I get a little error window: "ULINK - Cortext-M3 Error -- no ULINK Device found" and then the usual "Error: Flash Download failed - Target DLL has been cancelled" window.

I keep getting this even trying to just program the plain Eval board; no re-plugging or restarting of the software has any effect.

I guess I'll see if that's fried hardware or just a USB software problem by trying on my home machine tomorrow morning...

login or register to reply

LMI Eric

Moderator

2007/01/14 19:15

Re:Minimal 811 ref. circ. to program with eval boa

If the Keil software is asking about a ULINK, chances are you have one of the two hardware configuration areas of the project set incorrectly. Both the Debug and Utilities area in the project need to have "Luminary Eval Board" selected.

Post edited by: LMI Eric, at: 2007/01/14 19:17

login or register to reply

achoox4

Senior Boarder

2007/01/15 11:51

Re:Minimal 811 ref. circ. to program with eval boa

I suddenly remembered about getting this message before because that setting had changed before (because I was playing with the device type, see below) and I got the eval board back to working now, but...

Whenever I set the target device (from either Project >> Select Device... or Flash >> Configure... tab 'device') to a different setting, the "target driver" setting in the Utilities tab turns to ULINK.
Setting it back to Eval bd. makes the eval bd. accessible again.

So I hooked up the self-soldered 101 again, and after selecting 101, which turned Utilities target back to ULINK, I tried and it said "no ULINK device". I set it to Eval bd., and it managed to program the 101 several times! Then it gave me the usual "DLL cancelled message". After giving up in frustration and going back to actually working on my contest project for a change, I tried it again while later and this time iot worked with the ULINK setitng. 3 times, that is, until it complained that there was no ULINK device.

Bottom line right now seems to be that it will work with one setting a few times, and then break, at which I point changing to the other setting will make it work again for a few tries. (I've gone around this circle a few times while trying to get code from the Library doc to work, which is modified to just set a GPIO to a high level. When I say "work", I mean that the software says that it has successfully erased, programmed, and verified the device, which I assume to be true even though the code doesn't seem to be executing.)

I was not aware of the "debug" tab setting, which appears unchanged through all this and has thus been at "Eval bd." all this time. I'll see if changing it to ULINK also will stop the above bizzarro behavior.

Are both of these supposed to be set to ULINK when using the Eval bd. to program an external device?

(Considering the way an external device is simply connected in parallel with the on-board 811, I wouldn't think so, but my observations disagree...)

login or register to reply

magnuslundinse

Gold Boarder

2007/01/15 12:05

Re:Minimal 811 ref. circ. to program with eval boa

The external JTAG/device is not connected to RST, the reset signal, so the handling is not identical.
The processor can be reset by using JTAG to write to the Application Interrupt/Reset Control Register. But this is very different from just pulling the reset line low :)

Regards,
Magnus

login or register to reply

LMI Eric

Moderator

2007/01/15 12:25

Re:Minimal 811 ref. circ. to program with eval boa

OK, I have a couple things for you to try:

1. Download the latest version of the Keil tools (3.03a). You can get this version directly from Keil or by downloading the v1.02 CD update.

2. Download the latest lmidk-agdi.dll file from our website.

The original CDs (v1.00 and 1.01) used version 3.02 of the Keil tools which had an issue with the project settings GUI showing the ULINK after closing the project settings window, even though it wasn't actually using the ULINK for flash programming. The newer release fixes this problem so that "LMI Eval Board" shows up when it's supposed to. Also, the new DLL file improves upon the older DLL file in many ways, including connection and error handling.

You should always be using the "LMI Eval Board" option when using the FTDI debug interface. The ULINK option is for Keil's debug interface unit, not the FTDI device that we use on the evaluation board. I'm guessing that the reason it "works" when you have ULINK selected is due to the 3.02 tool bug.

login or register to reply
<< Start < Prev 1 2 3 Next > End >>