- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nakamura-san,
Have your succeeded creating PSoC62XX Cortex M4 using FreeRTOS?
Which part number and which IDE are you using?
Best Regards,
Ryan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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