bigtreetech / BIGTREETECH-SKR-V1.3

32bit board with LPC1768, support marlin2.0 and smoothieware, support lcd2004/12864, On-board TMC2130 SPI interface and TMC2208 UART interface no additional wiring is required
1k stars 1.15k forks source link

skr 1.3 Bootloader #166

Open Marsman1970 opened 4 years ago

Marsman1970 commented 4 years ago

I murdered my poor Skr v1.3 board with a loose wire my fault Doh. So i got a new Lpc1768 ic & other bits and fixed it. I was looking for a Bootloader i found this one https://github.com/Smoothieware/Smoothieware/tree/edge/bootloader But it didn't enable Usb mode was it suppose to ? or did i miss something. In the end i bought a new board and read the original Bootloader and put it in my Repaired board and it woks like new. Was there a place where i could have got the origonal file without getting a new spare board. Cheers Michael

cjsoong commented 4 years ago

To flash the bootloader you need a Serial-USB ( can be a FTDI cable, an arduino, CP2102, etc ) cable connected to the UART0 pins of the LPC1769 ( 6-pin connector noted as “Serial” on a smoothieboard ), and the “reset” and “bootloader” (ISP) buttons connected. Refer to this description http://smoothieware.org/flashing-the-bootloader

Marsman1970 commented 4 years ago

I did all that but the bootloader they have there doesn't seem to be the same as the original on the board at least from when i tried it. Coping it from a new Board was the same. That's why i though i ask because it was strange. To programmer i used a lpc isp mini V2 that worked great.

Interplain commented 4 years ago

I have a Board that doesn't show a Mass storage drive or Com Port does this sound like the issue you had. The Red jumper is on USB and INT and it doesn't connect to the machine. Got a new board coming tomorrow. Because i don't know how to repair it. I have a Serial-USB but don't know what the hell its talking about. your a good one understanding that. Not the same as the Anet A8 board is it?

Marsman1970 commented 4 years ago

I got mine to connect to the pc but not mass storage. If you want to know about loading a boot loader it's a bit of a procedure, it took me a while to figure it out. There is 2 pins under the Z axis you need to short under the Z axis which says boot so the usb serial works it's a bit tricky though. The way i got it to work i used a screw driver to short the pins so you press the reset & short the boot pins then release reset & very quickly unshort boot pins. It took me a while until Flash Magic could read the chip.

Interplain commented 4 years ago

Right so you sorted lt with Windows. So did you get the TF on the board to show up. After the flash?

Interplain commented 4 years ago

And where did you get the Boot loader firmware from please.

Marsman1970 commented 4 years ago

Tf did work send me a email mher5454@yahoo.com.au and i can send you the original firmware i got of a new board as the the smoothiware didn't work so i got a new board & copied it to fix my old board.

Yuppi007 commented 4 years ago

Would you share the file. Because the original file is not in any source.

Interplain commented 4 years ago

Yes Michael, I will do it when I get back home at work till 4 gmt but I will do it as soon as possible.

Hope you are good. Rich

On Fri, 24 Jan 2020, 06:45 Yuppi007, notifications@github.com wrote:

Would you share the file. Because the original file is not in any source.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bigtreetech/BIGTREETECH-SKR-V1.3/issues/166?email_source=notifications&email_token=AHXJNIBZI4YGMVSDFAD36FLQ7KFADA5CNFSM4J4HMNZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJZ4GBQ#issuecomment-578011910, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHXJNIFGLBTBUBERDYEYDXTQ7KFADANCNFSM4J4HMNZQ .

Interplain commented 4 years ago

Hi Michael, I don't seem to have the file. Don't think you sent it me. I have looked in all emails you sent. Would you be able to save it again like you did before by reading it from the working board.

On Fri, 24 Jan 2020, 08:15 Richard Interplain, interplain1@gmail.com wrote:

Yes Michael, I will do it when I get back home at work till 4 gmt but I will do it as soon as possible.

