Getting started with OS'less programming

B.P. 2010-02-28 00:53:03 Link
Could you tell me step by step what I have to do and what I need for
programming the Mini2440 without any OS? What source code (header), tools,
etc. do I need and which steps where necessary to run my own code? Is there
any kind of introduction or tutorial for that?

B.P. 2010-03-06 19:52:45 Link
Does nobody has anything to say for that?

ARM 2010-03-06 20:25:16 Link
There several examples under Downloads: 2440test, uCos2
and in the Chinese manual is also a section: ADS, 2440test and uCos2...
http://www.friendlyarm.net/mini2440/mini2440_manual_20100204.pdf
http://www.friendlyarm.net/forum/topic/56
http://www.thaieasyelec.com/Free-Service-from-ThaiEasyElec/ARM9-mini2440...

If you are not familiar with embedded programming, try google "arm9
programming", "arm9 toolchain" etc.

B.P. 2010-03-16 13:21:14 Link
Well, unfortunately just the 2440test files may be helpfull to me, although
I know it already. All the other documents where rather helpfull for
becoming familiar with using Linux and WinCE on the Mini2440 but not with
programming the hardware directly.

Are there any other sources known?

Anurag Mishra 2010-04-05 12:11:59 Link
Hi B.P.

Please let me know if you are able to perform OS-less application
development. I am absolutely clueless !!!

I am required to create some GUI OS-less application for mini2440

B.P. 2010-04-13 15:50:09 Link
Till now I've made no progress but I'll inform you as soon as I know
something new.

Anurag Mishra 2010-04-13 22:07:07 Link
Sure .. thanks a lot.
I will do the same.

gaansan 2010-04-23 17:32:03 Link
Attachment: mini2440 Keil tutorial.rar (652.92 KB)
Hi,
the mini2440 look's good but getting it running seems the other way
round...
I try to compile with KEIL uView4 and ULINK but I'm getting a JTAG
error...On Cinese
Web I found a tutorial on how to do this I also ad a simple test LED which
now compiles.
But I have no idea how to JTAG the board I made a reduction from 20pin JTAG
to 10pin(2mm)JTAG ... When I boot from KEIL the display flashes briefly but
I get JTAC error...
Any way I share the tutorial (translated with google) and the led example. 
Maybe it helps to pave the road... :-)

ram 2010-05-08 07:51:41 Link
Hi,

I did the OS less programming and my development environment is
arm-linux-gcc. 

      Iam able to interface the TFT LCD and UART with the S3C2440. Iam
trying to put these small programs on Google code. 

      My main intention is developing a portable GUI.

      If anybody knows how to maintain a Git source pls let me know.

Regards,
Ram

kemalony 2010-05-10 01:41:53 Link
I have developped an aplication with Keil 4 everything seems ok except
depolying my application some are talking about 4K booting section but have
not got exact informition about it.

matt_Damon 2010-06-14 22:12:17 Link
I was trying to download the LED example but it is not working..Did anyone
had success in running the above example? Did anyone had success in using
keil?

Thanks.

matt_Damon 2010-06-15 15:13:40 Link
Can anyone please provide a working example of KEIL?  I am not able to make
the above LED example work..

Thanks

matt_Damon 2010-06-23 18:59:19 Link
Hello,

I was able to make the above LED example work. However, when I reset the
board it does not automatically load and start running.  Which bootload
should we use?

Thanks.

matt_Damon 2010-07-22 02:24:06 Link
Hello - Did anyone had any luck with Keil??

brox 2010-08-06 13:58:44 Link
I'm using RVDS2.2 v.616 (can be found in torrents). Its much better than
its predecessor ADS1.2 from FriendlyArm DVD. Example projects are almost
perfectly compatible with RVDS2.2, all you need to do is adjust user
include paths. In examples there are absolute paths, which is lame. Use
"relative to project" paths instead. Another thing to pay attention is 8
bytes alignment. Linker will display an error, just google for solution,
its easy :)

Kerob 2010-10-04 00:47:47 Link
Hi people!!

I've been playing with 2410...sorry, it's not a FriendlyARM :$...
But from now I will take it seriously. I was using GCC 2.95.3 but now I
will have to use newer version (just downloaded) because of Speex
optimization. Ah, I'm using OS'less!!

My "kickstart" was Vivi (believe me!!). I changed all source, mapped the
memory to the bottom (runs from 0x30000000), wrote some library and now it
is named Basia. I've developed the following drivers:

