newbie post - using NNDK-SB70LC-KIT without uC/OS

Discussion to talk about software related topics only.
Post Reply
sehsamudra
Posts: 19
Joined: Fri Sep 23, 2011 10:11 pm

newbie post - using NNDK-SB70LC-KIT without uC/OS

Post by sehsamudra »

Hi, I am very much aware of the power of uC/OS, and am enjoying playing with my first NNDK-SB70LC-KIT. All is well. However the legacy code (with sparse documentation) I have been given to port onto the ColdFire 5270 processor that will have to interact with a SPI based sensor, was written about 10 years ago in a monolithic C program with a few function calls - essentially *.c, *.h and linked libraries.

I will have to later convert this code to run under uC/OS, but for now, I wish to perform validation of the legacy code, where I would like to simply compile and run it as a single executable (no other) on the SB70LC board, to verify SPI/Serial communication and potentially the processing algorithm and a few digital I/O pins to output to a nearby LCD panel about its operation, or perhaps leave it as a serial output for convenience.

May I ask for recommendations on:
  • Is the stock SB70LC delivered loaded with uC/OS ? Can it be erased?
  • Can I reload uC/OS again if it erased? Where would I get this executable?
  • Can I use the NNDK to complile a single non-uC/OS executable?
  • If not, can I use straight GNU to develop for the 5270 target?
For development, do you think it would be possible at all to download (uC/OS) and (My single executable) applications on the same SB70LC board and have a hardware toggle switch to decide which program to boot?

By the way, isn't there a generic boot loader process for this cpu? Is that documentation explained in Netburner files w.r.t uC/OS, or do we have to look at the Coldfire docs ?

my apologies for this first, really difficult query, but at least it is an interesting one for all of you I hope.

Alternatively, is porting a legacy C code to the uC/OS environment well explained somewhere?

Thank you and Regards!
User avatar
pbreed
Posts: 1091
Joined: Thu Apr 24, 2008 3:58 pm

Re: newbie post - using NNDK-SB70LC-KIT without uC/OS

Post by pbreed »

Does you legacy code have interrupts?

If the answer is no, then just stick the old main in a function and call that at the end of the UserMain task.
That way your code just runs as its own task.

Paul
Post Reply