Hope you are good. Rich

On Fri, 24 Jan 2020, 06:45 Yuppi007, notifications@github.com wrote:

Would you share the file. Because the original file is not in any source.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bigtreetech/BIGTREETECH-SKR-V1.3/issues/166?email_source=notifications&email_token=AHXJNIBZI4YGMVSDFAD36FLQ7KFADA5CNFSM4J4HMNZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJZ4GBQ#issuecomment-578011910, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHXJNIFGLBTBUBERDYEYDXTQ7KFADANCNFSM4J4HMNZQ .

Marsman1970 commented 4 years ago

I sent it if anyone else needs it email meat mher5454@yahoo.com.au . I haven't used github much but i should be able to upload it here maybe it's time to learn lol.

Marsman1970 commented 4 years ago
On Tuesday, 28 January 2020, 1:28:20 am AEDT, Interplain <notifications@github.com> wrote:  

Hi Michael, I don't seem to have the file. Don't think you sent it me. I have looked in all emails you sent. Would you be able to save it again like you did before by reading it from the working board.

On Fri, 24 Jan 2020, 08:15 Richard Interplain, interplain1@gmail.com wrote:

Yes Michael, I will do it when I get back home at work till 4 gmt but I will do it as soon as possible.

Hope you are good. Rich

On Fri, 24 Jan 2020, 06:45 Yuppi007, notifications@github.com wrote:

Would you share the file. Because the original file is not in any source.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bigtreetech/BIGTREETECH-SKR-V1.3/issues/166?email_source=notifications&email_token=AHXJNIBZI4YGMVSDFAD36FLQ7KFADA5CNFSM4J4HMNZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJZ4GBQ#issuecomment-578011910, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHXJNIFGLBTBUBERDYEYDXTQ7KFADANCNFSM4J4HMNZQ .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Marsman1970 commented 4 years ago

Ok i uploaded it here try this. I did send it twice to your email but maybe it doesn't like hex files. Cheers Michael https://github.com/Marsman1970/SKR-V1.3-Bootloader

Yuppi007 commented 4 years ago

Thanks everyone.

Marsman1970 commented 4 years ago

So Yuppi007 it worked for you ok the boot loader file that is. Michael

Pixel-Soup commented 4 years ago

Hi Michael, Thanks for uploading the bootloader. Saved me the trouble of trying to find one. It worked on my board, except for the USB port. Win10 reports "device not recognized".

Marsman1970 commented 4 years ago

Usb should work as it,s a rip of a working board. 1 thing is if your Temperature sensors aren't correct or not connect it will disable the Usb. If you still have issues i'll read a fresh copy of the hex file from my Board. Cheers Michael

Pixel-Soup commented 4 years ago

Thank you for the tips. I found a microscopic sliver of solder shorting 2 of the mcu pins. Now it works perfectly.

Interplain commented 4 years ago

That's great you got it going, the workmanship is a little shoddy to say the least. But that is seen in the price of these boards. Thanks to Mars man's excellent help. Because the customer service is shite. I have a board waiting on a USB connection to flash this Hex file hopefully it will work. BIGTREE wanted me to send video evidence of a faulty board.. I sooner experiment with it to be honest. Pleased you got it going an it was just solder, I had a thought it would be that. Think my problem is bootloader.

Pixel-Soup commented 4 years ago

In my case, I damaged the lpc1768, so I had to replaced it with a blank chip. I can confirm that the USB drive and com port works with this boot loader after Marlin was loaded. Everything is back to the way it was.

Marsman1970 commented 4 years ago

Good to hear it's working. Eventually i was looking at putting a Troubleshooting guide together for all the strange issues.

Interplain commented 4 years ago

Hi Michael, hope you are ok I have got the FTDI USB serial cable how do I connect it to the board can you circle the pins on a picture of the board to show me where they go please. The cable has the plug on the end is it the right one?

