Hi Don,

I've success in compiling stm32, sm1000.elf on my Pi here with
the Makefile so now I can consider the Teensy 3.6 and the Nucleo64.

SVN 3866

(Banana Pi and Fedora 29)

Alan VK2ZIW


On Wed, 12 Sep 2018 16:31:55 -0700, Don wrote
> Alan, this looks like a problem with your compiler and library
> instalation.  I have no trouble with the debian packages:
> 
>    gcc-arm-none-eabi                           15:4.9.3+svn231177-1 
>    binutils-arm-none-eabi                      2.26-4ubuntu1+
>    libnewlib-arm-none-eabi                     
> 2.2.0+git20150830.5a3d536-1
> 
> On another system I have installed the GNU Arm Embedded Toolchain which
> works too.
> 
> stdint.h is the standard name, straight out of the C library 
> standard. I have never seen stdint-gcc.h used.  sys/types.c is 
> called for by POSIX standard.
> 
> I'll attach the output from "make clean sm1000.elf" on my system.
> 
> Don - W7DMR
> 
> On Thu, Sep 13, 2018 at 07:53:48AM +1000, Alan Beard wrote:
> > Hi again Don,
> > 
> > Using the Makefile on my Pi system here (Fedora 29) and adding
> > my location of the C compiler:
> > CROSS_COMPILE ?= arm-none-eabi-
> > 
> > finds /usr/bin/arm-none-eabi-gcc
> > 
> > and the library:
> > PERIPHLIBNAME   = /usr/local/lib/STM32F4xx_DSP_StdPeriph_Lib_V1.8.0
> > 
> > and all the library compiles and libstm32f4.a is generated
> > 
> > Then we start to have troubles....
> > 
> > ../src/freedv_api.h   includes stdio.h and sys/types.h so the making
> > of unittests seemingly to be using the wrong C compiler. So I try just
> > 
> > "make sm1000.elf"
> > 
> > First it is stdint.h which should be stdint-gcc.h
> > 
> > ---------------
> > 
> > This is hard......
> > 
> > Alan VK2ZIW
> > 
> > 
> > 
> > On Mon, 10 Sep 2018 09:06:50 -0700, Don wrote
> > > I have not been able to get the CMake stuff to work.  I'm using the 
> > Makefile.
> > > 
> > > I have found that some newer versions of Debian based distros have an
> > > issue with gcc and newlib.  The Arm distributed toolchain works fine,
> > > I plan on using that in the future (until something else changes...).
> > > 
> > > Don
> > > 
> > > On Mon, Sep 10, 2018 at 09:45:00PM +1000, Alan Beard wrote:
> > > > Hi all,
> > > > 
> > > > I'm trying to build the stm32 code on my Pi running Fedora 29.
> > > > 
> > > > I get the following with "cmake ../../stm32" trying to get a working C 
> > compiler:
> > > > 
> > > > /usr/bin/arm-none-eabi-gcc  -Wall -std=gnu11 -mlittle-endian -mthumb -
> > mthumb-interwork -nostartfiles -mcpu=cortex-m4 -fsingle-precision-constant 
-
> > Wdouble-promotion -mfpu=fpv4-sp-d16 -mfloat-abi=hard -D__FPU_PRESENT=1 -
> > D__FPU_USED=1     -rdynamic CMakeFiles/cmTC_da013.dir/testCCompiler.c.o  -
o 
> > cmTC_da013
> > > > 
> > > > arm-none-eabi-gcc: error: unrecognized command line option '-rdynamic'
> > > > 
> > > > I cannot find where option "-rdynamic" is added.
> > > > 
> > > > Do I need to run the  GNU Arm Embedded Toolchain, a later version. 
This 
> > I'll have to compile from sauce.
> > > > 
> > > > There is no ARM binary.
> > > > 
> > > > It's always the small things......
> > > > 
> > > > Turbo blew in my Holden Jackaroo (GM Trouper) I have it in sight but 
the 
> > bolts are frozen.
> > > > 
> > > > These turbos are going cheap, cheap, cheap, $200 so I thought....
> > > > 
> > > > Alan VK2ZIW
> > > > 
> > > > On Fri, 7 Sep 2018 07:39:15 +0200, Jacob Falzon wrote
> > > > > Yes I figured that memory is the key issue!
> > > > > 
> > > > > When I was trying to implement the project with Keil I noticed that 
if I 
> > allocated too much memory to heap or stack (heap mostly because of the 
malloc 
> > calls) I was getting overrun behaviour from the ADC and transfer errors 
from 
> > the DMA just after the code turns on the ADC. 
> > > > > 
> > > > > When I decreased the Heap allocation to something more modest that 
> > behaviour stopped.
> > > > > 
> > > > > Which I think is what's going on with the OFDM mode if you try 
getting 
> > it to work as it is right off the bat on the STM32 but funnily enough when 
I 
> > tried debugging it and noticed register values for the ADC and DMA they 
both 
> > seemed to be working properly which  I found very strange.
> > > > > 
> > > > > On Fri, Sep 7, 2018 at 12:37 AM David Rowe <da...@rowetel.com> 
wrote:
> > > > > > Can I be helpful trying to get the STM32 code running on the 
Nucleo64
> > > > > > boards that I have for the MMDVM project?
> > > > > > Or perhaps, the Teensy 3.6?
> > > > > 
> > > > > Pls feel free to work on anything you like Alan.  Don has been 
building
> > > > > up a set of unit tests for the stm32 that may be useful.
> > > > > 
> > > > > - David
> > > > > 
> > > > > --------------------------------------------------------------------
----
> > ------
> > > > > Check out the vibrant tech community on one of the world's most
> > > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > > > > _______________________________________________
> > > > > Freetel-codec2 mailing list
> > > > > Freetel-codec2@lists.sourceforge.net
> > > > > https://lists.sourceforge.net/lists/listinfo/freetel-codec2
> > > > >
> > > > 
> > > > Alan
> > > > 
> > > > Evil flourishes when good men do nothing. 
> > > > Consider the Christmas child. 
> > > > ----------------------------------------------------------------------
----
> > - 
> > > > Alan Beard               Unix Support Technician from 1984 to today 
> > > > 70 Wedmore Rd.           Sun Solaris, AIX, HP/UX, Linux, SCO, MIPS 
> > > > Emu Heights N.S.W. 2750  Routers, terminal servers, printers, 
terminals 
> > etc.. 
> > > > +61 2 47353013 (h)       Support Programming, shell scripting, "C", 
> > assembler 
> > > > 0414 353013 (mobile)     After uni, electronics tech
> > > > 
> > > >
> > > 
> > > > _______________________________________________
> > > > Freetel-codec2 mailing list
> > > > Freetel-codec2@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/freetel-codec2
> > > 
> > > _______________________________________________
> > > Freetel-codec2 mailing list
> > > Freetel-codec2@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/freetel-codec2
> > 
> > 
> > Alan
> > 
> > Evil flourishes when good men do nothing.
> > Consider the Christmas child.
> > --------------------------------------------------------------------------
-
> > Alan Beard               Unix Support Technician from 1984 to today
> > 70 Wedmore Rd.           Sun Solaris, AIX, HP/UX, Linux, SCO, MIPS
> > Emu Heights N.S.W. 2750  Routers, terminal servers, printers, terminals 
etc..
> > +61 2 47353013 (h)       Support Programming, shell scripting, "C", 
assembler
> > 0414 353013 (mobile)     After uni, electronics tech
> > 
> > 
> > 
> > _______________________________________________
> > Freetel-codec2 mailing list
> > Freetel-codec2@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/freetel-codec2


Alan

Evil flourishes when good men do nothing.
Consider the Christmas child.
---------------------------------------------------------------------------
Alan Beard               Unix Support Technician from 1984 to today
70 Wedmore Rd.           Sun Solaris, AIX, HP/UX, Linux, SCO, MIPS
Emu Heights N.S.W. 2750  Routers, terminal servers, printers, terminals etc..
+61 2 47353013 (h)       Support Programming, shell scripting, "C", assembler
0414 353013 (mobile)     After uni, electronics tech



_______________________________________________
Freetel-codec2 mailing list
Freetel-codec2@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freetel-codec2

Reply via email to