more tests
This commit is contained in:
@@ -80,7 +80,7 @@ $(1)/objs/%.o:$(SRCDIR)/%.S
|
||||
$(1)_OBJS=$(patsubst %,$(1)/objs/%,$(OBJS))
|
||||
$(1)/$(APP): $$($(1)_OBJS)
|
||||
$(CC) $$(CFLAGS) -o $$@ $(TOPDIR)/../libcmini/$(1)/startup.o $$($(1)_OBJS) -L$(TOPDIR)/../libcmini/$(1) $(LIBS)
|
||||
$(STRIP) $$@
|
||||
#$(STRIP) $$@
|
||||
endef
|
||||
$(foreach DIR,$(TRGTDIRS),$(eval $(call CC_TEMPLATE,$(DIR))))
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
xprintf("sys_ctr = 0x%08x\r\n", * (uint32_t *) 0xf0000400);
|
||||
xprintf("finished\r\n");
|
||||
}
|
||||
|
||||
@@ -122,10 +123,18 @@ void do_tests(void)
|
||||
{
|
||||
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");
|
||||
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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user