MKV10Z128 serial bootloader porting

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

MKV10Z128 serial bootloader porting

ソリューションへジャンプ
1,304件の閲覧回数
harshpatel
Contributor IV

Hello EveryOne

 

 

I have Custom board with "MKV10Z128" processor. I have taken Reference of  freescale Tower board (TWR  KV10). This Tower board contains "MKV10Z32" processor.

 

 

I have successfully built bootloader for MKV10Z32 but now as per my requirement i need to update for "MKV10Z128"....

 

 

In serial Bootloader code there is a file "KV10_32KB_pflsh.icf" which i have attached here....

 

 

FOR 32KB  flash and 8KB RAM in "MKV10Z32"

 

 

/*-Memory Regions-*/

define symbol __ICFEDIT_region_ROM_start__ = 0x0000;

define symbol __ICFEDIT_region_ROM_end__   = __ICFEDIT_region_ROM_start__ + (32*1024);//********                 // FOR 32KB flash

 

define symbol __ICFEDIT_region_RAM_end__   = 0x20000000;

define symbol __ICFEDIT_region_RAM_start__ = __ICFEDIT_region_RAM_end__ - (8*1024)/4 + 0x410;//********     // FOR 8KB RAM

 

I have modified as follows:

 

 

NOW FOR 128KB Flash and 16KB RAM.... in "MKV10Z128"

/*-Memory Regions-*/

define symbol __ICFEDIT_region_ROM_start__ = 0x0000;

define symbol __ICFEDIT_region_ROM_end__   = __ICFEDIT_region_ROM_start__ + (128*1024);//********            // FOR 128KB FLASH

define symbol __ICFEDIT_region_RAM_end__   = 0x20000000;

define symbol __ICFEDIT_region_RAM_start__ = __ICFEDIT_region_RAM_end__ - (16*1024)/4 + 0x410;//********  // FOR 16KB RAM

 

 

"IS there any other changes required  for MKV10Z128?"

 

Waiting for your Inputs

 

 

Thanks & regards

Harsh

Original Attachment has been moved to: KV10_32KB_Pflash.icf.zip

0 件の賞賛
返信
1 解決策
1,048件の閲覧回数
harshpatel
Contributor IV

Hello

Rather using serial boot loader, we should use KBOOT. it is very powerful boot loader. Take reference of KV11 for KV10.

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
1,048件の閲覧回数
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Harsh Patel:

What bootloader are you porting? A custom bootloader?

There is always a linker file specific for each device variant, with the corresponding memory sizes. For example the linker file attached is for MKV10Z128xxx7 available from IAR installation. Please try to use that one instead of modifying the linker for the 32 KB KV10.


Regards!,
Jorge Gonzalez

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信
1,048件の閲覧回数
harshpatel
Contributor IV

Hello

Greetings of the day

Mr. Jorge

thank you for reply

i have tried same linker file but i will gives error... i have inserted some line as per requirement it had solved errors but  found other problem...:

LET i repeat my issue:

I required bootloader for MKV10Z128  and i am taking reference of  bootloader code of MKV10Z32(TWR-KV10).

I am using UART_bootloader_demo code for MKV10Z32(TWR-KV10).  Which is available at

https://www.freescale.com/webapp/sps/download/preDownload.jsp

I have made following changed  in default code of MKV10Z32.

1] changed target CPU   (MKV10Z32 --> MKVZ128)

2] chnaged hearder files..

     a]  MKV10Z7.h   -->   MKV11Z7 .h    //because MKV10Z128 belong to KV11 family

     b] system_MKV10Z7.h  --> system_MKV11Z7.h

3] changed linker file which i got from IAR setup.

after that it will build successful but when i going to flash and debug i got warning and program is stopped working. ....

"WARNING: Stack pointer is setup to incorrect alignment.  Stack address = 0xffffffff"

So please give me a solution to fix this problem...

Waiting for your inputs...

Thank you..

0 件の賞賛
返信
1,049件の閲覧回数
harshpatel
Contributor IV

Hello

Rather using serial boot loader, we should use KBOOT. it is very powerful boot loader. Take reference of KV11 for KV10.

0 件の賞賛
返信