Quartus/Nios
ELF를 HEX로 만들어줄떄, nios command shell 이용
Perlite
2015. 10. 20. 15:34
slf2hex --input==*.elf --output=*.hex -- base=0x** --end=0x** --width=**
0. nios command shell 킨다음..
1. elf 파일있는데 까지 찾아가서
2. 위 와 같이 쳐주고,~ elf 파일 가져다 hex 만들거니 파일이름 입력해주고
3. base address From On-chip Memory 번지수 시작번지
end Address From On-chip Memory 번지수
4. Onchip Memory설정의 width 찾아서 입력해주고 그럼 끝
ex) helloword.elf 를 가지고 helloword.hex 로 만들어 주고 싶을때
base Addr: 0x0
End Addr : 0x30ff
width : 32
slf2hex --input==helloword.elf --output=helloword.hex -- base=0x0 --end=0x30ff --width=32