Hi, I personally haven't used the PIC32 port in a while, but left it working. At least the PIC32MZ one.
> Are my assumptions that I should just be able to build and run NuttX on the explorer16/max32 incorrect? This could work. However, you have to verify that the configurations in board.h match your board's. Particularly, you'll have to check the oscillator frequency, pins mapping, PB clocks, etc. > * What can I do to debug early boot problems? You can at first try enabling debug output. (make menuconfig --> Build Setup --> Debug Options --> Enable Debug Features). You should have some information regarding what's going on. Another option is to enable DEBUG_SYMBOLS and debug the startup code. > Is there a better compiler to use? Try the pinguino toolchain [1], it's the one we've been trying with. 1. https://github.com/PinguinoIDE/pinguino-compilers On Sun, Feb 21, 2021 at 4:41 PM Robert Middleton <osfan6...@gmail.com> wrote: > > Hi all, > > I wanted to test out NuttX and I've run into some very weird issues > with compiling and running on a PIC32. I don't have any boards that > are exactly the same as one of the sample configurations, but my > assumption is that this is not an issue. I currently have two boards > that I'm testing with: a chipKIT Max32, and an older Explorer 16 from > Microchip. My starting point is with the pic32mx-starterkit > configuration in the boards/mips/pic32mx directory. > > I've only gotten output on the serial port about two times; all the > other times it seems as though it panics very early in the boot > process. One time it seemed to show some kind of memory dump, the > other time I got a bus fetch exception at address 0x0. Moreover, it > seems very inconsistent as to when it will actually output anything on > the serial port - I can recompile what I think is the same > version(same configuration settings), but running it will result in no > output. > > I've tried using a compiler I built using crosstool-ng, but ld doesn't > recognize -nostartfiles for some reason. I've also tried using > Debian's MIPS cross-compiler. The final compiler I tried is a also > built with crosstool-ng, from this repo[1]. All show the same issue. > > * Are my assumptions that I should just be able to build and run NuttX > on the explorer16/max32 incorrect? I only care about getting a > console on serial at the moment so I can start messing around with > things. > * What can I do to debug early boot problems? > * Is there a better compiler to use? > > -Robert Middleton > > [1]: https://github.com/MajenkoProjects/crosstool-ng-pic32