Page 33 of 34
Re: STM32 development
Posted: Sun Aug 11, 2024 5:00 pm
by moussie369
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.
Re: STM32 development
Posted: Sun Aug 11, 2024 6:27 pm
by LPG2CV
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.
Re: STM32 development
Posted: Wed Aug 14, 2024 1:22 am
by Jun Takei
Thank you everyone for your replies.
I asked the question via pazi88's youtube. I'll let you know if I find out anything.
Re: STM32 development
Posted: Wed Aug 14, 2024 8:48 pm
by Jun Takei
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.
Re: STM32 development
Posted: Sat Aug 17, 2024 11:19 pm
by Jun Takei
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.
Re: STM32 development
Posted: Sat Aug 24, 2024 1:07 pm
by Jun Takei
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.
Re: STM32 development
Posted: Sun Sep 01, 2024 10:22 pm
by Jun Takei
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.
Re: STM32 development
Posted: Mon Sep 02, 2024 5:45 am
by jonbill
Board type is in engine settings.
Re: STM32 development
Posted: Mon Sep 02, 2024 1:59 pm
by Jun Takei
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.
Re: STM32 development
Posted: Sat Sep 21, 2024 8:00 pm
by PSIG
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.
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.
- Is there a generic FW and/or tune that will let me jump straight to 8IGN for testing?
- I don't see latest FW with fast ADC - is it standard now, or how do I tell it to run fast?
- Link to SD card procedures for logging?
- Any further dev, with perhaps a USB-C for clearance?
Thanks to @Pazi88 for this option to play with!