diff --git a/frameworks/verilator/SPIScreen.cpp b/frameworks/verilator/SPIScreen.cpp index a6e6e5e5..e6ff37f6 100644 --- a/frameworks/verilator/SPIScreen.cpp +++ b/frameworks/verilator/SPIScreen.cpp @@ -204,7 +204,7 @@ void SPIScreen::cmd_write_ram() // 6-6-6 m_rgb[(m_step - 1)] = m_byte; if (m_step == 3) { - // fprintf(stdout,"666 x %d, y %d\n",m_x_cur,m_y_cur); + //fprintf(stdout,"666 x %d, y %d\n",m_x_cur,m_y_cur); m_framebuffer.pixel( m_y_cur,m_x_cur) = m_rgb; } @@ -235,8 +235,8 @@ void SPIScreen::cmd_write_ram() // bgr std::swap(m_rgb[0],m_rgb[2]); } - //fprintf(stdout,"565 x %d, y %d rgb:%x,%x,%x\n", - // m_x_cur,m_y_cur,(int)m_rgb[0],(int)m_rgb[1],(int)m_rgb[2]); + fprintf(stdout,"565 x %d, y %d rgb:%x,%x,%x\n", + m_x_cur,m_y_cur,(int)m_rgb[0],(int)m_rgb[1],(int)m_rgb[2]); m_rgb[0] <<= 3; m_rgb[1] <<= 2; m_rgb[2] <<= 3; m_framebuffer.pixel( m_y_cur,m_x_cur) = m_rgb; diff --git a/frameworks/verilator/display.cpp b/frameworks/verilator/display.cpp index 6dddebf4..83d28606 100644 --- a/frameworks/verilator/display.cpp +++ b/frameworks/verilator/display.cpp @@ -106,10 +106,10 @@ void render() // lock the mutex before accessing g_Chip std::lock_guard lock(g_Mutex); // has the framebuffer changed? - if (g_Chip->framebufferChanged()) { - // yes: refresh frame - refresh(); - } + //if (g_Chip->framebufferChanged()) { + // yes: refresh frame + refresh(); + //} } // ---------------------------------------------------------------------------- diff --git a/learn-silice/classroom/soc_wave_player/firmware/Makefile b/learn-silice/classroom/soc_wave_player/firmware/Makefile index e94ee78c..ab97f98f 100644 --- a/learn-silice/classroom/soc_wave_player/firmware/Makefile +++ b/learn-silice/classroom/soc_wave_player/firmware/Makefile @@ -7,12 +7,12 @@ LD = $(ARCH)-ld OBJS = sdcard.o div.o std.o config.o oled.o display.o printf.o mul.o crt0.o fat_io_lib.o $(PRGS): %: %.o $(OBJS) - $(LD) -m elf32lriscv -b elf32-littleriscv --gc-sections -Tconfig_c.ld --no-relax -o code.elf $^ + $(LD) -m elf32lriscv -b elf32-littleriscv -Tconfig_c.ld --no-relax -o code.elf $^ $(ARCH)-objcopy -O verilog code.elf code.hex $(ARCH)-objdump --disassemble code.elf > code.s %.o : %.c - $(CC) -ffunction-sections -fdata-sections -fno-builtin -fno-unroll-loops -O2 -fno-stack-protector -fno-pic -march=rv32i -mabi=ilp32 -c $< -o $@ + $(CC) -fno-builtin -fno-unroll-loops -O2 -fno-stack-protector -fno-pic -march=rv32i -mabi=ilp32 -c $< -o $@ %.o : %.s $(AS) -march=rv32i -mabi=ilp32 $< -o $@