Wideband Controller: Fully Custom, no ASIC!

Hardware inside and outside of the ECU
Post Reply
User avatar
Dron_Gus
contributor
contributor
Posts: 480
Joined: Wed Nov 13, 2013 1:11 pm
Location: S-Pb
Github Username: dron0gus

Re: Wideband Controller: Fully Custom, no ASIC!

Post by Dron_Gus »

kimman1 wrote:
Sun Apr 21, 2024 3:25 am
I'm just finishing lamba x2
The problem is when I connect the lsu 4.2. Just about 30 second after heating, the temperature notification on tunner studio is sensor overheat.
I attached log below. Please help me
Attached the is latest file
Did you change settings to LSU4.2? By default WBO is configured for LSU4.9.
Also you have too low "Ipump actual" compared to "Ipump target". Please check LSU_Ip circuit: U12B, values of R12, R42, R45, R18, R21.
Screenshot from 2024-04-24 10-18-32.png
You do not have the required permissions to view the files attached to this post.
kimman1
Posts: 5
Joined: Sun Apr 21, 2024 3:01 am
Github Username: kimman1

Re: Wideband Controller: Fully Custom, no ASIC!

Post by kimman1 »

Dron_Gus wrote:
Wed Apr 24, 2024 7:22 am
kimman1 wrote:
Sun Apr 21, 2024 3:25 am
I'm just finishing lamba x2
The problem is when I connect the lsu 4.2. Just about 30 second after heating, the temperature notification on tunner studio is sensor overheat.
I attached log below. Please help me
Attached the is latest file
Did you change settings to LSU4.2? By default WBO is configured for LSU4.9.
Also you have too low "Ipump actual" compared to "Ipump target". Please check LSU_Ip circuit: U12B, values of R12, R42, R45, R18, R21.
Screenshot from 2024-04-24 10-18-32.png
Ah. I also think like you. I've checked for all wire for make sure wiring is correct ( Before I have wrong wiring ) . So I think the U9 (GS8832) is dead, trying replacing U9 but the error still there. The R41 is 6K8 0.1% ( missing in order from LCSC ) I replace it with 6.8K 1% , but still error :D . After that, I just only solder R24 and try testing with LSU 4.9 sensor and the problem fixed
NickZ
Posts: 61
Joined: Sun Sep 01, 2019 9:44 pm

Re: Wideband Controller: Fully Custom, no ASIC!

Post by NickZ »

Can someone please help with the current firmware (rusEFI master.2024.04.18.f407-discovery.1378508940) and these wideband controllers. Originally on older firmware and using TS to update the controllers they would work, but randomly go into a error (blue led started flashing), Updating the ECU to 2024.04.18 and then updating the wideband controllers from TS, the wideband does not go into a error now, but there is no reading in TS or on my dash. I get very random readings on the TS where the outline (last position) needle jumps around but the display never moves from displaying zero.

Just adding that the AEM canbus Wideband is working perfectly on the same settings.
NickZ
Posts: 61
Joined: Sun Sep 01, 2019 9:44 pm

Re: Wideband Controller: Fully Custom, no ASIC!

Post by NickZ »

Where in the wideband firmware is the Can bus speed set, I would like to change it to 1k from the 500 speed.
User avatar
Dron_Gus
contributor
contributor
Posts: 480
Joined: Wed Nov 13, 2013 1:11 pm
Location: S-Pb
Github Username: dron0gus

Re: Wideband Controller: Fully Custom, no ASIC!

Post by Dron_Gus »

NickZ wrote:
Thu Jul 18, 2024 11:40 pm
Where in the wideband firmware is the Can bus speed set, I would like to change it to 1k from the 500 speed.
https://github.com/mck1117/wideband/blob/c7f1a17b00861ee072901a82ac26a8fc7ca08469/firmware/boards/f0_module/port_shared.cpp#L14
Larspars
Posts: 7
Joined: Fri May 13, 2022 6:36 pm
Github Username: larsnergard

