Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dron0gus authored Apr 3, 2024
1 parent edb6650 commit f44c6fe
Showing 1 changed file with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions lambda-x2/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,48 +96,50 @@ Rev0 share same UART for both interfaces.
Two ways to program using STM32CubeProgrammer

* recommended way: using UART connectivity. Power device up while shorting BOOT0 jumper to enter DFU mode.
* st-link if you have tc2030 spring-loaded cable.
* st-link if you have tc2030 spring-loaded cable or have 10 pin JTAG connector populated.
* update over CAN or UART (J3) using OpenBLT (update over BT is in progress)

TL,DR: 9600 nothing connected on main connector

![image](https://github.com/rusefi/rusefi-hardware/assets/48498823/dac36691-878c-45d1-a2d9-7ee26409be4e)

## Updating over UART using DFU mode

1. Disconnect main connector. If you are going to apply +12V power through main connector - make sure that nothing else is connected to WBO (LSU sensors, any load, etc). But I recommend flash using +5V from USB.

3. connect USB to uart connector to J3 connector: gnd, rx and tx.
Don't forget to cross Rx-`Tx (adapter's Tx goes to WBO's Rx, WBO's Tx goes to adapter's Rx).
If you going to power WBO from USB port - also attach 5V line. Do not connect +5 from USB adapter if you are going to use +12V supply through main connector.
If you going to power WBO from USB port - also attach 5V line. Do not connect +5 from USB adapter if you are going to use +12V supply through main connector.

![20230923_125247](https://github.com/rusefi/rusefi-hardware/assets/28624689/04b9595a-4832-4e9d-92f6-b6955232a969)

3. Download and install STM32 Flash Loader Demonstrator. (Alternative tool is stm32flash - not covered in this instruction)

5. Figure out USB to serial serial port number:
5. Figure out USB to serial serial port number:

![device manager](https://github.com/rusefi/rusefi-hardware/assets/28624689/6bf0a0fc-8c34-4061-bd9a-e3c64491b45d)

5. Start Flash Loader Demonstrator GUI application, select correct COM port. Optional: reduce timeout to 1 second:

![stm32 flasher](https://github.com/rusefi/rusefi-hardware/assets/28624689/b5a6767c-59d1-41b7-a17b-9218185aa7b0)

6. Press and hold BOOT0 button on the bottom of PCB. Or short BOOT0 PCB jumper if button is not populated on your board.
7. Press and hold BOOT0 button on the bottom of PCB. Or short BOOT0 PCB jumper if button is not populated on your board. Also see "DFU mode/floating PB2" in "Known Issues" section

8. Apply power (while holding BOOT0 button) to board and press Next in application.
After app detects chip you should see something similar to:

![stm32 flasher 2](https://github.com/rusefi/rusefi-hardware/assets/28624689/bc78d3d1-68d1-4648-b5f3-19e4711ce60b)

8. Press next, select "Download to device", select wideband.bin file.
Select "Jump to user application" and "Verify after download"

![stm32 flasher 3](https://github.com/rusefi/rusefi-hardware/assets/28624689/aa6137e8-ad5c-4747-9fae-2e42df8d1ff3)

9. Press Next and wait for flash/verification ends.
![stm32 flasher 4](https://github.com/rusefi/rusefi-hardware/assets/28624689/329a686d-6a6e-42fe-9674-fb4d2ad88d72)
10. Press Next and wait for flash/verification ends.

![stm32 flasher 4](https://github.com/rusefi/rusefi-hardware/assets/28624689/329a686d-6a6e-42fe-9674-fb4d2ad88d72)

## Updating using JTAG

DBD.

## Update using OpenBLT
## Update using OpenBLT (over serial port)

OpenBLT https://www.feaser.com/openblt/doku.php

Expand All @@ -147,6 +149,14 @@ OpenBLT https://www.feaser.com/openblt/doku.php

3. Open BootCommander, select correct serial port, select wideband_update.srec file.

## Update using OpenBLT (over CAN)

TBD

## Update using OpenBLT (over Bluetooth)

TBD

# Changelog

## rev 1
Expand Down

0 comments on commit f44c6fe

Please sign in to comment.