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

Parents
  • 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

Reply
  • 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

Children
No data