Simple blinky program and linker pruning
DavidZemon
Posts: 2,973
Simple blinky program:
Hangs if I compile with `-ffunction-sections -fdata-sections` and link with `-Wl,--gc-sections` with cog memory model. Any idea why?
int main () { const int led = 0x10000; DIRA |= led; while (1) { OUTA ^= led; waitcnt(CLKFREQ / 4 + CNT); } }
Hangs if I compile with `-ffunction-sections -fdata-sections` and link with `-Wl,--gc-sections` with cog memory model. Any idea why?
Comments