fixed to support bugfix from 0.8.6

This commit is contained in:
Markus Fröschle
2014-12-26 10:33:53 +00:00
parent 8081df42a6
commit 551375c12e

View File

@@ -7,7 +7,7 @@
#include "MCF5475.h"
#include "driver_vec.h"
extern bool _FPGA_JTAG_LOADED;
extern long _FPGA_JTAG_LOADED;
extern long _FPGA_JTAG_VALID;
#define VALID_JTAG 0xaffeaffe
@@ -69,12 +69,12 @@ void wait_for_jtag(void)
while (!(MCF_GPIO_PPDSDR_FEC1L & FPGA_CONF_DONE)); /* wait for JTAG config load finished */
xprintf("JTAG configuration finished.\r\n");
_FPGA_JTAG_LOADED = true; /* indicate jtag loaded FPGA config to BaS */
_FPGA_JTAG_LOADED = 1; /* indicate jtag loaded FPGA config to BaS */
_FPGA_JTAG_VALID = VALID_JTAG; /* set magic word to indicate _FPGA_JTAG_LOADED is valid */
/* wait */
xprintf("wait a little to let things settle...\r\n");
for (i = 0; i < 100000000; i++);
for (i = 0; i < 10000000; i++);
xprintf("write byte data to FPGA memory\r\n");
for (i = 0; i < 512; i++)
@@ -84,7 +84,7 @@ void wait_for_jtag(void)
hexdump((uint8_t *) _VRAM, 512);
xprintf("wait a little to let things settle...\r\n");
for (i = 0; i < 100000000; i++);
for (i = 0; i < 10000000; i++);
__asm__ __volatile__(
" jmp (%[bas_start])\n\t"
@@ -97,7 +97,7 @@ void wait_for_jtag(void)
int main(int argc, char *argv[])
{
printf("\033E\r\nFPGA JTAG configuration support\r\n");
printf("<C> 2014 M. Fröschle\r\n");
printf("<C> 2014 M. Froeschle\r\n");
printf("You may now savely load a new FPGA configuration through the JTAG interface\r\n"
"and your Firebee will reboot once finished using that new configuration.\r\n");