Re: Wideband Controller: Fully Custom, no ASIC!

Post by Larspars »

Hi guys

I'm trying to compile the firmware for f0_module but it does not seem to "bake" the bootloader.bin together with the firmware. Can someone have a look at the terminal output and point me in a direction?

I use WSL and Visual Code. The wideband.bin file is 24kB and I can see that the "baked" file available for download is 31kB. So I am missing something.

Ctrl->shift->B->Build F0 module image

Executing task: ./build_wideband.sh

Cleaning
- ./.dep
- ./build

Done
Compiler Options
arm-none-eabi-gcc -c -mcpu=cortex-m0 -mthumb -Os -ggdb -fomit-frame-pointer -falign-functions=16 -fsingle-precision-constant -DWB_PROD=1 -Wl,--defsym=USE_BOOTLOADER=1 -ffunction-sections -fdata-sections -fno-common -flto -Wall -Wextra -Wundef -Wstrict-prototypes -Wa,-alms=./build/lst/ -DCORTEX_USE_FPU=FALSE -MD -MP -MF ./.dep/build.d -I. -I./cfg -I../../../ChibiOS/os/license -I../../../ChibiOS/os/common/portability/GCC -I../../../ChibiOS/os/common/startup/ARMCMx/compilers/GCC -I../../../ChibiOS/os/common/startup/ARMCMx/devices/STM32F0xx -I../../../ChibiOS/os/common/ext/ARM/CMSIS/Core/Include -I../../../ChibiOS/os/common/ext/ST/STM32F0xx -I../../../ChibiOS/os/hal/include -I../../../ChibiOS/os/hal/ports/common/ARMCMx -I../../../ChibiOS/os/hal/ports/STM32/STM32F0xx -I../../../ChibiOS/os/hal/ports/STM32/LLD/ADCv1 -I../../../ChibiOS/os/hal/ports/STM32/LLD/CANv1 -I../../../ChibiOS/os/hal/ports/STM32/LLD/DACv1 -I../../../ChibiOS/os/hal/ports/STM32/LLD/DMAv1 -I../../../ChibiOS/os/hal/ports/STM32/LLD/EXTIv1 -I../../../ChibiOS/os/hal/ports/STM32/LLD/GPIOv2 -I../../../ChibiOS/os/hal/ports/STM32/LLD/I2Cv2 -I../../../ChibiOS/os/hal/ports/STM32/LLD/RTCv2 -I../../../ChibiOS/os/hal/ports/STM32/LLD/SPIv2 -I../../../ChibiOS/os/hal/ports/STM32/LLD/TIMv1 -I../../../ChibiOS/os/hal/ports/STM32/LLD/USART -I../../../ChibiOS/os/hal/ports/STM32/LLD/USARTv2 -I../../../ChibiOS/os/hal/ports/STM32/LLD/USBv1 -I../../../ChibiOS/os/hal/ports/STM32/LLD/xWDGv1 -I../../../ChibiOS/os/hal/osal/rt-nil -I../../../ChibiOS/os/rt/include -I../../../ChibiOS/os/oslib/include -I../../../ChibiOS/os/common/ports/ARMv6-M -I../../../ChibiOS/os/common/ports/ARMv6-M/compilers/GCC -I../../../libfirmware/util/include -I../../../shared/ -I../io -I../.. main.c -o main.o

