Author Topic: Running C programs  (Read 11230 times)

b00011692

  • Guest
Running C programs
« on: March 06, 2004, 09:38:11 am »
Hi, I am using the M68EVB912B32 board with Micro IDE.
I tried to run a simple hello world program but it doesnt work. I was able to write an assembly code and its running fine.
C code compiles, download fine but I cant run them. Please HELP

vitaliy

  • Full Member
  • ***
  • Posts: 30
    • View Profile
Re: Running C programs
« Reply #1 on: March 07, 2004, 04:22:00 am »
I guess you have some problems with CSTARTUP files.
In other words, you should  adapt the start-up code for your board.
Please check 6812RLM.ASM, 6812RLP.ASM, and 6812RLS.ASM files
under C:\\bipom\\devtools\\MicroC\\Lib12 folder.
As minimum action  you have to uncomment  RESET vector (6812RLS.ASM)

*
* DDS MICRO-C 68HC12 Runtime library - Suffix file
*
?heap      EQU      *            Heap memory goes here
* For stand-alone ROM system, uncomment the following
     ORG      $FFFE            Position to reset vector
     FDB      ?begin            Set start address
*00000

b00011692

  • Guest
Re: Running C programs
« Reply #2 on: March 08, 2004, 03:48:40 am »
Thank you for your help. I tried that but it didnt work. I also tried using the board with kevin and ross BDM12. I compile with micro IDE and debug using another debbuger software(NOICE).
I hope you can help me solve this problem.