mcu-starter-projects | Simple starter projects for bare-metal MCU development
kandi X-RAY | mcu-starter-projects Summary
kandi X-RAY | mcu-starter-projects Summary
This is a collection of simple projects for bare-metal MCU development. Both Makefiles and IDE projects are provided when possible. The target compiler is GCC.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of mcu-starter-projects
mcu-starter-projects Key Features
mcu-starter-projects Examples and Code Snippets
Community Discussions
Trending Discussions on mcu-starter-projects
QUESTION
I'm currently looking at some startup code for an ARM Cortex-M microcontroller written by someone else. The entire file can be found in this Github repo.
It does stuff like setting up the stack pointer and initalizing the .data
and .bss
sections appropriately using some for loops which are straightforward.
I'm struggling to understand the syntax used to define the interrupt vector table:
...ANSWER
Answered 2021-Jun-18 at 10:48vectors
is an array of of const function pointers which take and return void
.
_stack_top
isn't a function pointer, it's the address of the top of the stack, but for the cortex m, that is always the first element in the vector table.
The Cortex M architecture, and the implementation of it you're using defines the order of, and placement of the vector table. This code is some syntactic sugar to generate the table and place it in the correct location.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install mcu-starter-projects
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page