Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 01:40 24 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : The start of something new.

Author Message
VK6MRG

Guru

Joined: 08/06/2011
Location: Australia
Posts: 347
Posted: 03:47am 10 Sep 2011
Copy link to clipboard 
Print this post

I have been looking at designing my own Maximite. As i have stated many times now, I want an all singing, all dancing, Maximite compatible, single PCB, Microcomputer.
The trouble i have been having is with the PIC32 100 pin chip track breakout design. But thanks to Micro Chip I have found a solution!
Ma320003

Now I have to start the real task of designing the layout of all the I/O options. (this may take me a while)
Edited by VK6MRG 2011-09-11
Its easier to ask forgiveness than to seek permission!

............VK6MRG.............VK3MGR............
 
sparkey

Senior Member

Joined: 15/06/2011
Location: Australia
Posts: 819
Posted: 04:19am 10 Sep 2011
Copy link to clipboard 
Print this post

here here sparkey and while your at it lets go the hole cuboodle run at 120 MHz
technicians do it with least resistance
 
Dave Everett
Regular Member

Joined: 24/06/2011
Location: Australia
Posts: 43
Posted: 09:35am 11 Sep 2011
Copy link to clipboard 
Print this post

I was looking at that too, but $60 for the usb interface? Outrageous. Luckily that is unnecessary to develop code.

Dave Everett



 
vasi

Guru

Joined: 23/03/2007
Location: Romania
Posts: 1697
Posted: 12:30am 12 Sep 2011
Copy link to clipboard 
Print this post

  VK6MRG said   I have been looking at designing my own Maximite. As i have stated many times now, I want an all singing, all dancing, Maximite compatible, single PCB, Microcomputer.
................
Now I have to start the real task of designing the layout of all the I/O options. (this may take me a while)


Better save for a Chipkit MAX32 as you have already a functional and tested microcontroller with all the basic circuitry and sockets for all the I/O pins (plus, some protection on analog inputs against accidental 5Vcc). It require a modified version of Geoff's MMBasic but you will do that anyway. The board is nice and your shield will enrich it.

It use a serial bootloader but that may be on your advantage as you will obtain a faster Basic interpreter - no need to keep the USB awake, the FTDI chip is doing that for you. No USB firmware inside the engine, then more space for other things. But you can add it of course, as Basic language feature (that is better).

The advantage of having the other peripherals on a shield is that you can build it in a hurry, with what you have at hand, and changing it later with a better looking shield (which you can sell to anyone).

Vasi
Hobbit name: Togo Toadfoot of Frogmorton
Elvish name: Mablung Miriel
Beyound Arduino Lang
 
elproducts

Senior Member

Joined: 19/06/2011
Location: United States
Posts: 282
Posted: 02:06am 14 Sep 2011
Copy link to clipboard 
Print this post

Vasi,
Has someone developed a Maximite version for the chipKIT that is available for download?
www.elproducts.com
 
vasi

Guru

Joined: 23/03/2007
Location: Romania
Posts: 1697
Posted: 06:01am 14 Sep 2011
Copy link to clipboard 
Print this post

Hi,

Ken Segler have a port for his Max32 board but the .hex file he posted is not downloadable by the avrdude who will crash. Right now he is working for Don's boards but when he will have enough time, he will post the complete sources as promised.

I personally tried to compile from a mix of sources for original Maximite and Max32 boards, trying to complete the missing files from Ken's archives. All trials ended in a non-uploadable firmware, causing avrdude to crash but last time I got an uploadable and workable (up to a point) variant which use UART2 as console (Ken's work). I guess switching to UART1 does not consist in only changing a number, we must change also the original pin usage to free the UART1... but I have also an error in the sources because you can write a program using numbers as labels but you can't execute any command in immediate mode.

I didn't investigated further because I have another project to finish but when I will return to this, I will use MPIDE to rewrite the firmware from scratch with a complete MAX32 pin assignment (I intend to continue what Geoff started with that file where you have aliases for your pins, making the firmware portable). Unless I will have Ken's complete and compilable sources to start with from inside MPLAB X...

