Skip to content

Commit

Permalink
fix amiibo_db_gen.py
Browse files Browse the repository at this point in the history
  • Loading branch information
solosky committed Aug 26, 2024
1 parent 68bf502 commit 491a162
Show file tree
Hide file tree
Showing 5 changed files with 78 additions and 1 deletion.
14 changes: 14 additions & 0 deletions fw/application/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,12 @@ SRC_FILES += \
$(CHAMELEON_ROOT)/application/src/rfid/reader/hf/mf1_toolbox.c
endif

# cmd
ifeq ($(BOARD),NEO)
SRC_FILES += \
$(CHAMELEON_ROOT)/application/src/app_cmd.c
endif

# Include folders common to all targets
INC_FOLDERS += \
$(SDK_ROOT)/components/nfc/ndef/generic/message \
Expand Down Expand Up @@ -740,6 +746,11 @@ else
CFLAGS += -DNDEBUG
CFLAGS += -DU8G2_USE_LARGE_FONTS
endif

ifeq ($(BOARD),NEO)
CFLAGS += -DPROJECT_CHAMELEON_ULTRA
endif

CFLAGS += -DCFG_TUSB_MCU=OPT_MCU_NRF5X
CFLAGS += -DMBEDTLS_CONFIG_FILE=\"nrf_crypto_mbedtls_config.h\"
CFLAGS += -DM_USE_THREAD_BACKEND=0
Expand Down Expand Up @@ -862,6 +873,9 @@ gen:
flash_ocd: default
openocd -f openocd/program.cfg

gdb_ocd: default
openocd -f openocd/debug.cfg

flash_all_ocd: default
openocd -f interface/cmsis-dap.cfg -c "transport select swd" -f target/nrf52.cfg -d2 -c init -c "reset init" -c halt -c "nrf51 mass_erase" -c "program $(SDK_ROOT)/components/softdevice/$(SD_VERSION_INC)/hex/$(SD_VERSION_INC)_nrf52_7.2.0_softdevice.hex verify" -c "program $(OUTPUT_DIRECTORY)/pixljs.hex verify" -c "reset" -c exit

Expand Down
2 changes: 1 addition & 1 deletion fw/application/openocd/program.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
adapter driver cmsis-dap
transport select swd
source [find target/nrf52.cfg]
adapter speed 7000
adapter speed 10000
init
reset init
halt
Expand Down
5 changes: 5 additions & 0 deletions fw/build_all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
make clean
make -j8 bl RELEASE=1 BOARD=NEO
make -j8 app RELEASE=1 BOARD=NEO
cd application && make ota RELEASE=1 APP_VERSION=3 BOARD=NEO && cd ..
cd application && make full RELEASE=1 APP_VERSION=3 BOARD=NEO && cd ..
58 changes: 58 additions & 0 deletions fw/ld/pixl.js.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"folders": [
{
"path": "../.."
},
{
"path": "../../../../../Documents/nRF5_SDK_17.1.0_ddde560"
}
],
"settings": {
"files.associations": {
"vfs.h": "c",
"ntag_def.h": "c",
"vfs_driver_fs.h": "c",
"vfs_meta.h": "c",
"u8x8.h": "c",
"mui_u8g2.h": "c",
"mui_defines.h": "c",
"u8g2.h": "c",
"rgb_marquee.h": "c",
"utils.h": "c",
"array": "c",
"deque": "c",
"forward_list": "c",
"list": "c",
"string": "c",
"unordered_map": "c",
"unordered_set": "c",
"vector": "c",
"string_view": "c",
"initializer_list": "c",
"ranges": "c",
"hal_nfc_t2t.h": "c",
"optional": "c",
"istream": "c",
"ostream": "c",
"ratio": "c",
"system_error": "c",
"functional": "c",
"tuple": "c",
"type_traits": "c",
"utility": "c",
"mui_list_view.h": "c",
"nrf_log.h": "c",
"string.h": "c",
"math.h": "c",
"mlib_common.h": "c",
"bitset": "c",
"__locale": "c",
"cstdint": "cpp",
"ios": "c",
"nrf_gpio.h": "c",
"locale": "c",
"board_mcu.h": "c",
"typeinfo": "c"
}
}
}
Binary file added fw/scripts/bdfconv
Binary file not shown.

0 comments on commit 491a162

Please sign in to comment.