[libmaple] SDIO

Limited support for STM32F4 Discovery, Nucleo and custom F4 boards
zmemw16
Posts: 1680
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: [libmaple] especially sdio.h

Post by zmemw16 » Sat Jul 01, 2017 2:59 pm

i7 jessie 8.8, official arduino 1.8.3 64bit, latest generic_f4, directory SDIO exists :D
using the demo code, it says

Code: Select all

"/home/stephen/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w  -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_generic_f407v -DVECT_TAB_BASE -DERROR_LED_PORT=GPIOA -DERROR_LED_PIN=7 -w -x c++ -E -CC -mcpu=cortex-m4 -DF_CPU=168000000L -DARDUINO=10803 -DARDUINO_STM32GenericF407VET6 -DARDUINO_ARCH_STM32F4  -mthumb -DSTM32_HIGH_DENSITY -DSTM32F4 -DBOARD_generic_f407v -DUSB_NC  -mthumb -D__STM32F4__ "-I/home/stephen/sketchbook/hardware/ss-Arduino_STM32/STM32F4/system/libmaple" "-I/home/stephen/sketchbook/hardware/ss-Arduino_STM32/STM32F4/cores/maple/libmaple/usbF4" "-I/home/stephen/sketchbook/hardware/ss-Arduino_STM32/STM32F4/cores/maple" "-I/home/stephen/sketchbook/hardware/ss-Arduino_STM32/STM32F4/variants/generic_f407v" "-I/home/stephen/sketchbook/hardware/ss-Arduino_STM32/STM32F4/libraries/SDIO" "-I/home/stephen/sketchbook/libraries/SdFat/src" "-I/home/stephen/sketchbook/hardware/ss-Arduino_STM32/STM32F4/libraries/SPI/src" "/home/stephen/sketchbook/hardware/ss-Arduino_STM32/STM32F4/libraries/SDIO/SdioF4.cpp" -o "/tmp/arduino_build_711891/preproc/ctags_target_for_gcc_minus_e.cpp"
/home/stephen/sketchbook/hardware/ss-Arduino_STM32/STM32F4/libraries/SDIO/SdioF4.cpp:22:27: fatal error: libmaple\sdio.h: No such file or directory
 #include <libmaple\sdio.h>
wading through this lot

Code: Select all

stephen@i71:~$ ls /home/stephen/sketchbook/hardware/ss-Arduino_STM32/STM32F4/system/libmaple
Arduino.h
stephen@i71:~$ ls /home/stephen/sketchbook/hardware/ss-Arduino_STM32/STM32F4/cores/maple/libmaple/usbF4
STM32_USB_Device_Library  STM32_USB_OTG_Driver  usb.c  usb.h  VCP
stephen@i71:~$ ls /home/stephen/sketchbook/hardware/ss-Arduino_STM32/STM32F4/cores/maple
avr              Client.h            HardwareTimer.h  itoa.h       pwm.cpp     Udp.h               wirish_debug.h      wirish_shift.cpp  WString.cpp
bit_constants.h  cxxabi-compat.cpp   io.h             libmaple     pwm.h       usb_serial.cpp      wirish_digital.cpp  wirish_time.cpp   WString.h
bits.h           ext_interrupts.cpp  IPAddress.cpp    Printable.h  Server.h    usb_serial.h        wirish.h            wirish_time.h
boards.cpp       ext_interrupts.h    IPAddress.h      Print.cpp    Stream.cpp  wirish_analog.cpp   wirish_math.cpp     wirish_types.h
boards.h         HardwareTimer.cpp   itoa.c           Print.h      Stream.h    wirish_constants.h  wirish_math.h       WProgram.h
stephen@i71:~$ ls /home/stephen/sketchbook/hardware/ss-Arduino_STM32/STM32F4/variants/generic_f407v
generic_f407v.cpp  generic_f407v.h  ld  pin_map.c  pins_arduino.h  stm32_isrs.S  stm32_vector_table.S  variant.h  wirish
stephen@i71:~$ ls /home/stephen/sketchbook/hardware/ss-Arduino_STM32/STM32F4/libraries/SDIO
SdioF4.cpp  SdioF4.h
stephen@i71:~$ ls /home/stephen/sketchbook/libraries/SdFat/src
BlockDriver.h  FatLib  FreeStack.h  MinimumSerial.cpp  MinimumSerial.h  SdCard  SdFatConfig.h  SdFatConfig.h~  SdFat.h  SpiDriver  SysCall.h
stephen@i71:~$ /home/stephen/sketchbook/hardware/ss-Arduino_STM32/STM32F4/libraries/SPI/src
bash: /home/stephen/sketchbook/hardware/ss-Arduino_STM32/STM32F4/libraries/SPI/src: Is a directory
stephen@i71:~$ ls /home/stephen/sketchbook/hardware/ss-Arduino_STM32/STM32F4/libraries/SPI/src
SPI.cpp  SPI.h
says it's right

Code: Select all

Using library SDIO in folder: /home/stephen/sketchbook/hardware/ss-Arduino_STM32/STM32F4/libraries/SDIO (legacy)
Using library SdFat at version 1.0.1 in folder: /home/stephen/sketchbook/libraries/SdFat 
Using library SPI at version 1.0 in folder: /home/stephen/sketchbook/hardware/ss-Arduino_STM32/STM32F4/libraries/SPI 
my directories structure

