mattia

Forum Replies Created

Viewing 15 posts - 16 through 30 (of 33 total)
  • Author
    Posts
  • in reply to: Difference in compile size #28349
    mattia
    Participant

    It seems a great solution. My only question is: how can I import the project created for Truestudio in VisualGDB to compare with the differential view in Memory Explorer? Can I import a single elf file?

    Thank you,

    Mattia Berton

    in reply to: Tab indenting not working #27732
    mattia
    Participant

    Ok, I will try to be more exhaustive:

    I’m starting the debug of a project imported from CubeMX. I attached the project in .gpdsc format.

    I would like to have intelligent indent. I’d expect that when I press backspace to the tab, the cursor goes back to as many spaces as set in the option menu. However, in the main.c file generated (attached, called “Tab not working”), when I press backspace the cursor goes back only one space. I attach the tab option menu.

    I added another .c source file, called app_execute.c (attached, called “Tab working”). This file behaves exactly as expected. I’m attaching the two screenshots of the main.c file and app_execute.c file.

    Can you explain why the two .c files behave in a different way in the tab indenting?

    Thank you,

    Mattia Berton

    Attachments:
    You must be logged in to view attached files.
    in reply to: ESP8266 NodeMCU + JTAG issue #27656
    mattia
    Participant

    Hello,

    the Power supply seems to be very stable, and I recontrolled the wiring to be sure not to make any error. I replaced the firmware with the one from the “Hello World” example, putting the bootloader in 0x0000, partition table at  0x8000 and the firmware at 0x10000.

    I also checked the esp8266.cfg in the target file, which, in my case, is “c:\Users\Mattia\AppData\Local\VisualGDB\EmbeddedDebugPackages\com.sysprogs.esp8266.core\share\openocd\scripts\target\”, and it has the following instruction:

    set _CHIPNAME esp8266

    transport select jtag

    reset_config trst_and_srst

    adapter_khz 1000

    jtag newtap $_CHIPNAME cpu -irlen 5 -ircapture 0x1 -irmask 0x1f

    set _TARGETNAME $_CHIPNAME.cpu
    target create $_TARGETNAME xtensa -endian little -chain-position $_TARGETNAME

    # esp8266 seems to have a quirk where the JTAG hardware doesn’t work
    # at all for ~20ms after RST is released. We do a custom reset to
    # avoid JTAG layer errors
    proc init_reset {mode} {
    # assert both resets (SRST/TRST not a clear division on esp8266 anyhow)
    jtag_reset 1 1
    sleep 30
    jtag_reset 0 0

    # wait for debug port to wake up
    sleep 30

    # validate scanchain
    jtag arp_init
    }

    # Disable system watchdog when halted to avoid unexpected resets
    $_TARGETNAME configure -event halted {
    stop_wdt
    }

    proc stop_wdt { } {
    mww 0x60000900 0
    }

    But I still can’t go in JTAG mode.

    In any case I can see the reset pin going down, neither in pin 3 nor in pin 15. Is there any other way to reset the chip, even manually, to enter in JTAG debug?

    Thank you,

    Mattia Berton

    mattia
    Participant

    Hello,

    I have been able to find the instruction which creates the problem, however I can’t understand why. I can send you the sln, just tell me the mail where to send.

    Anyway let me explain: I followed your instruction, and the problem gets triggered with the “save” button. I replaced the main file (commenting the intere file) with the snippet, and Clang works if the snippet is placed before the comment, while it gives a mistake if it is placed at the end of the comment.

    Then I placed the snippet after the #include block, and Clang works. However it stop working if I put it after the variable declaration:

    BARRIERA_STATO stato_barriera; //uso solo le velocità

    where BARRIERA_STATO is an enum defined as follows:

    typedef enum
    {
    BARRIERA_STATO_OFF = 0, //bit 2-1-0
    BARRIERA_STATO_ON,
    BARRIERA_STATO_DUMMY2,
    BARRIERA_STATO_DUMMY3,
    BARRIERA_STATO_DUMMY4,
    BARRIERA_STATO_DUMMY5,
    BARRIERA_STATO_DUMMY6,
    BARRIERA_STATO_DUMMY7,

    BARRIERA_VARIANTE = 8, //bit 3 (0 = veriante1)

    BARRIERA_VELHI = 16, //bit 5-4
    BARRIERA_VELMED = 32,
    BARRIERA_VELLO = 48,

    BARRIERA_RES_50 = 64, //bit 7-6
    BARRIERA_RES_100 = 128,
    BARRIERA_DUMMY8 = 192
    }BARRIERA_STATO;

    included in an header file. From my point view, I can’t find why this enum confuses the Clang. Do you have an idea?

    Thank you,

    Mattia Berton

    mattia
    Participant

    Also, this is the configuration for Intellisense, as attached.

    Thank you,

    Mattia Berton

     

    Attachments:
    You must be logged in to view attached files.
    mattia
    Participant

    Hello,

    the problem appears with almost a lot of labels. I’m attaching the errors to the following message, including the activity log on the left. I included because an error appears when I try to CTRL+click for the first time a function (it says: “An exception of type “OperationCanceledExeption” has been encountered. This may be caused by an extension), and it could be related to the problem above.

    Regarding your points:

    1. I put the inctruction “int x = GPIO_PIN_RESET;” almost everywhere, but it doesn’t solve the problem.
    2. I put it anywhere, problem is still there.
    3. Problem is still there
    4. Problem is still there

    I don’t know if it can help, but my system is a Win7 platform working in a small local network. I have stopped the service Windows Update and Windows installer.

    Thank you,

    Mattia Berton

     

    Attachments:
    You must be logged in to view attached files.
    mattia
    Participant

    Hello,

    I tried to remove che CodeDB directory, but without success.

    Anyway, this is what I mean for “lost links”. If I make a code completion (CTRL+Space), the code is correctly interpreted, as you can see in the image named “correct”: I hovered the mouse over the “RELE_VEL1_GPIO_Port” label, and you can jump over its definition without problem.

    If I compile the project, it appears it loses the links, like in image “faulty”: I hovered the mouse over the “RELE_VEL1_GPIO_Port” label, it is now “RELE_VEL2_GPIO_Port” and with CTRL+click I go to the wrong label. Sometimes, when the links are no more present, the message “the selected location does not refer to a C/C++ entity” appears, like in the “miss link” image.

    Can you help me?

    Thank you,

    Mattia Berton

    Attachments:
    You must be logged in to view attached files.
    mattia
    Participant

    Hello,

    I renewed the support.

    in reply to: Inactive code opacity #23512
    mattia
    Participant

    Hello,

    I can’t find it. I searched it in Options->Text Editor->C/C++ (VisualGDB), but then I stopped. Where should I look for?

    Thank you,

    Mattia

    in reply to: ESP32 + VisualGDB Log Output #23131
    mattia
    Participant

    Hello,

    forgive me the stupid question, but where is located the “COM” window in Visual Studio?

    Thank you,

    Mattia

    in reply to: Missing Hardware register definition on ESP32 #21840
    mattia
    Participant

    Hello,

    it seems that some registers are still missing (i.e. timer, uart, …). Here attached the register groups I can see. How can I see the other registers?

    Thank you,

    Mattia

     

    Attachments:
    You must be logged in to view attached files.
    in reply to: Import directory ESP32 #21411
    mattia
    Participant

    Hello,

    Dont worry, I find VisualGDB a really good addon.

    For component.mk, could you help me in how should I edit the file?

    Suppose for example I have a library, with some header and source files, organized in subdirectories, in c:\library\mylib . What step should I follow in component.mk to install all header and source files with their subdirectories?

    Thank you,

    Mattia

    in reply to: Import directory ESP32 #21407
    mattia
    Participant

    Hello,

    I tried it, and seems to work, but I find it a bit annoying, if there are a lot of directory where to search into. Do you think it could be feasible to modify the component.mk, specifying the source directories and header directories?

    Thank you,

    Mattia

    in reply to: Printf output #21406
    mattia
    Participant

    Excellent, it works very good!

    in reply to: Import directory ESP32 #21395
    mattia
    Participant

    The mail is associated to “cristiano (dot) sostero (at) gmail (dot) com”.

    What I need is to add a folder which includes my graphic library. I don’t know what is the best solution for it, if you can help me, it would be high appreciate.

    Mattia

Viewing 15 posts - 16 through 30 (of 33 total)