Closed alexxy closed 5 years ago
Is it possible to build with PiO?
That's the only build method for the 32-bit platforms we officially support, so hopefully.
If I change board to genericSTM32F407VET6 it will try but…
I'm not sure how supported this platform is currently. Anyway, the compiler complaints mean…
The definition of DEBUG_NONE
in .platformio/packages/framework-arduinoststm32/STM32F4/cores/maple/libmaple/util.h
conflicts with DEBUG_NONE
defined by Marlin. We would need to change our define to eliminate the conflict.
Our definition of CYCLES_PER_MICROSECOND
in macros.h
assumes that the platform files will be included before macros.h
is included. We'll need to gain more control over the order of inclusion to prevent macros.h
being included before .platformio/packages/framework-arduinoststm32/STM32F4/variants/generic_f407v/generic_f407v.h
The types IWDG_HandleTypeDef
, TIM_HandleTypeDef
, and IRQn_Type
apparently don't exist (possibly as a result of the previous compile errors). If fixing the previous errors doesn't resolve this, we'll need to find out what the proper types are.
The STM32F4/F7 HALs currently requires the STM32GENERIC Arduino core ( https://github.com/danieleff/STM32GENERIC). To be able to use STM32GENERIC in PlatformIO it is necessary to use a modified STM32 development platform for PlatformIO, available here: https://github.com/maichaell/platform-ststm32.
I'm currently working on modifying the STM32F4 HAL to also support the official STM32 Arduino Core ( https://github.com/stm32duino/Arduino_Core_STM32). I will create a PR later today. Unfortunately the official STM32 Arduino core is not yet working with the PIO STM32 dev platform so currently you have to build using Arduino, either in Arduino IDE or Arduino for VS Code.
On Tue, Jun 12, 2018 at 12:59 AM Scott Lahteine notifications@github.com wrote:
Is it possible to build with PiO?
That's the only build method for the 32-bit platforms we officially support, so hopefully.
If I change board to genericSTM32F407VET6 it will try but…
I'm not sure how supported this platform is currently. Anyway, the compiler complaints mean…
-
The definition of DEBUG_NONE in .platformio/packages/framework-arduinoststm32/STM32F4/cores/maple/libmaple/util.h conflicts with DEBUG_NONE defined by Marlin. We would need to change our define to eliminate the conflict.
Our definition of CYCLES_PER_MICROSECOND in macros.h assumes that the platform files will be included before macros.h is included. We'll need to gain more control over the order of inclusion to prevent macros.h being included before .platformio/packages/framework-arduinoststm32/STM32F4/variants/generic_f407v/generic_f407v.h
The types IWDG_HandleTypeDef, TIM_HandleTypeDef, and IRQn_Type apparently don't exist (possibly as a result of the previous compile errors). If fixing the previous errors doesn't resolve this, we'll need to find out what the proper types are.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/MarlinFirmware/Marlin/issues/11000#issuecomment-396413053, or mute the thread https://github.com/notifications/unsubscribe-auth/AQ8NJLpRcgLK4i8yVIULgR1Q9AcbikTQks5t7vZlgaJpZM4UjcgW .
If you want to build using PIO and the STM32GENERIC core, in your platformio.ini file, set: platform = https://github.com/xC0000005/platform-ststm32.git#develop and framework to arduinostm32generic.
It should automatically download everything and compile, but I'm seriously looking at switching to the official STM32 HAL because STM32GENERIC has a number of problems I'd rather not spend time chasing down.
Stupid question , but using official STM32 is there any way to use the serial over USB port or do they have to implement it yet?
In my fork of the official STM32 core I have implemented USB CDC support for my STM32F407 "Arm'ed" board. It is based on the work in progress for USB support in the original repository.
Please have a look here:
https://github.com/ktand/Arduino_Core_STM32/tree/armed_board_support
Karl
On Sun, Jun 17, 2018 at 9:49 PM mr-miky notifications@github.com wrote:
Stupid question , but using official STM32 is there any way to use the serial over USB port or do they have to implement it yet?
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/MarlinFirmware/Marlin/issues/11000#issuecomment-397901966, or mute the thread https://github.com/notifications/unsubscribe-auth/AQ8NJIOXEUlnrTgjWA_8NH-Q934rFF0Qks5t9rLNgaJpZM4UjcgW .
This weekend I see to try it. However, I have a question about how to handle the DTR. In cards with FT232 / CH340 the dtr is used to reset the microcontroller of the printer. At first, I thought it was ok, just hook a function to the DTR handler that stays in loop and the hardware watchdog will reset everything accordingly.
The problem that follows is that the USB serial emulation is also resetted.
Pprograms like Pronterface act on the DTR but do not close ttyACM0 so in addition to blocking they prevent the registration of ttyACM0 and then lunux creates ttyACM1. I do not know how to do a partial reset of the only part related to the print, if I call setup () what happens to the stack, the heap and the variables already initialized ?? !!
Hi, any progress here? I'm running in exactly the same problems as described by @alexxy
I'm using: platform = https://github.com/platformio/platform-ststm32.git framework = arduino board = disco_f407vg (or using board = genericSTM32F407VET6)
Any help would be awesome. Thx alot.
See if the above-linked PR helps to resolve some or all of your build errors.
@alexxy problem solved?
@thinkyhead think we can close this one
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Is it possible to build with PiO?
Using default
platformio.ini
seems not.If I change board to genericSTM32F407VET6 it will try but
Build Log
``` $ ~/.local/bin/pio run -e STM32F4 [Tue Jun 12 00:35:54 2018] Processing STM32F4 (platform: ststm32; board: genericSTM32F407VET6; framework: arduino) -------------------------------------------------------------------------------------------------------------------------------------- Verbose mode can be enabled via `-v, --verbose` option PLATFORM: ST STM32 > STM32F407VE (192k RAM. 512k Flash) SYSTEM: STM32F407VET6 168MHz 128KB RAM (502.23KB Flash) DEBUG: CURRENT(stlink) EXTERNAL(stlink) Converting Marlin.ino Library Dependency Finder -> http://bit.ly/configure-pio-ldf LDF MODES: FINDER(chain) COMPATIBILITY(soft) Collected 11 compatible libraries Scanning dependencies... Dependency Graph |--