VasiEdited by vasi 2011-09-15
Hobbit name: Togo Toadfoot of Frogmorton
Elvish name: Mablung Miriel
Beyound Arduino Lang
 
haiqu

Senior Member

Joined: 30/07/2011
Location: Australia
Posts: 152
Posted: 09:13am 14 Sep 2011
Copy link to clipboard 
Print this post

Vasi,

I'm sticking with MPLAB 8.70 for now. MPLAB X seems to make very large binary files.

Rob

unzip, strip, touch, finger, grep, mount, fsck, more, yes, fsck, fsck, fsck, umount, sleep
 
elproducts

Senior Member

Joined: 19/06/2011
Location: United States
Posts: 282
Posted: 11:32am 14 Sep 2011
Copy link to clipboard 
Print this post

Thanks Vasi.
I really just need the .hex file as I can flash it via PICkit 3 rather than avrdude.
Getting the full source would be excellent also.
I look forward to Ken's release.

Rob,
MPLABX uses the same compilers as MPLAB 8.7x so I don't understand why you would see larger binary files with a different IDE?
www.elproducts.com
 
vasi

Guru

Joined: 23/03/2007
Location: Romania
Posts: 1697
Posted: 12:14pm 14 Sep 2011
Copy link to clipboard 
Print this post

Hi elproducts,

Here (at the end of article) is Ken's work, .hex and sources.

Rob, thanks for advice.

Vasi
Hobbit name: Togo Toadfoot of Frogmorton
Elvish name: Mablung Miriel
Beyound Arduino Lang
 
vasi

Guru

Joined: 23/03/2007
Location: Romania
Posts: 1697
Posted: 08:53pm 14 Sep 2011
Copy link to clipboard 
Print this post

BTW, the Microchip compilers we install and use along MPLAB classic or X, come in Lite version. For Windows you have the option to use a serial for the commercial part but in Linux I think you don't have that option (didn't paid enough attention)? Maybe we have Linux compilers without limitations?

Anyway, what I want to say is that usually we have just the Lite version for free and the compiler from MPIDE come without restrictions and produce full optimized code. I am right? Or that compiler have also a limit of 1000 cycles of compilation ? kidding...

If is true that MPIDE use a non-crippled compiler then, why not using it? Or, what is the reason or the logic Microchip continue to offer crippled versions of their compilers?

Anybody knows something about that?

Vasi

Hobbit name: Togo Toadfoot of Frogmorton
Elvish name: Mablung Miriel
Beyound Arduino Lang
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3194
Posted: 10:19pm 14 Sep 2011
Copy link to clipboard 
Print this post

The MPLAB C32 compiler will install as a trial version and has no restrictions other than a time limit of (I think) 60 days. After the time limit it will turn into the Lite version which has two limitations; a max optimisation level of 1 and no 16 bit code. At any time you can enter a serial number that will convert it to the full version without restrictions.

As far as I know this behaviour is the same regardless of the version or type of IDE used.

Geoff
Geoff Graham - http://geoffg.net
 
vasi

Guru

Joined: 23/03/2007
Location: Romania
Posts: 1697
Posted: 10:32pm 14 Sep 2011
Copy link to clipboard 
Print this post

  Geoffg said   The MPLAB C32 compiler will install as a trial version and has no restrictions other than a time limit of (I think) 60 days. After the time limit it will turn into the Lite version which has two limitations; a max optimisation level of 1 and no 16 bit code. At any time you can enter a serial number that will convert it to the full version without restrictions.

As far as I know this behaviour is the same regardless of the version or type of IDE used.

Geoff


Hi Geoff,

Thanks, this is also what I know about MPLAB C32... what do you know about the compiler which come with the MPIDE?

Vasi
Hobbit name: Togo Toadfoot of Frogmorton
Elvish name: Mablung Miriel
Beyound Arduino Lang
 
vasi

Guru

Joined: 23/03/2007
Location: Romania
Posts: 1697
Posted: 10:36pm 14 Sep 2011
Copy link to clipboard 
Print this post

From the platforms.txt file from MPIDE package seems that the -O2 flag is used by default. It seems that is about a non-crippled compiler!

Vasi
Hobbit name: Togo Toadfoot of Frogmorton
Elvish name: Mablung Miriel
Beyound Arduino Lang
 
