michallenc opened a new pull request, #16783:
URL: https://github.com/apache/nuttx/pull/16783

   ## Summary
   Adds support for PIC32CZ CA70 MCU series and its evaluation kit. This series 
is pin to pin and binary compatible with SAMv7 series, it's basically just a 
rebrand with (likely) new manufacturing technology. The only difference should 
be larger RAM memory (512 kB instead of 384 kB). Therefore the support is 
placed in SAMv7 directory and just new configuration options are added. Also 
every PIC revision is basically a SAMv7 B revision, thus MCAN and EMAC code has 
to take this into account.
   
   Microchip also has PIC32CZ CA80/90 series, but these MCUs are completely 
different from SAMv7 series and thus PIC32CZ CA70 series. I think we should 
keep CA70 support in SAMv7 directory and create a new directory for pic32czca 
once we support it.
   
   Basic support for PIC32CZ CA70 Curiosity evaluation kit is added. Two 
configurations are available, standard `nsh` with plain NuttShell and `max` 
configuration. The intention is to have all supported peripherals in the 
latter, currently tested and supported are button, USB Device over CDC/ACM and 
micro SD card.
   
   ## Impact
   
   Adds new MCU series, should not have any impact on current SAMv7 code. 
Documentation is added.
   
   ## Testing
   
   Tested on PIC32CZ CA70 Curiosity evaluation kit.
   
   ```
   NuttShell (NSH) NuttX-12.10.0
   nsh> 
   nsh> 
   nsh> free
         total       used       free    maxused    maxfree  nused  nfree name
        513684       7996     505688       8352     505688     24      1 Umem
   nsh> 
   ```
   
   **Buttons**
   ```
   nsh> buttons &
   buttons [4:100]
   nsh> buttons_main: Starting the button_daemon
   buttons_main: button_daemon started
   button_daemon: Running
   button_daemon: Opening /dev/buttons
   button_daemon: Supported BUTTONs 0x03
   Sample = 1
   Sample = 0
   Sample = 2
   Sample = 0
   Sample = 1
   Sample = 3
   Sample = 1
   Sample = 0
   ```
   
   **CDC/ACM**
   ```
   nsh> sercon
   sercon: Registering CDC/ACM serial driver
   sercon: Successfully registered the CDC/ACM serial driver
   nsh> echo "Hello NuttX" > /dev/ttyACM0
   nsh> 
   ```
   
   Computer received the text and sent it back.
   
   ```
   nsh> cat /dev/ttyACM0
   Hello NuttX
   ```
   
   **SD card**
   ```
   nsh> ls /mnt
   /mnt:
    sdcard0/
   nsh>
   nsh> echo "Hello NuttX" > /mnt/sdcard0/test.txt
   nsh> cat /mnt/sdcard0/test.txt
   Hello NuttX
   ```


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to