clough42 / electronic-leadscrew

Lathe electronic leadscrew controller
MIT License
323 stars 117 forks source link

firmware please help #260

Open freddygino opened 1 year ago

freddygino commented 1 year ago

hi im trying to load the firmware on the launch pad followed the video to debug all went well till i hit the spider button i get load program error ...please help not to familiar to programming so this is all new to me

here is a pic of the error 20230510_090551

tia

kwackers commented 1 year ago

I'm not an expert on the TI board but it looks like the first error I can see in that list is your problem - "but flash is not available on this device". The errors after this are simply because the later steps will automatically fail if it couldn't flash the device.

I guess the first question would be - do you have the right board? (Some variations may not have flash) Then are there any jumpers/switches that might disable the flash that you might have accidentally tweaked?

I don't have my board in front of me, it's all packaged up on my lathe now so I can't do much other than give you the above suggestions - sorry.

freddygino commented 1 year ago

Hi and thank you for answering.... Yea i checked the board followed James video step by step installed the same version ccs software as he and still get that error... Hopefully someone ran into the same problem and fixed it and would post it.... Thanks again

Chucksbp commented 1 year ago

I have seen other people having a problem that totally removed code composer from their computer, then reinstalled code composer and re configured everything. It may be worth a try?? also i would go through the three switches and flick them back and fort a few times. the plastic tape they use can be very finicky and stop the switch movement. Again I am no expert and i found this to be the most troubling part of the build. i can only say the end is well worth the trouble, you will love the ELS!

freddygino commented 1 year ago

I tried about 6 different versions of ccs and all came back with the same error... I didn't try flicking the switches I'll try that... I did email support at Texas instruments and the have a section about that but I don't know what I'm reading cause I don't know coding lol

Chucksbp commented 1 year ago

Are you using a version 9 of code composer? I know the latest versions will not work with Clough 42 software! Sent from my Galaxy -------- Original message --------From: freddygino @.> Date: 5/13/23 10:44 AM (GMT-05:00) To: clough42/electronic-leadscrew @.> Cc: Chucksbp @.>, Comment @.> Subject: Re: [clough42/electronic-leadscrew] firmware please help (Issue #260) I tried about 6 different versions of ccs and all came back with the same error... I didn't try flicking the switches I'll try that... I did email support at Texas instruments and the have a section about that but I don't know what I'm reading cause I don't know coding lol

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

freddygino commented 1 year ago

Yes I'm using the same version as James v9. 1

Chucksbp commented 1 year ago

i had good luck with version 9.3.0

freddygino commented 1 year ago

Tried that 1

freddygino commented 1 year ago

this is what texas instruments sent me to resolve my issue...i really dont know what im reading ...if anyone would be so kind and checking out this link and help me with this i will greatly appreciate it ....thank you

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/738865/faq-ccs-why-am-i-getting-a-data-verification-error-when-i-load-my-program

Chucksbp commented 1 year ago

Can you post a picture of your Configuration H page? are there any errors showing in the box on the very bottom right of the page?

freddygino commented 1 year ago

i installed ccs v9.3 and this is the error i get 20230513_210031

freddygino commented 1 year ago

this is the config h 20230513_210200 20230513_210226 20230513_210245 20230513_210314

Chucksbp commented 1 year ago

Try this, remove the Clough42 board from the TI launch board. re install the three jumpers. use the supplied USB cable that came with the Launch board and see if you can program the chip. Thats how i did both of my boards. then i reinstalled the Clough42 board and connected everything. , i had issues with my first encoder and it wiped out encoder input one so i reprogramed the board several times successfully and then reprogramed a second board for a backup.

freddygino commented 1 year ago

ok will try thanks

freddygino commented 1 year ago

same error

Chucksbp commented 1 year ago

i have no idea what is happening. Hopefully James will look at this and respond. he often does. I wish i could help more.

freddygino commented 1 year ago

oh i so appreciate you try helping me thank you ,,,

Chucksbp commented 1 year ago

you are welcome!!!

tomvikse commented 1 year ago

Try a different computer..

freddygino commented 1 year ago

Yea that's what I'm doing next thanks

freddygino commented 1 year ago

tried different computer same thing....could there be something wrong with the file? i downloaded on 2nd computer from github 20230514_160423

Chucksbp commented 1 year ago

Are you trying to flash the chip from this view?? this is where you should be doing the flash from. , show me this view let me see if there are any errors in the bottom right.

20230513_132807

freddygino commented 1 year ago

hi chuck yesterday i was looking at the board and noticed f280025c its the wrong board i checked my invoice and it says f280049c so i spoke with someone from mouser electronics the place i bought the board they are sending me the board tommorow...i apoligize hope its the right 1 tommorow

freddygino commented 1 year ago

20230515_173006

Chucksbp commented 1 year ago

No need to apologies for anything!!!! that's totally wild! who would have ever thought. At a glance it looks like the correct board. I hope this solves your problem, let us know if you get it working. best of luck to the finish!!!! I hope this fixes your issues!!!

freddygino commented 1 year ago

thank you so much and definitly will let you know

kwackers commented 1 year ago

I suspected that would be the case - hence my initial response... ;-) Live and learn.

freddygino commented 1 year ago

I suspected that would be the case - hence my initial response... ;-) Live and learn.

Yes that was you first question I overlooked... Thank you

freddygino commented 1 year ago

up and running in 3 minutes thanks guys

Chucksbp commented 1 year ago

That's great!! Congratulations!!!!

freddygino commented 1 year ago

That's great!! Congratulations!!!!

thank you!!

freddygino commented 1 year ago

hi guy finally got the els installed 2 problems if anyone can help.... 1..on the control panel its on fwd but the lead screw is going oppisite

2...when i power off the control panel the lead screw is supposed to move free but it feels like the servo is still energized

tia

johnsonm commented 1 year ago

Followed up in #263

ggwarrier commented 1 year ago

@Chucksbp I tried everywhich way to program the board without luck. I even blew the booster board (3.3v went kaput) which took out the TI board. Finally I tried your suggestion. Removed the booster board, replaced the jumpers and 1.40 worked with CCS9.1.0 Thank you, Sir

glennto commented 1 year ago

I have purchased a Launchpad TMS320F2800C, the Clough els booster board and Clough's remake of the LED/Key board (all worthwhile if you are considering replicating this project). My goal was to get els 1.4 compiled and installed on the LaunchPad using the current/last Eclipse based TI CCSTUDIO IDE environment (version 12.4.0 or 12.5.0) - but not the new Theia IDE which looks too transitional to me. This project under the version 9 IDE is aging out and I did not want to invest time in what is now becoming legacy software. As an example, newer versions of the IDE will automatically update the XDS 110 USB probe firmware making it incompatible with IDE V9 - I do not like dealing with this kind of stuff. However to accomplish the update I had to learn the ins and outs of the whole TI IDE framework in parallel with dealing with els project compile and link errors. In hindsight, the actual task was pretty straightforward - I just kept hammering away at each compile/link error as they came up. For example, all of the supporting TI library functions are relocated in the newer versions installation directories and the build configuration include locations needed to be adjusted accordingly. There seems to be an error in the argument typing for a TI furnished dma channel 6 initialization method and prototype definition that I fixed. TI has apparently dropped/renamed the all important #define _FLASH directive (to what I haven't figured out, but it works to just include this define in configure.h when you need it). There may have been other issues as well. I hope this post helps others.