How to upload my own applications to the MCF52277EVB

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

How to upload my own applications to the MCF52277EVB

Jump to solution
3,102 Views
fjrg76
Contributor IV

Hi!! I got my new EVB board and it works out of the box. But I have two questions:

 

1. Before reload a new kernel, I would like to test some simple applications, however I have no clue how to do it (on top of Linux). It's easy when programming in a PC, but with this board I guess I need to do some more than compiling (e.g. using the serial port for uploading my app image). I mean, suppose I have an app compiled and linked, now it's time to upload to the board, how can I do it??

 

2. Later on I'll need to write a device driver for a distinct (bigger) LCD, among other peripherals (like reading external pulses or the ADC converter), but I cannot find the driver's source code anywhere in the DVD nor the bunch of things that were installed after following the "BSP Targeting the Freescale ColdFire M5227xEVB" document. Any ideas where are the source code of the drivers??

 

Thank you in advanced!!

Labels (1)
0 Kudos
Reply
1 Solution
1,276 Views
fjrg76
Contributor IV

Done!!

 

I was able to upload my own "hello_world" app on February the 23th.

 

 

View solution in original post

0 Kudos
Reply
7 Replies
1,276 Views
cutworth
NXP Employee
NXP Employee

You can try the following command  "ltib -c" and in the displayed menu select keep kernel source, and you will get kernel source in rpm folder.

 

Also if you would like to get source code a specific package, you can type "ltib -m prep -p packagename.spec" and the spec file is located in dist\lfs-5.1 folder.

0 Kudos
Reply
1,276 Views
fjrg76
Contributor IV

Hi Cutworth

 

Thank you for you reply. I did a lot of investigation in order to find out the way of uploading a very simple "hello world" application. I got so much information that after organized it I may able to write a book =) ; however, first things first.

 

It was so hard from unpacking my beauty M52277EVB until to achive my first "hello world" running from RAM (this board doesn't have ethernet), that I thought to change MCU from Coldfire to ARM because it became a nightmare. Now, three months later, I was even able to make my first graphical "hello world" under nano-X , but I need to keep moving on because I need some GUI (gtk, fltk, gpe, opie, etc) for my final application, and that seems to be worst than a simple "hello world".

 

Any way, I want to thank you for reading and writing, and if in the near future I need some help, I'll look for yours.

 

My best regards and happy embedding =)

0 Kudos
Reply
1,276 Views
liosean
Contributor I

 
2011-05-17 07:34 AM

Hi,

  

    Now,I'm just starting my adventure with Linux and iMX and many things are quite new for me. I met a problem when I tried to creat a new Hello World application according to "Linux_HelloWorld_AN.pdf". First, I edit a "hello.c" and a "Makefile" as specified in the "Linux_HelloWorld_AN.pdf". And then, I pack them to a ".tar.gz". According to the .pdf, when I did the step on page 5:./ltib -m prep -p hello.spec,    one error occurred:

Processing: hello
===================
Build path taken because: build key set, no prebuilt rpm,

rpmbuild --dbpath /home/bia/projects/linux/1008/ltib/rootfs//var/lib/rpm --target arm --define '_unpackaged_files_terminate_build 0' --define '_target_cpu arm' --define '__strip strip' --define '_topdir /home/bia/projects/linux/1008/ltib/rpm' --define '_prefix /usr' --define '_tmppath /home/bia/projects/linux/1008/ltib/tmp' --define '_rpmdir /home/bia/projects/linux/1008/ltib/rpm/RPMS'  --define '_mandir /usr/share/man' --define '_sysconfdir /etc' --define '_localstatedir /var' -bp  /home/bia/projects/linux/1008/ltib/dist/lfs-5.1/hello/hello.spec
Building target platforms: arm
Building for target arm
error: line 35: Second %files list
Build time for hello: 0 seconds

Failed building hello


f_prep() returned an error, exiting
traceback:
 main:560

Exiting on error or interrupt
bia@bia:~/projects/linux/1008/ltib$

 

I really do not know how to deal with it , can you help me ?

 

best regards

 

0 Kudos
Reply
1,276 Views
TomE
Specialist II

> Now,I'm just starting my adventure with Linux and iMX

> ...

> Building target platforms: arm

 

You're using the "iMX" part which uses an ARM CPU.


This forum is for ColdFire parts. Please post in the iMX forum.

 

Tom

 

0 Kudos
Reply
1,277 Views
fjrg76
Contributor IV

Done!!

 

I was able to upload my own "hello_world" app on February the 23th.

 

 

0 Kudos
Reply
1,276 Views
fjrg76
Contributor IV

 

The device drivers are not in the form *.h/*.c, but as patches, so they must be applied against some file (look inside any .patch file). All patches (device drivers) are at:

  /opt/freescale/pkgs/

 

 

It's still missing how to upload a "hello world" app using PEMicro BDM .

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0 Kudos
Reply
1,276 Views
fjrg76
Contributor IV

fjrg76 wrote:

Hi!! I got my new EVB board and it works out of the box. But I have two questions:

 

1. Before reload a new kernel, I would like to test some simple applications, however I have no clue how to do it (on top of Linux). It's easy when programming in a PC, but with this board I guess I need to do some more than compiling (e.g. using the serial port for uploading my app image). I mean, suppose I have an app compiled and linked, now it's time to upload to the board, how can I do it??

 

 

R: THE INSTRUCTIONS FOR UPLOADING A NEW KERNEL ARE AT

 

<ltib>/config/platform/deployment_instructions.txt

 

 

2. Later on I'll need to write a device driver for a distinct (bigger) LCD, among other peripherals (like reading external pulses or the ADC converter), but I cannot find the driver's source code anywhere in the DVD nor the bunch of things that were installed after following the "BSP Targeting the Freescale ColdFire M5227xEVB" document. Any ideas where are the source code of the drivers??

 

 

R: I'M STILL LOOKING FOR THE DEVICE DRIVERS LOCATION =)

 

HOWEVER AFTER INSTALLING THE LTIB, IT'S INSTALLED AT

 

/opt/freescale/

 

 

 

Thank you in advanced!!


 

0 Kudos
Reply