Thanks.

On Sat, 1 Feb 2020, 00:21 Marsman1970, notifications@github.com wrote:

Good to hear it's working. Eventually i was looking at putting a Troubleshooting guide together for all the strange issues.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bigtreetech/BIGTREETECH-SKR-V1.3/issues/166?email_source=notifications&email_token=AHXJNIFT7JPWKNOVVXFFOM3RAS6AJA5CNFSM4J4HMNZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKQNMPQ#issuecomment-580965950, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHXJNIG7LNNZZJ6VKDOV6JDRAS6AJANCNFSM4J4HMNZQ .

Marsman1970 commented 4 years ago

SKR-V1.3-PIN.pdf It plugs into the TFT connector it's on the right of the Tf card socket. You need to connect RX & TX in reverse to each other ie Rx to TX so when the FTDI USB serial cable transmits form the TX pin The skr board receives it on the RX pin.

Interplain commented 4 years ago

Thanks Michael, I see where you mean now. It's the Aux 1 port an I will have to separate the plug to connect to the correct pins on the board. An go through the boot process to get it found by the computer. An once found by computer I can hopefully flash it.

On Tue, 11 Feb 2020, 22:56 Marsman1970, notifications@github.com wrote:

SKR-V1.3-PIN.pdf https://github.com/bigtreetech/BIGTREETECH-SKR-V1.3/files/4188950/SKR-V1.3-PIN.pdf It plugs into the TFT connector it's on the right of the Tf card socket. You need to connect RX & TX in reverse to each other ie Rx to TX so when the FTDI USB serial cable transmits form the TX pin The skr board receives it on the RX pin.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bigtreetech/BIGTREETECH-SKR-V1.3/issues/166?email_source=notifications&email_token=AHXJNIHYSUTIZJSINUYUEODRCMULJA5CNFSM4J4HMNZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELONPHQ#issuecomment-584898462, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHXJNIE554PB3VBRHE3VR7TRCMULJANCNFSM4J4HMNZQ .

dwillmore commented 4 years ago

I just followed this procedure to replace a failed microcontroller on my SKR v1.3. I would like to thank everyone in this thread for the wisdom that they have accumulated. I would not have been able to do it without the information I found here. Thank you, everyone.

N0mNus commented 4 years ago

SKR-V1.3-PIN.pdf It plugs into the TFT connector it's on the right of the Tf card socket. You need to connect RX & TX in reverse to each other ie Rx to TX so when the FTDI USB serial cable transmits form the TX pin The skr board receives it on the RX pin.

which 2 pins ... do you have a photo =?

Ed-EE-Eng commented 4 years ago

Say, I have this same problem with my SKR 1.4 Turbo.
1) I initially was able to update the firmware with the SD card, but suddenly, the SD card reader was no longer recognized. Doesn't show-up to print from nor do I see it when I connect a PC. 2) I can 'talk' to the the board with Octoprint and see status and print from OctoPrint. 3) Made some updates to Marlin and copied a new firmware.bin file to the SD care; Put SD care into SKR and nothing. No Upload, firmware.bin remains on the care, no changes to FIRMWARE.CUR

Appears either my SD card slot is defective or boot loader is gone.

Does anyone know where I can get a bootloader file and detailed info on reflashing the boot loader onto a SKR 1.4 T? TNX

codmpm commented 4 years ago

I'm in the same boat as @Ed-EE-Eng. Exactly the same issue. Thus I'm searching for the LPC1769 bootloader to try to reflash it.

Does someone have the suitable bootloader for the SKR 1.4 Turbo?

Althoug, my board seams to be bricked electricaly. The 3.3V output of the AMS1117 only has ~1,6V.

Pixel-Soup commented 4 years ago

@codmpm In your case, the 1769 and at least one of the drivers is blown. A boot loader won't do any good.

codmpm commented 4 years ago

