KBOOT V1.2 LED demo application

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

KBOOT V1.2 LED demo application

ソリューションへジャンプ
1,994件の閲覧回数
a8Chcx
Contributor V

Hi,

 

I am using KDS 3.0.0 to try the led demo application in KBOOT V1.2 release. It looks like that it is built on IAR, not KDS 3.0.0, Is it true?

If so, how to test on KDS 3.0.0? What is the settings for KDS 3.0.0 environment to test led demo application?

Another question: I can't find a way to generate *.bin file in KDS 3.0.0, only *.elf, and *.srec files. Could you tell me how to generate *.bin file by using KDS 3.0.0?

 

Thanks,

Christie

ラベル(1)
0 件の賞賛
返信
1 解決策
1,577件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

hi Christie,

this is the ARM Thumb bit: function pointers (and vectors pointers) have the Thumb bit set in the address, to mark that they are thumb functions.

So it is because of the ARM Thumb mode.


Have a great day,
Zhang Jun

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

元の投稿で解決策を見る

0 件の賞賛
返信
6 返答(返信)
1,577件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Christie,

in KBOOT, under FSL_Kinetis_Bootloader_1_2_0\FSL_Kinetis_Bootloader_1_2_0\targets, it includes KDS project.

however, FSL_Kinetis_Bootloader_1_2_0\apps is for IAR project only,

so far, there is not an importer to port the IAR or Keil project to KDS directly. users have to create a KDS project with wizard then port the code from IAR project file by file, part by part.

you can refer this link for how to generate bin file:

Binary (and S19) Files for the mbed Bootloader with Eclipse and GNU ARM Eclipse Plugins | MCU on Ecl...

can this help?


Have a great day,
Zhang Jun

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

0 件の賞賛
返信
1,577件の閲覧回数
a8Chcx
Contributor V

Hi Guys,

Thank you. Now, I can generate *.bin file.

The problem is now that I loaded *.bin file to K64F by using bootloader, it didn't work.

I tried the demo *.bin file and works fine.

I changed the link file for my project and check the required address, looks fine. But, it didn't work.

See attached *.s19 file for the address allocation.

Can anyone tell me how to set memory section in order to work with bootloader?

I am using KDS 3.0.0, KSDK1.0.0, and PE for my project...

Thanks,

Christie

0 件の賞賛
返信
1,577件の閲覧回数
a8Chcx
Contributor V

Hi,

I have the following questions when I use KDS3.0.0 to generate *srec file:

Here is the header in *.srec file

S00B00006956542E7372656306

S21400A00000000320D9A40000E9A40000E9A4000091

S21400A010E9A40000E9A40000E9A400000000000094

S21400A020000000000000000000000000E9A400009E

S21400A030E9A4000000000000E9A40000E9A4000074

-----Stack top ==0x2003_0000, Reset_Handler==0x0000_A4D9, DebugMon_Handler==0x0000_A4E9

But, in map file it shows as follows:

.text          0x0000a4d8       0x14 ./SDK/platform/devices/MK64F12/startup/gcc/startup_MK64F12.o

                0x0000a4d8                Reset_Handler

                0x0000a4e8                DebugMon_Handler

                0x0000a4e8                I2C0_IRQHandler

                0x0000a4e8                HardFault_Handler

I think that the address in map file is right...Could you tell me where the problem is? *.srec file is right?

Thanks,

Christie

0 件の賞賛
返信
1,577件の閲覧回数
a8Chcx
Contributor V

Hi,

Is there anyone who can answer my question:

The interrupt address in *.srec file is ended with odd address, but in map file is ended with even address?

I tried to generate S3 and got the same result? The *.srec file is right?

Thanks,

Christie

0 件の賞賛
返信
1,578件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

hi Christie,

this is the ARM Thumb bit: function pointers (and vectors pointers) have the Thumb bit set in the address, to mark that they are thumb functions.

So it is because of the ARM Thumb mode.


Have a great day,
Zhang Jun

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

0 件の賞賛
返信
1,577件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Christis ,

(1)  From the Kinetis Bootloader v1.2.0 Release Notes.pdf , we can see that KBOOT v1.2  can  compile on KDS 3.0 .

pastedImage_0.png

(2) On KDS 3.0, please configure here to generate .bin file :

pastedImage_2.png

pastedImage_3.png

then build , you find the .bin file under the debug file .

Hope it helps


Have a great day,

Alice

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

0 件の賞賛
返信