diff options
author | Steve Markgraf <steve@steve-m.de> | 2011-03-19 02:56:25 +0100 |
---|---|---|
committer | Steve Markgraf <steve@steve-m.de> | 2011-03-19 02:56:25 +0100 |
commit | 331641d5689e531025f06285b8586131f1f3870d (patch) | |
tree | 8678c6c1801a33a5f6ecaac1325a31b699f2e4d7 /src/target/firmware/calypso | |
parent | b22c05dc6d376a6e2aa8ef9624ff1daa115fd64b (diff) |
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 <steve@steve-m.de>
Diffstat (limited to 'src/target/firmware/calypso')
-rw-r--r-- | src/target/firmware/calypso/dsp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/target/firmware/calypso/dsp.c b/src/target/firmware/calypso/dsp.c index 86adc550..f22a7e0e 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':' '); |