Re: [fpc-pascal] ARM STM32F Processor

2011-09-24 Thread DaWorm
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).
On Sep 23, 2011 10:30 AM, Roberto P. padovan...@gmail.com wrote:
 2011/9/19 Jeppe Græsdal Johansen jjoha...@student.aau.dk

 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 - fpc-pascal@lists.freepascal.org
 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#
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] ARM STM32F Processor

2011-09-23 Thread Roberto P.
2011/9/19 Jeppe Græsdal Johansen jjoha...@student.aau.dk

  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  -  fpc-pascal@lists.freepascal.org
 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#
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] ARM STM32F Processor

2011-09-19 Thread Koenraad Lelong

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 ?

Another question : any links how to get fpc to compile for that device ?

Regards,

Koenraad Lelong.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] ARM STM32F Processor

2011-09-19 Thread Mark Morgan Lloyd

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

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] ARM STM32F Processor

2011-09-19 Thread Koenraad Lelong

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  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] ARM STM32F Processor

2011-09-19 Thread Jeppe Græsdal Johansen

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://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  -  fpc-pascal@lists.freepascal.org
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  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] ARM STM32F Processor

2011-09-19 Thread Roberto P.
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 jjoha...@student.aau.dk

 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%3Fhttp://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  -  
 fpc-pascal@lists.freepascal.**orgfpc-pascal@lists.freepascal.org
 http://lists.freepascal.org/**mailman/listinfo/fpc-pascalhttp://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  -  
 fpc-pascal@lists.freepascal.**orgfpc-pascal@lists.freepascal.org
 http://lists.freepascal.org/**mailman/listinfo/fpc-pascalhttp://lists.freepascal.org/mailman/listinfo/fpc-pascal

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] ARM STM32F Processor

2011-09-19 Thread 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 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  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] ARM STM32F Processor

2010-09-04 Thread 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.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] ARM STM32F Processor

2010-09-04 Thread 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

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] ARM STM32F Processor

2010-09-04 Thread Rainer Stratmann
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  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] ARM STM32F Processor

2010-09-04 Thread Jeppe Johansen

 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


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  -  fpc-pascal@lists.freepascal.org
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

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal