增加代码,将从站代码也改成RV32E和RV32I混合编程的版本

This commit is contained in:
2025-02-03 14:56:04 +08:00
parent 2dc822da1b
commit 6b6258ffa9
7 changed files with 133 additions and 32 deletions

View File

@@ -5,8 +5,8 @@ def bin_2_c_array_file(bin_file, c_file):
with open(bin_file, 'rb') as bf, open(c_file, 'w') as cf:
# 写入文件头
cf.write('#include "stdint.h"\n')
#cf.write('const uint8_t mst_svr_code[] __attribute__((aligned(32), section(".trap_entry"))) = {\n')
cf.write('const uint8_t mst_svr_code[] __attribute__((aligned(32))) = {\n')
#cf.write('const uint8_t int_svr_code[] __attribute__((aligned(32), section(".trap_entry"))) = {\n')
cf.write('const uint8_t int_svr_code[] __attribute__((aligned(32))) = {\n')
all_data = bf.read()