master
kaqu 2 years ago
parent 1d9a0460ec
commit 3f4e2107ee
  1. 1
      .vscode/launch.json
  2. 11
      firmware/main.c
  3. 6
      neopixelar.py

@ -13,6 +13,7 @@
//"--flash",
"--revision=7.0",
"--uart-name=crossover",
//"--with-ethernet", // Not to be used together w/ etherbone! Won't TFTP ...
"--with-etherbone",
"--ip-address=192.168.1.20",
"--csr-csv=build/csr.csv", // Only this one for remotetest.py!

@ -61,7 +61,7 @@ static void boot_sequence(void)
#ifdef CSR_ETHMAC_BASE
#ifdef CSR_ETHPHY_MODE_DETECTION_MODE_ADDR
eth_mode();
#endif
#endif
netboot();
#endif
printf("No boot medium found\n");
@ -277,8 +277,13 @@ int main(int i, char **c)
printf("\n");
nb_params = get_param(buffer, &command, params);
cmd = command_dispatcher(command, nb_params, params);
if (!cmd)
printf("Command not found");
if (!cmd) {
printf("Command not found, trying jump to 0x40100000 ...\n");
void (*fptr)(void);
fptr = 0x40100000;
(fptr)();
printf("Returned from jump to 0x40100000.\n");
}
}
printf("\n%s", PROMPT);
}

@ -24,6 +24,10 @@
# - 'ping 192.168.1.20' to verify ethernet connection - via LEFT(!) RJ45 port
# - 'wishbone-tool --ethernet-host 192.168.1.20 --server terminal --csr-csv build/csr.csv'
# You should see the LiteX BIOS and be able to interact with it
# - To load a file to RAM (@0x40000000 len=0x400000) use:
# wishbone-tool --ethernet-host 192.168.1.20 --server load-file --csr-csv build/csr.csv
# --load-address 0x40100000
# --load-name build/colorlight_5a_75b/software/<filename>
#
import os
import argparse
@ -364,7 +368,7 @@ def main():
parser.add_argument("--flash", action="store_true", help="Load bitstream to flash")
args = parser.parse_args()
assert not (args.with_ethernet and args.with_etherbone)
#assert not (args.with_ethernet and args.with_etherbone)
soc = BaseSoC(board=args.board, revision=args.revision,
with_ethernet = args.with_ethernet,
with_etherbone = args.with_etherbone,

Loading…
Cancel
Save