之前在windows上生成hps_0.h文件只需要运行generate_hps_qsys_header.sh文件即可,它会自动去调用工具sopc-create-header-files ,参考我之前的博客:https://www.cnblogs.com/DoreenLiu/p/15308574.html
那现在如果在ubuntu系统下调试, 要怎么生成hps_0.h文件呢?
使用命令:
sopc-create-header-files ../soc_system.sopcinfo --single hps_0.h --module hps_0
当然, 在这之前先要运行embedded_command_shell.sh设置好环境变量:
这样就生成了hps_0.h文件了: