Skip to content

Commit

Permalink
Cleanups (#56)
Browse files Browse the repository at this point in the history
Yet another attempt to remove some eclipse files, and fix travis file
for new location of bootloader.
  • Loading branch information
pwittich authored May 17, 2020
1 parent afa8bcc commit 7d96a84
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 92 deletions.
2 changes: 0 additions & 2 deletions .settings/ilg.gnumcueclipse.managedbuild.cross.arm.prefs

This file was deleted.

75 changes: 0 additions & 75 deletions .settings/org.eclipse.cdt.codan.core.prefs

This file was deleted.

11 changes: 0 additions & 11 deletions .settings/org.eclipse.cdt.core.prefs

This file was deleted.

4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ deploy:
file:
- projects/cm_mcu/gcc/cm_mcu.axf
- projects/cm_mcu/gcc/cm_mcu.bin
- boot_loader/gcc/bl_main.axf
- boot_loader/gcc/bl_main.bin
- projects/boot_loader/gcc/bl_main.axf
- projects/boot_loader/gcc/bl_main.bin
skip_cleanup: true
on:
tags: true
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Microcontroller source code, initially targeting the [TI Tiva TM4C1290NCPDT](htt
The project is a makefile project; you can also use the Eclipse-based [GNU MCU Eclipse](https://gnu-mcu-eclipse.github.io) IDE which integrates well with the Segger debugger. An Eclipse project is included in the repo. Again the build proceeds via `make` even if you use the IDE. Follow the instructions on this page, also for windows you'll need to install `make`, `echo` and `rm` (as explained on the GNU MCU web page, see below.) You will also need a command-line `git`. The windows compilation has not been extensively tested.
## Compiler and source code
For the compiler use the [generic GNU ARM compiler](https://developer.arm.com/open-source/gnu-toolchain/gnu-rm), [8-2018q4](https://launchpad.net/gcc-arm-embedded/+announcement/15181) release. Since this is a bare-metal application we are using the "arm-none-eabi" version of the tools (i.e., gcc becomes arm-none-eabi-gcc). This compiler is available as a part of the Petalinux suite but it has some weird options on how glibc is compiled so we are _not_ using it for this project. The compiler linked above is available for Windows, Linux and MacOS.
There is also partial support for clang, mainly to allow use of its syntax checking and static code analysis.

To compile the source code simply type `make` at the top-level directory. To get debugging symbols type `make DEBUG=1`. To see the gory details of the build add `VERBOSE=1` to the command line.
```
Expand Down Expand Up @@ -37,9 +38,10 @@ Please try to use the below versions to avoid unnecessary issues. In particular

| Software | Release |
|----------|---------|
| arm-none-eabi compiler | 8-2018q4 |
| arm-none-eabi compiler | 8-2018q4* |
| FreeRTOS | 10.2 |
| Tivaware | included in build|
Also tested with the 9-2019 version, which is more aggressive in the warnings.

## Documentation
See the wiki page on this github for documentation.
2 changes: 1 addition & 1 deletion projects/cm_mcu/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ ${COMPILER}/cm_mcu.axf: ${ROOT}/driverlib/${COMPILER}/libdriver.a
${COMPILER}/cm_mcu.axf: cm_mcu.ld
SCATTERgcc_cm_mcu=cm_mcu.ld
ENTRY_cm_mcu=ResetISR
CFLAGSgcc=-DTARGET_IS_TM4C129_RA1 -DUSE_FREERTOS
CFLAGS+=-DTARGET_IS_TM4C129_RA1 -DUSE_FREERTOS

# this rule forces the main function to be recompiled when
# any of the dependencies are out of date, to get the
Expand Down

0 comments on commit 7d96a84

Please sign in to comment.