andrei0686

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: ARM Semihosting console not work in Example #6835
    andrei0686
    Participant

    Thanks for the help, but unfortunately my trial version is over and I can not check your recommendations.

    in reply to: ARM Semihosting console not work in Example #6814
    andrei0686
    Participant

    I just downloaded and installed it VisualGDB, it is automatically downloaded toolchain . I do not have installed separately.

    the contents of the file stm32.xml:

    <?xml version=”1.0″?>
    <EmbeddedProfile xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221; xmlns:xsd=”http://www.w3.org/2001/XMLSchema”&gt;
    <ToolchainID>com.visualgdb.arm-eabi</ToolchainID>
    <BspID>com.sysprogs.arm.stm32</BspID>
    <BspVersion>3.2</BspVersion>
    <McuID>STM32F407IG</McuID>
    <MCUDefinitionFile>STM32F4xxxx/DeviceDefinitions/stm32f407xx.xml</MCUDefinitionFile>
    <MCUProperties>
    <Entries>
    <KeyValue>
    <Key>com.sysprogs.bspoptions.primary_memory</Key>
    <Value>flash</Value>
    </KeyValue>
    <KeyValue>
    <Key>com.sysprogs.bspoptions.arm.floatmode</Key>
    <Value>-mfloat-abi=soft</Value>
    </KeyValue>
    <KeyValue>
    <Key>com.sysprogs.toolchainoptions.arm.libctype</Key>
    <Value />
    </KeyValue>
    <KeyValue>
    <Key>com.sysprogs.toolchainoptions.arm.compactcpp</Key>
    <Value>compactcpp</Value>
    </KeyValue>
    <KeyValue>
    <Key>com.sysprogs.toolchainoptions.arm.libnosys</Key>
    <Value />
    </KeyValue>
    </Entries>
    </MCUProperties>
    <BSPSourceFolderName>Device-specific files</BSPSourceFolderName>
    <MCUMakFile>stm32.mak</MCUMakFile>
    <ReferencedFrameworks>
    <string>com.sysprogs.arm.stm32.hal</string>
    </ReferencedFrameworks>
    <FrameworkProperties>
    <Entries />
    </FrameworkProperties>
    </EmbeddedProfile>

    in reply to: ARM Semihosting console not work in Example #6777
    andrei0686
    Participant

    Nothing changed. The console is empty.
    Small changes in configuration: I downloaded VisualGDB 5.0 Beta 5. Nothing changed.

    this code:

    #include <stm32f4xx_hal.h>;
    #include <stdio.h>;

    #ifdef __cplusplus
    extern “C”
    #endif
    void SysTick_Handler(void)
    {
    HAL_IncTick();
    HAL_SYSTICK_IRQHandler();
    }

    extern “C” void initialise_monitor_handles(void);

    int main(void)
    {
    initialise_monitor_handles();
    printf(“hello-2”);

    HAL_Init();

    __GPIOG_CLK_ENABLE();
    GPIO_InitTypeDef GPIO_InitStructure;

    GPIO_InitStructure.Pin = GPIO_PIN_6;

    GPIO_InitStructure.Mode = GPIO_MODE_OUTPUT_PP;
    GPIO_InitStructure.Speed = GPIO_SPEED_HIGH;
    GPIO_InitStructure.Pull = GPIO_NOPULL;
    HAL_GPIO_Init(GPIOG, &GPIO_InitStructure);

    for (;;)
    {
    printf(“hello”);
    HAL_GPIO_WritePin(GPIOG, GPIO_PIN_6, GPIO_PIN_SET);
    HAL_Delay(500);
    HAL_GPIO_WritePin(GPIOG, GPIO_PIN_6, GPIO_PIN_RESET);
    HAL_Delay(500);
    }
    }

    • This reply was modified 9 years, 3 months ago by andrei0686.
    • This reply was modified 9 years, 3 months ago by andrei0686.
    • This reply was modified 9 years, 3 months ago by andrei0686.
    in reply to: ARM Semihosting console not work in Example #6762
    andrei0686
    Participant

    I use arm-eabi GCC version 4.9.2 GDB version 7.8.1.

    Property: Virtual ARM console support i set Enabled.

    board: stm3240G-eval.

    LED connected to GPIOG pin 6 blinks.

    ARM semihosting console is clear, just a black screen.

    this code:

    #include <stm32f4xx_hal.h>
    #include <stdio.h>
    
    #ifdef __cplusplus
    extern "C"
    #endif
    void SysTick_Handler(void)
    {
        HAL_IncTick();
        HAL_SYSTICK_IRQHandler();
    }
    
    int main(void)
    {
        HAL_Init();
    
        __GPIOG_CLK_ENABLE();
        GPIO_InitTypeDef GPIO_InitStructure;
    
        GPIO_InitStructure.Pin = GPIO_PIN_6;
    
        GPIO_InitStructure.Mode = GPIO_MODE_OUTPUT_PP;
        GPIO_InitStructure.Speed = GPIO_SPEED_HIGH;
        GPIO_InitStructure.Pull = GPIO_NOPULL;
        HAL_GPIO_Init(GPIOG, &GPIO_InitStructure);
    
        for (;;)
        {
            printf("Hello");
            HAL_GPIO_WritePin(GPIOG, GPIO_PIN_6, GPIO_PIN_SET);
            HAL_Delay(500);
            HAL_GPIO_WritePin(GPIOG, GPIO_PIN_6, GPIO_PIN_RESET);
            HAL_Delay(500);
        }
    }
Viewing 4 posts - 1 through 4 (of 4 total)