Skip to content

[BUG] SD Card Not detected on STM32F103VE #26491

Closed
@therealalexschwartz

Description

Did you test the latest bugfix-2.1.x code?

Yes, and the problem still exists.

Bug Description

Hello all,

I have a Longer LK4 with a stock STM32F103VT06 chip. I used the prebuilt Marlin Binary from here but was unable to build from source and make changes after I noticed some bugs.

I'm attempting to port those changes to the 2.1.x version so I am able to run the latest and hopefully contribute back my findings. I have been able to get everything working except the onboard SD Card slot.

The printer fails to detect an SD card and when attached over USB console I see it echo out "No SD Card Detected". I can confirm my SD card works as when I fall back to the pre-compiled version I am able to print from the same SD Card.

I enabled SD Card support in the configurations as well as in the advanced config file specifying onboard. Ive attempted various things found in other issues but with no success. I am unable to find what the original author did to enable SD card support if its a HAL file or a custom pins.h they wrote but so far all my attempts have failed. Hoping maybe someone knows where I should be looking to emulate what they did.

Any and all help would be greatly appreciated as after this point I am hoping the whole printer will be functional.

I am using the maple build, as when I use the non maple build I get a boot loop.

Build Command: platformio run --environment STM32F103VE_longer_maple

Thank you!

Bug Timeline

New

Expected behavior

I expected the SD card slot to be detected and usable.

Actual behavior

I am unable to mount or use an SD card as it is not detected and over console reports No SDcard on boot.

Steps to Reproduce

  1. Install the latest marlin bugfix on a Longer LK4

Version of Marlin Firmware

bugfix-2.1.x 2023-11-29

Printer model

Longer LK4

Electronics

Stock: STM32F103VT06

LCD/Controller

TS_V19

Other add-ons

BLtouch Sensor

Bed Leveling

ABL Linear grid

Your Slicer

Cura

Host Software

SD Card (headless)

Don't forget to include

  • A ZIP file containing your Configuration.h and Configuration_adv.h.

Additional information & file uploads

Configuration.zip
platformio.ini.zip

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions