Sample Code / Setup for M0+ BLE ( CM0P_BLESS )

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

cross mob
matthiasb
Level 3
Level 3
5 likes given 25 sign-ins First like received

Hello,
i'm trying to use the CM0+ Core for BLE. I have chosen the BLE FindMe Example for a starting point and added a custom linkerscript. But as soon as I specify FLASH_CM0P_SIZE above 0x2000 , the resulting executable doesn't run on my CYC8CPROTO-063-BLE.  

Memory Map:

ram (rwx) : ORIGIN = 0x08008000, LENGTH = 0x3F800
flash (rx) : ORIGIN = 0x10000000, LENGTH = 0x100000

I searched a lot on the web and on this site and didn't find an example for using the CM0P_BLESS component.

A complete example on how to set up the CM0P_BLESS component would be very helpful.

Thank you,
 Matthias

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
Yugandhar
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 5 likes given

Hello, 

 Could you please try changing the default(bsp) linker script file ?

Please find the attached project.

Thanks,

P Yugandhar.

View solution in original post

6 Replies
Yugandhar
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 5 likes given

Hello,

Please refer to the section 'Complete BLE Protocol Dual CPU Mode' (in Configuration Considerations) in the PSoC6 BLE Middleware library.

Thanks,
P Yugandhar.

0 Likes
matthiasb
Level 3
Level 3
5 likes given 25 sign-ins First like received

Hello,

I have. But i cannot get it to work with this information. Don't you have a simple example project code ?

Thank you,
 Matthias

 

0 Likes
Yugandhar
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 5 likes given

Hello, 

Please refer to the link for updating the ram, flash, and FLASH_CM0P_SIZE values in the linker script for CM4. In makefile, to operate in Dual CPU mode, add the COMPONENT_BLESS_HOST_IPC and COMPONENT_CM0P_BLESS directory as shown below.


COMPONENTS+=BLESS_HOST_IPC CM0P_BLESS
DISABLE_COMPONENTS+=CM0P_SLEEP

Thanks,

P Yugandhar.

0 Likes

Yes, I have read all the links but i can't get it to work only with this information. My first try was just to replace the components like in your snippet. After that I had to add a linker script with "FLASH_CM0P_SIZE" set to 20000 . But this just doesn't execute on my devboard.

 

Once again a working example would be great!

0 Likes
lock attach
Attachments are accessible only for community members.
Yugandhar
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 5 likes given

Hello, 

 Could you please try changing the default(bsp) linker script file ?

Please find the attached project.

Thanks,

P Yugandhar.

this linker script worked (after modifying the Makefile to use this script). thank you very much!

0 Likes