This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Converting from CARM to RV-Compiler

Hello,

I have been using the CARM-Compiler together with the ARM-STR710FZ2 controller.

Now I want to convert this project to the RV-Compiler.
How can I use the malloc and sizof function to work correctly with the RV-Compiler.

The Init_mempool I used with the CARM-Compiler doesn't work.

Can someone help me or have some experience concerning this problem.

thanks

Manfred

  • "How can I use [insert implementation-defined function here] to work correctly with [insert name of implementation here]."

    Surely the answer to such questions is always to read the manual for the specific implementaion?!

    Just as the CARM manual told you about init_mempool for CARM, so the RV manual will tell you what to do for RV!

  • In this particular case, since it was Keil themselves that discontinued CARM in favour of RealView, one might hope that Keil would provide a specific documnet that describes how to migrate from their old tools to their "new" offering...?

    Erik did post a comment to similar effect recently, but I can't find it. :-(

  • Manfred,

    Take a look at example:

    \Keil\Arm\RV30\Examples\Memory.Uv2

    Memory.C contains a 'malloc()'.

    This requires a heap, it is setup in Startup.s; check the definition of 'Heap_Size' in Startup.S.

    This basically replaces 'Init_mempool'

    Peter