Progrem flash for MPC5748G

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Progrem flash for MPC5748G

ソリューションへジャンプ
2,591件の閲覧回数
gj3526
Contributor III

Hi all:

    I'm designing a BootLoader that needs to progrem SREC files to flash, but there's a part of the SREC file as follow. if progrem eight words once,it will break as follow when data is not in one flash page.if progrem one word by one word ,when program next eight  words, it will auto change one word which just has progremd.how can I deal with it.

the srec file:

S3150100737C006A006A006A0014001500160054000A1F

program eight words

0x0100737C  006A006A FFFFFFFF FFFFFFFF FFFFFFFF//after program 006A006A it will break

program one words

0x0100737C  006A006A 006A0014 00150016 00000000 /// when program 0x0100738C  it will be set to 00000000

sdk code:

            for (sourceIndex = 0U; sourceIndex < temp; sourceIndex++)
            {
                /* Programming write */
                *(volatile uint32_t *)dest = *(volatile uint32_t *)source;
                /* Update dest, size, source index */
                dest += C55_WORD_SIZE;
                source += C55_WORD_SIZE;
                size -= C55_WORD_SIZE;

                /* Is it time to do page programming?  */
                if(0U == (dest % FLASH_C55_PROGRAMABLE_SIZE))
                {
                    break;//////////////////////////////////////////  it will break when data in two pages
                }
            }

Best Regards,

gong jun

タグ(1)
1 解決策
2,491件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

here is an explanation of the behavior:

pastedImage_1.png

Regards,

Lukas

元の投稿で解決策を見る

2 返答(返信)
2,492件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

here is an explanation of the behavior:

pastedImage_1.png

Regards,

Lukas

2,491件の閲覧回数
gj3526
Contributor III

hi Lukas,

It seems that I can only change the SREC file,Thank you very much!

Best Regards,

gong jun

0 件の賞賛
返信