Got a problem in an2295sw14 with win_blsrconv.exe v10.0.18

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Got a problem in an2295sw14 with win_blsrconv.exe v10.0.18

866 Views
arkaizhang
Contributor I

Hi Sir,

I am try to converge applicateion code and bootloader code with win_blsrconv.exe v10.0.18, howerever, I got an error message in bootloader code.

I complier bootloader with keil, code version is as bellow. I downloaded from freescale community (an2295sw14).

is there any could tell me how to solve it ?

thanks a lot.

* @file      bootloader.c

* @author    b01119

* @version   0.0.35.0

* @date      Feb-14-2014

* @brief     Bootloader state machine file

未命名.JPG

Tags (1)
3 Replies

534 Views
arkaizhang
Contributor I

Hi,

I have fixed the problem.

In AN2295_Kinetis.scf file, the source code made sector "DATA / DATACODE / STACK" to be region name LR_RAM.

I put "DATA / DATACODE / STACK" in LR_1 to avoid Keil set 0x20000000 be the maximum address of ROM code.

#! armcc -E

#define INTFLASH_BASE_ADDR      0x00000000
#define INTFLASH_SIZE           0x00000a00

#define VECTORS_BASE_ADDR  0x00000000
#define VECTORS_SIZE   0x00000040

#define CFMPROT_BASE_ADDR  0x00000400
#define CFMPROT_SIZE   0x00000010

#define ROM1_BASE_ADDR   (VECTORS_BASE_ADDR + VECTORS_SIZE)
#define ROM1_SIZE    (CFMPROT_BASE_ADDR - ROM1_BASE_ADDR)

#define ROM2_BASE_ADDR   (CFMPROT_BASE_ADDR + CFMPROT_SIZE)
#define ROM2_SIZE    (INTFLASH_SIZE - ROM2_BASE_ADDR)

#define DATA_BASE_ADDR   0x20000000
#define DATA_SIZE    0x00000200

#define DATACODE_BASE_ADDR  0x1fffff00
#define DATACODE_SIZE   0x00000100

LR_VECTORS VECTORS_BASE_ADDR VECTORS_SIZE
{
    VECTORS VECTORS_BASE_ADDR VECTORS_SIZE
    {
        * (.IntVectTable) 
    }
}

LR_1 ROM1_BASE_ADDR ROM1_SIZE
{
ROM_1 ROM1_BASE_ADDR ROM1_SIZE
    {
  .ANY (+RO)
    }
    DATA DATA_BASE_ADDR DATA_SIZE
    {
        * (+RW, +ZI)
    }

DATACODE DATACODE_BASE_ADDR DATACODE_SIZE
    {
        * (.codeRam)
    }

    BOOT_STACK_ADDR (DATA_BASE_ADDR + DATA_SIZE - 32) ALIGN 16
    {
  * (BOOT_STACK)
    }

}

LR_CFMPROT CFMPROT_BASE_ADDR CFMPROT_SIZE
{
    CFMPROT CFMPROT_BASE_ADDR CFMPROT_SIZE
    {
        * (.FlashConfig) 
    }
}

LR_2 ROM2_BASE_ADDR ROM2_SIZE
{
ROM_2 ROM2_BASE_ADDR ROM2_SIZE
    {
  .ANY (+RO)
    }
}

534 Views
perlam_i_au
Senior Contributor I

Could you please share your user application and boot loader files?, I would like to reproduce the error to verify what is going on.

0 Kudos

534 Views
Wlodek_D_
Senior Contributor II

Hello,

Thank you for your post, however please consider moving it to the right community place (e.g. CodeWarrior Development Tools ) to get it visible for active members.

For details please see general advice Where to post a Discussion?

Thank you for using Freescale Community.