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


   ## Summary
   risc-v/esp32-c3: Add support to SPI Flash
   ## Impact
   Only ESP32-C3
   ## Testing
   ESP32-Devikit
   
   Erase the entire flash:
   ```
   $ sudo esptool.py --chip esp32-c3 --port /dev/ttyUSB0 --baud 921600 
erase_flash
   ```
   
   Flash to bootloader, the partition table and the NuttX:
   ```
   $ make download ESPTOOL_PORT=/dev/ttyUSB0 ESPTOOL_BAUD=115200 
ESPTOOL_BINDIR=../esp-bins
   ```
   Restart the board and execute:
   
   ```
   NuttShell (NSH) NuttX-10.0.1                                                 
             
   nsh> ls /dev                                                                 
             
   /dev:                                                                        
             
    console                                                                     
             
    null                                                                        
             
    smart0                                                                      
             
    ttyS0                                                                       
             
    zero                                                                        
             
   nsh> mksmartfs /dev/smart0                                                   
             
   nsh> mount -t smartfs /dev/smart0 /mnt                                       
             
   nsh> cd /mnt                                                                 
             
   nsh> ls                                                                      
             
   /mnt:                                                                        
             
   nsh> echo "Say hello to SmartFS" > test.txt                                  
             
   nsh> ls                                                                      
             
   /mnt:                                                                        
             
    test.txt                                                                    
             
   nsh> cat test.txt                                                            
             
   Say hello to SmartFS                                                         
             
   nsh>
   ```
   


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