Any general discussion around the firmware, what is does, how it does it etc.
By porschenstein
#62674
LPG2CV - you nailed it! There is a dwell correction that was killing it. I set all the compensations to 100% and now see functional ignition and fuel waveforms/readings. I should have known that, I use TS to turn similar settings on an MS3pro. I appreciate you taking the time to look at it.

I'm planning to build my own board, but am currently using the BMW PnP profile since it was easily recognizable (case 31) in the init.ino case statements (as far as the TS selection goes) and appears to have the capacity for 8x8 sequential.

Next I'll be trying to get the extra 2 cylinders firing...

Thanks again!!!
By LPG2CV
#62675
Well done :D

Have you looked at case 60? Bottom of the list in board seletion in TS.
By porschenstein
#62680
I did look at case 60. I also pulled down the files for the Spectre board. Ultimately it seemed the BMW PnP was closer to where I am headed. Is there an advantage to case 60 that I missed?

I changed the number of injectors & coils to 8 in TS and boom -> firing on all 8. This is awesome...
By Mr.Grimes
#62706
I have a problem with the ignition too. Probably software/firmware related since it's occurring on two boards right on the STM output pin. There is a signal reacting to RPM, dwell, etc. it's just really low voltage - 0,4V. It's supposed to be digital (3,3v) output right?
Also, it seems like only IGN1 is visible on the oscilloscope, can't find the IGN2 signal. Battery voltage is ok (11,4v).
Attachments
signal.jpg
signal.jpg (1.29 MiB) Viewed 3712 times
By Mr.Grimes
#62717
I figured out most of it. Signal is proper voltage, scope is just stuck at voltage/10. So 3,3v on chip and 5v on the output.
JimStim didnt show blinking LED since i had spark going low and unless you are at very minimum RPM, you see only solid LED.
Just one weird thing about IGN channels - single channel and wasted spark (4cyl) still uses IGN3 as output in what seems like like sequential frequency. IGN 4 is turned off as it should be.
So in single channel settings: IGN1 is firing four times per cycle, IGN2 is off, IGN3 fires once per cycle, IGN4 is off.

Can somebody test this?
By k6xox
#63108
Tjeerd wrote: Thu Jun 21, 2018 8:04 pm Hi All,

I find the speeduino project very interesting! I did an EFI project with a microsquirt (megasquirt efi system) before (still not running perfect but it works). I have one speeduino working on my bench with a little help of the ardustim. Very nice.

