btashton opened a new pull request #2886:
URL: https://github.com/apache/incubator-nuttx/pull/2886


   ## Summary
   We were incorrectly setting `ANSEL` for port K which does not exit as part 
of `pic32mz_lowinit`.  This was verified in the datasheet to make sure it was 
not just a simulator limitation.
   
   ## Impact
   Prevent possible undefined CPU behavior from writing to non existent register
   
   ## Testing
   Simulator previously would halt.
   ```
   ❯ ./mipsel-softmmu/qemu-system-mipsel -machine pic32mz-explorer16     
-nographic     -monitor none  -serial stdio     -kernel  
~/nuttx/wrk/nuttx/nuttx.hex -S -s
   Board: Microchip Explorer16
   Processor: microAptivP
   RAM size: 512 kbytes
   Load file: '/home/bashton/nuttx/wrk/nuttx/nuttx.hex', 235632 bytes
   ACDEG
   --- Write ffffffff to 1f860904: peripheral register not supported
   ```
   
   now:
   ```
   ❯ ./mipsel-softmmu/qemu-system-mipsel -machine pic32mz-explorer16     
-nographic     -monitor none  -serial stdio     -kernel  
~/nuttx/wrk/nuttx/nuttx.hex -S -s
   Board: Microchip Explorer16
   Processor: microAptivP
   RAM size: 512 kbytes
   Load file: '/home/bashton/nuttx/wrk/nuttx/nuttx.hex', 235616 bytes
   ACDEG
   
   NuttShell (NSH) NuttX-10.0.1
   nsh> ?
   help usage:  help [-v] [<cmd>]
   
     .         cd        exec      ls        mount     set       uname     
     [         cp        exit      mb        mv        sleep     umount    
     ?         cmp       false     mkdir     mw        source    unset     
     basename  dirname   help      mkfatfs   pwd       test      usleep    
     break     dd
   
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to