I want to create PSoC62XX Cortex M0 using FreeRTOS

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
nayu_1324776
Level 1
Level 1
First question asked First reply posted

I want to create PSoC62 Cortex M0 using FreeRTOS.

however. The port.c and portmacro.h files for Cortex M0 cannot be installed.

I get an error saying "You tried to add a folder, file or other item, but it cannot be added: (Adding the file named 'port.c' to project 'Design01' would result in a duplicate object file during compilation because there is another file with the base name 'port'. 'port.c' cannot be added to the project.).".

How can I PSoC62 Cortex M0 using FreeRTOS ??

Thanks for the help.

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

I downloaded your project and found/did

(1) port.c is in the PLD so I removed CM0p > FreeRTOS > port.c from the project

(2) in main_cm4.c CY_IPC_CYPIPE_INTR_MASK was not defined

I changed it to CY_SYS_CYPIPE_INTR_MASK

according to the following URL

Build Error 'CY_SYS_CYPIPE_INTR_MASK' Undeclared in PSoC 6 Designs – KBA229096

Now the project is compile-able and seems working on my CY8CKIT-062-WIFI-BT,

although I don't know if this is what you wanted.

moto

View solution in original post

6 Replies
RyanZhao
Moderator
Moderator
Moderator
250 sign-ins First question asked 750 replies posted

Nakamura-san,

Have your succeeded creating PSoC62XX Cortex M4 using FreeRTOS?

Which part number and which IDE are you using?

Best Regards,

Ryan

0 Likes

Ryan-san

I could creating PSoC 62 Cortex M4 using FreeRTOS.

I used IDE PSoC Creator  4.2 (4.2.0.641) , PDL ver 3.04.

I think that coding will be easier if Cortex M0 could be use FreeRTOS.

Regards,

Nakamura

0 Likes

Nakamura-san,

According to the error log, seems the 'port.c' file (may be more files) are duplicated. Could you try clean and rebuild the project?

Or if possible, could you share the project in CDC, so that we can debug on it?

Best Regards,

Ryan

0 Likes
lock attach
Attachments are accessible only for community members.

Ryan-san

Thank you for your suggestion.

Please check the attached project file.

Freertos_m0 folder contains files that FreeRTOS for cortex-m0.

that file is port.c file and a portmacro.h file.

Best Regards,

nakamura

0 Likes
lock attach
Attachments are accessible only for community members.

Ryan-san

I got into psoc creator to port.c and portmacro.h for cortex m0.

however, I am gotten the following error and cannot build.

Build error: undefined reference to `vTaskSwitchContext'

Build error: undefined reference to `pxCurrentTCB'

Build error: undefined reference to `xTaskIncrementTick'

None of the things I have searched don’t make sense to me.

Can anyone help me?

yuyu nakamura

0 Likes
lock attach
Attachments are accessible only for community members.
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

I downloaded your project and found/did

(1) port.c is in the PLD so I removed CM0p > FreeRTOS > port.c from the project

(2) in main_cm4.c CY_IPC_CYPIPE_INTR_MASK was not defined

I changed it to CY_SYS_CYPIPE_INTR_MASK

according to the following URL

Build Error 'CY_SYS_CYPIPE_INTR_MASK' Undeclared in PSoC 6 Designs – KBA229096

Now the project is compile-able and seems working on my CY8CKIT-062-WIFI-BT,

although I don't know if this is what you wanted.

moto