800*320工程文件+初始demo提交
This commit is contained in:
2385
SW/examples/turnkey/lvgl_86box/MDK-ARM/Project.uvprojx
Normal file
2385
SW/examples/turnkey/lvgl_86box/MDK-ARM/Project.uvprojx
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,24 @@
|
||||
|
||||
/*
|
||||
* Auto generated Run-Time-Environment Configuration File
|
||||
* *** Do not modify ! ***
|
||||
*
|
||||
* Project: 'Project'
|
||||
* Target: 'Project'
|
||||
*/
|
||||
|
||||
#ifndef RTE_COMPONENTS_H
|
||||
#define RTE_COMPONENTS_H
|
||||
|
||||
|
||||
/*
|
||||
* Define the Device Header File:
|
||||
*/
|
||||
#define CMSIS_device_header "ARMCM33_DSP_FP.h"
|
||||
|
||||
/* Keil.ARM Compiler::Compiler:I/O:STDERR:Breakpoint:1.2.0 */
|
||||
#define RTE_Compiler_IO_STDERR /* Compiler I/O: STDERR */
|
||||
#define RTE_Compiler_IO_STDERR_BKPT /* Compiler I/O: STDERR Breakpoint */
|
||||
|
||||
|
||||
#endif /* RTE_COMPONENTS_H */
|
@ -0,0 +1,26 @@
|
||||
import os
|
||||
import shutil
|
||||
|
||||
def delete_files_in_current_directory(folder_name):
|
||||
try:
|
||||
current_directory = os.path.dirname(os.path.abspath(__file__))
|
||||
folder_to_delete = os.path.join(current_directory, folder_name)
|
||||
|
||||
if os.path.exists(folder_to_delete):
|
||||
files = os.listdir(folder_to_delete)
|
||||
for file_name in files:
|
||||
file_path = os.path.join(folder_to_delete, file_name)
|
||||
if os.path.isfile(file_path):
|
||||
os.remove(file_path)
|
||||
print(f"Deleted: {file_path}")
|
||||
|
||||
print(f"All files in {folder_name} have been deleted.")
|
||||
else:
|
||||
print(f"Folder {folder_name} does not exist in {current_directory}.")
|
||||
except Exception as e:
|
||||
print(f"Error: {e}")
|
||||
|
||||
folder_name_to_delete = "Objects"
|
||||
delete_files_in_current_directory(folder_name_to_delete)
|
||||
folder_name_to_delete = "Listings"
|
||||
delete_files_in_current_directory(folder_name_to_delete)
|
BIN
SW/examples/turnkey/lvgl_86box/MDK-ARM/output/Project.bin
Normal file
BIN
SW/examples/turnkey/lvgl_86box/MDK-ARM/output/Project.bin
Normal file
Binary file not shown.
142452
SW/examples/turnkey/lvgl_86box/MDK-ARM/output/Project.hex
Normal file
142452
SW/examples/turnkey/lvgl_86box/MDK-ARM/output/Project.hex
Normal file
File diff suppressed because it is too large
Load Diff
187671
SW/examples/turnkey/lvgl_86box/MDK-ARM/output/Project.txt
Normal file
187671
SW/examples/turnkey/lvgl_86box/MDK-ARM/output/Project.txt
Normal file
File diff suppressed because it is too large
Load Diff
BIN
SW/examples/turnkey/lvgl_86box/MDK-ARM/output/Project_burn.bin
Normal file
BIN
SW/examples/turnkey/lvgl_86box/MDK-ARM/output/Project_burn.bin
Normal file
Binary file not shown.
Binary file not shown.
@ -0,0 +1,37 @@
|
||||
import os
|
||||
import struct
|
||||
import zlib
|
||||
import sys
|
||||
|
||||
def fill_header(f_in_file,
|
||||
f_out_file):
|
||||
code_length = os.path.getsize(f_in_file)
|
||||
f_out_create = open(f_out_file, 'wb')
|
||||
f_out_create.close()
|
||||
f_out = open(f_out_file, 'r+b')
|
||||
f_in = open(f_in_file, 'rb')
|
||||
array = f_in.read(code_length)
|
||||
f_out.write(array)
|
||||
f_out.seek(0x150)
|
||||
f_out.write(struct.pack('I', code_length))
|
||||
f_out.seek(0)
|
||||
arrayout = f_out.read(code_length)
|
||||
image_crc = zlib.crc32(arrayout)
|
||||
f_out.seek(code_length)
|
||||
|
||||
#f_out.write(struct.pack('I',image_crc))
|
||||
f_out.write(struct.pack('B', image_crc&0xff))
|
||||
f_out.write(struct.pack('B', (image_crc&0xff00)>>8))
|
||||
f_out.write(struct.pack('B', (image_crc&0xff0000)>>16))
|
||||
f_out.write(struct.pack('B', (image_crc&0xff000000)>>24))
|
||||
|
||||
|
||||
if 'BAT_RUN' in os.environ:
|
||||
fill_header(".\output\Project.bin", ".\output\Project_mp_burn.bin")
|
||||
else:
|
||||
fill_header("Project.bin", "Project_mp_burn.bin")
|
||||
# if sys.argv[0].endswith('.bat'):
|
||||
# fill_header(".\output\Project.bin", ".\output\Project_burn.bin")
|
||||
# else:
|
||||
# fill_header("Project.bin", "Project_burn.bin")
|
||||
|
BIN
SW/examples/turnkey/lvgl_86box/MDK-ARM/output/boot_load_burn.bin
Normal file
BIN
SW/examples/turnkey/lvgl_86box/MDK-ARM/output/boot_load_burn.bin
Normal file
Binary file not shown.
@ -0,0 +1,11 @@
|
||||
@echo off
|
||||
|
||||
if exist Project_burn.bin (
|
||||
del Project_burn.bin
|
||||
)
|
||||
@echo off
|
||||
set BAT_RUN=1
|
||||
python .\output\app_post_process.py
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user