Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launchpad programming #83

Open
bacca5419 opened this issue Aug 31, 2020 · 86 comments
Open

Launchpad programming #83

bacca5419 opened this issue Aug 31, 2020 · 86 comments

Comments

@bacca5419
Copy link

Hi all. I am havind problems programming the launchpad. I get as far as where it pauses at break 69. I hit the reume button and it appears to do nothing except bringing up the launchpad model and tells me its running. The control panel shows a led power light but nothing else. I need help as I am a dumd arse with electronics and computers alike. Regards Noel from australia.

@JonWoellhaf
Copy link

Hi, Noel.

I'd like to help, but I don't yet understand what you're seeing.

You have Code Composer Studio running and were able to load James' code. Correct?

@bacca5419
Copy link
Author

bacca5419 commented Sep 1, 2020 via email

@JonWoellhaf
Copy link

I don't understand what you mean by up to the first break point.
When I load the code there is no break point.
Please tell me step by step what you are doing.

@bacca5419
Copy link
Author

bacca5419 commented Sep 1, 2020 via email

@JonWoellhaf
Copy link

OK. I think I now understand. I reviewed James' ELS video Part 10, and at 24:00 he explains the program always stops in Main when in Debug.

This is the break point you're talking about, right? Where does the 69 come from?

@JonWoellhaf
Copy link

When you say "brings up the launchpad model and tells me it's running, do you mean that you see in the Debug window the text "Texas Instruments XDS110 USB Debug Probe/C28xx_CPU1 (Running)?"

@JonWoellhaf
Copy link

Don't give up, Noel,. I'm certain we -- all of us here -- can help you get it running.

@bacca5419
Copy link
Author

bacca5419 commented Sep 1, 2020 via email

@JonWoellhaf
Copy link

OK. Have you double checked the wiring from the boost board to the LED board?

@JonWoellhaf
Copy link

Mine stops a line number 91.
Can someone else please check and see at what line number theirs stops?

@bacca5419
Copy link
Author

bacca5419 commented Sep 1, 2020 via email

@bacca5419
Copy link
Author

bacca5419 commented Sep 1, 2020 via email

@JonWoellhaf
Copy link

I think it's unlikely that your TI board is defective.

I'd like you to set a breakpoint in Main. This will let us prove the code is running.

Do you want to do that?

@JonWoellhaf
Copy link

I do not see any pictures you sent.

@bacca5419
Copy link
Author

bacca5419 commented Sep 1, 2020 via email

@JonWoellhaf
Copy link

JonWoellhaf commented Sep 1, 2020

It's easy to set a breakpoint.
When you hit the breakpoint at the top of Main, scroll down until you see the line that reads
for(;;) {

Below that, you'll see
userInterface.loop();

Mine is on line 143, but yours is probably different -- we can figure out why later, I don't think it's important now.

To set the breakpoint double click the line number. A dot will appear in the column to the left of the line number.

Now, with this breakpoint set, when you run in Debug, the program will stop at the start of Main -- like before -- and when you click Resume it will immediately stop again at the breakpoint you just set.

Clicking Resume again will let the program run through a pile of code until it returns to that point again. It'll look like it didn't do anything.

So the second time it hits the breakpoint, click the Step Into icon on the tool bar or press F5. This will let you step through the code a statement at a time.

If you are able to step through the code -- which I'm quite sure you will be able to do -- we will know a LOT is working!

To remove the breakpoint click Resume, then again double click the line number.

Do you have a volt meter?

@davidgleach
Copy link

Hi Jon, What was the outcome of your suggestion. I have exactly the same problem so will try your suggestion.

Thinking the issue was the LED indicating panel I purchased several new panels and fitted one of them with the same result.

In despair I buttoned up the whole system and behold it started to work correctly. It continued to do so for some weeks until I decided to make some improvements to my layout by making a new enclosure for the LED panel. Guess what - the indicating panel no longer functioned, only the LED on the on the PCB was alight. All connections checked out with continuity testing.

Once again I replaced the LED indicating panel with a new one - to no avail.

I've downloaded and replaced all the the Clough 42 files as well as a new version of Code Composer Studio.

Recompiled and reflashed the TI board - and still the program will not run.

@davidgleach
Copy link

I have carried out the steps you suggested and the program steps through the loops a few times until it stops again at line 71 WAIT_FOR_SERIAL
Does this indicate a bad connection somewhere?

@davidgleach
Copy link

I shoudl have noted that it stopped at line 71 WAIT_FOR_SERIAL in the SPIBus.cpp file

@davidgleach
Copy link

Problem solved. It is dodgy connections. Too quick to blame the electronics!

@JonWoellhaf
Copy link

Hi, David.

I have not heard back from bacca5419.

You wrote, "I have carried out the steps you suggested and the program steps through the loops a few times until it stops again at line 71 WAIT_FOR_SERIAL. Does this indicate a bad connection somewhere?"

No. This is perfectly normal.

Please tell us what the problem with your connections was. That could help someone later.

Great that you solved the problem!

Regards,

Jan (Yan)

@bacca5419
Copy link
Author

bacca5419 commented Sep 20, 2020 via email

@JonWoellhaf
Copy link

Hi, Noel.

How are you measuring continuity between GND and DIO on the control board?

I get 10 meg ohms.

Jan (Yan)

@JonWoellhaf
Copy link

What's your location, Noel?

I have several control boards I bought by mistake. I didn't realize I was ordering a set of two each when I ordered two the second time. So I now have five!

@davidgleach
Copy link

davidgleach commented Sep 21, 2020 via email

@bacca5419
Copy link
Author

bacca5419 commented Sep 21, 2020 via email

@JonWoellhaf
Copy link

Noel,

Based on your testing, I agree the control board is likely defective. That would explain everything. Hope the "slow boat from China" arrives soon. I, too, had to wait for one of those. :)

