Issue compiling for STM32F767
Issue compiling for STM32F767
Hi!
I have compiled before with ChibiStudio, but now I am getting errors.
poten.cpp
#define SPI_POT_CONFIG SPI_CR1_BR_2 | SPI_CR1_BR_1 | SPI_CR1_CRCL
SPI_CR1_CRCL not declared in this scope.
If I delete it, this error shows:
hardware.cpp
static I2CConfig i2cfg = { HAL_I2C_F7_100_TIMINGR, 0, 0 };
invalid convertion from int to I2Cdutycycle_t
I am only adding #define STM32F7XX in global.h
Am I doing it wrong?
I have compiled before with ChibiStudio, but now I am getting errors.
poten.cpp
#define SPI_POT_CONFIG SPI_CR1_BR_2 | SPI_CR1_BR_1 | SPI_CR1_CRCL
SPI_CR1_CRCL not declared in this scope.
If I delete it, this error shows:
hardware.cpp
static I2CConfig i2cfg = { HAL_I2C_F7_100_TIMINGR, 0, 0 };
invalid convertion from int to I2Cdutycycle_t
I am only adding #define STM32F7XX in global.h
Am I doing it wrong?
- AndreyB
- Site Admin
- Posts: 14331
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: Issue compiling for STM32F767
Please push your changes to maybe github fork so that we can see exactly the problem
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
- AndreyB
- Site Admin
- Posts: 14331
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: Issue compiling for STM32F767
Actually whatever we have for https://github.com/rusefi/rusefi/tree/master/firmware/config/boards/NUCLEO_F767 is in https://github.com/rusefi/rusefi/blob/master/firmware/config/boards/NUCLEO_F767/!compile-nucleo_f767.bat
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Re: Issue compiling for STM32F767
I cant get the command line options to work.russian wrote: ↑Wed Jan 30, 2019 11:53 pmActually whatever we have for https://github.com/rusefi/rusefi/tree/master/firmware/config/boards/NUCLEO_F767 is in https://github.com/rusefi/rusefi/blob/master/firmware/config/boards/NUCLEO_F767/!compile-nucleo_f767.bat
But does I need to do more than define STM32F7 in global.h?
- AndreyB
- Site Admin
- Posts: 14331
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: Issue compiling for STM32F767
You should be able to get command line to work.
Yes, much more changes.
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Re: Issue compiling for STM32F767
I see now the last time I compiled i changed Rusefi.mk:
ifeq ("$(wildcard $(RULESFILE))","")
$(info Invoking "git submodule update --init")
$(shell git submodule update --init)
$(info Invoked "git submodule update --init")
# make is not happy about newly checked out module for some reason but next invocation would work
$(error Please run 'make' again)
endif
PROJECT_BOARD=NUCLEO_F767
PROJECT_CPU=ST_STM32F7
EXTRA_PARAMS="-DDUMMY -DSTM32F767xx -DEFI_ENABLE_ASSERTS=FALSE -DCH_DBG_ENABLE_CHECKS=FALSE -DCH_DBG_ENABLE_TRACE=FALSE -DCH_DBG_ENABLE_ASSERTS=FALSE -DCH_DBG_ENABLE_STACK_CHECK=FALSE -DCH_DBG_FILL_THREADS=FALSE -DCH_DBG_THREADS_PROFILING=FALSE"
DEBUG_LEVEL_OPT="-O2"
# CPU-dependent defs
ifeq ($(PROJECT_CPU),ST_STM32F7)
CPU_STARTUP = startup_stm32f7xx.mk
CPU_PLATFORM = STM32F7xx/platform.mk
CPU_HWLAYER = stm32f7
endif
And makefile:
ifeq ($(LDSCRIPT),)
LDSCRIPT= config/stm32f7ems/STM32F76xxI.ld
endif
- AndreyB
- Site Admin
- Posts: 14331
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: Issue compiling for STM32F767
You should be able to get command line to work.
Please push your changes to maybe github fork so that we can see exactly the problem.
Please push your changes to maybe github fork so that we can see exactly the problem.
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
- AndreyB
- Site Admin
- Posts: 14331
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: Issue compiling for STM32F767
You are not running command line, you are clicking on the .bat file in your File Explorer. Stop double-clicking on the .bat file in your File Explorer. Launch https://www.lifewire.com/how-to-open-command-prompt-2618089 "command prompt". Move your mouse away. Learn how to use command prompt. Learn how to "cd", learn how to install cygwin and have "make" on command prompt and how to adjust your PATH.
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Re: Issue compiling for STM32F767
Actually I am using command window.russian wrote: ↑Thu Jan 31, 2019 3:53 amYou are not running command line, you are clicking on the .bat file in your File Explorer. Stop double-clicking on the .bat file in your File Explorer. Launch https://www.lifewire.com/how-to-open-command-prompt-2618089 "command prompt". Move your mouse away. Learn how to use command prompt. Learn how to "cd", learn how to install cygwin and have "make" on command prompt and how to adjust your PATH.
I used that for my computer all my youth before windows.
Along with my Commodore 64
It's the Cygwin part I have missed.
- AndreyB
- Site Admin
- Posts: 14331
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: Issue compiling for STM32F767
Cygwin is what gives you 'make' command since 'make' is how you compile rusEfi
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
- AndreyB
- Site Admin
- Posts: 14331
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: Issue compiling for STM32F767
https://github.com/rusefi/rusefi/issues/631 was just implemented - rusEfi now uses Chibios18 not Chibios17, this could be improving the situation around F7 support.
I believe that one of the ways to get F7 or H7 support in rusEfi is either ship me a board or sponsor me getting a board locally in the US.
I believe that one of the ways to get F7 or H7 support in rusEfi is either ship me a board or sponsor me getting a board locally in the US.
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
- AndreyB
- Site Admin
- Posts: 14331
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: Issue compiling for STM32F767
Turned out I have a https://www.st.com/en/evaluation-tools/nucleo-f746zg.html board I just forgot about it! Latest version now has https://github.com/rusefi/rusefi/tree/master/firmware/config/boards/NUCLEO_F746 which complies for that board, I will try to start a car on F7 tomorrow just for fun.
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
- AndreyB
- Site Admin
- Posts: 14331
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: Issue compiling for STM32F767
https://rusefi.com/build_server/ now has official https://rusefi.com/build_server/rusefi_bundle_stm32f746.zip and https://rusefi.com/build_server/rusefi_bundle_stm32f767.zip
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute