Search found 17 matches

by usjcarkm
Tue Jun 16, 2015 2:28 pm
Forum: Other Boards
Topic: MicroPython on Altera NIOS 2
Replies: 29
Views: 29567

Re: MicroPython on Altera NIOS 2

Thanks. Yes that resolved some of the errors. Here below is the current output with the remaining linker errors. It appears to still not be able to load libgcc.a based on your explanation. I do see the file on my machine however. I may need to consult the altera help groups as well: C:\altera\12.1sp...
by usjcarkm
Mon Jun 15, 2015 2:06 pm
Forum: Other Boards
Topic: MicroPython on Altera NIOS 2
Replies: 29
Views: 29567

Re: MicroPython on Altera NIOS 2

I had forgot to set the CROSS switch the last time around. CROSS = 1 It is now compiling, but not linking, with the stock py.mk file that has the lines: nlrx86.o \ nlrx64.o \ I have a preliminary nios2_mphal.c in place as well. Note, that this file (mpconfigport.h) has the same content as the one fo...
by usjcarkm
Fri Jun 12, 2015 6:30 pm
Forum: Other Boards
Topic: MicroPython on Altera NIOS 2
Replies: 29
Views: 29567

Re: MicroPython on Altera NIOS 2

Sure, here is the output after executing "touch empty.c": $ nios2-elf-gcc -E -Wp,-dM empty.c #define __DBL_MIN_EXP__ (-1021) #define __FLT_MIN__ 1.17549435e-38F #define __CHAR_BIT__ 8 #define nios2_little_endian 1 #define __WCHAR_MAX__ 2147483647 #define __DBL_DENORM_MIN__ 4.9406564584124654e-324 #d...
by usjcarkm
Fri Jun 12, 2015 2:50 pm
Forum: Other Boards
Topic: MicroPython on Altera NIOS 2
Replies: 29
Views: 29567

Re: MicroPython on Altera NIOS 2

Great. Thanks. This added param to mpconfigport.h fixed the issue: undefined reference to `_nlr_jump' #define MICROPY_NLR_SETJMP 1 However adding back in nlrx86.o and nlrx64.o here still generates the errors as shown below: # py object files PY_O_BASENAME = \ mpstate.o \ nlrx86.o \ nlrx64.o \ - $ ma...
by usjcarkm
Thu Jun 11, 2015 9:39 pm
Forum: Other Boards
Topic: MicroPython on Altera NIOS 2
Replies: 29
Views: 29567

Re: MicroPython on Altera NIOS 2

I see. Thanks. The main issue was that I was attempting to compile using an existing makefile that creates a shared library in our environment. I've instead switched to the basic framework the micropython source tree gives and build an elf for starters. In the end I will need to build a micropython ...
by usjcarkm
Wed Jun 10, 2015 9:02 pm
Forum: Other Boards
Topic: MicroPython on Altera NIOS 2
Replies: 29
Views: 29567

Re: MicroPython on Altera NIOS 2

Thanks. So far I'm having some makefile issues when porting the code to our Altera NIOS 2 environment. We use cygwin (linux shell) in windows 7 and the in our makefile CROSS_COMPILE := nios2-elf- ). I admit I'm not a pro at makefile internals, but I'm a little confused on how the "minimal" makefile ...
by usjcarkm
Fri Jun 05, 2015 9:54 pm
Forum: Other Boards
Topic: MicroPython on Altera NIOS 2
Replies: 29
Views: 29567

MicroPython on Altera NIOS 2

Hello, I am porting the code to work with a Altera NIOS 2 family processor. If someone has already done this work let me know, so I can learn what was needed. To obtain a bare minimum code set to start porting, I have the following folders copied from the latest micropython-lib-master.zip: /lib /min...