*/home/kwittwer/arm-2013.05/bin/arm-none-eabi-gcc -Wall -Wextra -Wconversion -Werror=implicit-function-declaration -fdiagnostics-show-option -O3 -fno-common -fno-exceptions -fdata-sections -ffunction-sections -c -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -DNO_ASSERT -DUSE_USB_OTG_FS=1 -DUSE_FILESYSTEM -DUSE_FILESYSTEM_SDIO -DUSE_MATH -DUSE_GRAPHICS -DUSB -DSTM32F4 -DARM -DFAKE_STDLIB -DSTM32 -DUSE_STDPERIPH_DRIVER=1 -DSTM32F407 -DSTM32F4DISCOVERY -DSTM32F4XX -I/home/kwittwer/Espruino/Espruino-master -I/home/kwittwer/Espruino/Espruino-master/targets -I/home/kwittwer/Espruino/Espruino-master/src -I/home/kwittwer/Espruino/Espruino-master/gen -I/home/kwittwer/Espruino/Espruino-master/libs/fat_sd -I/home/kwittwer/Espruino/Espruino-master/libs/math -I/home/kwittwer/Espruino/Espruino-master/libs/graphics -I/home/kwittwer/Espruino/Espruino-master/targetlibs/stm32f4 -I/home/kwittwer/Espruino/Espruino-master/targetlibs/stm32f4/lib -I/home/kwittwer/Espruino/Espruino-master/targetlibs/stm32f4/usblib -I/home/kwittwer/Espruino/Espruino-master/targetlibs/stm32f4/usb -I/home/kwittwer/Espruino/Espruino-master/targetlibs/arm -I/home/kwittwer/Espruino/Espruino-master/targets/stm32 -DNO_ASSERT -DUSE_USB_OTG_FS=1 -DUSE_FILESYSTEM -DUSE_FILESYSTEM_SDIO -DUSE_MATH -DUSE_GRAPHICS -DUSB -DSTM32F4 -DARM -DFAKE_STDLIB -DSTM32 -DUSE_STDPERIPH_DRIVER=1 -DSTM32F407 -DSTM32F4DISCOVERY -DSTM32F4XX libs/fat_sd/sdio_sdcard.c -o libs/fat_sd/sdio_sdcard.o
libs/fat_sd/sdio_sdcard.c: In function 'SD_Init':
libs/fat_sd/sdio_sdcard.c:147:3: error: implicit declaration of function 'RCC_AHBPeriphClockCmd' [-Werror=implicit-function-declaration]
libs/fat_sd/sdio_sdcard.c:147:25: error: 'RCC_AHBPeriph_SDIO' undeclared (first use in this function)
libs/fat_sd/sdio_sdcard.c:147:25: note: each undeclared identifier is reported only once for each function it appears in
libs/fat_sd/sdio_sdcard.c:150:25: error: 'RCC_AHBPeriph_DMA2' undeclared (first use in this function)
libs/fat_sd/sdio_sdcard.c: In function 'SD_GetCardInfo':
libs/fat_sd/sdio_sdcard.c:447:50: warning: conversion to 'uint8_t' from 'int' may alter its value [-Wconversion]
libs/fat_sd/sdio_sdcard.c:464:42: warning: conversion to 'uint16_t' from 'int' may alter its value [-Wconversion]
libs/fat_sd/sdio_sdcard.c:468:36: warning: conversion to 'uint16_t' from 'int' may alter its value [-Wconversion]
libs/fat_sd/sdio_sdcard.c:474:51: warning: conversion to 'uint8_t' from 'int' may alter its value [-Wconversion]
libs/fat_sd/sdio_sdcard.c:475:51: warning: conversion to 'uint8_t' from 'int' may alter its value [-Wconversion]
libs/fat_sd/sdio_sdcard.c:476:43: warning: conversion to 'uint8_t' from 'int' may alter its value [-Wconversion]
libs/fat_sd/sdio_sdcard.c:481:48: warning: conversion to 'uint32_t' from 'int' may change the sign of the result [-Wsign-conversion]
libs/fat_sd/sdio_sdcard.c:485:42: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion]
libs/fat_sd/sdio_sdcard.c:489:49: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion]
libs/fat_sd/sdio_sdcard.c:491:56: warning: conversion to 'uint8_t' from 'int' may alter its value [-Wconversion]
libs/fat_sd/sdio_sdcard.c:497:56: warning: conversion to 'uint8_t' from 'int' may alter its value [-Wconversion]
libs/fat_sd/sdio_sdcard.c:498:51: warning: conversion to 'uint8_t' from 'int' may alter its value [-Wconversion]
libs/fat_sd/sdio_sdcard.c:504:34: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion]
libs/fat_sd/sdio_sdcard.c:505:33: warning: conversion to 'uint32_t' from 'int' may change the sign of the result [-Wsign-conversion]
libs/fat_sd/sdio_sdcard.c:512:48: warning: conversion to 'uint32_t' from 'int' may change the sign of the result [-Wsign-conversion]
libs/fat_sd/sdio_sdcard.c:517:41: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion]
libs/fat_sd/sdio_sdcard.c:532:47: warning: conversion to 'uint8_t' from 'int' may alter its value [-Wconversion]
libs/fat_sd/sdio_sdcard.c:533:46: warning: conversion to 'uint8_t' from 'int' may alter its value [-Wconversion]
libs/fat_sd/sdio_sdcard.c:543:46: warning: conversion to 'uint8_t' from 'int' may alter its value [-Wconversion]
libs/fat_sd/sdio_sdcard.c:544:47: warning: conversion to 'uint8_t' from 'int' may alter its value [-Wconversion]
libs/fat_sd/sdio_sdcard.c:545:49: warning: conversion to 'uint8_t' from 'int' may alter its value [-Wconversion]
libs/fat_sd/sdio_sdcard.c:550:55: warning: conversion to 'uint8_t' from 'int' may alter its value [-Wconversion]
libs/fat_sd/sdio_sdcard.c:557:44: warning: conversion to 'uint8_t' from 'int' may alter its value [-Wconversion]
libs/fat_sd/sdio_sdcard.c:558:49: warning: conversion to 'uint8_t' from 'int' may alter its value [-Wconversion]
libs/fat_sd/sdio_sdcard.c:559:49: warning: conversion to 'uint8_t' from 'int' may alter its value [-Wconversion]
libs/fat_sd/sdio_sdcard.c:560:46: warning: conversion to 'uint8_t' from 'int' may alter its value [-Wconversion]
libs/fat_sd/sdio_sdcard.c:575:38: warning: conversion to 'uint16_t' from 'int' may alter its value [-Wconversion]
libs/fat_sd/sdio_sdcard.c:579:32: warning: conversion to 'uint16_t' from 'int' may alter its value [-Wconversion]
libs/fat_sd/sdio_sdcard.c:583:36: warning: conversion to 'uint32_t' from 'int' may change the sign of the result [-Wsign-conversion]
libs/fat_sd/sdio_sdcard.c:587:37: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion]
libs/fat_sd/sdio_sdcard.c:591:37: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion]
libs/fat_sd/sdio_sdcard.c:607:33: warning: conversion to 'uint32_t' from 'int' may change the sign of the result [-Wsign-conversion]
libs/fat_sd/sdio_sdcard.c:611:34: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion]
libs/fat_sd/sdio_sdcard.c:615:34: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion]
libs/fat_sd/sdio_sdcard.c:624:48: warning: conversion to 'uint16_t' from 'int' may alter its value [-Wconversion]
libs/fat_sd/sdio_sdcard.c:628:33: warning: conversion to 'uint16_t' from 'int' may alter its value [-Wconversion]
libs/fat_sd/sdio_sdcard.c: In function 'SD_ReadBlock':
libs/fat_sd/sdio_sdcard.c:910:30: error: 'DMA2_FLAG_TC4' undeclared (first use in this function)
libs/fat_sd/sdio_sdcard.c:910:5: error: too few arguments to function 'DMA_GetFlagStatus'
In file included from /home/kwittwer/Espruino/Espruino-master/targetlibs/stm32f4/lib/stm32f4xx_conf.h:41:0,
from /home/kwittwer/Espruino/Espruino-master/targetlibs/stm32f4/lib/stm32f4xx.h:6965,
from /home/kwittwer/Espruino/Espruino-master/gen/platform_config.h:9,
from libs/fat_sd/sdio_sdcard.h:36,
from libs/fat_sd/sdio_sdcard.c:23:
/home/kwittwer/Espruino/Espruino-master/targetlibs/stm32f4/lib/stm32f4xx_dma.h:582:12: note: declared here
libs/fat_sd/sdio_sdcard.c: In function 'SD_ReadMultiBlocks':
libs/fat_sd/sdio_sdcard.c:1108:32: error: 'DMA2_FLAG_TC4' undeclared (first use in this function)
libs/fat_sd/sdio_sdcard.c:1108:7: error: too few arguments to function 'DMA_GetFlagStatus'
In file included from /home/kwittwer/Espruino/Espruino-master/targetlibs/stm32f4/lib/stm32f4xx_conf.h:41:0,
from /home/kwittwer/Espruino/Espruino-master/targetlibs/stm32f4/lib/stm32f4xx.h:6965,
from /home/kwittwer/Espruino/Espruino-master/gen/platform_config.h:9,
from libs/fat_sd/sdio_sdcard.h:36,
from libs/fat_sd/sdio_sdcard.c:23:
/home/kwittwer/Espruino/Espruino-master/targetlibs/stm32f4/lib/stm32f4xx_dma.h:582:12: note: declared here
libs/fat_sd/sdio_sdcard.c: In function 'SD_WriteBlock':
libs/fat_sd/sdio_sdcard.c:1331:30: error: 'DMA2_FLAG_TC4' undeclared (first use in this function)
libs/fat_sd/sdio_sdcard.c:1331:5: error: too few arguments to function 'DMA_GetFlagStatus'
In file included from /home/kwittwer/Espruino/Espruino-master/targetlibs/stm32f4/lib/stm32f4xx_conf.h:41:0,
from /home/kwittwer/Espruino/Espruino-master/targetlibs/stm32f4/lib/stm32f4xx.h:6965,
from /home/kwittwer/Espruino/Espruino-master/gen/platform_config.h:9,
from libs/fat_sd/sdio_sdcard.h:36,
from libs/fat_sd/sdio_sdcard.c:23:
/home/kwittwer/Espruino/Espruino-master/targetlibs/stm32f4/lib/stm32f4xx_dma.h:582:12: note: declared here
libs/fat_sd/sdio_sdcard.c: In function 'SD_WriteMultiBlocks':
libs/fat_sd/sdio_sdcard.c:1603:32: error: 'DMA2_FLAG_TC4' undeclared (first use in this function)
libs/fat_sd/sdio_sdcard.c:1603:7: error: too few arguments to function 'DMA_GetFlagStatus'
In file included from /home/kwittwer/Espruino/Espruino-master/targetlibs/stm32f4/lib/stm32f4xx_conf.h:41:0,
from /home/kwittwer/Espruino/Espruino-master/targetlibs/stm32f4/lib/stm32f4xx.h:6965,
from /home/kwittwer/Espruino/Espruino-master/gen/platform_config.h:9,
from libs/fat_sd/sdio_sdcard.h:36,
from libs/fat_sd/sdio_sdcard.c:23:
/home/kwittwer/Espruino/Espruino-master/targetlibs/stm32f4/lib/stm32f4xx_dma.h:582:12: note: declared here
libs/fat_sd/sdio_sdcard.c: In function 'SDEnWideBus':
libs/fat_sd/sdio_sdcard.c:2425:3: warning: conversion to 'uint16_t' from 'uint32_t' may alter its value [-Wconversion]
libs/fat_sd/sdio_sdcard.c: In function 'FindSCR':
libs/fat_sd/sdio_sdcard.c:2686:34: warning: unused parameter 'rca' [-Wunused-parameter]
libs/fat_sd/sdio_sdcard.c: In function 'GPIO_Configuration':
libs/fat_sd/sdio_sdcard.c:2818:26: error: 'RCC_APB2Periph_GPIOC' undeclared (first use in this function)
libs/fat_sd/sdio_sdcard.c:2818:49: error: 'RCC_APB2Periph_GPIOD' undeclared (first use in this function)
libs/fat_sd/sdio_sdcard.c:2823:34: error: 'GPIO_Mode_AF_PP' undeclared (first use in this function)
libs/fat_sd/sdio_sdcard.c: In function 'DMA_TxConfiguration':
libs/fat_sd/sdio_sdcard.c:2841:17: error: 'DMA2_FLAG_TC4' undeclared (first use in this function)
libs/fat_sd/sdio_sdcard.c:2841:33: error: 'DMA2_FLAG_TE4' undeclared (first use in this function)
libs/fat_sd/sdio_sdcard.c:2841:49: error: 'DMA2_FLAG_HT4' undeclared (first use in this function)
libs/fat_sd/sdio_sdcard.c:2841:65: error: 'DMA2_FLAG_GL4' undeclared (first use in this function)
libs/fat_sd/sdio_sdcard.c:2841:3: error: too few arguments to function 'DMA_ClearFlag'
In file included from /home/kwittwer/Espruino/Espruino-master/targetlibs/stm32f4/lib/stm32f4xx_conf.h:41:0,
from /home/kwittwer/Espruino/Espruino-master/targetlibs/stm32f4/lib/stm32f4xx.h:6965,
from /home/kwittwer/Espruino/Espruino-master/gen/platform_config.h:9,
from libs/fat_sd/sdio_sdcard.h:36,
from libs/fat_sd/sdio_sdcard.c:23:
/home/kwittwer/Espruino/Espruino-master/targetlibs/stm32f4/lib/stm32f4xx_dma.h:583:6: note: declared here
libs/fat_sd/sdio_sdcard.c:2844:11: error: 'DMA2_Channel4' undeclared (first use in this function)
libs/fat_sd/sdio_sdcard.c:2848:20: error: 'DMA_InitTypeDef' has no member named 'DMA_MemoryBaseAddr'
libs/fat_sd/sdio_sdcard.c:2849:31: error: 'DMA_DIR_PeripheralDST' undeclared (first use in this function)
libs/fat_sd/sdio_sdcard.c:2857:20: error: 'DMA_InitTypeDef' has no member named 'DMA_M2M'
libs/fat_sd/sdio_sdcard.c:2857:31: error: 'DMA_M2M_Disable' undeclared (first use in this function)
libs/fat_sd/sdio_sdcard.c: In function 'DMA_RxConfiguration':
libs/fat_sd/sdio_sdcard.c:2874:17: error: 'DMA2_FLAG_TC4' undeclared (first use in this function)
libs/fat_sd/sdio_sdcard.c:2874:33: error: 'DMA2_FLAG_TE4' undeclared (first use in this function)
libs/fat_sd/sdio_sdcard.c:2874:49: error: 'DMA2_FLAG_HT4' undeclared (first use in this function)
libs/fat_sd/sdio_sdcard.c:2874:65: error: 'DMA2_FLAG_GL4' undeclared (first use in this function)
libs/fat_sd/sdio_sdcard.c:2874:3: error: too few arguments to function 'DMA_ClearFlag'
In file included from /home/kwittwer/Espruino/Espruino-master/targetlibs/stm32f4/lib/stm32f4xx_conf.h:41:0,
from /home/kwittwer/Espruino/Espruino-master/targetlibs/stm32f4/lib/stm32f4xx.h:6965,
from /home/kwittwer/Espruino/Espruino-master/gen/platform_config.h:9,
from libs/fat_sd/sdio_sdcard.h:36,
from libs/fat_sd/sdio_sdcard.c:23:
/home/kwittwer/Espruino/Espruino-master/targetlibs/stm32f4/lib/stm32f4xx_dma.h:583:6: note: declared here
libs/fat_sd/sdio_sdcard.c:2877:11: error: 'DMA2_Channel4' undeclared (first use in this function)
libs/fat_sd/sdio_sdcard.c:2881:20: error: 'DMA_InitTypeDef' has no member named 'DMA_MemoryBaseAddr'
libs/fat_sd/sdio_sdcard.c:2882:31: error: 'DMA_DIR_PeripheralSRC' undeclared (first use in this function)
libs/fat_sd/sdio_sdcard.c:2890:20: error: 'DMA_InitTypeDef' has no member named 'DMA_M2M'
libs/fat_sd/sdio_sdcard.c:2890:31: error: 'DMA_M2M_Disable' undeclared (first use in this function)
cc1: some warnings being treated as errors
make: *** [libs/fat_sd/sdio_sdcard.o] Error 1
*
It seems like an include error ... someone an idea how the includsructure works?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi folks,
I'm trying to add the SD-card functionality to the STM32F4-DISCOVERY image.
I changed the File "STM32F4DISCOVERY.py" as follows:
And the "Makefile" :
As Result I get the following errors:
It seems like an include error ... someone an idea how the includsructure works?