For now i am trying to get the speeduino code working on the STM32F407VET6 as a side project (https://www.ebay.com/itm/253073739790) What is the status on the STM32 versions?

The first hurdle is the missing EEPROM of course. Has someone already tried to get the spimemory library and the onboard SPIflash chips working? (W25Q16 for my example board)? What else is missing in the code for the STM32 versions so far? I see a lot of code already tailored for the STM32 boards but it does not work completely as i understand form various forum posts. I want to help implementing and debugging the missing stuff, but i don't want to do the work twice of course. :-D.


------------------------------------------- below this line info will be updated from time to time with the latest and greatest -------------------------------------------
This is the updated manual to compile/test the code on a Black stm32F407VET6 board from eBay.

Install tool chain
1. Install the arduino IDE (1.8.12)
2. Install the stm32duino core from: https://github.com/stm32duino/Arduino_Core_STM32 (version 2.0.0)
3. install https://www.st.com/content/st_com/en/pr ... eprog.html

Build code
1.a For bleeding edge Download the speeduino master code from noisy master (https://github.com/noisymime/speeduino) or alternatively from (https://github.com/Tjeerdie/speeduino). I try to keep an STM32 working version in my Master branch at all times.
1.b Release 202108 can be downloaded and that works fine on STM32F407 and not on STM32F4x1.
2. Open the code in de arduino IDE.
3. In arduino IDE select Tools->Board: GENERIC STM32F4 series
4. In Arduino IDE select Tools->Board part number: "BLACK F407VE" (or one of the other supported MCUs)
5. In Arduino IDE select Tools->USART support: Enabled (generic serial)
6. In Arduino IDE select Tools->USB support: CDC (generic serial)
7. If internal flash as emulated EEPROM is ok, skip step 8 and 9:
8. Open the globals.h file located in project folder
9. Look at line 84..87 and select your storage solution. When there is no selection the internal flash is used.
10. Build the speeduino project.

Hardware modifications STM32F407VE black boards
1. Remove the R21 resistor from the board (close to USB port)

Upload
1. Put the jumper close to the CPU (BT0) to connect to the 3.3 volt instead of GND (one step up)
2. Reset the board.
3. In Arduino IDE select Programmer: "STM32CubeProgrammer DFU"
4. Upload the code
5. Put the Jumper back in its original position.
4. Reset the board

After these steps you should be able to connect to the board using the USB cable and use tuner studio. Tested the compilation in Linux Ubuntu 18.04.3 LTS. When there is no SPI flash available but this is selected as EEPROM emulation or the incorrect chip select pin (CSpin) is selected for the flash chip, the board will lockup during boot.

To select the CSpin for SPI flash change the #define USE_SPI_EEPROM PB0 in globals.h to the pin number where to find the correct pin.

--- Compatible hardware designs ----
https://github.com/Tjeerdie/SPECTRE maintainer Tjeerd
https://stm32-base.org/boards/STM32F407 ... -V1.0.html maintainer iLeeeZi
https://easyeda.com/pazi88/Arduino_Mega_2560-z92kCUO6o maintainer pazi88

--- Compatible STM32 MCU ----
STM32F407VE Fully functional
STM32F407ZET Connects to Tuner Studio (In Arduino IDE Choose "black F407ZE")

For 202108 stm32F4x1 are broken. Master is working at the moment (12/09/2021)
STM32F411CE @vitor_boss has a car running on these . (In Arduino IDE Choose "blackPill F411CE")
STM32F401CC (In Arduino IDE Choose "blackPill F401CC")
This is very good project, Is this still development?
I found the KiCAD file in Github , So Can i use that v 0.54 and send to fabricate PCB. STM is seems perfect match to my project that will run on 6-8 Cyls.

"I am not the comercial garage just a dude try to build stuff for Fun"

Thank you for share

Pete
By cpurage
#63685
pazi88 wrote: Mon Jun 15, 2020 6:45 am I even have my engine running on STM32, in 6-cyl fully sequential mode:
Image

It runs perfectly but everything isn't yet working 100% I have some problems getting all 16 analog inputs to work and also the SPI flash refuses to work on my HW. But slowly getting there.
Hi Pasi,

Sorry for directly quoting your post but I’m a bit stuck, I’ve visited your OSHWlab and ordered 5 x Mega “f407” boards from LCPCB and I already made one in combination with 0.4.3c board and successfully flashed base flash with STM32 cube programmer with this file:
https://github.com/pazi88/STM32_mega/bl ... lFlash.bin

So after that I’ve added new project in Visual Studio and replaced the 3 x files from this path as well:


https://github.com/pazi88/STM32_mega/tr ... iles/2.0.0

So I’ve successfully compiled and uploaded to the board and now even Tuner Studio is successfully able to recognize the board when I create a new project in tuner studio, the only concern that I have is because I’m running it with such switches configuration:

- native USB on STM32, set the two USB switches to "On" and FTDI switches to "Off". No Serial0 available in this mode (bluetooth dongles don't work etc.) DEFAULT

So could this be the reason to not be able to see the MAP sensor showing around 100kPa(because the speeduino board is not connected to the 12V battery ?) or may be I’ve soldered it wrongly (in the different direction) ? In tuner studio I see only SD ready in green and a few in red but the MAP sensor shows 0kPa ? Here are pictures attached of the boards for reference.

P.S. I’m trying to run it on a 2003 Lexus IS300 SportCross (2JZ-GE) because I saw you mentioned it can run 6 cylinder in fully sequential mode(currently my stock ECU is running in 6 cyl fully sequential mode as well) so I’m willing to give it a try too ;)
Attachments
IMG_7797.jpeg
IMG_7797.jpeg (1.61 MiB) Viewed 3059 times
IMG_7796.jpeg
IMG_7796.jpeg (1.52 MiB) Viewed 3059 times
IMG_7795.jpeg
IMG_7795.jpeg (2.12 MiB) Viewed 3059 times
By cpurage
#63687
So @pazi88

I assume I need a base tune file now ?
Attachments
IMG_7799.jpeg
IMG_7799.jpeg (380.5 KiB) Viewed 3033 times
IMG_7798.jpeg
IMG_7798.jpeg (241.75 KiB) Viewed 3033 times
User avatar
By pazi88
#63731
Yes. You need to upload basetune just like into arduino mega. Then the MAP sensor will start showing correct readings.

I also recommend using pre-compiled binaries from my GitHub by STM cube programmer. To be sure everything works as it should.
  • 1
  • 25
  • 26
  • 27
  • 28
  • 29
  • 31

Hi there, I'm doing preliminary research and hope[…]

BMW E23 M30B28

Where did the plugs come from? I've heard there ar[…]

Injected 2 stroke Bultaco

Alternator testing. Its a 3 phase circa 200w alter[…]

NO2C crank signal issues

Once again PSIG, thank you. Note this is set up fo[…]

Still can't find what you're looking for?