Problem with recompiling BSP

Hi All,

I need to recompile the BSP in order to add some user info in the devBoardParamsType struct. However when I recompile the BSP, my digiconnectme won’t boot anymore (showing a 2-2-5 error sequence with the green led).
I cannot find any documentation regarding this error sequence, what does it mean ?

When I flash the unit with the previous code it operates correctly again.
Even when I discard all my changes and recompile the previous sources I have the same problem. In this case all object files do not change, but the libbsp.a file does change, here’s my output when diff-ing the files:

Comparing: digiconnect
etos60_gnu\lib\32b\libbsp.a
To: digiconnect
etos60_gnu\lib\32b.#libbsp.a.1.3

====
2 <! / 1099031133 0 0 0 12392 !&gt; / 1098182909 0 0 0 12392
41 <! NA_ISR.o/ 1099031032 400 401 100644 24792 !&gt; NA_ISR.o/ 1098182816 400 401 100644 24792
4988 <! 1099031073 400 401 100644 21964 !&gt; 1098182855 400 401 100644 21964
5705 <! NCC_INIT.o/ 1099031078 400 401 100644 29168 !&gt; NCC_INIT.o/ 1098182860 400 401 100644 29168
7936 <! nawait.o/ 1099031095 400 401 100644 17352 !&gt; nawait.o/ 1098182876 400 401 100644 17352
8103 <! nareset.o/ 1099031096 400 401 100644 4736 !&gt; nareset.o/ 1098182877 400 401 100644 4736
9656 <! 031111 400 401 100644 63192 !&gt; 182891 400 401 100644 63192
11193 <! 1099031129 400 401 100644 22180 !&gt; 1098182905 400 401 100644 22180

Any help is much appreciated.
Thanks in advance.

Bram Dirriwachter

A few questions:

  1. Did you use the PLATFORM flag when you compiled? The default doesn’t necessarily match your Connect type.
  2. Did you “clean” the original BSP? There could be some messed up files. Mine came with a few object files that were bad.
  3. If you build the bsp without making any changes, does it work?

-Erik

Hi Erik,

Thanks for your reply.

Yes, I did use the PLATFORM=connectme flag, and did a make clean first, then a make all.
Even when rebuilding the BSP without any changes (I must admit that we did some modifications on the BSP, but these worked fine) the problem occurred, however I managed to solve the problem by increasing stack size. It works now, so I keep my fingers crossed.

Bram

Yeah, increasing stack size fixes a lot of problems. Don’t make it too big, however, I have found that it gets unstable if you use a stack greater than 40-50K.

Good luck!
-Erik