Merge pull request #82 from mattvenn/master

fixes for hx8k board demo
This commit is contained in:
Clifford Wolf 2018-08-31 12:17:41 +02:00 committed by GitHub
commit e3ce4ef800
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -26,12 +26,12 @@ hx8kdemo.bin: hx8kdemo.asc
icetime -d hx8k -c 12 -mtr hx8kdemo.rpt hx8kdemo.asc icetime -d hx8k -c 12 -mtr hx8kdemo.rpt hx8kdemo.asc
icepack hx8kdemo.asc hx8kdemo.bin icepack hx8kdemo.asc hx8kdemo.bin
hx8kprog: hx8kdemo.bin firmware.bin hx8kprog: hx8kdemo.bin hx8kdemo_fw.bin
iceprog hx8kdemo.bin iceprog hx8kdemo.bin
iceprog -o 1M firmware.bin iceprog -o 1M hx8kdemo_fw.bin
hx8kprog_fw: firmware.bin hx8kprog_fw: hx8kdemo_fw.bin
iceprog -o 1M firmware.bin iceprog -o 1M hx8kdemo_fw.bin
hx8kdemo_fw.elf: sections.lds start.s firmware.c hx8kdemo_fw.elf: sections.lds start.s firmware.c
riscv32-unknown-elf-gcc -DHX8KDEMO -march=rv32imc -Wl,-Bstatic,-T,sections.lds,--strip-debug -ffreestanding -nostdlib -o hx8kdemo_fw.elf start.s firmware.c riscv32-unknown-elf-gcc -DHX8KDEMO -march=rv32imc -Wl,-Bstatic,-T,sections.lds,--strip-debug -ffreestanding -nostdlib -o hx8kdemo_fw.elf start.s firmware.c

View File

@ -51,7 +51,7 @@ void flashio(uint8_t *data, int len, uint8_t wrencmd)
((void(*)(uint8_t*, uint32_t, uint32_t))func)(data, len, wrencmd); ((void(*)(uint8_t*, uint32_t, uint32_t))func)(data, len, wrencmd);
} }
#ifdef HX8KBOARD #ifdef HX8KDEMO
void set_flash_qspi_flag() void set_flash_qspi_flag()
{ {
uint8_t buffer[8]; uint8_t buffer[8];