Debug Multiple programs

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

cross mob
Anonymous
Not applicable

Hello,

   

I'm using PSOC4 BLE, I want to know that how can we debug multiple programs in our PSOC board, When i feed 1 program in it & want to program again then last program will not work, SO how can i debug it with multiple programs. How can we add a log file in PSOC creator .

0 Likes
1 Solution
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

When you design a "typical" embedded design there are multiple

   

pieces of hardware running and their associated firmware. But the

   

machine is sequential, executing one line of code at a time. So normal

   

debug in multiple pieces of code you can set breakpoints in them, and

   

do things like read a timer, or a counter, or variables, when the breakpoints

   

are hit.

   

 

   

But again all this code runs sequentially in that the CPU processes one

   

instruction at a time. The PSOC 1, 3, 4, 4M, 4BLE, 5LP are all single

   

core devices, running one line of code at a time.

   

 

   

That being said there are also in many PSOCs parallel processes, like

   

DMA. and other pieces of HW that run in parallel.

   

 

   

https://www.youtube.com/watch?v=kX5sA9R5B30

   

 

   

PSOC Starter Videos

   

http://www.cypress.com/video-library/PSoC/psoc-analog/106851?tid=38136&sort_by=created&page=1     PSOC Analog

   

http://www.cypress.com/video-library/PSoC/psoc-3-and-psoc-5-overview/106841?tid=38136&sort_by=create...     PSoC 3 and PSoC 5 Overview

   

http://www.cypress.com/video-library/PSoC/building-block-solutions/106811?tid=38136&sort_by=created&...     PSOC Building Block Solutions

   

http://www.cypress.com/video-library/PSoC/psoc-digital-functionality/106816?tid=38136&sort_by=create...     PSoC Digital Functionality

   

http://www.cypress.com/video-library/PSoC/psoc-today-digital-filtering-psoc-part-i/106566?tid=38136&...     PSoC Today! Digital Filtering with PSoC Part I

   

http://www.cypress.com/video-library/PSoC/an52705-using-dma-psoc-3-and-psoc-5/106646?tid=38136&sort_...     AN52705- Using DMA on PSoC® 3 and PSoC 5

   

 

   

Regards, Dana.

View solution in original post

0 Likes
6 Replies
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

What do you mean with 'log file'? What exactly do you want to see there?

   

Regarding multiple programs: its not exatly possible. The PSoC4 is not a normal computer with an operating system, but an embedded system. How yould you go an select the program you want to run? If you can answer that question, then maybe you can come up with a scheme for having multiple programs.

0 Likes
Anonymous
Not applicable

I'm going to make a data logging system using PSOC 4 BLE, SO i want to program my chip with Uart,PWM,ADC, RTC some multiple programs in it. But when i debug the PSOC on a program it is just working on it, not working on last program.
 How can i feed multiple program in PSOC chip.

0 Likes
Anonymous
Not applicable

I want to create a log file just because i want to store the data in SD card.

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

When you design a "typical" embedded design there are multiple

   

pieces of hardware running and their associated firmware. But the

   

machine is sequential, executing one line of code at a time. So normal

   

debug in multiple pieces of code you can set breakpoints in them, and

   

do things like read a timer, or a counter, or variables, when the breakpoints

   

are hit.

   

 

   

But again all this code runs sequentially in that the CPU processes one

   

instruction at a time. The PSOC 1, 3, 4, 4M, 4BLE, 5LP are all single

   

core devices, running one line of code at a time.

   

 

   

That being said there are also in many PSOCs parallel processes, like

   

DMA. and other pieces of HW that run in parallel.

   

 

   

https://www.youtube.com/watch?v=kX5sA9R5B30

   

 

   

PSOC Starter Videos

   

http://www.cypress.com/video-library/PSoC/psoc-analog/106851?tid=38136&sort_by=created&page=1     PSOC Analog

   

http://www.cypress.com/video-library/PSoC/psoc-3-and-psoc-5-overview/106841?tid=38136&sort_by=create...     PSoC 3 and PSoC 5 Overview

   

http://www.cypress.com/video-library/PSoC/building-block-solutions/106811?tid=38136&sort_by=created&...     PSOC Building Block Solutions

   

http://www.cypress.com/video-library/PSoC/psoc-digital-functionality/106816?tid=38136&sort_by=create...     PSoC Digital Functionality

   

http://www.cypress.com/video-library/PSoC/psoc-today-digital-filtering-psoc-part-i/106566?tid=38136&...     PSoC Today! Digital Filtering with PSoC Part I

   

http://www.cypress.com/video-library/PSoC/an52705-using-dma-psoc-3-and-psoc-5/106646?tid=38136&sort_...     AN52705- Using DMA on PSoC® 3 and PSoC 5

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

Thank you Dana.

   

We can add some schematic in chematic page, But how can we add program.

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

There is a basic file main.c, in Source Files folder, Workspace Explorer, and

   

you start there. You can also add other .c files in Workspace Explorer. To organize

   

your code into logical units.

   

 

   

Take a look at the starter videos.

   

 

   

Regards, Dana.