Author Topic: Download Code to STR9Comstick  (Read 25555 times)

Offline abhimanyum

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • Ae Applications
Download Code to STR9Comstick
« on: August 15, 2011, 07:08:02 PM »
Hi Mark,

I'm Using following tools:

Hardware: STR9ComStick STR912F ARM9MCU
Software: 1. Microsoft Visual Studio 6 (C++ IDE) for Simulator
              2. HiTOP5 IDE By Hitex.

After following your PDF for creating a Simple Task (Hello World). How to do following:

1. Identify Which Files to Upload to STR9Comstick (which is including uTasker + My Code C File).
2. How to Upload to STR9Comstick.


Would really appreciate your help Mark.

Thanks for your time, :)

Cheers,
Ab

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3243
    • View Profile
    • uTasker
Re: Download Code to STR9Comstick
« Reply #1 on: August 15, 2011, 08:07:59 PM »
Hi Ab

There is no HiTOP5 project so you will need to create a project for that IDE.
This may or may not be difficult - there are a coupel of things that need to be right:
1 - the top location in RAM is needed to be known so that the value can be passed to the heap initialisation routine (see HEAP_START_ADDRESS in STR91XF.c)
2 - maybe the enable/disable interrupt routines need to be used form the HiTOP5 library (usualy a define in STR91XF.c)
3 - you may need a new assembler start up file (see crt0_str91x.s as reference) depending on whether the assembler in HiTOP5 can work with it or not.
4 - sometimes the environment requires the startup to call an intermediate main() like __main(), which handles the variable initialisation and the calls the user main(). This is IDE/environment dependent.

The file to be loaded depends on the IDE/debugger. Usually they work with ELF files (containing the object and also debug information). There may be other tools that require different ones (or can accept various) and the formats generated wehn building is an option in the IDE too, so you will need to compare with example projects for that IDE to get an idea of what is best.

Regards

Mark

Offline abhimanyum

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • Ae Applications
Re: Download Code to STR9Comstick
« Reply #2 on: August 23, 2011, 01:19:43 AM »
Hi Mark,

Can you please tell me all the step I need to follow inorder to load my first simple Task (as per your PDF File) and uTasker into STR9Comstick.

I'm really new in this field.


Thanks & Regards,

Ab

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3243
    • View Profile
    • uTasker
Re: Download Code to STR9Comstick
« Reply #3 on: August 23, 2011, 01:17:35 PM »
Ab

The method depends on the tools available.

I think that the information on doing this will be found in the Hitex user's guide - I tend to use Raisonance tools with the STR91xF (for example, not all tools seem to be able to configure the boot block) but, generally, I would expect the IDE to be able to program it simply by selecting the debug mode.

Regards

Mark

Offline abhimanyum

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • Ae Applications
Re: Download Code to STR9Comstick
« Reply #4 on: August 23, 2011, 02:23:34 PM »
Thanks Mark

Offline abhimanyum

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • Ae Applications
Re: Download Code to STR9Comstick
« Reply #5 on: August 28, 2011, 03:56:23 PM »
Hi Mark,

Since STR9Comstick, requires single ELF File, so how can create single ELF File from multiple uTasker C Files.


Thanks,
Ab

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3243
    • View Profile
    • uTasker
Re: Download Code to STR9Comstick
« Reply #6 on: August 28, 2011, 09:41:39 PM »
Ab

When the C-files are compiled you will get an object file as result for each file. The linker step will then take the object files as input and create an ELF file (as standard) as output, and optionally other formats (such as binary, HEX, SREC etc.).

Therefore a standard build of the project should result in the ELF file (as long as the build is successful).

Regards

Mark

Offline abhimanyum

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • Ae Applications
Re: Download Code to STR9Comstick
« Reply #7 on: August 28, 2011, 09:54:27 PM »
Thanks Mark very much.

Regards,
Ab