Are you using a digital VOM (volt/ohm meter) to make the measurements? If so, please try the same procedure again with the meter set to ohms. With the wires disconnected, short STB, CLK, and DIO to ground. This discharges the input filter capacitors. Then measure resistance from each of those inputs to ground. You should see a few kohms initially and then greatly increasing resistance, settling around 20 meg ohms or so. That's the effect of the capacitor charging.

If STB and CLK behave differently from DIO, it'll be another indication your board is defective.

Jan (Yan)

@bacca5419
Copy link
Author

bacca5419 commented Oct 8, 2020 via email

@JonWoellhaf
Copy link

JonWoellhaf commented Oct 8, 2020 via email

@bacca5419
Copy link
Author

bacca5419 commented Oct 8, 2020 via email

@bacca5419
Copy link
Author

bacca5419 commented Oct 29, 2020 via email

@JonWoellhaf
Copy link

JonWoellhaf commented Oct 29, 2020 via email

@carneeki
Copy link

Hi Noel,

If you want to post the board(s) to me, I'll see if I can get it working on my lathe and post it back; email me (my email address is carneeki@carneeki.net ), and I'll send you my postal address.

But do as Jan suggests, and take the rest of the evening off :)

@bacca5419
Copy link
Author

bacca5419 commented Oct 29, 2020 via email

@bacca5419
Copy link
Author

bacca5419 commented Oct 31, 2020 via email

@JonWoellhaf
Copy link

Noel,

Your test result is very interesting!

At step 11, I would expect the program to NOT halt at that statement, because it was not running. the fact that it did stop proves it was running.

So if the program was running and stopped at the breakpoint, when you click the green arrowhead it should resume and go through one loop, before returning to the breakpoint. But you report the arrowhead stayed gray. I can't explain that.

Please see if you get identical test results when running your other TI board. If you do, the problem sure seems to have to be with the program or your computer.

You said you had a slow connection and were unsure if the ELS code transferred correctly. Correct?

I suggest you download the ELS code again when you get your more reliable connection.

Do you, by any chance, have another computer you can try?

I think the best idea is to send your TI board, Boost board, and control panel board to Adam and see if they work on his system.

What do you guys think?

Jan

@bacca5419
Copy link
Author

bacca5419 commented Oct 31, 2020 via email

@JonWoellhaf
Copy link

JonWoellhaf commented Oct 31, 2020 via email

@carneeki
Copy link

Hi Bacca,

Great to hear that something is different!

Out of curiosity, what do you mean 'hit the bug' when you ran with the release settings? Did it just sit there idle?

@bacca5419
Copy link
Author

bacca5419 commented Oct 31, 2020 via email

@JonWoellhaf
Copy link

JonWoellhaf commented Oct 31, 2020 via email

@bacca5419
Copy link
Author

bacca5419 commented Nov 1, 2020 via email

@carneeki
Copy link

carneeki commented Nov 1, 2020 via email

@Zymurgy42
Copy link

Zymurgy42 commented Nov 1, 2020 via email

@bacca5419
Copy link
Author

bacca5419 commented Nov 3, 2020 via email

@bacca5419
Copy link
Author

bacca5419 commented Nov 4, 2020 via email

@JonWoellhaf
Copy link

JonWoellhaf commented Nov 4, 2020 via email

@Inovation3
Copy link

Hi Noel- I was having same issues- On your TI board check the position of S9 ( lower left corner under booster board) cycle the switch and leave it towards the encoder input. ( away from USB connector) My board was not receiving a clock to the display, so nothing worked. If you have an ohmmeter measure the resistance from pin 71 to ground, should be 6-10 K ohms.
Hope this helps.
Brett

@bacca5419
Copy link
Author

bacca5419 commented Nov 7, 2020 via email

@carneeki
Copy link

carneeki commented Nov 7, 2020 via email

@bacca5419
Copy link
Author

bacca5419 commented Nov 7, 2020 via email

@bacca5419
Copy link
Author

bacca5419 commented Nov 19, 2020 via email

