Page 1 of 1

Boot loader version 4

Posted: Wed Oct 21, 2020 12:38 pm
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.

Re: Boot loader version 4

Posted: Sun Nov 01, 2020 12:36 pm
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

Re: Boot loader version 4

Posted: Sun Nov 01, 2020 2:35 pm
by johu
Yes exactly like that.
Do not refresh or anything between the 3 steps.

Re: Boot loader version 4

Posted: Sun Nov 01, 2020 9:31 pm
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?

Re: Boot loader version 4

Posted: Sun Nov 01, 2020 9:36 pm
by johu
Try uploading loader.bin again then sine.bin

Re: Boot loader version 4

Posted: Mon Nov 02, 2020 12:24 pm
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?

Re: Boot loader version 4

Posted: Mon Nov 02, 2020 3:57 pm
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

Re: Boot loader version 4

Posted: Tue Nov 03, 2020 11:42 am
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?

Re: Boot loader version 4

Posted: Tue Nov 03, 2020 4:39 pm
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.

Re: Boot loader version 4

Posted: Wed Nov 04, 2020 3:47 am
by Dusty4
I'll be having a go at it this weekend👍

Re: Boot loader version 4

Posted: Thu Nov 05, 2020 12:36 pm
by Dusty4
How do you connect to this?

Re: Boot loader version 4

Posted: Thu Nov 05, 2020 12:48 pm
by joromy
Here is connections.
You can get some ready made adapters also
jtag_connector.JPG
jtag_connector.JPG (30.04 KiB) Viewed 6576 times

Re: Boot loader version 4

Posted: Thu Nov 05, 2020 1:08 pm
by Dusty4
Thanks, looks like tc2030 after a quick google.

Re: Boot loader version 4

Posted: Thu Nov 05, 2020 4:56 pm
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?

Re: Boot loader version 4

Posted: Fri Nov 06, 2020 12:57 pm
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?

Re: Boot loader version 4

Posted: Fri Nov 06, 2020 1:09 pm
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.

Re: Boot loader version 4

Posted: Fri Nov 06, 2020 11:07 pm
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!

Re: Boot loader version 4

Posted: Sat Nov 07, 2020 5:55 pm
by johu
Ok, so it was waiting for you to upload stm32_loader.bin