Skip to content

Commit 41db95f

Browse files
authored
Add linkermap target for size analysis (#227)
* correct url link for led glasses driver * add linkermap to ci
1 parent 66b6712 commit 41db95f

File tree

4 files changed

+17
-2
lines changed

4 files changed

+17
-2
lines changed

.github/workflows/githubci.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,18 @@ jobs:
6363
- name: Checkout Code
6464
uses: actions/checkout@v1
6565
with:
66-
submodules: true
66+
submodules: true
67+
68+
- name: Checkout linkermap
69+
uses: actions/checkout@v2
70+
with:
71+
repository: hathach/linkermap
72+
path: linkermap
6773

6874
- name: Install Toolchains
6975
run: |
7076
pip3 install adafruit-nrfutil uritemplate requests intelhex
77+
pip3 install linkermap/
7178
npm install --global xpm
7279
# 9.3.1-1.2.1 is xpack modified version which significantly increased compiled size to 6-7KB and cause flash overflow.
7380
# Skip this version for now, we will try again with next official release from ARM
@@ -78,6 +85,9 @@ jobs:
7885
run: |
7986
make BOARD=${{ matrix.board }} all
8087
make BOARD=${{ matrix.board }} copy-artifact
88+
89+
- name: Linker Map
90+
run: make BOARD=${{ matrix.board }} linkermap
8191

8292
- uses: actions/upload-artifact@v2
8393
with:

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,10 @@ clean:
373373
@$(RM) $(BUILD)
374374
@$(RM) $(BIN)
375375

376+
# linkermap must be install previously at https://github.com/hathach/linkermap
377+
linkermap: $(BUILD)/$(OUT_NAME).out
378+
@linkermap -v $<.map
379+
376380
# Create objects from C SRC files
377381
$(BUILD)/%.o: %.c
378382
@echo CC $(notdir $<)

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ This is a CDC/DFU/UF2 bootloader for nRF52 boards.
1010
- [Adafruit Feather nRF52840 Express](https://www.adafruit.com/product/4062)
1111
- [Adafruit Feather nRF52840 Sense](https://www.adafruit.com/product/4516)
1212
- [Adafruit ItsyBitsy nRF52840 Express](https://www.adafruit.com/product/4481)
13+
- [Adafruit LED Glasses Driver nRF52840](https://www.adafruit.com/product/5217)
1314
- Adafruit Metro nRF52840 Express
1415
- [Akizukidenshi AE-BL652-BO](https://akizukidenshi.com/catalog/g/gK-15567/)
1516
- [Electronut Labs Papyr](https://docs.electronut.in/papyr/)

src/boards/ledglasses_nrf52840/board.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,6 @@
6363
#define UF2_PRODUCT_NAME "Adafruit LED Glasses Driver nRF52840"
6464
#define UF2_VOLUME_LABEL "GLASSESBOOT"
6565
#define UF2_BOARD_ID "nRF52840-LedGlasses-revA"
66-
#define UF2_INDEX_URL "https://www.adafruit.com/"
66+
#define UF2_INDEX_URL "https://www.adafruit.com/product/5217"
6767

6868
#endif // _LEDGLASSES_NRF52840_H

0 commit comments

Comments
 (0)