Forum Replies Created
-
AuthorPosts
-
andrei0686Participant
Thanks for the help, but unfortunately my trial version is over and I can not check your recommendations.
andrei0686ParticipantI 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” xmlns:xsd=”http://www.w3.org/2001/XMLSchema”>
<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>andrei0686ParticipantNothing 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, 4 months ago by andrei0686.
- This reply was modified 9 years, 4 months ago by andrei0686.
- This reply was modified 9 years, 4 months ago by andrei0686.
andrei0686ParticipantI 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); } }
-
AuthorPosts