Added back in the jtag bridge

Now talking over the bus instead of using dpram
This commit is contained in:
2026-02-27 17:39:43 +01:00
parent 6f680377db
commit 105dbed8e4
16 changed files with 685 additions and 342 deletions

View File

@@ -35,7 +35,7 @@ $(TARGET).bin: $(TARGET).elf
$(OBJCOPY) -O binary $< $@
$(TARGET).hex: $(TARGET).bin
hexdump -v -e '1/1 "%02x\n"' $< > $@
hexdump -v -e '1/4 "%08x\n"' $< > $@
$(TARGET).coe: $(TARGET).hex
$(HEX_TO_COE) $< $@

View File

@@ -31,5 +31,5 @@ SECTIONS
} > RAM
. = ALIGN(4);
__stack_top = ORIGIN(RAM) + LENGTH(RAM) - 256;
__stack_top = ORIGIN(RAM) + LENGTH(RAM);
}

View File

@@ -26,7 +26,7 @@ static inline void irq_init() {
void timer_isr(){
static int set = 0;
*TIMER = 1840000*4;
*TIMER = 1840000*2;
*LEDGR = ~(*LEDGR);
}
@@ -34,7 +34,7 @@ void main(){
irq_init();
*LEDGR = 3;
*TIMER = 1840000*4;
*TIMER = 1840000*2;
for(;;){
for(int i=1000; i<10000; i++){