Thank you! I've already changed the blown driver. Currently trying to revive the board via USB and without any drivers attached. It will be a challenge, but I am able to change/rework the LPC1769. Till now I only did 48LQFP, but I think I can get it to work.

But after that I will still need a bootloader, didn't I?

Ed-EE-Eng commented 4 years ago

So after playing with/inspecting my SKR board further, I am growing in the belief that I have a bad SD socket. It simply appears that the board can not read the SD card. I've ordered some replacement SD sockets in the hopes that I can desolder and resolder a replacement.

I also orderd and have just received an ST-LINK V2 programmer that supposedly can flash the 1769. That will be another approach if I can't get the SD going. Still looking for a boot loader...

Pixel-Soup commented 4 years ago

@Ed-EE-Eng My guess is that you uploaded firmware that did not properly support the SD pinout of the v1.4 board. With the st-link, you should be able to load the original firmware onto the board without needing a boot loader. If you suspect the socket, you can try reinserting the card multiple times. Or put a piece of tape on the back of the SD to push it harder against the contacts.

div1603 commented 4 years ago

Ed-EE-Eng If you still need a bootloader file, I can provide it by e-mail.

div1603 commented 4 years ago

Ed-EE-Eng You can download it from the link https://github.com/Smoothieware/Smoothieware/tree/edge/bootloader

11chuchu11 commented 4 years ago

hi i fucked my board's chip with a blown driver and i am waiting the replacement but i wanted to know if i could flash the chip with an arduino uno or any other and how

Ed-EE-Eng commented 4 years ago

After screwing with my 1.4T + ST-LINK programmer for a couple of weeks, NO-JOY. I don't think there are any "UNO" options. I have set the board aside for now; I have since bought a replacement 1.4T board - a brute force solution but it worked. I will watch this thread for any other options...

dwillmore commented 4 years ago

Are you talking about reprogramming the LPC chip? You do that with a simple USB<>serial converter (3.3V). No special programmer needed.

On Mon, Aug 3, 2020 at 11:38 AM Edward Andrews notifications@github.com wrote:

After screwing with my 1.4T + ST-LINK programmer for a couple of weeks, NO-JOY. I don't think there are any "UNO" options. I have set the board aside for now; I have since bought a replacement 1.4T board - a brute force solution but it worked. I will watch this thread for any other options...

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

codmpm commented 4 years ago

I've successfully replaced the 1769 CPU and burnt the smoothieware bootloader with an Segger J-Link via SWD. Could'nt get the STM-V2 to work, though. https://twitter.com/pregopm/status/1288855798223962112

AFAIK the method using the USB-Serial convertes does not work on the 1.4 Turbo as there is no way to pull the reset line low. You have to desolder a resistor to do this...

Pixel-Soup commented 4 years ago

@codmpm It's interesting that the Smoothy bootloader works with skr v1.4. It did not work on my skr v1.3 The LPC1769 is made by NXP. The st-link software is made for STmicro's chips only. That's likely why the st-link does not work.

codmpm commented 4 years ago

@Pixel-Soup The SKR 1.3 and SKR1.4 are using an LPC1768, thus the smoothieware (LPC1769) bootloader will not work. The 1.4 Turbo uses the LPC1769, same as the Smoothieboard (IIRC).

Marsman1970 commented 4 years ago

The SKR 1.3 bootloader i uploaded is for a LPC1768 straight from a 1.3 board. The smoothieware one that's uploaded here didn't work for me either so i got a new board to copy it from & fix my board. https://github.com/Marsman1970/SKR-V1.3-Bootloader

ShadowOfTheDamn commented 3 years ago

Add me to those who flashed the Bootloader on skr1.4 turbo using Segger J-Link with SWD successfully.

GadgetAngel commented 3 years ago

I am trying to create a repository for all the BIGTREETECH boards and their bootloaders for each board, here: https://github.com/GadgetAngel/BTT_SKR_13_14_14T_SD-DFU-Bootloader