Prius Gen2 adapter board development thread
Re: Prius Gen2 adapter board development thread
I added the internal wire colors to the Wiki, but could not figure out the process to add another column for the external colors, which are different.
Huebner VCU controlling a Gen2 Prius Inverter powering an MGR
"Talent is equally distributed but opportunity is not." - Leila Janah
"Talent is equally distributed but opportunity is not." - Leila Janah
-
- Posts: 883
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 550 times
- Been thanked: 53 times
- Contact:
Re: Prius Gen2 adapter board development thread
Cannot seem to load this file to wiki, or forum with a compter, so here it is with my phone. Feel free to replace the wiki one which is corrupt.
The 32sine.bin file did not upload correctly via wifi module.
Is it possible to use the TX and RX to Swd on St Link?
The 32sine.bin file did not upload correctly via wifi module.
Is it possible to use the TX and RX to Swd on St Link?
- Jack Bauer
- Posts: 3661
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 10 times
- Been thanked: 335 times
- Contact:
Re: Prius Gen2 adapter board development thread
Excellent. Let's get it on the wiki.
I'm going to need a hacksaw
Re: Prius Gen2 adapter board development thread
I *think* it worked....
<Edit: Updates to Wiki applied>
<Edit: Updates to Wiki applied>
Huebner VCU controlling a Gen2 Prius Inverter powering an MGR
"Talent is equally distributed but opportunity is not." - Leila Janah
"Talent is equally distributed but opportunity is not." - Leila Janah
-
- Posts: 883
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 550 times
- Been thanked: 53 times
- Contact:
Re: Prius Gen2 adapter board development thread
Thanks, I can confirm there is a nice little picture now
.
I'll start working on delta connection and confirming flashing lights, then document it...
I'll start working on delta connection and confirming flashing lights, then document it...
Re: Prius Gen2 adapter board development thread
Can someone add a second wire color column to the "32 Pin Inverter pin mapping" table for the external Inverter wires? I have all the colors, but completely fudged up adding a column for them.
Huebner VCU controlling a Gen2 Prius Inverter powering an MGR
"Talent is equally distributed but opportunity is not." - Leila Janah
"Talent is equally distributed but opportunity is not." - Leila Janah
-
- Posts: 1017
- Joined: Fri Apr 26, 2019 5:40 pm
- Has thanked: 403 times
- Been thanked: 260 times
Re: Prius Gen2 adapter board development thread
I haven't contributed anything in a long time. Or worked on my own car in a long time.
https://openinverter.org/wiki/Toyota_Pr ... in_mapping
Today I:
- Updated whoever wrote the colors as abbreviations and wrote them out fully (anyone who doesn't have this memorized might take "B" to be Black, Blue, Brown, "G" to be Green or Grey, etc. Can't get confused if the words are there).
- Created two new pictures of the top and bottom of the inverter-side plug, numbered the pins right on the image so you can't get confused.
- Added an extra column for Zookeeper as requested.
Re: Prius Gen2 adapter board development thread
I used the Toyota wiring conventions, so if anyone looked it up, everything matched. Nicely done on the I-10 connector!!!
Thanks, I will add the external colors ASAP.
Thanks, I will add the external colors ASAP.
Huebner VCU controlling a Gen2 Prius Inverter powering an MGR
"Talent is equally distributed but opportunity is not." - Leila Janah
"Talent is equally distributed but opportunity is not." - Leila Janah
Re: Prius Gen2 adapter board development thread
Some general clean-up and additions to the Wiki done, hope I did not tread on anyone else's contributions, if so, apologies.
I recognize sometimes things do not translate as intended.
I recognize sometimes things do not translate as intended.
Huebner VCU controlling a Gen2 Prius Inverter powering an MGR
"Talent is equally distributed but opportunity is not." - Leila Janah
"Talent is equally distributed but opportunity is not." - Leila Janah
- johu
- Site Admin
- Posts: 6716
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 369 times
- Been thanked: 1543 times
- Contact:
Re: Prius Gen2 adapter board development thread
You guys are awesome
Really taking shape now.

Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
-
- Posts: 883
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 550 times
- Been thanked: 53 times
- Contact:
Re: Prius Gen2 adapter board development thread
I'm still stuck right back at the beginning. Since I couldn't get pwm output confirmation with delta light bulb setup, I flashed sine. bin file to board.
The update did not go to the end, and now I get no parameters, no alive LED either.
Tried to upload stm32_loader.sin and boot updater, but no luck. The wifi cuts off each time it tries to upload.
I have a 2nd esp8266 from Johu, but it doesn't transfer any data. I re entered original inverter 7 password into it, but no data seems to transfer.
I get web interface but no parameters.
Any help would be much appreciated.
The update did not go to the end, and now I get no parameters, no alive LED either.
Tried to upload stm32_loader.sin and boot updater, but no luck. The wifi cuts off each time it tries to upload.
I have a 2nd esp8266 from Johu, but it doesn't transfer any data. I re entered original inverter 7 password into it, but no data seems to transfer.
I get web interface but no parameters.
Any help would be much appreciated.
-
- Posts: 883
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 550 times
- Been thanked: 53 times
- Contact:
Re: Prius Gen2 adapter board development thread
For info, I have a St Nucleo and was going to attempt connecting via TX and RX, 3.3v and Ground to flash the sine. bin directly to the board and see what happens... Too risky?
-
- Posts: 656
- Joined: Sat Oct 05, 2019 6:50 pm
- Location: Northern California, USA
- Been thanked: 2 times
- Contact:
Re: Prius Gen2 adapter board development thread
You need to connect the SWCLK and SWDIO lines to your board -- I think I posted instructions on that a while back. (I'll just have to write a sticky at some point).
-
- Posts: 883
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 550 times
- Been thanked: 53 times
- Contact:
Re: Prius Gen2 adapter board development thread
I saw them thanks, I was hoping there was some kind of run around... I messed up my last board trying to solder to the contact points.
I suppose I could connect Ground and 3.3V via JP1 then only need to focus on the two pins SWCLK and SWDIO
I suppose I could connect Ground and 3.3V via JP1 then only need to focus on the two pins SWCLK and SWDIO
-
- Posts: 883
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 550 times
- Been thanked: 53 times
- Contact:
Re: Prius Gen2 adapter board development thread
Connected Ground to JP1 Pin2 and 3.3V to JP1 Pin 1 - PWR LED lights up
Connected SWD from Nucleo to SWCLK and SWDIO.
Programmed STM32_sine.bin to adapterboard - Memory Programme confirmed, but Alive LED still not flashing.
Connected ESP8266 and re loaded sine.bin file.
Upload confirms ,but the wifi cuts out when the download % Bar starts.
Tried 2nd ESP, same result.
Is there another file I should be adding first?
Here is the log report, as I first compared with original file.
I am not a programmer, so don't know what I am looking for.
18:57:53 : [stm32_sine (1).bin] opened successfully.
18:57:53 : [stm32_sine (1).bin] checksum : 0x003A4274
19:02:59 : ST-LINK SN : 066CFF545454885087255323
19:02:59 : V2J34M25
19:02:59 : Connected via SWD.
19:02:59 : SWD Frequency = 4,0 MHz.
19:02:59 : Connection mode : Connect Under Reset.
19:02:59 : Debug in Low Power mode enabled.
19:02:59 : Device ID:0x410
19:02:59 : Device flash Size : 128KBytes
19:02:59 : Device family :STM32F10xx Medium-density
19:02:59 : Failed to read memory @08001068!
19:03:44 : Failed to read memory @080000B0!
19:03:46 : 1st difference found @: 0x08000004
All the different data blocks are red colored.
19:05:27 : Memory programmed in 3s and 32ms.
19:05:27 : Failed to read memory @080000A0!
19:05:48 : Can not connect to device!
19:05:52 : Comparison aborted!
19:05:52 : Disconnected from device.
19:05:52 : Connection to device is lost: check power supply and debug connection.
19:05:52 : If the target is in low power mode, please enable "Debug in Low Power mode" option from Target->settings menu.
19:05:58 : Disconnected from device.
19:06:56 : ST-LINK SN : 066CFF545454885087255323
19:06:56 : V2J34M25
19:06:56 : Connected via SWD.
19:06:56 : SWD Frequency = 4,0 MHz.
19:06:56 : Connection mode : Connect Under Reset.
19:06:56 : Debug in Low Power mode enabled.
19:06:56 : Device ID:0x410
19:06:56 : Device flash Size : 128KBytes
19:06:56 : Device family :STM32F10xx Medium-density
19:07:12 : Failed to read memory @0800046C!
19:07:14 : 1st difference found @: 0x08000168
All the different data blocks are red colored.
19:07:32 : Memory programmed in 2s and 968ms.
19:07:39 : Disconnected from device.
Connected SWD from Nucleo to SWCLK and SWDIO.
Programmed STM32_sine.bin to adapterboard - Memory Programme confirmed, but Alive LED still not flashing.
Connected ESP8266 and re loaded sine.bin file.
Upload confirms ,but the wifi cuts out when the download % Bar starts.
Tried 2nd ESP, same result.
Is there another file I should be adding first?
Here is the log report, as I first compared with original file.
I am not a programmer, so don't know what I am looking for.
18:57:53 : [stm32_sine (1).bin] opened successfully.
18:57:53 : [stm32_sine (1).bin] checksum : 0x003A4274
19:02:59 : ST-LINK SN : 066CFF545454885087255323
19:02:59 : V2J34M25
19:02:59 : Connected via SWD.
19:02:59 : SWD Frequency = 4,0 MHz.
19:02:59 : Connection mode : Connect Under Reset.
19:02:59 : Debug in Low Power mode enabled.
19:02:59 : Device ID:0x410
19:02:59 : Device flash Size : 128KBytes
19:02:59 : Device family :STM32F10xx Medium-density
19:02:59 : Failed to read memory @08001068!
19:03:44 : Failed to read memory @080000B0!
19:03:46 : 1st difference found @: 0x08000004
All the different data blocks are red colored.
19:05:27 : Memory programmed in 3s and 32ms.
19:05:27 : Failed to read memory @080000A0!
19:05:48 : Can not connect to device!
19:05:52 : Comparison aborted!
19:05:52 : Disconnected from device.
19:05:52 : Connection to device is lost: check power supply and debug connection.
19:05:52 : If the target is in low power mode, please enable "Debug in Low Power mode" option from Target->settings menu.
19:05:58 : Disconnected from device.
19:06:56 : ST-LINK SN : 066CFF545454885087255323
19:06:56 : V2J34M25
19:06:56 : Connected via SWD.
19:06:56 : SWD Frequency = 4,0 MHz.
19:06:56 : Connection mode : Connect Under Reset.
19:06:56 : Debug in Low Power mode enabled.
19:06:56 : Device ID:0x410
19:06:56 : Device flash Size : 128KBytes
19:06:56 : Device family :STM32F10xx Medium-density
19:07:12 : Failed to read memory @0800046C!
19:07:14 : 1st difference found @: 0x08000168
All the different data blocks are red colored.
19:07:32 : Memory programmed in 2s and 968ms.
19:07:39 : Disconnected from device.
-
- Posts: 1017
- Joined: Fri Apr 26, 2019 5:40 pm
- Has thanked: 403 times
- Been thanked: 260 times
Re: Prius Gen2 adapter board development thread
*nod*, I'm sure it was correct.
My point is, the purpose of the wiki is to provide the information so that people don't have to go look up "Toyota Wiring Conventions" if that'd even cross their mind that there's a published standard on that, if they'd be able to find it, if they'd cross reference it to the diagram. If you've done the work once, no reason for everyone else to do it all over every time.
Any time anyone knows the direct answer to something, share the direct answer into the same place (the wiki) rather than have multiple dependencies. It's that kind of stuff that's impossible to navigate as a novice. Then we can all spend our time explaining the difficult parts, not the tedious parts.
Any time you document things, put yourself in the headspace of "If I didn't already know this, would a beginner know this?" and phrase things that way.
And, it's a group effort. I figured it out by looking at the pictures but my inverter is buried away somewhere. You did a little, I did a little, happy to contribute.
-
- Posts: 883
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 550 times
- Been thanked: 53 times
- Contact:
Re: Prius Gen2 adapter board development thread
Sorry programming guys, I managed to programme bootupdater , loader and sine.bin files, but still no luck.
Are there other files I am missing?
I even programmed Foc and then back to Sine, but no parameters available in Interface.
Wifi drops out each time I try to download sine.bin to adapterboard stm...
I also get this message when programming and verifying....Programming error @: 0x0800016F
Any pointers would be great.
Are there other files I am missing?
I even programmed Foc and then back to Sine, but no parameters available in Interface.
Wifi drops out each time I try to download sine.bin to adapterboard stm...
I also get this message when programming and verifying....Programming error @: 0x0800016F
Any pointers would be great.
- Jack Bauer
- Posts: 3661
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 10 times
- Been thanked: 335 times
- Contact:
Re: Prius Gen2 adapter board development thread
Program the .hex not the .bin files.
I'm going to need a hacksaw
-
- Posts: 3563
- Joined: Mon Dec 24, 2018 1:37 pm
- Location: Slovenia
- Has thanked: 134 times
- Been thanked: 335 times
- Contact:
Re: Prius Gen2 adapter board development thread
Yes, use hex file with STLINK dongle.
Use bin file for programming through wifi dongle interface.
I also remember you can use bin hex files with Android app and STLINK. I think I wrote about it somewhere here.
viewtopic.php?f=2&t=6#p928
-
- Posts: 883
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 550 times
- Been thanked: 53 times
- Contact:
Re: Prius Gen2 adapter board development thread
Thanks, looks like it worked- I have parameters and LED flashing again!
I had to flash stm32_loader.hex FIRST and the stm32_sine.hex
Back to the garage for delta set-up.
Thanks again , this one is going in the wiki (once I confirm all is well)
I had to flash stm32_loader.hex FIRST and the stm32_sine.hex
Back to the garage for delta set-up.
Thanks again , this one is going in the wiki (once I confirm all is well)
-
- Posts: 3563
- Joined: Mon Dec 24, 2018 1:37 pm
- Location: Slovenia
- Has thanked: 134 times
- Been thanked: 335 times
- Contact:
Re: Prius Gen2 adapter board development thread
-
- Posts: 883
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 550 times
- Been thanked: 53 times
- Contact:
Re: Prius Gen2 adapter board development thread
Will do Arber. Need to document all these 'problems' along the way for others to not make as many mistakes. My ESP8266 is still very unstable and drops out very often, but that's the least of my problems.
So connected 2 independant 12 volt supplies - Inverter 'High voltage' and Adapter Board 'Low voltage'
Direction parameter in Permanent Forward, MSDN to Main 12 volt contacter, fslipspnt - 11, ampnom - 75%, and Run Inverter in Manual Mode - Motor spinning smoothly
Confirmed Il1 and Il2 are calibrated as per Johu's post - I will add it to Wiki under Gen 2. - "Next steps"
Noted the Il1 and Il2 CURRENT LOCATIONS in Inverter along with PWM outputs.
MUU (U) is the outermost connection
MVU (V) is the center connection with IL1
MWU (W) is the innermost connection with IL2
Next step - Download FOC firmware and select PINSWAP 5 ?
Basically, we need to have MUU with IL1 , MUV with Il2 and MUW without current sensing ? In simple terms, we 'swap' in the Inverter software the positions of IL1 and Il2 first, and then we 'swap' the PWM outputs too ?
From my picture, from left to right, it will be IL1 and IL2 for the current sensors AND PWM U, V and W ?
So connected 2 independant 12 volt supplies - Inverter 'High voltage' and Adapter Board 'Low voltage'
Direction parameter in Permanent Forward, MSDN to Main 12 volt contacter, fslipspnt - 11, ampnom - 75%, and Run Inverter in Manual Mode - Motor spinning smoothly

Confirmed Il1 and Il2 are calibrated as per Johu's post - I will add it to Wiki under Gen 2. - "Next steps"
Noted the Il1 and Il2 CURRENT LOCATIONS in Inverter along with PWM outputs.
MUU (U) is the outermost connection
MVU (V) is the center connection with IL1
MWU (W) is the innermost connection with IL2
Next step - Download FOC firmware and select PINSWAP 5 ?
Basically, we need to have MUU with IL1 , MUV with Il2 and MUW without current sensing ? In simple terms, we 'swap' in the Inverter software the positions of IL1 and Il2 first, and then we 'swap' the PWM outputs too ?
From my picture, from left to right, it will be IL1 and IL2 for the current sensors AND PWM U, V and W ?
Re: Prius Gen2 adapter board development thread
I have had the same thing happen, the ESP8266 does NOT like being under powered. 12v is fine, something not much less is not fine, once I had that sorted, no more drop-out.
Huebner VCU controlling a Gen2 Prius Inverter powering an MGR
"Talent is equally distributed but opportunity is not." - Leila Janah
"Talent is equally distributed but opportunity is not." - Leila Janah
-
- Posts: 883
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 550 times
- Been thanked: 53 times
- Contact:
Re: Prius Gen2 adapter board development thread
Thanks, what do you think about my Foc summary? Sound spot on?