2022-10-20 01:02 AM
2022-10-20 01:18 AM
Create in CubeIDE C++ project ...
2022-10-20 01:46 AM
sory but ı hav basic level on this stm32. can u explain the critical steps. for example, should ı write my code as copy and paste or should ı add some lib headers or etc.
Thanks for your response
2022-10-20 07:30 AM
Install STMCubeIDE , run it create new project , choice your discovery board and C++.
...
2022-10-21 05:57 AM
selected c/c++ project, selected c++ Manage Build, and under the executable file selected STM32F4xx C/C++ Project with Cross ARM Choice, and
Toolchain name: GNU Tools for ARM Embedded Processors (arm-none-eabi-gcc)
Toolchain path: ARM Embedded GCC ... and ı pressed finish.
now it bring an folders which includes GNU folders...
after that ı write simple code for demo:
#include <stdio.h>
int main() {
printf("Hello World\n");
return 0;
}
But it gives error..
2022-10-21 11:16 AM
2022-10-21 11:45 AM
>>But it gives error..
Error says what?
The main() has nowhere to return too, and the printf() expects you to provide some plumbing that indicates where and how the data goes somewhere.
You are responsible from bringing up clock, pins, peripherals.
2022-10-21 01:10 PM
Here you can find helping hands for your project.
2022-10-24 07:34 AM
Actually ı looking for pritng C++ stringCode the hello World output in a serial monitor by using COM connection. Is that Possible?
Probaly, If ı can figure out this way maybe ı can run my C++ Math Code in STM32...
2022-10-25 03:26 AM
on F4disco board should be STLink V2.1 ; this makes multi-USB device, for debug and a vcp (com port).
look for example in STM files, and disco manual, which USART is connected to stlink/serial .