The firmware does not start.

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

The firmware does not start.

1,744件の閲覧回数
nbhk0621
Contributor II

Hello,

I'm working with LPC54616J512 and I wrote the following firmware using FlashMagic.
(Head data of the HEX file)
:100000000080022061010000B5010000F50A000037
:10001000B9010000BB010000BD010000C46CFDDFA0
:10002000000000000000000000000000BF01000010
:10003000C101000000000000C3010000ED0100004C
:100040002D090000350900003D09000045090000A8

But the firmware does not start, so I dumped the vector table.


                 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000000 00 00 00 00 61 01 00 00 B5 01 00 00 F5 0A 00 00 ....a...Ê...o...
00000010 B9 01 00 00 BB 01 00 00 BD 01 00 00 C4 6C FD DF 1...â...?...Alys

For some reason the top 4 bytes are zero, instead of the expected 00 80 02 20.

I don’t know if this is the reason the firmware is not running. Any suggestions?

ラベル(1)
6 返答(返信)

1,525件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello  NOBUHIKO KITAMURA,

"

For some reason the top 4 bytes are zero, instead of the expected 00 80 02 20.

I don’t know if this is the reason the firmware is not running. 

"

-> Yes.

And you first need confirm your project can work well on MCU.


Have a great day,
TIC

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

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

1,525件の閲覧回数
nbhk0621
Contributor II

Hello Alice,
Thank you for your reply.

The project is a simple GPIO input/output program, and it works just fine when starting from FlashMagic. But it does not work when using the MCU alone.

Is there any reason you can think of why the 4 bytes are zeros?

Regards,
Nobuhiko Kitamura

0 件の賞賛
返信

1,525件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello NOBUHIKO KITAMURA

"The project is a simple GPIO input/output program, and it works just fine when starting from FlashMagic. But it does not work when using the MCU alone."

-> So does it work now?

0 件の賞賛
返信

1,525件の閲覧回数
nbhk0621
Contributor II

Hello Alice

A simple GPIO program was working. It looked like it wasn't working, but it was. The GPIO config was not set at the beginning of the program, so it did not work properly with automatic execution. Inserting the GPIO config settings at the beginning of the program now works correctly. It seems that GPIO status is different between FlashMasic program start and power-on start.

Sorry for the late reply. And thank you.

Regards,

Nobuhiko Kitamura

0 件の賞賛
返信

1,525件の閲覧回数
rmcmahon
Contributor I

Hello, I am having the same problem.  I have a simple GPIO program that does not run standalone, but will run through the Keil debugger.

Did you get your program to run?

0 件の賞賛
返信

1,525件の閲覧回数
nbhk0621
Contributor II

Hello Alice

According to the users manual (UM1092.pdf), the first word(0x0) of flash memory cannot be read.
Apparently the only problem is with the reading function. The writing function seems to work correctly.
Thank you for your advice.

Regards,
Nobuhiko Kitamura

0 件の賞賛
返信