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

cross mob

Create a single firmware build based on CCGx Host SDK v3.2.1 example project

lock attach
Attachments are accessible only for community members.

Create a single firmware build based on CCGx Host SDK v3.2.1 example project

ShifangZ_26
Moderator
Moderator
Moderator
10 likes given 250 sign-ins 1000 replies posted

1. New created CCGx project based on example code. (Use CCGx Host SDK, since the CCGx project in the Host SDK have includes i2c-boot project.)

  • File >> New >> Project…
  • Select project type >> Target kit: EZ-PD CCGx HOST SDK (CCG3)

pastedImage_19.png

  • Select project template >> Code example

 

  • Select a code example >> CYPD3125-40LQXI_notebook

 

  • Create Project>> name workspace/specify location/name project name.

pastedImage_25.png

  • Add i2c_boot project into workspace: right click “Workspace”, select Add>> Existing Project…

pastedImage_27.png

 

2. Boot-loader Project Changes.

  • Open TopDesign.cysch of i2-boot project. And then double click Bootloader_1 component to Make sure that the “Dual-application bootloader” option is unchecked.

pastedImage_32.png

  • Open config.h file from i2c-boot project head files. Enable define CCG_DUALAPP_DISABLE (CCG_DUALAPP_DISABLE is set as 0u for dual images by default.)

pastedImage_33.png

  • Compile the project to generate the customized single bootloader binary (.hex & .elf).

 

3. Application Project Changes (notebook example).

  • Pre-build CYPD3125-40LQXI_notebook. cyprj project and generate all relates files.
  • Open the CYPD3125-40LQXI_notebook. cyprj project using PSoC Creator 4.2 (the latest version). Double click Bootloadable_1 component and updates the. hex file and .elf file from above process.

pastedImage_38.png

  • Update Project -> Build Settings -> Debug -> Debug Target from Application Code and Data 2 to Application Code and Data.

pastedImage_40.png

  • Update linker script for single image build.

pastedImage_42.png

  • Open the “Project -> Build Settings -> ARM GCC -> User Commands” section and add the following pre-build command.

cmd /c "copy .\Bootloader\CYPD3125-40LQXI_i2c_boot_1_0_3_461_0_0_0_nb.c Generated_Source\PSoC4\cybootloader.c & copy .\Bootloader\CYPD3125-40LQXI_i2c_boot_1_0_3_461_0_0_0_nb.icf Generated_Source\PSoC4\cybootloader.icf"

-----------------------------------------Make sure first step was completed----------------------------------------------

pastedImage_43.png

  • Build All project

 

-- Attach files:

1. Guide.pdf -- steps for Create a single firmware build based on CCGx Host SDK v3.2.1 example project PDF format.

2. CYPD3125-40LQXI_notebook_single.zip -- Example project based on CYPD3125-40LQXI_notebook.

3. cm0gcc.ld -- link script for single image.

Attachments
651 Views
Comments
RyanZhao
Moderator
Moderator
Moderator
250 sign-ins First question asked 750 replies posted

手动点赞!!!

GrCa_1363456
Level 6
Level 6
50 likes received Beta tester First comment on KBA

Thanks for creating and posting a detailed Step by Step example.

Step by step examples are helpful.

Please update this example to clarify where the i2c_boot project comes from

Bottom of step 2; after "right click “Workspace”, select Add>> Existing Project…", PSoC Creator 4.3 opens a file explorer window in the project directory on my PC. If I need to first create an i2c_boot project, where does it come from?

If I need to create a Boot Code Example first, please explain or add a link. I was able to find are associated with PSoC 6 such as CE213903 and CE221984.

Again, I really appreciate step by step instructions and I understand there are some steps that become intuitive and aren't described in detail. Unfortunately, some of those intuitive steps aren't intuitive for everyone.

Thanks for your support.

ShifangZ_26
Moderator
Moderator
Moderator
10 likes given 250 sign-ins 1000 replies posted

You need install Ez-PD HOST SDK at first. Meanwhile, the correct PSoC Creator for Ez-PD HOST SDK is:

PSoC Creator  4.2 (4.2.0.1125)

Culture: English (United States)

OS Version: Microsoft Windows NT 6.1.7601 Service Pack 1

CLR Version: 4.0.30319.42000

The SDK download link: https://www.cypress.com/documentation/software-and-drivers-archive/ez-pd-sdk-archives

Best Regards,

Lisa