code manual

Share code examples or discuss embedded software, including device drivers, interrupt handlers, middleware and application code.

Moderators: Markus Girdland, Mattias Norlander

User avatar
artbody
Posts: 18
Joined: Tue Jan 01, 2019 7:07 pm
Location: Germany
Contact:

Re: code manual

Postby artbody » Thu Jan 10, 2019 7:46 am

nuclear__ wrote:Well after a brief search i made the same conclusions about cost and support so i chose st. I bought a nucleo 32f767 to begin . I must start thinking different with this platform. Thank you for your tips


The simple solution is to start with STMcube to configure your MCU board
there you have an easy way to set clock speed, GPIO's, IRQ's Timers and so on.

Save as project , generate code

open Atollic and import ...

Then you'll need the MCU manual and datasheet.
Now you have 2 ways to do your thing
1. use the HAL - this is the easy way
2. use CMSIS and direct register manipulation


:arrow: :idea: One of my best teachers : the STM examples. :mrgreen:
Have a look at them
:idea:
The STMCube downloads them automatically :arrow:

I prefer the HAL. so if you google some code, always use the keywords STM32 HAL ...
Next "learning by doing"
start a simple project i.e. reading a push bottom and blink some led's.
do the same with an IRQ
next use a timer to do the same with PWM output

and so on.

the main difference to avr is a straight line through all STM MCU's
i had the same problem years ago :lol:
i've developed a simple application with a arduinoboard,+ Ardu-IDE some external sensor devices ... then i put all together on a PCB board and thought i can do the programming in the same way over the IDE and USB :cry:
that didn't work because the bootloader on arduino is an other as on the bare chips it self. :evil: :roll:

this way i searched for another MCU it was a STM32L031 Nucleo
a nice little thing.
After 1 month, i had a working application with all parts on a PCB and one of these very cheep chinese STLink's to program all.
2 month later my software was ready and is working like charm .
Linux artbody 4.14.83-gentoo #1 SMP Mon Dec 3 23:46:25 CET 2018 x86_64 AMD FX(tm)-8350 Eight-Core Processor AuthenticAMD GNU/Linux
:mrgreen:

ghjkiuyt
Posts: 1
Joined: Mon Mar 11, 2019 10:24 am

Re: code manual

Postby ghjkiuyt » Mon Mar 11, 2019 10:26 am

Great Information..

DD4DA
Posts: 46
Joined: Thu Jan 11, 2018 10:06 pm

Re: code manual

Postby DD4DA » Sat Apr 20, 2019 10:10 pm

Well, i was not lucky with Atollic TrueStudio, yet. In an eclipse environment, many unusable menu's, option's are available and make the IDE noch very efficent uns the usage. I am also unlucky with the implementation of the gdb interfacing. Why is their not an Option configured for just an upload Firmware instead Debugging?


Return to “Embedded target code development discussions”

Who is online

Users browsing this forum: No registered users and 2 guests