Is it possible to compile for this device?
Can somebody help?
I want to switch from Atmel (8bit) to ARM.
I Also need hardware demo board, if someone has an example.
Mailing lists / fpc-pascal / 2010-09
ARM STM32F Processor
12 messages · 7 people · –
- JJeppe Græsdal Johansen 2
- JJeppe Johansen 2
- KKoenraad Lelong 2
- RRainer Stratmann 2
- RRoberto P. 2
- DDaWorm 1
- +1 more
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Rainer Stratmann wroteIs it possible to compile for this device?
Yes
Can somebody help?
Yes
I want to switch from Atmel (8bit) to ARM. I Also need hardware demo board, if someone has an example.
I have a small guide here: http://j-software.dk/stm32f103.aspx
I think this looks like a nice board:
http://www.futurlec.com/STM32_Development_Board.shtml Both well featured and cheap :)
I have this board: http://www.futurlec.com/ET-STM32_Stamp.shtml It has no features except for a serial port, but it's cheap
There are still a few things missing in the rtl, before you can use interrupts, but principally most should be doable with FPC
Jeppe Johansen wrote 22 lines
What does that mean exactly?
Is it possible to deal with interrupts?
The FPC program is simply transfered to the controller by uploading with its usart interface?
Rainer Stratmann wrote 27 lines
I don't know if it's directly possible to use interrupts, but I would guess it is
The FPC program is compiled just like a C program. The resulting hex file is then burned to the flash, either using JTAG, or a bootloader via usart. STM32F103 comes with a bootloader from the factory
Jeppe Johansen wrote 9 lines
Hello,
I just got my STM32-discovery board. I'm searching how I can program the device, but I can't find anything. With programming I mean getting the firmware into the device. Can someone give me a link ? Another question : any links how to get fpc to compile for that device ?
Regards,
Koenraad Lelong.
Koenraad Lelong wrote 15 lines
Google suggests that half of the board is an ST-Link programmer which expects a proprietary protocol over USB, but that there might be alternatives.
http://hackaday.com/2010/10/12/arm-prototyping-on-the-cheap-with-stm32-discovery/ http://answerpot.com/showthread.php?1008813-ST-Link+with+OpenOCD%3F
Mark Morgan Lloyd wrote 25 lines
Hi,
Thanks for the links. I didn't google yet, because I thought the ST-website would provide the information. I also asked ST-support where I could find that information. They said to read the users-manual. Reading it again for the fifth time, I think you have to download some development toolchains in order to be able to program the device. That's not clear when you read the user-manual.
I'll google more now.
Regards,
Koenraad Lelong
Koenraad Lelong wrote 45 lines
I have the STM32-Discovery too.
You need to use one of the big three IDE's(Keil, Atollic, IAR) to flash it through the onboard debugger. It's hard, because they like to crash a lot. The other option is to hack a serial connection together to the UART1 pins, and control the BOOTx pins, which will allow you to use the traditional means of the STM32 serial bootloader.
Hi,
I think you can get an unbranded (no IAR, no Keil, etc...) flash programming tool with a simple (but working) software from ST for about 30 euros. Look here: http://www.st.com/internet/evalboard/product/251168.jsp
R#
2011/9/19 Jeppe Græsdal Johansen
Show quoted text 69 lines
Roberto P. wrote 8 lines
I'm pretty sure it's still the same closed(and botched) protocol that's used, as in the ST-Link emulator on the STM32-Discovery, meaning you can only program the target using the ST endorsed IDE's
2011/9/19 Jeppe Græsdal Johansen
Show quoted text 19 lines
Hmm... no, you can develop any board of yours and by bringing out the VCC, GND and JTAG signals you can connect to the ST-LINK/V2 from ST, which I bought for 28 euros.
Then you can download the STM32 ST-LINK utility from the web page I wrote before and flash any program in binary, Intel Hex or Motorola S-Record format. It has a graphic and a command-line interface.... pretty near to perfect, for me.
R#
You can also use one of the serial ports along with the BOOT0, BOOT1 and RESET lines to program. A TTL to RS232 adapter, or FTDI USB chip will also be needed. The protocol is easy, took me about a day to get working from Delphi (using the serial handshake lines as IO to drive RESET and BOOT0).
"Roberto P." wrote 8 lines
30