@TreatHull
Copy link

Hi Noel- I was having same issues- On your TI board check the position of S9 ( lower left corner under booster board) cycle the switch and leave it towards the encoder input. ( away from USB connector) My board was not receiving a clock to the display, so nothing worked. If you have an ohmmeter measure the resistance from pin 71 to ground, should be 6-10 K ohms.
Hope this helps.
Brett

I have been following this thread with interest. I have all the same kit as James recommended. I made a wooden cabinet the same size as my Hammond metal box because it's easier to change the layout when you're screwing into wood rather than steel.

Once I had it all wired up and the s/w uploaded to the TI Launchpad, I turned power on with the following result.

  1. When the encoder is turned, the hybrid stepper motor turns like it should
  2. There is one red led in the background that lights up on the control board. No numbers or alpha characters in the display.
  3. Pushing the various buttons on the display board doesn't do anything - no numerals, no led's.

I have double and triple checked continuity with my digital multi-meter and all continuity checks on the board are fine.
I also double and triple checked the continuity from points on the control board through all the cabling back to James ELS board and the cables and connections are fine.

I also checked the various switches

TI LaunchPad Switch Positions 2020-11-24

I was therefore interested when I read Brett's comment "My board was not receiving a clock to the display, so nothing worked. If you have an ohmmeter measure the resistance from pin 71 to ground, should be 6-10 K ohms". I measured pin 71 to ground and got an open circuit.

Thoughts?

@bacca5419
Copy link
Author

bacca5419 commented Nov 25, 2020 via email

@Inovation3
Copy link

Inovation3 commented Nov 25, 2020 via email

@bacca5419
Copy link
Author

bacca5419 commented Nov 25, 2020 via email

@TreatHull
Copy link

Just an observation, but from the photo S9 appears to be in the "ALT" position. It should be towards the "BP" (booster port) position. In the photo that would be towards pin 71 on J6. I did have to cycle mine a couple of times before I got a connection. Just monitor pin 71 to ground with an ohmmeter until you get a reading. Best of luck- -Brett

On Tue, Nov 24, 2020 at 9:01 PM bacca5419 @.> wrote: Hi Brett , I replaced the control board with another board from China ( which took about 5 weeks to get ) this board lights up as it should. However I have reached the next drama. I cant get the servo motor to do anything. Have checked all connections , talked to James , he has given my advise on the firmware settings and still nothing. Regards. Noel. Sent from my iPad > On 25 Nov 2020, at 1:28 pm, TreatHull @.> wrote: > > Hi Noel- I was having same issues- On your TI board check the position of S9 ( lower left corner under booster board) cycle the switch and leave it towards the encoder input. ( away from USB connector) My board was not receiving a clock to the display, so nothing worked. If you have an ohmmeter measure the resistance from pin 71 to ground, should be 6-10 K ohms. > Hope this helps. > Brett > > I have been following this thread with interest. I have all the same kit as James recommended. I made a wooden cabinet the same size as my Hammond metal box because it's easier to change the layout when you're screwing into wood rather than steel. > > Once I had it all wired up and the s/w uploaded to the TI Launchpad, I turned power on with the following result. > > When the encoder is turned, the hybrid stepper motor turns like it should > There is one red led in the background that lights up on the control board. No numbers or alpha characters in the display. > Pushing the various buttons on the display board doesn't do anything - no numerals, no led's. > I have double and triple checked continuity with my digital multi-meter and all continuity checks on the board are fine. > I also double and triple checked the continuity from points on the control board through all the cabling back to James ELS board and the cables and connections are fine. > > I also checked the various switches > > > > I was therefore interested when I read Brett's comment "My board was not receiving a clock to the display, so nothing worked. If you have an ohmmeter measure the resistance from pin 71 to ground, should be 6-10 K ohms". I measured pin 71 to ground and got an open circuit. > > Thoughts? > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#83 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARUAQFZUDTS3NTJQ5CACFOLSRR6SJANCNFSM4QQDM4DA .

Thank you Brett...S9 was in the wrong position. I will update after I get a chance to check the voltage on pin 71.

@TreatHull
Copy link

Switch the position of S9 then measured the resistance from pin 71 to ground and got 67.4K ohms.

@TreatHull
Copy link

After retracing every cable I found some that we're making good contact so I made some more.
The ELS now works but with what appears to be a different issue which I'll document under a new thread.

@Gouge61
Copy link

Gouge61 commented Nov 1, 2024

Hi, Jon,
I tried your test as listed above but I am also unable to load the program to my Launchpad. I can get it to the control panel in either debug or release mode, and the control panel stays operational when I remove the usb cable. However, when I remove the 5v power, and then reapply power, the control panel only gives me a lone red led in the upper left corner. The memory allocation in CCE shows flash 1 at 99%, so I am assuming the card has been flashed.

This is my second Ti Launchpad and second Boost card, v2.1. All continuity checks listed by James have worked. Thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants