This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

BSL Sample code

I'm trying to use IAR and build the project "Custom BSL Zip File\Released BSL Source\MSP430F543xA 00.05.04.03"

I get the following error when building just the file:  Fatal Error[e72]: Segment ZAREA must be defined in a segment definition option (-Z, -b or -P)

And I get the following error when building everything:

Fatal Error[e72]: Segment BSL430_VERSION_API must be defined in a segment definition option (-Z, -b or -P) Error while running Linker

 

 

This only happens when the project is setup for "Release".  When building the "Debug" version, there are no errors.  But I need the Released version for production.

Please shed some light on this

Thanks,

-Jim

 

 

  • I think by using the "lnk430F5438_BSL_AREA.xcl" file in the \config directory did the trick.  But I'm curious as to how the BSL430_Low_Level_Init.s43 and the other C files tie together.  Can anyone help on that?  I assume when the program gets built, BSL_Entry_JMP is the first instruction.  But how does main() get called from this .S43 file?

    Thanks,

    -Jim

  • More questions on the Sample code and namely, AppNote SLAA450.  Paragraph 3.1 under Peripheral Interface.  What do you mean by the last sentence regarding a RAM based interrupt vector?  Can you give me an example?

    Thanks.

    -Jim

  • >This only happens when the project is setup for "Release".  When building the "Debug" version,

    Hi,

    I didn't use Release/Debug for BSL development.  Basically, those options are there to simply application code development... automatic switching of project options such as optimizations and debug symbol includes, etc..

     

    What I have done, is set all options to how I want them for the 'debug' setting.  Switching to 'Release' loads in a bunch of options I never set... which is why you get that error, because it's now trying to use the device's default linker command file, which doesn't define the Z-area.


    So, have no fear in using 'Debug' as that's the correct final output.

**Attention** This is a public forum