+ Post New Thread
Results 1 to 4 of 4
  1. #1
    Newbie level 3
    Points: 71, Level: 1

    Join Date
    Jul 2019
    Posts
    7
    Helped
    0 / 0
    Points
    71
    Level
    1

    Proteus Error, No Source Line at PC Address

    Hello eveyone,
    I wrote a C code in Atmel Studio for ATmega32. Now I want to debug it in proteus. When I use assembly code I can easily see the Assembly code to do "step in" "step over" and use a breakpoint etc. But when it comes to C programing, I cant see any code to debug it. I load .elf code in proteus.
    Could anyone give me a help on this issue? How can I debug a C code in proteus?

    Click image for larger version. 

Name:	1.JPG 
Views:	9 
Size:	51.7 KB 
ID:	154850
    Click image for larger version. 

Name:	2.JPG 
Views:	1 
Size:	52.1 KB 
ID:	154851

    - - - Updated - - -

    I just found the problem my self!!
    First, when you are going to build a new project you should choose "Create Firmware project" and define the microcontroller device, then choose WinAVR as a compiler on the same page...
    If WinAVR is not installed already, click on compiler and install it!
    easy ! peasy! but take me one day to realize that :)

    •   AltAdvertisement

        
       

  2. #2
    Advanced Member level 2
    Points: 3,284, Level: 13
    baileychic's Avatar
    Join Date
    Aug 2017
    Posts
    652
    Helped
    50 / 50
    Points
    3,284
    Level
    13

    Re: Proteus Error, No Source Line at PC Address

    You can see a drop down box in the screenshot that you have posted. In that select the .c file that is the main source file and debug.



    •   AltAdvertisement

        
       

  3. #3
    Advanced Member level 4
    Points: 7,900, Level: 21

    Join Date
    Jan 2015
    Posts
    1,108
    Helped
    348 / 348
    Points
    7,900
    Level
    21

    Re: Proteus Error, No Source Line at PC Address

    Glad you have solved it, but that error message (or one very like it) can also occur when an error is detected within library code where only the object library has been linked in. Such library code typically does not have source code within your project. The key is to look at the PC and the linker map. (When I read the title, this was what sprang to my mind.)
    Same (apparent) error but very different cause.
    Susan



    •   AltAdvertisement

        
       

  4. #4
    Newbie level 1
    Points: 13, Level: 1

    Join Date
    Nov 2019
    Posts
    1
    Helped
    0 / 0
    Points
    13
    Level
    1

    Re: Proteus Error, No Source Line at PC Address

    I am having the same issue. But even though i gave path to WinAVR in proteus; same error remains



--[[ ]]--