Any general discussion around the firmware, what is does, how it does it etc.
User avatar
By moussie369
#69186
The available menus are configured via the "speeduino.ini" file in the "reference" folder, maybe pazi88 disabled it because it is currently not working ?
In any case, if it's disabled there must be a good reason, but you could try editing the file to enable access to the menus, I don't see how that could damage anything, still do it at your own risk.

Your best shot is to get an answer directly from pazi88.
By LPG2CV
#69187
Not really familiar with this, but I wonder if you need to select Stm32 somewhere in the project?
Can't really direct as I'm on my mobile. :)
By Jun Takei
#69209
Thank you everyone for your replies.

I asked the question via pazi88's youtube. I'll let you know if I find out anything.
By Jun Takei
#69220
I received a reply from pazi88.
He said that it should work fine with STM32.

I think there is a problem with my hardware or software build or download.
I will investigate further and post again.

Thank you everyone.
By Jun Takei
#69239
I tried forcibly bringing up the SD log menu.
I understand that speeduino.ini is copied to TS's mainController.ini, so I modified the SD log description in mainController.ini to make it the same as the Tennsy board. It seems that the presence of RTC is a condition for boards other than the Tennsy board.

When using an SD card formatted with exFat on a PC, an error message appears.

I formatted the SD card in the TS dialog.
When I then pressed the reinitialize button, the error message remained, but the free space on the SD card (8GB) was displayed.

It seems that communication with the SD card is probably occurring and the capacity is being obtained, so it does not appear to be completely non-operational.

Thank you.
Attachments
mainCtrl_ini_mod.jpg
mainCtrl_ini_mod.jpg (66.21 KiB) Viewed 939 times
TS_sdlog_menu.jpg
TS_sdlog_menu.jpg (77.42 KiB) Viewed 939 times
TS_sdlog_cons.jpg
TS_sdlog_cons.jpg (24.45 KiB) Viewed 939 times
By Jun Takei
#69295
Although it is limited, I was able to take an SD log.

1. Insert an SD card formatted with exFat on the PC and power on the speeduino.

2. Start TS, at this point the total size of the SD card on the SD console is unknown.
(If I press the start log button at this point, an SD error will occur)

3. Format with the "Format SD Card" button on the SD console.

4. Press the "Reset and wait" button.
(At this point the total size of the SD card is displayed correctly)

5. Press the "Start SD Log" button on the SD console to take a log.
(This log can be downloaded to a PC)

However, if I turn off the speeduino, the total size of the SD card becomes unknown again.
It seems that the cause is that the SD card information cannot be obtained correctly.

Thank you.
Attachments
ts_sd_log_ok.jpg
ts_sd_log_ok.jpg (44.86 KiB) Viewed 810 times
By Jun Takei
#69354
After investigating using an SWD debugger and SPI protocol analyzer, I found out the reason why the SD card could not be accessed.

When TS starts, the SD card is accessed correctly (CMD0, CMD8, etc.), but after that, the MOSI and MISO signals become LOW, and the FF dummy access to the SD card is not sent correctly, and the CMD9 command (to get the card capacity) times out.

The MOSI and MISO signals become LOW because they are overwritten with boardID=3 of arduino_MEGA by the setPinMapping function. The boardID of BMW PnP PCBs by pazi88. is 31.
When I format the SD card in the SD console, the MOSI and MISO pins are reconfigured, so the SD card becomes accessible.

So here are my questions.

-How is the controller board type boardID (config2.pinMappin) used in the speeduino program determined? I imagine it is transferred from TS to speeduino. However, only the controller types Arduino, Teensy, and STM32 can be set in TS. I have multiple boards using each controller.

I've attached a photo of the debugging process and a spreadsheet summarizing the pinLayout in speeduino.ini and the boardID in init.cpp.

Thank you.
Attachments
I_240826_1.jpg
I_240826_1.jpg (95.1 KiB) Viewed 653 times
pinLyaout_calc.jpg
pinLyaout_calc.jpg (126.65 KiB) Viewed 653 times
By Jun Takei
#69360
I watched pazi88's YouTube video and thought the settings were sufficient.
I completely forgot that there was a board type in the engine settings.
I'll ask again if I don't understand anything else.

Thank you.
User avatar
By PSIG
#69552
pazi88 wrote: Thu Apr 23, 2020 3:49 pm STM32F4 can currently do 8x8 sequential with speeduino FW so there is that. It also has built in SD card support, so getting SD-card logging to work should be easy.
Hooray! I got my 1.3 up and alive following your video. 8-) I'm looking at a winter project V8 COP ignition-only, and will design my own spark-only IO board if required (options?). I can make one with an existing pinout to simplify and stay out of code changes.

  1. Is there a generic FW and/or tune that will let me jump straight to 8IGN for testing?
  2. I don't see latest FW with fast ADC - is it standard now, or how do I tell it to run fast?
  3. Link to SD card procedures for logging?
  4. Any further dev, with perhaps a USB-C for clearance?
Thanks to @Pazi88 for this option to play with! 8-)
  • 1
  • 30
  • 31
  • 32
  • 33
  • 34
TSDash speeduino

Has anyone got this successfully working consisten[…]

Hi runesm, Thank you! Yes, it is indeed the old 4 […]

Simultaneous injector execution

Log attached along with video which shows the in[…]

Rover Mini 1300SPI does not work well

I'm currently in the process of changing only the […]

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