[libmaple] Black F407VET6

Limited support for STM32F4 Discovery, Nucleo and custom F4 boards
Post Reply
vitor_boss
Posts: 61
Joined: Wed Apr 19, 2017 9:50 am

Re: [libmaple] Black F407VET6

Post by vitor_boss » Fri Jun 02, 2017 9:07 pm

stevestrong wrote:I updated the first post with upload information.

vitor, if you still have problems, please post here the Arduino build output.
Which sketch do you try to build? As I told, it builds fine for me (on Win10 64b).
That: https://github.com/VitorBoss/speeduino

Code: Select all

C:\Users\Vitor\Documents\Arduino\hardware\Arduino_STM32\STM32F4\cores\maple\libmaple\HardwareSPI.cpp:68:6: error: 'BOARD_SPI3B_NSS_PIN' was not declared in this scope

     {BOARD_SPI3B_NSS_PIN,

      ^

C:\Users\Vitor\Documents\Arduino\hardware\Arduino_STM32\STM32F4\cores\maple\libmaple\HardwareSPI.cpp:69:6: error: 'BOARD_SPI3B_SCK_PIN' was not declared in this scope

      BOARD_SPI3B_SCK_PIN,

      ^
      
C:\Users\Vitor\Documents\Arduino\hardware\Arduino_STM32\STM32F4\cores\maple\libmaple\HardwareSPI.cpp:396:81: error: 'const stm32_pin_info' has no member named 'gpio_bit'

                                                      mosii->gpio_device, mosii->gpio_bit);

                                                                                 ^

exit status 1
Error compiling for board Generic STM32F407V series.
Last edited by vitor_boss on Tue Jun 06, 2017 8:06 pm, edited 1 time in total.

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

Re: [libmaple] Black F407VET6

Post by stevestrong » Fri Jun 02, 2017 9:10 pm

In Arduino IDE, you have to select Tools->Boards->"Generic STM32F407V series", and after that the Tools->USB Configuration->USB serial (CDC), if you want to have serial over USB.

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

Re: [libmaple] Black F407VET6

Post by stevestrong » Fri Jun 02, 2017 9:15 pm

You are certainly not using the right software package (branch) because the HardwareSPI stuff should not exist at all in my latest version...
check here: https://github.com/stevstrong/Arduino_S ... e/libmaple
Please do a clean install (download & extract) of the mentioned branch.

vitor_boss
Posts: 61
Joined: Wed Apr 19, 2017 9:50 am

Re: [libmaple] Black F407VET6

Post by vitor_boss » Fri Jun 02, 2017 9:27 pm

My bad, I did a dirty install, but I had downloaded from your master branch earlier

One last question, what library is used on PlatformIO?

edit: Blink sketch uses 11904 bytes of RAM, is that right? maple mini uses 8K

vitor_boss
Posts: 61
Joined: Wed Apr 19, 2017 9:50 am

Re: [libmaple] Black F407VET6

Post by vitor_boss » Sat Jun 03, 2017 12:49 am

Using the board Serial and a generic USB Serial converter with 'Flash Loader Demo' application is possible to write binaries on processor

vitor_boss
Posts: 61
Joined: Wed Apr 19, 2017 9:50 am

Re: [libmaple] Black F407VET6

Post by vitor_boss » Tue Jun 06, 2017 8:06 pm

stevestrong wrote:You are certainly not using the right software package (branch) because the HardwareSPI stuff should not exist at all in my latest version...
check here: https://github.com/stevstrong/Arduino_S ... e/libmaple
Please do a clean install (download & extract) of the mentioned branch.
Do you want a copy of ST MCD library for a SPI base?

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

Re: [libmaple] Black F407VET6

Post by stevestrong » Tue Jun 06, 2017 9:35 pm

There is already a working, DMA capable SPI library in the libraries folder. https://github.com/stevstrong/Arduino_S ... es/SPI/src

acronis
Posts: 142
Joined: Thu Mar 02, 2017 12:32 pm

Re: [libmaple] Black F407VET6

Post by acronis » Fri Jun 16, 2017 1:10 pm

Hello.

IDE 1.8.2 , you have the library installed stevestrong has the libraries for 16 bit parallel display and https://github.com/stevstrong/Adafruit_ ... 6bit_STM32 https://github.com/stevstrong/Arduino_S ... F4_variant . example Graphisctest. error

Code: Select all

In file included from C:\Users\VIC\ Documents\Arduino\\libraries Adafruit_TFTLCD_16bit_STM32-master\examples\graphicstest\graphicstest.ino:7:0:

C:\Users\VIC\Documents\Arduino\libraries\Adafruit_TFTLCD_16bit_STM32-master\src/Adafruit_TFTLCD_16bit_STM32.h in the void writeCommand function '(uint16_t)':

C:\Users\VIC\Documents\Arduino\libraries\Adafruit_TFTLCD_16bit_STM32-master\src/Adafruit_TFTLCD_16bit_STM32.h:64:22: error: 'fsmcCommand' was not declared in this area

#define lcdCommand (*fsmcCommand)

^

C:\Users\Виктор\Documents\Arduino\libraries\Adafruit_TFTLCD_16bit_STM32-master\src/Adafruit_TFTLCD_16bit_STM32.h:68:27 note: in expansion of macro 'lcdCommand'

#define writeCmd(d) { lcdCommand = d; } //(l&0x00FF); }

^

C:\Users\VIC\Documents\Arduino\libraries\Adafruit_TFTLCD_16bit_STM32-master\src/Adafruit_TFTLCD_16bit_STM32.h:200:2 note: in expansion of macro writeCmd"

writeCmd ();

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

Re: [libmaple] Black F407VET6

Post by stevestrong » Fri Jun 16, 2017 1:14 pm

Please check the very first post of this thread, there is written to use another branch, the generic_f4, which contains the latest developments, also support for FSMC, which the black_f4 branch does not include.

acronis
Posts: 142
Joined: Thu Mar 02, 2017 12:32 pm

Re: [libmaple] Black F407VET6

Post by acronis » Fri Jun 16, 2017 1:29 pm

set . error
C:\Users\51FB~1\appdata\local\temp\arduino_modified_sketch_882808\graphicstest.Ino:1:28: fatal error: libmaple/FCSM.h: no such file or directory

#include <libmaple/FCSM.h>

Post Reply