From 331641d5689e531025f06285b8586131f1f3870d Mon Sep 17 00:00:00 2001 From: Steve Markgraf Date: Sat, 19 Mar 2011 02:56:25 +0100 Subject: [PATCH] target/fw/dsp: add delay as workaround for dsp_dump Without the delay we would fill the sercomm buffer faster than its content can be sent, and the phone would end up in a panic and hang. Signed-off-by: Steve Markgraf --- src/target/firmware/calypso/dsp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/target/firmware/calypso/dsp.c b/src/target/firmware/calypso/dsp.c index 86adc55..f22a7e0 100644 --- a/src/target/firmware/calypso/dsp.c +++ b/src/target/firmware/calypso/dsp.c @@ -635,6 +635,9 @@ static void _dsp_dump_range(uint32_t addr, uint32_t size, int mode) dsp_bl_wait_ready(); while (bs--) { + /* FIXME workaround: small delay to prevent overflowing + * the sercomm buffer */ + delay_ms(2); if ((addr&15)==0) printf("%05x : ", addr); printf("%04hx%c", *api++, ((addr&15)==15)?'\n':' '); -- 2.20.1