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.

MSP-GANG: (MSP-GANG) Source Code Programming: "Error 386 - Code out of Range"

Part Number: MSP-GANG
Other Parts Discussed in Thread: MSP430F149

Hello all,

I am attempting to flash PCB's provided to my company from our vendor with updated firmware. The issue I am running into is "ERROR 386: Code out of range of the selected MCU" when trying to program my source code.

Hardware: MSP-GANG

Software: MSP-GANG GUI V01.03.06  

Firmware source code: Upoaded below.

UMSRoam-FW01-V01-bld12.txt

Any insight is appreciated - I am partially ignorant with these devices as I am mostly hardware-oriented but expanding my scope of operations currently.

Warm regards,

Sean B.

  • Hi Sean,

    Welcome to the E2E Forums.

    It looks to me like your code file is padded with blank data well beyond the flash memory region of the MSP430F149. You can confirm this in the Code file viewer (Hit View -> Code File Data).

    You should check your project properties in your IDE and verify that you are building the code for the correct device. 

    Best Regards,
    Brandon Fisher

  • Hi Bandon,

    Could you explain a little more what you mean when you say "padded with blank data well beyond the flash memory region of the MSP430F149" ? 

    Pardon the igorance, I was given this code by my PLM dept. and have used the hardware to program other boards..so I'm not sure exactly what's holding this code up!!!

    Any intuative advice appreciated.

    Warm regards,

    SB

  • Hi Sean,

    Could you explain a little more what you mean when you say "padded with blank data well beyond the flash memory region of the MSP430F149" ? 

    Yes, the MSP430F149 has only 60kB of memory, but your code size is 122kB. Looking into the file you shared, it looks like most of that code is just writing 0xFF (empty data) to memory, past the last available address of the device.

    For reference, the datasheet shows that the last memory address for Main code memory in the MSP430F149 is 0xFFFF:

    In that image from my last post, the MSP-GANG programmer is showing that the .txt file being flashed has memory outside the region of 0x1100 to 0xFFFF. Based on the message it shared, it looks like it will ignore that section of the image when programming, but I have not tested this myself.

    Pardon the igorance, I was given this code by my PLM dept. and have used the hardware to program other boards..so I'm not sure exactly what's holding this code up!!!

    Have you ever programmed this code on this hardware before? 

    Best Regards,
    Brandon Fisher

**Attention** This is a public forum