增加代码,将从站代码也改成RV32E和RV32I混合编程的版本
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user