S32K148 & S32K146, Application and Bootloader

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

S32K148 & S32K146, Application and Bootloader

306件の閲覧回数
Nibesh
Contributor III

Hello @VaneB 
I hope you are doing well.
@VaneB  Actually I am working on Bootloader of AN12218SW for S32K148 and S32K146 Evaluation Board.
The Default Linker file for S32K146-Q144 is given below;

Bootloader

/* Flash */
 m_interrupts            (RX)  : ORIGIN = 0x00000000, LENGTH = 0x00000400

 m_flash_config        (RX)  : ORIGIN = 0x00000400, LENGTH = 0x00000010

 m_text                     (RX)  : ORIGIN = 0x10000000, LENGTH = 0x00002000

Application

/* Flash */

  m_interrupts            (RX)  : ORIGIN = 0x00001000, LENGTH = 0x00000400

  m_flash_config        (RX)  : ORIGIN = 0x00001400, LENGTH = 0x00000010

  m_text                      (RX)  : ORIGIN = 0x00001410, LENGTH = 0x000FFBF0

Actually, @VaneB  we have interchanged the Linker vice versa, which is given below;

Application

/* Flash */

  m_interrupts            (RX)  : ORIGIN = 0x00000000, LENGTH = 0x00000400

  m_flash_config        (RX)  : ORIGIN = 0x00000400, LENGTH = 0x00000010

  m_text                     (RX)  : ORIGIN = 0x10000000, LENGTH = 0x00002000

Bootloader

/* Flash */

  m_interrupts            (RX)  : ORIGIN = 0x10001000, LENGTH = 0x00000400

  m_flash_config        (RX)  : ORIGIN = 0x10001400, LENGTH = 0x00000010

  m_text                     (RX)  : ORIGIN = 0x10001410, LENGTH = 0x000FFBF0


The following are the doubts points;
1. By interchanging the Vector We are trying to Flash the new application through Bootloader which start at 0x10001000.
2. we have use  0x00000000 Vector for Application.
3. @VaneB  actually  Once we Reset our Micro-Controller, it is going to Application First, then if it receives any INPUT through LPUART it will jump to Bootloader Code. We are able to achieve this. We can easily Jump from Application to Bootloader through LPUART.

But after a Jump into Bootloader it has to perform Bootloader Function comm_download_app(); Which I am unable to Achieve. It is detecting the COM, we are able to Load the new .SREC File, it is completely loading but it is unable to Write and Flash with new .SREC file.

How we can resolve this issue @VaneB 
I hope to hear from you soon. 




 

0 件の賞賛
返信
2 返答(返信)

262件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@Nibesh

Please do not create the same topic repeatedly.

Please discuss it under this topic and I will close your case of repeated creation.

https://community.nxp.com/t5/S32K/Bootloader-and-Application-of-S32K148-amp-S32K146/td-p/1860220

0 件の賞賛
返信

258件の閲覧回数
Nibesh
Contributor III

Hi @Senlent 
You can keep one Topic for the Discussion.
Rest all you can close it.

Thank You

タグ(1)
0 件の賞賛
返信