Boot loader version 4
- johu
- Site Admin
- Posts: 5834
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 162 times
- Been thanked: 1047 times
- Contact:
Boot loader version 4
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.
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
-
- 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
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
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
- johu
- Site Admin
- Posts: 5834
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 162 times
- Been thanked: 1047 times
- Contact:
Re: Boot loader version 4
Yes exactly like that.
Do not refresh or anything between the 3 steps.
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
-
- 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
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?
- johu
- Site Admin
- Posts: 5834
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 162 times
- Been thanked: 1047 times
- Contact:
Re: Boot loader version 4
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
-
- 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
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?
- johu
- Site Admin
- Posts: 5834
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 162 times
- Been thanked: 1047 times
- Contact:
Re: Boot loader version 4
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
-
- Posts: 2
- Joined: Sat Jul 25, 2020 7:06 pm
Re: Boot loader version 4
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?
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?
- johu
- Site Admin
- Posts: 5834
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 162 times
- Been thanked: 1047 times
- Contact:
Re: Boot loader version 4
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.
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
Re: Boot loader version 4
Here is connections.
You can get some ready made adapters also
You can get some ready made adapters also
Thomas A. Edison “I have not failed. I've just found 10,000 ways that won't work"
- johu
- Site Admin
- Posts: 5834
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 162 times
- Been thanked: 1047 times
- Contact:
Re: Boot loader version 4
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?
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
-
- 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
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?
- johu
- Site Admin
- Posts: 5834
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 162 times
- Been thanked: 1047 times
- Contact:
Re: Boot loader version 4
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.
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
-
- 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
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!
I was able to reflash with the St link, I have flashing led now. Which is great thanks for your help!
- johu
- Site Admin
- Posts: 5834
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 162 times
- Been thanked: 1047 times
- Contact:
Re: Boot loader version 4
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