2018-02-27 11:37 AM
Hey everyone,
This is going to be a lengthy post but any help will really be appreciated!!
I'd like to integrate the MCU that I've been using into my final system(i.e no dev board)
I've designed PCB's in the past, but this feels a little more up there, so I just want a few checks
I've read the documentation although this is what I've gathered:
Documents used:
This is an overview of me designing the necessary hardware to get a device up and running. I have a few questions that I laid down in each section. I've split it into the same sections that the ''
'' application note covers.Power supplies:
The device needs a supply of 1.8V to 3.6 V.
http://www.analog.com/media/en/technical-documentation/data-sheets/ADM7pdf
.I'll connect this to all peripheral supplies of the device(sdmmc and usb, etc.), therefore I can ignore the
I've also followed the following overview of the power supplies for the stm32f722ze:
And I've added all the specified parallel capacitors and followed the footnotes shown.
Voltage regulator:
Looking at my technical manual it refers to the pin for activation asPower supply supervisor:
I've set the power supply supervisor to be on and plan on using an external battery to run the RTC during low power modes.
Clocks
On startup the device uses the internal 16 MHz clock, after which a external clock (4 - 26 MHZ) can be selected. This will be scaled to 216 MHz using the PLL's within the device.
https://www.digikey.com/product-detail/en/ecs-inc/ECS-2520S33-250-FN-TR/XC2198CT-ND/6578505
for the main clockFurther a LSE clock can also be externally used.This will allow for the RTC to have a very accurate clock/calendar and for other timing functions.
https://www.mouser.co.za/ProductDetail/?qs=sFmtmVcT%2ffvMvdzcXdd8BQ==
Boot mode
For the bootmode, there are a few different sequences shown in the manuals and application note an26
patterns that can be applied depending on the chip. . I'm not sure how to apply this to the board though.I've read the following section from the ''Getting started with STM32F7 Series MCU hardware development'' application note. It seems that setting pin boot0 to 0V loads from flash and setting pin boot0 loads from flash? I'm not too sure about this though.
Debug management
To debug the board I plan on implementing the ST link that the nucloes come with.
It seems that I only need to decouple the jumpers(shown in red) and then use the swd pins shown in green to debug the board. I'll couple the pins shown in green to my custom board.
Looking at the nucleo-f722ze schematic for the header pins (shown above), I'm assuming I only need the following pins:
pin 2 : T_JTCK (SWCLK)
pin3 : connect to ground
pin 4 : T_JTMS (SWDIO)
Thanks in advance for any help, I really appreciate it
arm-cortex-m7 pcb-assembly pcb-design stm32f7Solved! Go to Solution.
2018-03-01 03:26 AM
T J wrote:
... I use Kicad and Visual Studio
...What extensions (arm related) are you using on VS?
2018-03-01 12:51 PM
I completely understand
Thank you for the detailed response. I really appreciate it.
2018-03-01 03:21 PM
Visual GDB approx $150
2018-03-01 10:56 PM
That is all? When you start an STM32 project, you do everything manually? It allows you to chose the toolchain and microcontroller?
2018-03-02 12:16 AM
I use the Cube to initialise the subsystems on all my boards.
From the cube I work through the PCB in Kicad.
From VS I import the project from the cube folder.
2018-03-02 01:33 AM
Thank you T.J.!
2018-03-03 03:07 AM
Im curious why you don't use the atollic true studio by stm?
2018-03-03 03:10 AM
Good day
Sedlacek.Oliver
,Thank you for the recommendations, I think the peripherals I'm using run at 108 or 216, but I'll definitely double check.
I'm still a little confused about the boot pins though.
I read the ref manual and app note an2606 but I feel like I'm missing something. This forum post seems to round off my understanding.
https://community.st.com/0D50X00009XkYDuSAN
The answer given by
Centauris.Alpha
seems to imply that the boot pins allow you to program the flash through a peripheral(uart/spi,etc) if its blank. And if using JTAG/SWD to program there's no reason to worry about the boot pins?
/external-link.jspa?url=https%3A%2F%2Felectronics.stackexchange.com%2Fquestions%2F336677%2Fdo-i-really-need-to-put-stm32-microcontroller-into-bootloader-mode-to-program-it
.My understanding was setting the boot pins, sets where you program the device(SRAM/Flash and an address in this memory location) through SWD/JTAG or a peripheral. If Im using SWD, do I need to worry about the boot pin at all?
After this the question will be fully answered, thank you for all the help. I really appreciate it.
2018-03-03 04:19 AM
I can't quite remember how we came to the decision but on my project I ended up just tying the boot pin low. I don't think the inbuilt bootloader was any use because we were downloading application firmware over Ethernet.