Boot loader version 4

Post Reply
User avatar
johu
Site Admin
Posts: 5681
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 959 times
Contact:

Boot loader version 4

Post by johu »

I have released a new boot loader that supports boot initialization of IO pins. Basically the firmware creates a table in a special flash page that instructs the boot loader which pins should be forced to a certain state at boot time.
As of now, the inverter firmware starting at version 4.94.R makes use of this to make sure the DC switch pin (PC13) is low from the very beginning.

This update is only useful if you have the DC switch briefly click on at power up. It happens when the output stage of the STM32 is slightly damaged by electrostatic discharge. Otherwise you can safely skip this release.

https://github.com/jsphuebner/tumanako- ... ses/tag/v4

To install the new boot loader without using a JTAG/SWD adapter, follow the instructions in readme.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Dusty4
Posts: 83
Joined: Tue Dec 25, 2018 12:41 pm
Location: Western Australia
Has thanked: 11 times
Been thanked: 7 times

Re: Boot loader version 4

Post by Dusty4 »

Hi Johannes,
This is good news, I recently had my board delivered and DC switch is clicking on at start up. However the instructions in readme are a bit beyond my knowledge, am I just uploading the files below into the web interface then updating?
stm32_bootupdater.bin
stm32_loader.bin
stm32_sine.bin
User avatar
johu
Site Admin
Posts: 5681
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 959 times
Contact:

Re: Boot loader version 4

Post by johu »

Yes exactly like that.
Do not refresh or anything between the 3 steps.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Dusty4
Posts: 83
Joined: Tue Dec 25, 2018 12:41 pm
Location: Western Australia
Has thanked: 11 times
Been thanked: 7 times

Re: Boot loader version 4

Post by Dusty4 »

I have got to the the 3rd step, and now it doesn't let me upload stm32_sine.bin there is a spinning wheel on the interface and I have no blinking light on the board now. Any ideas?
User avatar
johu
Site Admin
Posts: 5681
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 959 times
Contact:

Re: Boot loader version 4

Post by johu »

Try uploading loader.bin again then sine.bin
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Dusty4
Posts: 83
Joined: Tue Dec 25, 2018 12:41 pm
Location: Western Australia
Has thanked: 11 times
Been thanked: 7 times

Re: Boot loader version 4

Post by Dusty4 »

Thanks for the quick response Johannes, Unfortunately when I try upload loader.bin I get nothing. Same with any file for that matter. Is there a reset or something I can do?
Attachments
Screenshot (5).png
User avatar
johu
Site Admin
Posts: 5681
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 959 times
Contact:

Re: Boot loader version 4

Post by johu »

Not sure what state your board is in now, if all else fails you have to re-program with an ST-Link viewtopic.php?f=2&t=6&p=16&hilit=st+link#p16
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Oceanclassicdrive
Posts: 2
Joined: Sat Jul 25, 2020 7:06 pm

Re: Boot loader version 4

Post by Oceanclassicdrive »

Hi
same pb for me
update from 4.85 to last 4.94
the 2 steps
stm32_bootupdater.bin
stm32_loader.bin
was confirmed then the 3rd
stm32_sine.bin has not been confirmed although the green led flashed
restart and now no red flash led
impossible to reload any .bin
is there a bug with this process?
User avatar
johu
Site Admin
Posts: 5681
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 959 times
Contact:

Re: Boot loader version 4

Post by johu »

Strange, I did the process just last week and it worked fine. It is important to do it in one go, i.e. upload stm32_bootupdater.bin, then stm32_loader.bin, then stm32_sine.bin. Do not refresh the page in between and do not hit the Refresh link.

If one of you could attach a USB serial cable and describe the output that would help to track it.

If you see 2222222 with new "2"s appearing every 100ms you are seeing bootupdater.bin waiting for the bootloader. If you see 2D2D2D you see the boot loader waiting for firmware.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Dusty4
Posts: 83
Joined: Tue Dec 25, 2018 12:41 pm
Location: Western Australia
Has thanked: 11 times
Been thanked: 7 times

Re: Boot loader version 4

Post by Dusty4 »

I'll be having a go at it this weekend👍
Dusty4
Posts: 83
Joined: Tue Dec 25, 2018 12:41 pm
Location: Western Australia
Has thanked: 11 times
Been thanked: 7 times

Re: Boot loader version 4

Post by Dusty4 »

How do you connect to this?
Attachments
PXL_20201105_121748512.jpg
User avatar
joromy
Posts: 371
Joined: Fri Jun 28, 2019 12:56 pm
Has thanked: 1 time
Been thanked: 3 times

Re: Boot loader version 4

Post by joromy »

Here is connections.
You can get some ready made adapters also
jtag_connector.JPG
jtag_connector.JPG (30.04 KiB) Viewed 6444 times
Thomas A. Edison “I have not failed. I've just found 10,000 ways that won't work"
Dusty4
Posts: 83
Joined: Tue Dec 25, 2018 12:41 pm
Location: Western Australia
Has thanked: 11 times
Been thanked: 7 times

Re: Boot loader version 4

Post by Dusty4 »

Thanks, looks like tc2030 after a quick google.
User avatar
johu
Site Admin
Posts: 5681
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 959 times
Contact:

Re: Boot loader version 4

Post by johu »

You could just solder a wire to it, the tc2030 is kindof pricey. I could have just brought out SWD on a pin header, oh well.
Did you check the UART output?
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Dusty4
Posts: 83
Joined: Tue Dec 25, 2018 12:41 pm
Location: Western Australia
Has thanked: 11 times
Been thanked: 7 times

Re: Boot loader version 4

Post by Dusty4 »

Is there a pinout on the tc2030? I can't find what is what.. Also is there a thread i can read about connecting by uart?
Attachments
footprints1.jpg
User avatar
johu
Site Admin
Posts: 5681
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 959 times
Contact:

Re: Boot loader version 4

Post by johu »

Here's the pinout: https://www.tag-connect.com/wp-content/ ... -CTX_1.pdf

UART pin 3 and 4 are RX/TX, Pin 2 is GND. Don't ask which one is RX and which one TX, just swap until it works ;) Set your terminal program to 115200 baud.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Dusty4
Posts: 83
Joined: Tue Dec 25, 2018 12:41 pm
Location: Western Australia
Has thanked: 11 times
Been thanked: 7 times

Re: Boot loader version 4

Post by Dusty4 »

Uart output was 22222222, so something happened when I uploaded the bootloader.
I was able to reflash with the St link, I have flashing led now. Which is great 👍 thanks for your help!
User avatar
johu
Site Admin
Posts: 5681
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 959 times
Contact:

Re: Boot loader version 4

Post by johu »

Ok, so it was waiting for you to upload stm32_loader.bin
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Post Reply