PSoC 6 Change Memory Layout

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

cross mob
RyWi_4724536
Level 3
Level 3
10 replies posted 10 questions asked 10 sign-ins

I will be using the PSoC 6 to store a firmware image to then program other PSoCs. For now I just want to store 512kB of data on its internal flash.

I went through the PSoC6 MCU Basic Device Firmware Update document(CE213903) and that found I could store about 256kB onto its internal flash, but higher than that I run into problems. I am just using cy_flash.h, specifically Cy_Flash_EraseRow and Cy_Flash_ProgramRow to store my data.

From the Memory layout in CE213903 it appears 128kB are sectioned off for app1 core0, and app1 core 1. I want to increase this size to be 512kB, but I am not sure what to change in the linker files(dfu_cm4.ld, and dfu_cm0.ld) to increase the memory sectioned off. The memory map shows that there are 639kB starting at 0x1006 0000 that are empty/reserved so I am hoping to use that.

Does anyone know how to modify those linker files to allow me access to 512kB of memory?

0 Likes
1 Solution

Hi,

If you are sending the hex file from PC to PSoC 1 during run time you cannot use the const type qualifier. Those constants which are defined during compile time only has constant qualifiers. In your case you have to use global variable buffer only.

Few questions:

1. From your decription, you want to send the hex file from PC to the PSoC #1 and from there you want to program other PSoC correct? If so, can we know why you are not directly programming the other PSoC s from the PC?

2. Is it possible for you to store the hex file in PSoC#1 during compile time itself ? because the amount of Flash as well as SRAM available in PSoC differs from family to family. What the part number of PsoC 6 device that you are using? Please refer the following 2 datasheets for difference in memories between two PSoC families.

https://www.cypress.com/file/385921/download

https://www.cypress.com/file/460816/download

Thanks and regards

Ganesh

View solution in original post

0 Likes
5 Replies