Re: [fpc-pascal] Generating RTL Units for STM32 Processors

2018-03-31 Thread R0b0t1
On Mon, Mar 5, 2018 at 1:54 PM, Michael Ring wrote: > @R0b0t1: > > FYI, I have now implemented Clock Configuration and gpio for stm32l4 chips, > the blinky program works now, please pull latest mdf libs from github. > Thank you Michael, it may be some time before I can

Re: [fpc-pascal] Generating RTL Units for STM32 Processors

2018-03-05 Thread Michael Ring
@R0b0t1: FYI, I have now implemented Clock Configuration and gpio for stm32l4 chips, the blinky program works now, please pull latest mdf libs from github. Why do you think STM32 chips are poorly documented? The Reference Manuals are pretty good an the code generated by STM32CubeMX is very

Re: [fpc-pascal] Generating RTL Units for STM32 Processors

2018-03-01 Thread Michael Ring
Both STM32F407 & 446 Chips are already in fpc-trunk, so no patches are needed to use those chips, mbf should work ok for you, I have a development kit for STM32F407VC (Mikroe EasyMXPro V7) and I should also have a NUCLEOF446RE Board somewhere here, so in case something does not work I may be

Re: [fpc-pascal] Generating RTL Units for STM32 Processors

2018-03-01 Thread R0b0t1
On Thu, Mar 1, 2018 at 3:11 PM, R0b0t1 wrote: > On Thu, Mar 1, 2018 at 2:46 PM, Marc Santhoff wrote: >> On Wed, 2018-02-28 at 06:41 +0200, Christo Crause wrote: >>> On 28 Feb 2018 4:22 am, "R0b0t1" wrote: >>> >>> I will be following up with

Re: [fpc-pascal] Generating RTL Units for STM32 Processors

2018-03-01 Thread R0b0t1
On Thu, Mar 1, 2018 at 2:46 PM, Marc Santhoff wrote: > On Wed, 2018-02-28 at 06:41 +0200, Christo Crause wrote: >> On 28 Feb 2018 4:22 am, "R0b0t1" wrote: >> >> I will be following up with you off list, since you do not seem to mind. >> >> >> I'm also

Re: [fpc-pascal] Generating RTL Units for STM32 Processors

2018-03-01 Thread Marc Santhoff
On Wed, 2018-02-28 at 06:41 +0200, Christo Crause wrote: > On 28 Feb 2018 4:22 am, "R0b0t1" wrote: > > I will be following up with you off list, since you do not seem to mind. > > > I'm also interested in the general topic of incorporating embedded > controllers (avr at the

Re: [fpc-pascal] Generating RTL Units for STM32 Processors

2018-02-28 Thread Michael Ring
I have uploaded my Code to github: https://github.com/michael-ring/mbf.git In the Patches directory you will find a patch to add all STM32L4 chips to a vanilla fpc-trunk installation. Please pm me for questions or use github, documentation is still very sparse ;-) The Blinky Example is

Re: [fpc-pascal] Generating RTL Units for STM32 Processors

2018-02-28 Thread R0b0t1
On Wed, Feb 28, 2018 at 11:27 AM, Michael Ring wrote: > Am 28.02.18 um 03:22 schrieb R0b0t1: >> >> On Tue, Feb 27, 2018 at 2:43 AM, Michael Ring >> wrote: >>> >>> The process is completely automated and is based on converting the header >>> files

Re: [fpc-pascal] Generating RTL Units for STM32 Processors

2018-02-28 Thread Michael Ring
Am 28.02.18 um 03:22 schrieb R0b0t1: On Tue, Feb 27, 2018 at 2:43 AM, Michael Ring wrote: The process is completely automated and is based on converting the header files that come in the CMSIS packages of the processors. Excellent! What about the startup assembly

Re: [fpc-pascal] Generating RTL Units for STM32 Processors

2018-02-27 Thread Christo Crause
On 28 Feb 2018 4:22 am, "R0b0t1" wrote: I will be following up with you off list, since you do not seem to mind. I'm also interested in the general topic of incorporating embedded controllers (avr at the moment) into fpc. It would be useful to me if I could follow at least

Re: [fpc-pascal] Generating RTL Units for STM32 Processors

2018-02-27 Thread R0b0t1
On Tue, Feb 27, 2018 at 2:43 AM, Michael Ring wrote: > The process is completely automated and is based on converting the header > files that come in the CMSIS packages of the processors. > Excellent! What about the startup assembly files? I see an equivalent, it is

Re: [fpc-pascal] Generating RTL Units for STM32 Processors

2018-02-27 Thread Michael Ring
What are you planing to implement? Do you need the RAM and FLASH of the stm32l432 or the low power features? If not then I'd suggest to start wit a more simple CPU like the STM32F303K8 or, if you are okay with standard size nucleo boards the STM32F401RE or STM32F411RE are a good choice. On

Re: [fpc-pascal] Generating RTL Units for STM32 Processors

2018-02-27 Thread Michael Ring
The process is completely automated and is based on converting the header files that come in the CMSIS packages of the processors. I will send you the file for that chip via pm, you will also have to tweak compiler/systems/t_embed.pas compiler/arm/cpuinfo.pas but this is pretty

[fpc-pascal] Generating RTL Units for STM32 Processors

2018-02-27 Thread R0b0t1
Hello list, I'd like some pointers on generating the RTL files for a processor I am interested in, the STM32L432KC (which is available for ~$15 with JTAG on a "Nucleo" board from STMicroelectronics). The CMSIS (Cortex Microcontroller Software Interface Standard) files, as they come from STM, use