Doubt: code directory structure

sangu-lisa wrote on Thursday, October 11, 2012:

in code directory stricture , in the folder Source\portable\GCC , there are 2 folders
ARM_CM3 and ARM_CM3_MPU . What is the difference between these two ?

Regards
Lisa

rtel wrote on Thursday, October 11, 2012:

One does not use the MPU (memory protection unit) and runs all the tasks in privileged mode.  The other does use the MPU and tasks can be created in privileged or unprivileged mode.

http://www.freertos.org/FreeRTOS-MPU-memory-protection-unit.html

Regards.

sangu-lisa wrote on Thursday, October 11, 2012:

So porting “every” arm cortex-m3 microcontroller running on gcc compilor should use portable\GCC\ARM_CM3 folder ? ( if MPU is not needed)

rtel wrote on Thursday, October 11, 2012:

Yes.  The code in that directory is the code to use for *all* Cortex-M3 ports that don’t use the MPU, and *all* Cortex-M4 ports that don’t use either the MPU or FPU.

Regards.

sangu-lisa wrote on Thursday, October 11, 2012:

A little confused again… I am sorry for that …

TI has arm cortex M3 based microcontroller
Atmel also has arm cortex M3 based controller

so both of these micro controller running on gcc compiler should use code from  portable\GCC\ARM_CM3  folder ?

-Lisa

rtel wrote on Thursday, October 11, 2012:

Yes.

sangu-lisa wrote on Thursday, October 11, 2012:

I understood . :slight_smile: richardbarry thank you for your immediate response.
i have sent a message to you. hope u see it

sangu-lisa wrote on Thursday, October 11, 2012:

Based on the understanding , let me tell you my setup

*** I am porting Microcontroller Samsung XXXX which is based on ARM cortex-m3 on IAR tools **

1) so i dont have to change anything .because Source\portable\IAR\ARM_CM3 code is already present.
2) and Source folder contains queue.c , list.c,tasks.c files and Source\include folder contains other header files necessary

3) and I will create a demo application inside Demo/CORTEX_SamsungXXX_IAR  folder

Is this correct way ?

Regards
Lisa

sangu-lisa wrote on Friday, October 12, 2012:

somebody can say YES / NO :))) ??

rtel wrote on Friday, October 12, 2012:

Yes.

Regards.

sangu-lisa wrote on Friday, October 12, 2012:

superb … richard,  i would love to see ur replies

-Lisa

sangu-lisa wrote on Monday, October 15, 2012:

i decided to take an already existing demo application and use it.
which DEMO application you suggest for a starter like me ? so that i can do minor modification n reuse it ?
( My set up is mentioned above at reply No 8)

Regards
Lisa