Guest
#1172213
Hallo all lpc2129_adc_stdio (in WinARM 20060606 examples) is very useful example of using newlib stdio, but it holds some errors. I taked it as an example of my program and it didn't work correctly. A day later I found a problem: It was stack overflow. I was using STACK_SIZE = 0x400 as showed in lpc2129_adc_stdio, but only _vfiprintf_r (it's calling into iprintf) needs 0x523 bytes in stack. I suppose this correcting can spare time for somebody. Also I found some small errors: in ADC.c: PLLCFG = MSEL | (1<<PSEL1) | (0<<PSEL0); I think it must be: PLLCFG = MSEL | (0<<PSEL1) | (1<<PSEL0); in makefile: THUMB = -mthumb and #DEBUG = stabs It must be without thumb or with dwarf-2 debug format best regards Alexey