Skip to content

Commit

Permalink
update stm32l031
Browse files Browse the repository at this point in the history
  • Loading branch information
olikraus committed Jan 7, 2025
1 parent f0eb0ed commit 2a88130
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
6 changes: 4 additions & 2 deletions sys/arm/stm32l031x4/drv8871/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ GC:=-Wl,--gc-sections -Wl,--undefined=__isr_vector
MAP:=-Wl,-Map=$(MAPNAME)
LFLAGS:=$(COMMON_FLAGS) $(GC) $(MAP)
#LDLIBS:=--specs=nosys.specs -lc -lc -lnosys -L$(LDSCRIPTDIR) -T $(LDSCRIPT)
LDLIBS:=--specs=nosys.specs -L$(LDSCRIPTDIR) -T $(LDSCRIPT)
LDLIBS:=--specs=nano.specs -L$(LDSCRIPTDIR) -T $(LDSCRIPT)
# the ubuntu version of arm-none-eabi-ar seems to be compiled in deterministic mode which will force timestamp to zero, use undeterministic mode instead (U-modifier)
ARFLAGS=rvU

# Additional Suffixes
.SUFFIXES: .elf .hex .bin .dis
Expand All @@ -117,7 +119,7 @@ all: $(DISNAME) $(HEXNAME)

.PHONY: upload
upload: $(DISNAME) $(HEXNAME) $(ELFNAME)
stm32flash -e 255 -g 0 -w $(HEXNAME) -v /dev/ttyUSB0
/home/kraus/git/stm32flash-code/stm32flash -e 255 -g 0 -w $(HEXNAME) -v /dev/ttyUSB0
$(SIZE) $(ELFNAME)

.PHONY: clean
Expand Down
6 changes: 4 additions & 2 deletions sys/arm/stm32l031x6/u8x8_test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ GC:=-Wl,--gc-sections -Wl,--undefined=__isr_vector
MAP:=-Wl,-Map=$(MAPNAME)
LFLAGS:=$(COMMON_FLAGS) $(GC) $(MAP)
#LDLIBS:=--specs=nosys.specs -lc -lc -lnosys -L$(LDSCRIPTDIR) -T $(LDSCRIPT)
LDLIBS:=--specs=nosys.specs -L$(LDSCRIPTDIR) -T $(LDSCRIPT)
LDLIBS:=--specs=nano.specs -L$(LDSCRIPTDIR) -T $(LDSCRIPT)
# the ubuntu version of arm-none-eabi-ar seems to be compiled in deterministic mode which will force timestamp to zero, use undeterministic mode instead (U-modifier)
ARFLAGS=rvU

# Additional Suffixes
.SUFFIXES: .elf .hex .bin .dis
Expand All @@ -117,7 +119,7 @@ all: $(DISNAME) $(HEXNAME)

.PHONY: upload
upload: $(DISNAME) $(HEXNAME) $(ELFNAME)
stm32flash -e 255 -g 0 -w $(HEXNAME) -v /dev/ttyUSB0
/home/kraus/git/stm32flash-code/stm32flash -e 255 -g 0 -w $(HEXNAME) -v /dev/ttyUSB0
$(SIZE) $(ELFNAME)

.PHONY: clean
Expand Down
3 changes: 3 additions & 0 deletions sys/arm/stm32l031x6/u8x8_test/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

![https://raw.githubusercontent.com/olikraus/stm32g031/main/motor_test_8/motor_test_schematic.jpg](https://raw.githubusercontent.com/olikraus/u8g2/sys/arm/stm32l031x6/u8x8_test/stm32l031.jpg)

Binary file added sys/arm/stm32l031x6/u8x8_test/stm32l031.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2a88130

Please sign in to comment.