Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be able to build with GCC #1

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

fromeijn
Copy link

Now able to build with GCC, not tested if Keil still works, but it should (please verify)

Moved all files one folder up so this repo is only for LCM

Added some basic readme, but does need more but we can add later.

Example output of build:

$ make clean && make 
rm -rf ./Build/*
  CC    Code/App/flag_bit.c
  CC    Code/App/task.c
  CC    Code/App/crc.c
  CC    Code/App/vesc_uasrt.c
  CC    Code/App/test.c
  CC    Code/App/ws2812.c
  CC    Code/Drive/usart.c
  CC    Code/Drive/time.c
  CC    Code/Drive/key.c
  CC    Code/Drive/spi.c
  CC    Code/Drive/adc.c
  CC    Code/Drive/power.c
  CC    Code/Drive/led_pwm.c
  CC    Code/Drive/io_ws2812.c
  CC    Code/Drive/buzzer.c
  CC    Code/Drive/led.c
  CC    Code/User/hk32f030m_it.c
  CC    Code/User/main.c
  CC    Library/HK32F030Mxx_Library_V1.1.6/HK32F030M/CMSIS/HK32F030M/Source/system_hk32f030m.c
  CC    Library/HK32F030Mxx_Library_V1.1.6/HK32F030M/HK32F030M_Lib/src/hk32f030m_gpio.c
  CC    Library/HK32F030Mxx_Library_V1.1.6/HK32F030M/HK32F030M_Lib/src/hk32f030m_iwdg.c
  CC    Library/HK32F030Mxx_Library_V1.1.6/HK32F030M/HK32F030M_Lib/src/hk32f030m_crc.c
  CC    Library/HK32F030Mxx_Library_V1.1.6/HK32F030M/HK32F030M_Lib/src/hk32f030m_flash.c
  CC    Library/HK32F030Mxx_Library_V1.1.6/HK32F030M/HK32F030M_Lib/src/hk32f030m_misc.c
  CC    Library/HK32F030Mxx_Library_V1.1.6/HK32F030M/HK32F030M_Lib/src/hk32f030m_i2c.c
  CC    Library/HK32F030Mxx_Library_V1.1.6/HK32F030M/HK32F030M_Lib/src/hk32f030m_usart.c
  CC    Library/HK32F030Mxx_Library_V1.1.6/HK32F030M/HK32F030M_Lib/src/hk32f030m_syscfg.c
  CC    Library/HK32F030Mxx_Library_V1.1.6/HK32F030M/HK32F030M_Lib/src/hk32f030m_dbgmcu.c
  CC    Library/HK32F030Mxx_Library_V1.1.6/HK32F030M/HK32F030M_Lib/src/hk32f030m_awu.c
  CC    Library/HK32F030Mxx_Library_V1.1.6/HK32F030M/HK32F030M_Lib/src/hk32f030m_spi.c
  CC    Library/HK32F030Mxx_Library_V1.1.6/HK32F030M/HK32F030M_Lib/src/hk32f030m_adc.c
  CC    Library/HK32F030Mxx_Library_V1.1.6/HK32F030M/HK32F030M_Lib/src/hk32f030m_wwdg.c
  CC    Library/HK32F030Mxx_Library_V1.1.6/HK32F030M/HK32F030M_Lib/src/hk32f030m_rcc.c
  CC    Library/HK32F030Mxx_Library_V1.1.6/HK32F030M/HK32F030M_Lib/src/hk32f030m_pwr.c
  CC    Library/HK32F030Mxx_Library_V1.1.6/HK32F030M/HK32F030M_Lib/src/hk32f030m_exti.c
  CC    Library/HK32F030Mxx_Library_V1.1.6/HK32F030M/HK32F030M_Lib/src/hk32f030m_tim.c
  CC    Library/HK32F030Mxx_Library_V1.1.6/HK32F030M/HK32F030M_Lib/src/hk32f030m_beep.c
  CC    Library/Debug/uart_printf.c
  CC    Library/Debug/systick_delay.c
  AS    Library/HK32F030Mxx_Library_V1.1.6/HK32F030M/CMSIS/HK32F030M/Source/GCC/startup_hk32f030mf4p6.s
  LD    Build/app.elf
Memory region         Used Size  Region Size  %age Used
             RAM:        2856 B         4 KB     69.73%
           FLASH:       12832 B        16 KB     78.32%
          EEPROM:          0 GB        448 B      0.00%
  OBJCP BIN     Build/app.bin
  OBJCP HEX     Build/app.hex

@surfdado
Copy link
Contributor

Love the idea of building on Linux, too bad this PR is 90% unrelated changes. Would love to pull this into my own fork but it's gonna be a lot of manual work for me to extract the relevant code changes

@fromeijn
Copy link
Author

i will see if i can apply it to your fork, without unrelated changes. I should have time for this tomorrow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants