stm32f3-discovery | Rust Board Support Package for the STM32F3DISCOVERY
kandi X-RAY | stm32f3-discovery Summary
kandi X-RAY | stm32f3-discovery Summary
Board support package for the STM32F3DISCOVERY board.
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 stm32f3-discovery
stm32f3-discovery Key Features
stm32f3-discovery Examples and Code Snippets
Community Discussions
Trending Discussions on stm32f3-discovery
QUESTION
I have an stm32f303 discovery board, and I'm trying to understand the linking and relocating process more. I'm compiling and running this example here: https://github.com/mblythe86/stm32f3-discovery-basic-template
The reset stack pointer value is defined in the vector table in the setup script Device/startup_stm32f30x.s. The original value is 0x2000A000 (ie. initial SRAM address + 32K). The only other things I can see that are allocated to the SRAM are the .data and .bss sections:
...ANSWER
Answered 2020-Mar-10 at 00:10My advices.
Download a bit more user friendly IDE with decent debugger GUI. For example atollic studio.
Stop using found somewhere on the net "templates". This one uses prehistoric SPL library - not supported any more by STM. Use CubeMx to generate the project templates.
you have 48k of RAM but divided into two different memory areas. 40k SRAM(0x20000000 - 0x2000A000) and CCM RAM (0x10000000 - 0x10002000)
As per point 3. the last address of the SRAM is 0x2000A000 so when you place the stack at 0x2000A020 - you instantly end up in the HardHault handler. (It is not WDG as in your startup all HFs are handled by one function)
You can also place the stack in the CCM RAM.
This is the simplest configuration - ARM cores have 2 stacks used by the user and the privileged code.
Stack does not have to be at the end of the memory area. I often prevere to place it at the beginning. When the stack overflows it invokes the HF giving me the chance to take action. If stack is at the end of the RAM it may silently overflow overwriting the data stored in RAM
Always read the full documentation. Datasheet, Reference manual & programming manual
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install stm32f3-discovery
Rust is installed and managed by the rustup tool. Rust has a 6-week rapid release process and supports a great number of platforms, so there are many builds of Rust available at any time. Please refer rust-lang.org for more information.
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