Application running on STM32F746G.
TouchGFX.
This project is built on the stm32f746g-discovery board.
It was intended to be an diy solution to a race dash.
IDE used: STM32CubeIDE 1.3.0. Gfx tool: TouchGFX 4.13.0 Designer.
- You need an can bus tranceiver, I have used the SN65HVD230.
- Can TX is connected to PB9 on mcu.
- Can RX is connected to PB8 on mcu.
- 3d printable case is in the making.
- Clone project.
- Install STM32CubeIDE 1.3.0 and TouchGFX 4.13.0.
- Open EcumasterBlackCanWithTouchGFX.IOC.
- Click Additional Software.
- Make sure STMicroelectronics.X-CUBE-TOUCHGFX 4.13.0 is installed and Application is set to TouchGFX generator.
- Project uses C and C++.
- To work on GFX open:
project root/TouchGFX/EcumasterBlackCanWithTouchGFX.touchgfx
with TouchGFX. - Text resources in TouchGFX are set up as wildcard buffers.
- Mapping of data to screen buffers are done in
MainView::updateVal(uint8_t* newValue)
which you find in :project explorer/TouchGFX/gui/src/main_screen/MainView.cpp
. If you are planning on extending the struct you need to do a search. Data is sent from main through a FreeRTOS queue. And handled in TouchGFX part of the code. - Canbus input data is handled in
project root/Core/Src/main.c
in functionvoid HAL_CAN_RxFifo0MsgPendingCallback(CAN_HandleTypeDef *hcan)
. - Do not be afraid to experiment. Have fun!
Image bellow shows the can settings used for the display to work with ecumaster.