Skip to content

Commit

Permalink
Merge pull request #12 from kamilsss655/fix-stability
Browse files Browse the repository at this point in the history
Fix freezes.
  • Loading branch information
kamilsss655 authored Dec 26, 2023
2 parents 8e46203 + 8e0cf4c commit 70f9b19
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,10 @@ debug:
/opt/openocd/bin/openocd -c "bindto 0.0.0.0" -f interface/jlink.cfg -f dp32g030.cfg

flash:
k5prog -F -YYY -b firmware.bin
k5prog -F -YYY -b compiled-firmware/firmware.bin

docker:
./compile-with-docker.sh

flash-openocd:
/opt/openocd/bin/openocd -c "bindto 0.0.0.0" -f interface/jlink.cfg -f dp32g030.cfg -c "write_image firmware.bin 0; shutdown;"
Expand All @@ -472,4 +475,4 @@ clean:
$(RM) $(call FixPath, $(TARGET).bin $(TARGET).packed.bin $(TARGET) $(OBJS) $(DEPS))

run:
make clean && make -j8 && sleep 5 && make flash
make docker && make flash
2 changes: 1 addition & 1 deletion compile-with-docker.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh
docker build -t uvk5 .
docker run --rm -v ${PWD}/compiled-firmware:/app/compiled-firmware uvk5 /bin/bash -c "cd /app && make && cp firmware* compiled-firmware/"
docker run --rm -v ${PWD}/compiled-firmware:/app/compiled-firmware uvk5 /bin/bash -c "cd /app && make clean && make && cp firmware* compiled-firmware/"

0 comments on commit 70f9b19

Please sign in to comment.