Re: [fpc-pascal] alternative name fpc cross

2017-10-10 Thread turro75
Well, I think my problem is easier when I compile fpc for arm-android target I get ppccrossarm and units arm-android (with binutils arm-linux-android-*) when I compile fpc for arm-embedded target I get ppccrossarm and units arm-embedded (with binutils arm-none-eabi-*) both are able to creat

[fpc-pascal] alternative name fpc cross

2017-10-10 Thread turro75
Hi All, when I create the cross compiler to arm-android and arm-embedded I get the same compiler name so unable to have both running in the same system. any workaround? Regards -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-

Re: [fpc-pascal] Serial to TCP gateway in FPC?

2017-06-28 Thread turro75
I don't know if useful, here You can find a terminal + serial to eth or reversed based on lnet, custom serial component and richmemo https://github.com/Turro75/TCPLogger_V2.git <https://github.com/Turro75/TCPLogger_V2.git> Ciao Valerio -- View this message in context: http://

[fpc-pascal] lazarus template stm32

2015-07-11 Thread turro75
Hi All, I published here <https://github.com/Turro75/stm32lazarustemplate> a lazarus template for stm32f103 , it also contains several units for simple peripheral access. I tried to recreate the Arduino environment in order to get tons of Arduino libraries easily ported to freepascal.

Re: [fpc-pascal] FPC Embedded DMA with STM32?

2015-05-10 Thread turro75
Thanks Jeppe, Solved! it was a problem in the TDMAChannel declaration which I modified without rebuilding the fpc here the produced asm code: # [39] Serial1.print(' 0x'+hexstr(longword(DMA1_Channel1.CNDTR),8)); ldr r0,.Lj98 *ldrh r1,[r0]* mov r2,#0 sub

Re: [fpc-pascal] FPC Embedded DMA with STM32?

2015-05-09 Thread turro75
Update: I solved by declaring individual registers as absolute. I need the help of some fpc guru to understand why I got the problem. According to stm32 manual I declared the same register in two ways: / TDMAChannel = record CCR, CNDTR, CPAR, CMAR :longword; end; DMA1_Channel1

[fpc-pascal] FPC Embedded DMA with STM32?

2015-05-09 Thread turro75
Hi All, more or less I'm getting everything working in lazarus, I made a full working RC transmitter with PPM encoder, nrf24l01 and Nokia LCD. When ready I'll publish the project template and some units for everyone who wants to play with this. Now the problem: when trying to write or read DMA1_Ch

Re: [fpc-pascal] fpc-arm-embedded bin doesn't run

2015-02-21 Thread turro75
Hi all, I confirm that -gw2 works fine -gl requires some unit ans inc file, if i copy them in the project directory it compiles but the resulting file it's too big. Still struggling in visual debug.no way with lazarus, I guess the only way is to write an openocd alternative which manage the l

Re: [fpc-pascal] fpc-arm-embedded bin doesn't run

2015-02-18 Thread turro75
ok, as I told in the previous post, I 'm now able to run and debug code with the trunk fpc (3.1.1). I just made some minor changes in t_embed.pas in order to automatically create also the bin and call size. Debugging works "fine" (not yet tested a complex program) with gdb --tui. Working in lazar

Re: [fpc-pascal] fpc-arm-embedded bin doesn't run

2015-02-18 Thread turro75
Dear Jeppe, Your job is awesome! Thanks for your effort on port fpc to stm32. Yesterday I found a way by using the 3.1.1, I was able to blink the led and visually debug the firmware through openocd (stlinkv2). This evening when I back to home I`ll explain better what I did. Turro -- View this

[fpc-pascal] fpc-arm-embedded bin doesn't run

2015-02-17 Thread turro75
Hi All, I'm trying to get the fpc working on a stm32f103c8 board (maple_mini_clone). following this http://j-software.dk/stm32f103.php I'm able to compile (fpc-2.6.4) and flash the bin in the flash but no way to see the (damn) led to blink the code seems