Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2010-09

ARM STM32F Processor

12 messages · 7 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Rainer Stratmann

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.

Reply by email

Jeppe Johansen
to Rainer Stratmann
Rainer Stratmann wrote
Is 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

Reply by email

Rainer Stratmann
to Jeppe Johansen
Jeppe Johansen wrote 22 lines
Den 04-09-2010 10:50, Rainer Stratmann skrev: > Is 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

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?

Reply by email

Jeppe Johansen
to Rainer Stratmann
Rainer Stratmann wrote 27 lines
Am Saturday 04 September 2010 11:57:25 schrieb Jeppe Johansen: > Den 04-09-2010 10:50, Rainer Stratmann skrev: >> Is 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 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? _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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

Reply by email

Koenraad Lelong
to Jeppe Johansen
Jeppe Johansen wrote 9 lines
Den 04-09-2010 12:37, Rainer Stratmann skrev: > Am Saturday 04 September 2010 11:57:25 schrieb Jeppe Johansen: >> Den 04-09-2010 10:50, Rainer Stratmann skrev: >>> Is it possible to compile for this device? >> Yes >> >>> Can somebody help? >> Yes >>

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.

Reply by email

Mark Morgan Lloyd
to Koenraad Lelong
Koenraad Lelong wrote 15 lines
On 04-09-10 12:40, Jeppe Johansen wrote: > Den 04-09-2010 12:37, Rainer Stratmann skrev: >> Am Saturday 04 September 2010 11:57:25 schrieb Jeppe Johansen: >>> Den 04-09-2010 10:50, Rainer Stratmann skrev: >>>> Is it possible to compile for this device? >>> Yes >>> >>>> Can somebody help? >>> Yes >>> 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 ?

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 markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Koenraad Lelong
to Mark Morgan Lloyd
Mark Morgan Lloyd wrote 25 lines
Koenraad Lelong wrote: > On 04-09-10 12:40, Jeppe Johansen wrote: >> Den 04-09-2010 12:37, Rainer Stratmann skrev: >>> Am Saturday 04 September 2010 11:57:25 schrieb Jeppe Johansen: >>>> Den 04-09-2010 10:50, Rainer Stratmann skrev: >>>>> Is it possible to compile for this device? >>>> Yes >>>> >>>>> Can somebody help? >>>> Yes >>>> > 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 ? 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

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

Reply by email

Jeppe Græsdal Johansen
to Koenraad Lelong
Koenraad Lelong wrote 45 lines
On 19-09-11 14:49, Mark Morgan Lloyd wrote: > Koenraad Lelong wrote: >> On 04-09-10 12:40, Jeppe Johansen wrote: >>> Den 04-09-2010 12:37, Rainer Stratmann skrev: >>>> Am Saturday 04 September 2010 11:57:25 schrieb Jeppe Johansen: >>>>> Den 04-09-2010 10:50, Rainer Stratmann skrev: >>>>>> Is it possible to compile for this device? >>>>> Yes >>>>> >>>>>> Can somebody help? >>>>> Yes >>>>> >> 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 ? > > 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 > 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 _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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.

Reply by email

Roberto P.
to Jeppe Græsdal Johansen

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
Den 19-09-2011 17:21, Koenraad Lelong skrev: On 19-09-11 14:49, Mark Morgan Lloyd wrote: > >> Koenraad Lelong wrote: >> >>> On 04-09-10 12:40, Jeppe Johansen wrote: >>> >>>> Den 04-09-2010 12:37, Rainer Stratmann skrev: >>>> >>>>> Am Saturday 04 September 2010 11:57:25 schrieb Jeppe Johansen: >>>>> >>>>>> Den 04-09-2010 10:50, Rainer Stratmann skrev: >>>>>> >>>>>>> Is it possible to compile for this device? >>>>>>> >>>>>> Yes >>>>>> >>>>>> Can somebody help? >>>>>>> >>>>>> Yes >>>>>> >>>>>> 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 ? >>> >> >> 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://hackaday.com/2010/10/12/arm-prototyping-on-the-cheap-with-stm32-discovery/> >> >> http://answerpot.com/**showthread.php?1008813-ST-**Link+with+OpenOCD%3F<http://answerpot.com/showthread.php?1008813-ST-Link+with+OpenOCD%3F> >> >> > 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 > ______________________________**_________________ > fpc-pascal maillist - > http://lists.freepascal.org/**mailman/listinfo/fpc-pascal<http://lists.freepascal.org/mailman/listinfo/fpc-pascal> > 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. ______________________________**_________________ fpc-pascal maillist - http://lists.freepascal.org/**mailman/listinfo/fpc-pascal<http://lists.freepascal.org/mailman/listinfo/fpc-pascal>

Reply by email

Jeppe Græsdal Johansen
to Roberto P.
Roberto P. wrote 8 lines
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#

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

Reply by email

Roberto P.
to Jeppe Græsdal Johansen

2011/9/19 Jeppe Græsdal Johansen

Show quoted text 19 lines
Den 19-09-2011 22:20, Roberto P. skrev: 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# 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 _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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#

Reply by email

DaWorm
to Roberto P.

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
2011/9/19 Jeppe Græsdal Johansen > Den 19-09-2011 22:20, Roberto P. skrev: > > 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

Show quoted text 24 lines
> euros. > Look here: http://www.st.com/internet/evalboard/product/251168.jsp > > R# > > 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 > > _______________________________________________ > fpc-pascal maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > 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#

Reply by email