Getting Started - Part II

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Getting Started - Part II

445 Views
mlnj
Contributor III

So I've played around a bit and still have questions.  I'll ask the questions first, and then describe how they arose.  I'm working with the FRDM-KV10Z board with KDS v3.2.

 

Is there any guidance / documentation on building a new project?  (I.e. completely from scratch, except maybe using existing files that define symbols for fixed memory addresses.)

 

Where are the linker command files (i.e the ones that tell the linker were to put things in memory) ?

 

So I built and ran the HelloWorld demo.  I was able to use the debugger to step through it's initialization code in both assembler and 'C'.  I could see where the LED was being toggled and do this manually.  Of course when I built this, the BubbleApp that was installed on the FRDM-KV10Z board was lost.  So I decided I wanted to build and run the Bubble App.

 

But there was no supplied BubbleApp project for KDS, so I tried (several times!) to make my own.  I told KDS I wanted to build a new project and copied the source files from one of the existing BubbleApp projects in my new project.  First I got errors because include files weren't found.  So I made them findable with some difficulties due the difference between  includes with quotes and includes with angle brackets.  Then I got undefined externals (e.g. debug_printf) so I found libraries where they were located and specified them.  Eventually I was told that my .text section couldn't fit in the region m_text.  When I went looking for something that specified what m_text was and where it was located I couldn't find any file that mentioned "m_text". And I couldn't find any file that looked like any linker command file that I am familiar with.  (I've been doing this stuff for a long time!  Most recently with TI MCU's and longer ago with Intel micros, always in 'C' and or Assmbley Language; and always with a smattering of PC software development)

Labels (1)
0 Kudos
1 Reply

360 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi,

there is KDS_Users_Guide.pdf under KDS install folder C:\Freescale\KDS_v3\doc, which includes how to build projects.

pastedImage_0.png

the linker file *.ld is defined in linker setting. see where to find it:

pastedImage_1.png

here is the guide of how to get start with FRDM-KV10Z board.

FRDM-KV10Z|Freedom Development Platform|Kinetis MCU|NXP

it includes how to build and run the demos.

all the FRDM-KV10Z demos are under KSDK install folder, I suggest you try with referring the video.

C:\Freescale\KSDK_1.3.0\examples\frdmkv10z\demo_apps\bubble_level_ftm

this document introduces each of the demos. I think it's very useful too.

C:\Freescale\KSDK_1.3.0\doc\Kinetis SDK v.1.3 Demo Applications User's Guide.pdf


Have a great day,
Jennie Zhang

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

0 Kudos