1. LCD (I'm using 800x480) with double buffer
2. touchscreen with interrupt
3. SPI...I spent about 2 months trying to make 4 bit bus for SD card,
couldnt make it, dont know why :( 
4. Audio out with DMA (I'm running Speex codec)
5. Serial port (havent done much, need to revise the code)
6. a DMA library for audio and fast memory copy

To make my life easier, I wrote a "downloader" using xmodem who talks to
Vivi. So I dont need to use hyperterminal.

I need to revise the whole code, separate libraries properly, etc...it's a
mess!!!

Let me know how can I help you guys, although I need help too ... I wanted
to make 4bit bus for SD work, if anybody made it for 2410 (I have 2440 with
WinCE, it works fine!)

Regards,

Kerob.

brox 2010-10-07 09:20:44 Link
Hi Kerob!
Mind sharing your code? Some public repo would be great!

Kerob 2010-10-09 18:32:53 Link
hi Brox!
No, I dont mind...
For now I'm cleaning up the code, using GCC 4.1.1 for Cygwin, so I would
need some more time before share it...
Do you have any recommendation for public repository?
Cheers!
Kerob.

brox 2010-10-10 13:56:52 Link
I like Mercurial (aka hg), and http://bitbucket.org does it for free. You
can manage access to your repository.
Another option is http://code.google.com - for open source projects only

umer 2011-09-24 06:55:50 Link
Hi,
Is it possible to start OS less programming on Friendly Arm tiny6410,if so
then from where should I start I have to interface CIS(contact image sensor
with it)develop an 2D barcode reader on it.can any body tell me where
should I start...
any suggestions

Anatoliy Besplemennov 2011-09-24 11:48:43 Link
you can try to use StartOS. It's easy.

naqsh 2011-12-26 08:09:20 Link
@matt_Damon
hi. can u plz tell me how did u make the keil LED example work?
can u plz send me the complete working keil example.
i have been trying like hell but with no success.
any1 plz help me with keil

regards
naqsh

anatoliy 2011-12-26 10:25:33 Link
You can look at code.google.com/p/startos - there is an Example for LEDs in
Keil. LEDs.bin file has size 724 bytes and you can have it on SD card. If
you name it with START.bin it'll be launched in 5 seconds after Power on.

naqsh 2012-01-06 18:55:05 Link
@anatolly
thanx buddy.
i have managed to get that program working along with some editions like
LCD & Uart by loading them into RAM. but as yet i have not been able to do
so by loading it on Nand. i initialized d port pins n nand flash but m
unable to get it working. i wud really appriciate it if u can guide me a
little bit for nand initialization

regards
naqsh
naqsh.salim@gmail.com

anatoliy 2012-01-06 20:02:23 Link
Naqsh,
 for nand initialization you can look at uCOS and test2440 sources, also
the startup.s file in Keil for Samsung S3C2440A must do this work. Or you
can learn Bootloader codes.
 But it's not easy. That's why I advice startos. If your program works in
RAM, you can write it on SD and lunch under startos.
  Once I'd done this duty work I prefer to have deal with SDs. And NAND
flash has limited number of write cycles. (Not little number but if we are
debugging programs and every time write them in NAND...)

 Regards,
 anatoliy

andrés barré 2012-01-09 18:58:22 Link
FFT  no OS works fine...
     
              http://youtu.be/HemL3kkgkVk

Fraser 2012-01-09 22:27:43 Link
andrés, very nice frequency display, how do you talk to the WM9174 audio
chip did you write the interface?

andrés barré 2012-01-10 13:09:07 Link
I make via ADC , and I wrote the driver interface,
http://litium-andres-lu6fkh.blogspot.com/p/sansung-s3c2440-arm9.html here
you can see something from it.

Fraser 2012-01-11 04:36:23 Link
I have been playing with FFTs too.

I notice you are using double precision, it is perfect but very expensive.
if you change to all float it will run faster.

But with float the inverse transform does not sound perfect for DSP. 

For spectrum display only (no DSP) you can use 1024 point integer fft
(IFFT) at 48kHz and it will take up very little CPU.

Anyway nice OS'less work!

(sorry for off topic)

andrés barré 2012-01-11 12:16:50 Link
Fraser . you're right, with single floating is more rapid,
it also improves performace.
  thanks for the considerations, I wanted to leave here in the forum, may
be useful for someone

Abhishek Bhartiya 2012-01-12 10:38:20 Link
Hi all,
I had been working on mini2440 for few months making gui applications on
Qt.
But now i want to program the board on NOR Flash and burn program in Memory
of mini2440.
My motive is to program the UARTS and Ethernet of the board i have to take
data from the UARTs and pump them on to ethernet. So for that i need to
know register settings pin configuration. On which IDE i have to write the
code so that it could be burnt on board.

I am seriously looking to program this way because using Qt application is
generating a lot of overheads.

Thanks in Advance,
Abhishek

Reply

Name
eMail (not visible)
Subject (no text only in upper case; no HELP, URGENT...)
Text
HTML tags are not supported and links are generated automatically if they start with http or ftp.
Please submit long source code or log files as attachment (only registered users).
Please enter the number 8148