Compiling crt0_v6m.S
Compiling vectors.S
Compiling chcoreasm.S
Compiling crt1.c
Compiling hal.c
Compiling hal_st.c
Compiling hal_buffers.c
Compiling hal_queues.c
Compiling hal_flash.c
Compiling hal_mmcsd.c
Compiling hal_can.c
Compiling hal_pal.c
Compiling nvic.c
Compiling stm32_isr.c
Compiling hal_lld.c
Compiling hal_can_lld.c
Compiling stm32_dma.c
Compiling stm32_exti.c
Compiling hal_pal_lld.c
Compiling hal_st_lld.c
Compiling osal.c
Compiling chsys.c
Compiling chdebug.c
Compiling chtrace.c
Compiling chvt.c
Compiling chschd.c
Compiling chthreads.c
Compiling chregistry.c
Compiling chsem.c
Compiling chmtx.c
Compiling chcond.c
Compiling chmsg.c
Compiling chdynamic.c
Compiling chmemcore.c
Compiling chmemheaps.c
Compiling chcore.c
Compiling board.c
Compiling util_dummy.cpp
Compiling crc.cpp
Compiling fragments.cpp
Compiling math.cpp
Compiling bootloader.cpp
Compiling port_shared.cpp
Compiling flash.cpp
Linking build/wideband_bootloader.elf
lto-wrapper: warning: Options to Xassembler do not match: -alms=./build/lst/crt1.lst, -alms=./build/lst/hal.lst, dropping all -Xassembler and -Wa options.
Creating build/wideband_bootloader.hex
Creating build/wideband_bootloader.bin
Creating build/wideband_bootloader.dmp
Creating build/wideband_bootloader.list

text data bss dec hex filename
5828 0 5888 11716 2dc4 build/wideband_bootloader.elf

Done
Compiler Options
arm-none-eabi-gcc -c -mcpu=cortex-m0 -mthumb -O2 -ggdb -fomit-frame-pointer -falign-functions=16 -fsingle-precision-constant -DWB_PROD=1 -Wl,--defsym=USE_BOOTLOADER=1 -ffunction-sections -fdata-sections -fno-common -flto -Wall -Wextra -Wundef -Wstrict-prototypes -Wa,-alms=./build/lst/ -DCORTEX_USE_FPU=FALSE -MD -MP -MF ./.dep/build.d -I. -Iboards/f0_module -IChibiOS/os/license -IChibiOS/os/hal/include -IChibiOS/os/hal/osal/rt-nil -IChibiOS/os/rt/include -IChibiOS/os/oslib/include -IChibiOS/os/hal/lib/streams -IChibiOS/os/various/cpp_wrappers -IChibiOS/os/hal/lib/complex/mfs -IChibiOS/os/common/portability/GCC -IChibiOS/os/common/startup/ARMCMx/compilers/GCC -IChibiOS/os/common/startup/ARMCMx/devices/STM32F0xx -IChibiOS/os/common/ext/ARM/CMSIS/Core/Include -IChibiOS/os/common/ext/ST/STM32F0xx -IChibiOS/os/hal/ports/common/ARMCMx -IChibiOS/os/hal/ports/STM32/STM32F0xx -IChibiOS/os/hal/ports/STM32/LLD/ADCv1 -IChibiOS/os/hal/ports/STM32/LLD/CANv1 -IChibiOS/os/hal/ports/STM32/LLD/DACv1 -IChibiOS/os/hal/ports/STM32/LLD/DMAv1 -IChibiOS/os/hal/ports/STM32/LLD/EXTIv1 -IChibiOS/os/hal/ports/STM32/LLD/GPIOv2 -IChibiOS/os/hal/ports/STM32/LLD/I2Cv2 -IChibiOS/os/hal/ports/STM32/LLD/RTCv2 -IChibiOS/os/hal/ports/STM32/LLD/SPIv2 -IChibiOS/os/hal/ports/STM32/LLD/TIMv1 -IChibiOS/os/hal/ports/STM32/LLD/USART -IChibiOS/os/hal/ports/STM32/LLD/USARTv2 -IChibiOS/os/hal/ports/STM32/LLD/USBv1 -IChibiOS/os/hal/ports/STM32/LLD/xWDGv1 -IChibiOS/os/common/ports/ARMv6-M -IChibiOS/os/common/ports/ARMv6-M/compilers/GCC -Ilibfirmware/util/include -Iutil/ -Iutil/math/ -Iconsole/binary/ -Iboards/ -Ishared/ -Iboards/f0_module/io/ main.c -o main.o

