Psoc 4 BLE uCOS error

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

cross mob
lock attach
Attachments are accessible only for community members.
RoFr_4201436
Level 3
Level 3
50 sign-ins 25 sign-ins 10 replies posted

Hello there, i'm trying to run this project on my psoc 4 BLE - CY8C4247LQ*-BL483, but appear this error:

RoFr_4201436_0-1613016393481.png

 

Someone can help me to take it out this error?

The project is: uCOS\Micrium\Examples\Cypress\uCOS_PSoC4_BLE\OS2\PSoC\uCOS II.cywrk

0 Likes
1 Solution
Rakshith
Moderator
Moderator
Moderator
250 likes received 1000 replies posted 750 replies posted

Hi @RoFr_4201436

Right. I am sorry I missed changing the device to CY8C4247LQI-BL483. Now I am able to recreate the issue. 

CY8C4247LQI-BL483 has 16KB SRAM and 128KB of Flash.

Rakshith_2-1613123955967.png

When I successfully built the project for the default device this was the memory consumption result - 

Rakshith_0-1613123751599.png

The project requires about 167KB of flash and about 22KB of SRAM. The error is due to insufficient memory in the selected device.

Thanks and Regards,
Rakshith M B

View solution in original post

0 Likes
13 Replies
Rakshith
Moderator
Moderator
Moderator
250 likes received 1000 replies posted 750 replies posted

Hi @RoFr_4201436

These are the steps that I tried to recreate the issue - 

  1. Downloaded the zip file shared and extracted it.
  2. Opened the project file in the path - uCOS\Micrium\Examples\Cypress\uCOS_PSoC4_BLE\OS2\PSoC\PSoC 4BLE_uCOS II.cydsn 
  3. A few components required an update, so I updated the components and clicked on Build.
  4. The build went through as shown - 

Rakshith_0-1613111861143.png

Can you please let me know if I have missed anything?

Thanks and Regards,
Rakshith M B

I think that you missed of the "Device Selection", change the device for CY8C4247LQ*-BL483.

I was trying to follow this tutorial:

https://www.hackster.io/48767/c-os-ii-with-psoc-4-ble-73b961#comments

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

You forgot to change the "Device Selection" for CY8C4247LQ*-BL483.

I would like know if have a way to adaptide some arguments about the memory rom, ram, flash, etc, of this project. Because i need to program on uCOS. 

I was following the project on the attachment.

0 Likes
RoFr_4201436
Level 3
Level 3
50 sign-ins 25 sign-ins 10 replies posted

You forgot of change the "Device Selection" for CY8C4247LQ*-BL483.

I would like know if have a way to adaptide some arguments about the memory rom, ram, flash, etc, of this project. Because i need to program on uCOS. 
I was trying to follow this tutorial:

https://www.hackster.io/48767/c-os-ii-with-psoc-4-ble-73b961

0 Likes
Rakshith
Moderator
Moderator
Moderator
250 likes received 1000 replies posted 750 replies posted

Hi @RoFr_4201436

Right. I am sorry I missed changing the device to CY8C4247LQI-BL483. Now I am able to recreate the issue. 

CY8C4247LQI-BL483 has 16KB SRAM and 128KB of Flash.

Rakshith_2-1613123955967.png

When I successfully built the project for the default device this was the memory consumption result - 

Rakshith_0-1613123751599.png

The project requires about 167KB of flash and about 22KB of SRAM. The error is due to insufficient memory in the selected device.

Thanks and Regards,
Rakshith M B
0 Likes

Thanks for help me. Do you know another project that use uCOS that can working on my psoc model?

0 Likes

Hi @RoFr_4201436

I used the project shared in the below link, updated the components, fixed few I2C API errors, removed DMA, and the project built successfully. Can you please try the same? 

Project Link - https://www.micrium.com/download/micrium_cy8ckit-044_os2/

You could also try removing BLE in the previous application (if it's not needed) and check if that works.

Thanks and Regards,
Rakshith M B

Thanks. Sorry for my ignorance, but how to remove the dma of the project, can you attach the project that you change here?

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

Hi @RoFr_4201436

I removed the DMA component from the TopDesign, commented out all DMA calls, and fixed any build errors that showed up. The project will not be functional as DMA is removed but you should be able to use this as a reference to implement your uC/OS-II application.  

Thanks and Regards,
Rakshith M B

Thanks dude, now it's working! I am learning about the uC/OS yet, that's why that I have difficult to organize the project.

0 Likes

Glad you are able to get it to work now! 🙂 

Thanks and Regards,
Rakshith M B
0 Likes

One more question. If I was create a new project using uC/OS, do I need to create a project normally and then include the uC / OS folders? Is there an easier method? 

0 Likes

A workaround for this would be to create an empty uC/OS example and then copy that example for every new uC/OS project.

Thanks and Regards,
Rakshith M B
0 Likes