vasi

Guru

Joined: 23/03/2007
Location: Romania
Posts: 1697
Posted: 10:44pm 14 Sep 2011
Copy link to clipboard 
Print this post

In this thread you can see a different Microchip politic.

And bellow is the content of platforms.txt file:

[code] ############################################################ ##
pic32.recipe.c.o.pattern={0}{1}::{2}::{3}{4}::-DF_CPU={5}::- D{6}::-D{7}::{8}::{9}::{10}::-o::{11}
pic32.recipe.cpp.o.pattern={0}{1}::{2}::{3}{4}::-DF_CPU={5}: :-D{6}::-D{7}::{8}::{9}::{10}::-o::{11}
pic32.recipe.ar.pattern={0}{1}::{2}::{3}{4}::{5}
pic32.recipe.c.combine.pattern={0}{1}::{2}::{3}{4}::-o::{5}{ 6}.elf::{7}::{8}::-L{9}::-lm::-T::{10}/{11}
pic32.recipe.objcopy.eep.pattern={0}{1}::{2}::{3}.elf::{4}.e ep
pic32.recipe.objcopy.hex.pattern={0}{1}::{2}::{3}.elf


########################################################
pic32.name=chipKit
#pic32.compiler.path=/opt/local/pic32/install-image/bin/
#pic32.compiler.path=/opt/pic32-tools/bin/
#pic32.compiler.path=C:\pic32-tools\bin\
#pic32.compiler.path=/opt/mac-pic32/bin/
pic32.compiler.c.cmd=pic32-gcc
pic32.compiler.path={0}/hardware/pic32/compiler/pic32-tools/ bin/
pic32.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunctio n-sections::-fdata-sections::-g::-mdebugger::-Wcast-align
pic32.compiler.cpp.cmd=pic32-g++
pic32.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-ex ceptions::-ffunction-sections::-fdata-sections::-g::-mdebugg er::-Wcast-align
pic32.compiler.S.flags=-O2::-g1::-c
pic32.compiler.ar.cmd=pic32-ar
pic32.compiler.ar.flags=rcs
pic32.compiler.objcopy.cmd=pic32-objcopy
pic32.compiler.objcopy.eep.flags=-O::ihex::-j::.eeprom::--se t-section-flags=.eeprom=alloc,load::--no-change-warnings::-- change-section-lma::.eeprom=0
pic32.compiler.elf2hex.flags=-a
pic32.compiler.elf2hex.cmd=pic32-bin2hex
#pic32.compiler.elf2hex.flags=-O::ihex::-R::.eeprom
#pic32.compiler.elf2hex.cmd=pic32-objcopy
pic32.compiler.c.elf.flags=-Os::-Wl,--gc-sections::-mdebugge r
pic32.compiler.c.elf.cmd=pic32-g++
pic32.compiler.cpudef=-mprocessor=
#pic32.compiler.ldflags=
pic32.compiler.ldscript=chipKIT-BL.ld
#pic32.compiler.includepath=/opt/local/pic32/install-image/p ic32mx/include
pic32.compiler.upload.cmd=
pic32.compiler.includepath={0}/hardware/pic32/compiler/pic32 -tools/pic32mx/include
pic32.compiler.upload.flags=
#pic32.library.path=./hardware/pic32/cores/pic32
pic32.library.path=./hardware/pic32/cores/pic32
pic32.ldscript=chipKIT-BL-mega.ld
pic32.library.core.path=./hardware/pic32/libraries
pic32.compiler.define=::
[/code]Edited by vasi 2011-09-16
Hobbit name: Togo Toadfoot of Frogmorton
Elvish name: Mablung Miriel
Beyound Arduino Lang
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3194
Posted: 11:40pm 14 Sep 2011
Copy link to clipboard 
Print this post

  vasi said  Thanks, this is also what I know about MPLAB C32... what do you know about the compiler which come with the MPIDE?

Ah! Sorry, I was not following the thread as closely as I should have.

As far as I know it does have full optimisation but I have not played with it so you are ahead of me.

Geoff
Geoff Graham - http://geoffg.net
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024