mirror of
https://github.com/pvvx/RTL00MP3.git
synced 2025-01-12 13:35:17 +00:00
update
This commit is contained in:
parent
a60bde21d0
commit
6ae1d97ec0
12 changed files with 17 additions and 26 deletions
|
@ -519,7 +519,7 @@ int wifi_connect(
|
||||||
struct {
|
struct {
|
||||||
u8 bssid[ETH_ALEN + 2];
|
u8 bssid[ETH_ALEN + 2];
|
||||||
void * p;
|
void * p;
|
||||||
} bs = { 0 };
|
} bs;
|
||||||
memcpy(bs.bssid, pWifi->bssid.octet, ETH_ALEN);
|
memcpy(bs.bssid, pWifi->bssid.octet, ETH_ALEN);
|
||||||
for(int i = 0; i < ETH_ALEN; i++) {
|
for(int i = 0; i < ETH_ALEN; i++) {
|
||||||
flg += bs.bssid[i];
|
flg += bs.bssid[i];
|
||||||
|
|
|
@ -30,14 +30,13 @@ OBJCOPY ?= $(CROSS_COMPILE)objcopy
|
||||||
OBJDUMP ?= $(CROSS_COMPILE)objdump
|
OBJDUMP ?= $(CROSS_COMPILE)objdump
|
||||||
|
|
||||||
# Make bunary tools
|
# Make bunary tools
|
||||||
TOOLS_PATH ?= component/soc/realtek/8195a/misc/iar_utility/common/tools/
|
TOOLS_PATH ?= $(SDK_PATH)../tools/
|
||||||
ifneq ($(shell uname), Linux)
|
ifneq ($(shell uname), Linux)
|
||||||
EXE = .exe
|
EXE = .exe
|
||||||
|
IMAGETOOL ?= $(TOOLS_PATH)rtlaimage/rtlaimage$(EXE)
|
||||||
|
else
|
||||||
|
IMAGETOOL ?= $(TOOLS_PATH)rtlaimage/rtlaimage.py
|
||||||
endif
|
endif
|
||||||
PICK = $(TOOLS_PATH)pick$(EXE)
|
|
||||||
PADDING = $(TOOLS_PATH)padding$(EXE)
|
|
||||||
CHCKSUM = $(TOOLS_PATH)checksum$(EXE)
|
|
||||||
IMAGETOOL = $(TOOLS_PATH)rtlaimage$(EXE)
|
|
||||||
|
|
||||||
# openocd tools
|
# openocd tools
|
||||||
OPENOCD = $(OPENOCD_PATH)openocd.exe
|
OPENOCD = $(OPENOCD_PATH)openocd.exe
|
||||||
|
@ -90,7 +89,7 @@ mp: OTA_IMAGE = $(BIN_DIR)/ota_mp.bin
|
||||||
|
|
||||||
|
|
||||||
.PHONY: genbin flashburn reset test readfullflash flashboot flashwebfs flash_OTA runram runsdram
|
.PHONY: genbin flashburn reset test readfullflash flashboot flashwebfs flash_OTA runram runsdram
|
||||||
.NOTPARALLEL: all mp genbin1 genbin23 flashburn reset test readfullflash _endgenbin flashwebfs flash_OTA
|
.NOTPARALLEL: all mp genbin flashburn reset test readfullflash _endgenbin flashwebfs flash_OTA
|
||||||
|
|
||||||
all: $(ELFFILE) $(FLASH_IMAGE) _endgenbin
|
all: $(ELFFILE) $(FLASH_IMAGE) _endgenbin
|
||||||
mp: $(ELFFILE) $(FLASH_IMAGE) _endgenbin
|
mp: $(ELFFILE) $(FLASH_IMAGE) _endgenbin
|
||||||
|
|
|
@ -4,16 +4,14 @@
|
||||||
SDK_PATH ?= ../RTL00MP3/RTL00_SDKV35a/
|
SDK_PATH ?= ../RTL00MP3/RTL00_SDKV35a/
|
||||||
#GCC_PATH = d:/MCU/GNU_Tools_ARM_Embedded/6.2017-q1-update/bin/# + or set in PATH
|
#GCC_PATH = d:/MCU/GNU_Tools_ARM_Embedded/6.2017-q1-update/bin/# + or set in PATH
|
||||||
#OPENOCD_PATH = d:/MCU/OpenOCD/bin/# + or set in PATH
|
#OPENOCD_PATH = d:/MCU/OpenOCD/bin/# + or set in PATH
|
||||||
TOOLS_PATH ?= $(SDK_PATH)component/soc/realtek/8195a/misc/iar_utility/common/tools/
|
|
||||||
FLASHER_TYPE ?= Jlink
|
FLASHER_TYPE ?= Jlink
|
||||||
#FLASHER_TYPE ?= OCD
|
|
||||||
FLASHER_PATH ?= $(SDK_PATH)flasher/
|
FLASHER_PATH ?= $(SDK_PATH)flasher/
|
||||||
JLINK_PATH ?= D:/MCU/SEGGER/JLink_V612i/
|
JLINK_PATH ?= D:/MCU/SEGGER/JLink_V612i/
|
||||||
JLINK_GDBSRV ?= JLinkGDBServer.exe
|
JLINK_GDBSRV ?= JLinkGDBServer.exe
|
||||||
#---------------------------
|
#---------------------------
|
||||||
# Default
|
# Default
|
||||||
#---------------------------
|
#---------------------------
|
||||||
# Compilation tools
|
# Compilation (GCC) tools
|
||||||
CROSS_COMPILE = $(GCC_PATH)arm-none-eabi-
|
CROSS_COMPILE = $(GCC_PATH)arm-none-eabi-
|
||||||
AR = $(CROSS_COMPILE)ar
|
AR = $(CROSS_COMPILE)ar
|
||||||
CC = $(CROSS_COMPILE)gcc
|
CC = $(CROSS_COMPILE)gcc
|
||||||
|
@ -25,20 +23,15 @@ SIZE = $(CROSS_COMPILE)size
|
||||||
OBJCOPY = $(CROSS_COMPILE)objcopy
|
OBJCOPY = $(CROSS_COMPILE)objcopy
|
||||||
OBJDUMP = $(CROSS_COMPILE)objdump
|
OBJDUMP = $(CROSS_COMPILE)objdump
|
||||||
|
|
||||||
|
# Binary tools
|
||||||
|
TOOLS_PATH ?= $(SDK_PATH)../tools/
|
||||||
|
|
||||||
|
# openocd tools
|
||||||
|
OPENOCD ?= $(OPENOCD_PATH)openocd
|
||||||
|
|
||||||
# TARGET dirs
|
# TARGET dirs
|
||||||
TARGET ?= build
|
TARGET ?= build
|
||||||
OBJ_DIR ?= $(TARGET)/obj
|
OBJ_DIR ?= $(TARGET)/obj
|
||||||
BIN_DIR ?= $(TARGET)/bin
|
BIN_DIR ?= $(TARGET)/bin
|
||||||
ELFFILE ?= $(OBJ_DIR)/$(TARGET).axf
|
ELFFILE ?= $(OBJ_DIR)/$(TARGET).axf
|
||||||
|
|
||||||
# Make bunary tools
|
|
||||||
ifneq ($(shell uname), Linux)
|
|
||||||
EXE = .exe
|
|
||||||
endif
|
|
||||||
PICK = $(TOOLS_PATH)pick$(EXE)
|
|
||||||
PADDING = $(TOOLS_PATH)padding$(EXE)
|
|
||||||
CHCKSUM = $(TOOLS_PATH)checksum$(EXE)
|
|
||||||
|
|
||||||
# openocd tools
|
|
||||||
OPENOCD = $(OPENOCD_PATH)openocd
|
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ mp: LIBS +=_rtsp _usbh _usbd
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# m c nosys gcc
|
# m c nosys gcc
|
||||||
PATHLIBS = sdk/component/soc/realtek/8195a/misc/bsp/lib/common/gcc
|
PATHLIBS = sdk/component/soc/realtek/8195a/misc/bsp/lib/common/GCC
|
||||||
ifdef USE_SDRAM
|
ifdef USE_SDRAM
|
||||||
CFLAGS += -DUSE_SDRAM=1
|
CFLAGS += -DUSE_SDRAM=1
|
||||||
LDFILE ?= rlx8195A-symbol-v04-img3.ld
|
LDFILE ?= rlx8195A-symbol-v04-img3.ld
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -51,5 +51,3 @@ ADD_SRC_C += project/src/driver/i2s_freertos.c
|
||||||
|
|
||||||
#include
|
#include
|
||||||
INCLUDES += project/inc/mad
|
INCLUDES += project/inc/mad
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
rem pip install wheel
|
rem pip install wheel
|
||||||
rem pip install pyinstaller
|
rem pip install pyinstaller
|
||||||
pyinstaller -c --onedir --onefile -n rtlaimage rtlaimage.py
|
pyinstaller -c --onedir --onefile -n rtlaimage rtlaimage.py
|
||||||
copy /b dist\rtlaimage.exe ..\..\RTL00_SDKV35a\component\soc\realtek\8195a\misc\iar_utility\common\tools\rtlaimage.exe
|
rem copy /b dist\rtlaimage.exe ..\..\RTL00_SDKV35a\component\soc\realtek\8195a\misc\iar_utility\common\tools\rtlaimage.exe
|
||||||
|
copy /b dist\rtlaimage.exe .\
|
||||||
del /Q rtlaimage.spec
|
del /Q rtlaimage.spec
|
||||||
rm -rf dist build
|
rm -rf dist build
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
SDK_PATH = RTL00_SDKV35a/
|
SDK_PATH = RTL00_SDKV35a/
|
||||||
#GCC_PATH = d:/MCU/GNU_Tools_ARM_Embedded/6.2017-q1-update/bin/# + or set in PATH
|
#GCC_PATH = d:/MCU/GNU_Tools_ARM_Embedded/6.2017-q1-update/bin/# + or set in PATH
|
||||||
#OPENOCD_PATH = D:/MCU/OpenOCD/bin/# + or set in PATH
|
#OPENOCD_PATH = D:/MCU/OpenOCD/bin/# + or set in PATH
|
||||||
TOOLS_PATH ?= $(SDK_PATH)component/soc/realtek/8195a/misc/iar_utility/common/tools/
|
#TOOLS_PATH ?= $(SDK_PATH)component/soc/realtek/8195a/misc/iar_utility/common/tools/
|
||||||
FLASHER_TYPE = Jlink
|
FLASHER_TYPE = Jlink
|
||||||
#FLASHER_TYPE = cmsis-dap
|
#FLASHER_TYPE = cmsis-dap
|
||||||
FLASHER_SPEED = 3500
|
FLASHER_SPEED = 3500
|
||||||
|
|
Loading…
Reference in a new issue