Skip to content

Commit af6d120

Browse files
cvejlbofacchinm
authored andcommitted
Add workaround to wait for DSP to start (to support small NN synpkg files)
1 parent 6aebc85 commit af6d120

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libraries/NDP/src/NDP.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,11 @@ int NDPClass::load(const char* fw, int bl) {
363363

364364
// after loading FW & DSP, we can configure the clk and increase SPI speed
365365
if (loaded == 2) {
366+
/* this delay can go away in an upcoming tiny ilib release
367+
* and instead be a loop waiting for DSP to start */
368+
delay(750);
369+
/* poll to process the DSP running indication */
370+
poll();
366371
configureClock();
367372
SPI1.endTransaction();
368373
SPI1.beginTransaction(SPISettings(spi_speed_general, MSBFIRST, SPI_MODE0));

0 commit comments

Comments
 (0)