more tests

This commit is contained in:
Markus Fröschle
2015-10-31 20:53:59 +00:00
parent b6a5f98631
commit ebdc333c6d
2 changed files with 11 additions and 2 deletions

View File

@@ -80,7 +80,7 @@ $(1)/objs/%.o:$(SRCDIR)/%.S
$(1)_OBJS=$(patsubst %,$(1)/objs/%,$(OBJS)) $(1)_OBJS=$(patsubst %,$(1)/objs/%,$(OBJS))
$(1)/$(APP): $$($(1)_OBJS) $(1)/$(APP): $$($(1)_OBJS)
$(CC) $$(CFLAGS) -o $$@ $(TOPDIR)/../libcmini/$(1)/startup.o $$($(1)_OBJS) -L$(TOPDIR)/../libcmini/$(1) $(LIBS) $(CC) $$(CFLAGS) -o $$@ $(TOPDIR)/../libcmini/$(1)/startup.o $$($(1)_OBJS) -L$(TOPDIR)/../libcmini/$(1) $(LIBS)
$(STRIP) $$@ #$(STRIP) $$@
endef endef
$(foreach DIR,$(TRGTDIRS),$(eval $(call CC_TEMPLATE,$(DIR)))) $(foreach DIR,$(TRGTDIRS),$(eval $(call CC_TEMPLATE,$(DIR))))

View File

@@ -115,6 +115,7 @@ static void init_video_ddr(void) {
* (uint32_t *) 0xf0000400 = 0x01070002; /* fifo on, refresh on, ddrcs und cke on, video dac on */ * (uint32_t *) 0xf0000400 = 0x01070002; /* fifo on, refresh on, ddrcs und cke on, video dac on */
xprintf("sys_ctr = 0x%08x\r\n", * (uint32_t *) 0xf0000400);
xprintf("finished\r\n"); xprintf("finished\r\n");
} }
@@ -122,10 +123,18 @@ void do_tests(void)
{ {
uint32_t version; uint32_t version;
xprintf("initialize Firebee video PLL\r\n");
init_pll();
xprintf("finished\r\n");
xprintf("initialize video ddr memory\r\n");
init_video_ddr();
xprintf("finished\r\n");
xprintf("try to read Configware version (only works on later configs)\r\n"); xprintf("try to read Configware version (only works on later configs)\r\n");
version = * (uint32_t *) 0xffffffff; version = * (uint32_t *) 0xffffffff;
xprintf("version = 0x%lx\r\n", version); xprintf("version = 0x%08lx\r\n", version);
xprintf("try to access Firebee FPGA memory\r\n"); xprintf("try to access Firebee FPGA memory\r\n");