Compiling crt0_v6m.S
Compiling vectors.S
Compiling chcoreasm.S
Compiling main_hardfault_asm.S
Compiling hal.c
Compiling hal_st.c
Compiling hal_buffers.c
Compiling hal_queues.c
Compiling hal_flash.c
Compiling hal_mmcsd.c
Compiling hal_adc.c
Compiling hal_can.c
Compiling hal_pal.c
Compiling hal_pwm.c
Compiling osal.c
Compiling chsys.c
Compiling chdebug.c
Compiling chtrace.c
Compiling chvt.c
Compiling chschd.c
Compiling chthreads.c
Compiling chprintf.c
Compiling memstreams.c
Compiling nullstreams.c
Compiling hal_mfs.c
Compiling crt1.c
Compiling nvic.c
Compiling stm32_isr.c
Compiling hal_lld.c
Compiling hal_adc_lld.c
Compiling stm32_dma.c
Compiling hal_can_lld.c
Compiling stm32_exti.c
Compiling hal_pal_lld.c
Compiling hal_st_lld.c
Compiling hal_pwm_lld.c
Compiling chcore.c
Compiling board.c
Compiling ch.cpp
Compiling syscalls_cpp.cpp
Compiling port.cpp
Compiling port_shared.cpp
Compiling util_dummy.cpp
Compiling crc.cpp
Compiling fragments.cpp
Compiling math.cpp
Compiling pid.cpp
Compiling sampling.cpp
Compiling heater_control.cpp
Compiling timer.cpp
Compiling flash.cpp
Compiling can.cpp
Compiling can_helper.cpp
Compiling fault.cpp
Compiling lambda_conversion.cpp
Compiling pwm.cpp
Compiling dac.cpp
Compiling pump_dac.cpp
Compiling pump_control.cpp
Compiling max3185x.cpp
Compiling uart.cpp
Compiling auxout.cpp
Compiling indication.cpp
Compiling sampling_thread.cpp
Compiling heater_thread.cpp
Compiling main.cpp
main.cpp:41:5: warning: "TS_ENABLED" is not defined, evaluates to 0 [-Wundef]
41 | #if TS_ENABLED
| ^~~~~~~~~~
Linking build/wideband.elf
/usr/lib/gcc/arm-none-eabi/10.3.1/../../../arm-none-eabi/bin/ld:app.ld:90: warning: memory region `shared' not declared
lto-wrapper: warning: Options to Xassembler do not match: -alms=./build/lst/hal.lst, -alms=./build/lst/hal_st.lst, dropping all -Xassembler and -Wa options.
Creating build/wideband.hex
Creating build/wideband.bin
Creating build/wideband.dmp
Creating build/wideband.list
Creating build/wideband.srec

text data bss dec hex filename
18208 6148 5888 30244 7624 build/wideband.elf

Done
18224+0 records in
18224+0 records out
18224 bytes (18 kB, 18 KiB) copied, 0.077755 s, 234 kB/s
./build_wideband.sh: line 33: crc32: command not found

* The terminal process "/bin/bash '-c', './build_wideband.sh'" terminated with exit code: 127.
* Terminal will be reused by tasks, press any key to close it.


Cheers
User avatar
AndreyB
Site Admin
Posts: 14727
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Wideband Controller: Fully Custom, no ASIC!

Post by AndreyB »

Larspars wrote:
Wed Aug 28, 2024 5:40 pm
./build_wideband.sh: line 33: crc32: command not found
I am not a nice person, I have a few snarky comments here.
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Larspars
Posts: 7
Joined: Fri May 13, 2022 6:36 pm
Github Username: larsnergard

Re: Wideband Controller: Fully Custom, no ASIC!

Post by Larspars »

AndreyB wrote:
Wed Aug 28, 2024 5:51 pm
Larspars wrote:
Wed Aug 28, 2024 5:40 pm
./build_wideband.sh: line 33: crc32: command not found
I am not a nice person, I have a few snarky comments here.
You replied and pointed me in a direction like I asked, so you're kind of nice :)

I will look into it further.

Cheers
Larspars
Posts: 7
Joined: Fri May 13, 2022 6:36 pm
Github Username: larsnergard

Re: Wideband Controller: Fully Custom, no ASIC!

Post by Larspars »

For the next person running in to the same error.

sudo apt-get install libarchive-zip-perl

It includes CRC32
User avatar
AndreyB
Site Admin
Posts: 14727
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Wideband Controller: Fully Custom, no ASIC!

Post by AndreyB »

https://www.etas.com/download-center-files/products_ES600/etas-es63x.1-user-guide-en-202110.pdf 3.5.1 and 3.5.2 calls out six (?) kinds of LSUs

Bosch Lambda Sensors LSU 4.2, LSU 4.9 and LSU 5.2 in the less smart category and LSU ADV-G (Code A7), LSU ADV-D (Code 1) and LSU 5.1 in a smarter (?) category. And then NTK Lambda Sensors ZFAS-D, ZFAS-U2 and ZFAS-U3.
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
diegort5
Posts: 19
Joined: Fri Aug 18, 2023 12:55 pm

Re: Wideband Controller: Fully Custom, no ASIC!

Post by diegort5 »

Good morning everyone, today I am writing to ask for help, I have assembled a pair of rusefi wbo x0, I have already compiled the firmware, uploaded it to the board, connected the wbo to the microrusefi 0.6. 0 board and configured the wideband parameters, updated the firmware from tunerstudio and the green led is alternating, so far everything is fine when trying to heat the bosch 0258 017 359 sensor immediately the board sends an error 4 times blue led sensor overheat, but I touch it and it is cold, I perform the same test with the sensor disconnected and it sends me the same error, thank you in advance for the help

DATALOG
2025-02-23_10.25.37 sensor conected
2025-02-23_10.38.06 sensor disconected


You do not have the required permissions to view the files attached to this post.
User avatar
Dron_Gus
contributor
contributor
Posts: 480
Joined: Wed Nov 13, 2013 1:11 pm
Location: S-Pb
Github Username: dron0gus

Re: Wideband Controller: Fully Custom, no ASIC!

Post by Dron_Gus »

Please double check sensor - controller wiring. Seems incorrect.
JRD McLAREN
contributor
contributor
Posts: 441
Joined: Mon Mar 04, 2019 10:19 pm
Location: Slovakia

Re: Wideband Controller: Fully Custom, no ASIC!

Post by JRD McLAREN »

are you have my add-on board ..?? or not ..??

(i'm not sure, casue it was year++ ago, when we talking about it ... )
.. some Proteus and microRusEFI for sale in Europe ..
diegort5
Posts: 19
Joined: Fri Aug 18, 2023 12:55 pm

Re: Wideband Controller: Fully Custom, no ASIC!

Post by diegort5 »

diegort5 wrote:
Sun Feb 23, 2025 3:18 pm
Good morning everyone, today I am writing to ask for help, I have assembled a pair of rusefi wbo x0, I have already compiled the firmware, uploaded it to the board, connected the wbo to the microrusefi 0.6. 0 board and configured the wideband parameters, updated the firmware from tunerstudio and the green led is alternating, so far everything is fine when trying to heat the bosch 0258 017 359 sensor immediately the board sends an error 4 times blue led sensor overheat, but I touch it and it is cold, I perform the same test with the sensor disconnected and it sends me the same error, thank you in advance for the help

DATALOG
2025-02-23_10.25.37 sensor conected
2025-02-23_10.38.06 sensor disconected


HUMAN ERROR :lol:
problem solved, error in resistor R14, put a 62 OHM resistor and it is a 62K resistor, thanks, it is already working with a 61k resistor while I get the correct one
Post Reply