Irregular .lst file generation

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.
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Attached project opened and built with Creator 4.2 Beta 2.

Open in "Results" both main files (main_cm0p.lst and main_cm4.lst) and see

  28         .file 1 "main_cm4.c"
   1:main_cm4.c**** /*****************************************************************************
   2:main_cm4.c**** * File Name: main_cm0p.c

and

  27         .file 1 "main_cm0p.c"

   1:main_cm0p.c   **** /*****************************************************************************

   2:main_cm0p.c   **** * File Name: main_cm0p.c

Both showing in line 2: the same line referring to main_cm0p which is not written in the original .c source.

Seems as if something is mixed from the projects

Bob

0 Likes
1 Solution

In the archive you attached, I see the comment for m0p.c as below

/*****************************************************************************

* File Name: main_cm0p.c

*

* Version: 1.10

*

* Description: Demonstrates blinking an LED under firmware control. This is done

* by the Cortex-M0+ in a dual-CPU PSoC 6, while at the same time the Cortex-M4

* in the same device blinks a different LED at a different rate.

For m4.c:

/*****************************************************************************

* File Name: main_cm0p.c

*

* Version: 1.10

*

* Description: Demonstrates blinking an LED under firmware control. This is done

* by the Cortex-4 in a dual-CPU PSoC 6, while at the same time the Cortex-M0+

* in the same device blinks a different LED at a different rate.

I am seeing these in the lst files as well.

View solution in original post

0 Likes
4 Replies
MeenakshiR_71
Employee
Employee
100 likes received 50 likes received 25 likes received

Bob,

Seems like the comments in both files are same i.e. "File name" in both the .c files read "main_cm0p.c"

I think it could be a minor mistake while writing the comments. Please check the next few lines of comment and see if they differ.

Regards,

Meenakshi Sundaram R

0 Likes

That is the problem: The comments in the mainxxx.c files are different! Further investigations show that  the issue does not occur when there is only one project in the workspace.

Bob

0 Likes

In the archive you attached, I see the comment for m0p.c as below

/*****************************************************************************

* File Name: main_cm0p.c

*

* Version: 1.10

*

* Description: Demonstrates blinking an LED under firmware control. This is done

* by the Cortex-M0+ in a dual-CPU PSoC 6, while at the same time the Cortex-M4

* in the same device blinks a different LED at a different rate.

For m4.c:

/*****************************************************************************

* File Name: main_cm0p.c

*

* Version: 1.10

*

* Description: Demonstrates blinking an LED under firmware control. This is done

* by the Cortex-4 in a dual-CPU PSoC 6, while at the same time the Cortex-M0+

* in the same device blinks a different LED at a different rate.

I am seeing these in the lst files as well.

0 Likes

Sorry, please remove this thread, apologies. I fetched the .lst files from the first project, but wanted to view the second one's results.

The mainxxx.c had the correct comments for the file names.

Bob

0 Likes