Code: Select all

stephen@i71:~/sketchbook/hardware$ ll
total 20
drwxr-xr-x 2 stephen stephen 4096 Jul  1 14:58 ./
drwxr-xr-x 7 stephen stephen 4096 Jul  1 15:26 ../
lrwxrwxrwx 1 stephen stephen   60 Jun 30 10:09 cm-STM32GENERIC -> /home/stephen/GITHUB-040317/cm/cm-STM32GENERIC-300620170800//
lrwxrwxrwx 1 stephen stephen   89 Jul  1 14:58 ss-Arduino_STM32 -> /home/stephen/GITHUB-040317/stevestrong/f4_generic/Arduino_STM32-generic-f4-010720171500//
lrwxrwxrwx 1 stephen stephen   64 Jun 26 21:25 STM32GENERIC -> /home/stephen/GITHUB-040317/danieleff/STM32GENERIC-260620172021//
note, it never gets past compiling, so the Black F407zgt doesn't count.

stephen

stevestrong
Posts: 2061
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany
Contact:

Re: [libmaple] SDIO

Post by stevestrong » Sun Jul 02, 2017 6:58 am

I think the compiler is missing the file "sdio.h" under \core\maple\libmaple\.
https://github.com/stevstrong/Arduino_S ... e/libmaple
Please check that you have this folder and the files.

zmemw16
Posts: 1680
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: [libmaple] SDIO

Post by zmemw16 » Sun Jul 02, 2017 9:55 am

i know i'm going regret this, ss-Arduino_STM32 is a 'ln -s'
i think it shouldn't make any difference.
i changed it anyway, it's now a directory.

Code: Select all

~/sketchbook/hardware/ss-Arduino_STM32/STM32F4/cores/maple/libmaple$ ll sdi*
-rw-r--r-- 1 stephen stephen  5384 Jun 20 20:03 sdio.c
-rw-r--r-- 1 stephen stephen 13451 Jun 20 20:03 sdio.h
stephen

stevestrong
Posts: 2061
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany
Contact:

Re: [libmaple] SDIO

Post by stevestrong » Sun Jul 02, 2017 10:17 am

Hm, you're on linux, and I cannot help you there (I am working exclusively on Win machines).

Since the path "/cores/maple" is included to the compile/build process, it should theoretically be able to include any file from the subdirectory "/libmaple/" when having an absolute reference thereto...

Is it maybe a "/" vs. "\" issue?

zmemw16
Posts: 1680
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: [libmaple] SDIO

Post by zmemw16 » Sun Jul 02, 2017 10:52 am

while (1) {find_wall; bash_head;} :shock:

the other one i 'm having fun with is I2CScanner, (but it has worked) Wire.h not found
just tried with yours as the only Arduino_STM directory, still the same
fresh copy coming up

curiously only the SDIO files have the backslash, the other libraries are forward slashes.
30min later, there are a lot of usb associated files full of the little bleeps

###########################################################
went slightly mad with a recursive find/replace on *.cpp, *.c, *.h, *.html, Makefile, Doxyfile
only really saw your SDIO dir changed.

anyone, i found myself setting in chrismicro repo, board as Black F407VE with SDIODirListWriteRead.ino

it works :D :D

stephen
Last edited by zmemw16 on Sun Jul 02, 2017 2:08 pm, edited 4 times in total.

User avatar
Pito
Posts: 1738
Joined: Sat Mar 26, 2016 3:26 pm
Location: Rapa Nui

Re: [libmaple] SDIO

Post by Pito » Sun Jul 02, 2017 11:16 am

sdio.cpp ?
Pukao Hats Cleaning Services Ltd.

zmemw16
Posts: 1680
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: [libmaple] SDIO

Post by zmemw16 » Sun Jul 02, 2017 1:02 pm

yes, these
libmaple/sdio.h
libmaple/dma.h

i think i was surprised i think in the cores libmaple directory, nothing

finally it compiles and links, that's my blink_millis sketch
I2CScanner still can't find Wire.h

srp

stevestrong
Posts: 2061
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany
Contact:

Re: [libmaple] SDIO

Post by stevestrong » Sun Jul 02, 2017 1:14 pm

I am not sure if the Wire lib is implemented at all for F4, at least in my generic F4 branch I cannot find it.
You could copy/paste from F1 lib directory and test, maybe it works out of the box :shock:
If it does not work, please open a separates thread for that.

zmemw16
Posts: 1680
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: [libmaple] SDIO

Post by zmemw16 » Sun Jul 02, 2017 1:21 pm

i may well be thinking of a different box (HAL), cm's is most likely

not implemented would certainly be an explanation. :(
stephen

zmemw16
Posts: 1680
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: [libmaple] SDIO

Post by zmemw16 » Sun Jul 02, 2017 2:13 pm

would a diff -r be of use to you ? attached
ss-Arduino_STM32 is my backslash edited version.

stephen
Attachments
xx.log.gz
(101.07 KiB) Downloaded 6 times

Post Reply