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

   Nimble defconfig had USB Serial as default console. This changes makes it 
compatible to ESP32C3-Devkit and makes it similar to other defconfigs.
   
   *Note: Please adhere to [Contributing 
Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).*
   
   ## Summary
   
   Modifies `nimble` defconfig of ESP32C3, by removing the USB Serial as 
default console and using UART0 instead.
   This will keep it similar to the other defconfigs, allows use of the devkit 
without needing an external connection on D+ and D- lines.
   
   ## Impact
   
   Impact on user: Changes default console to UART0 instead of USB Serial for 
the nimble defconfig on ESP32C3.
   
   Impact on build: No.
   
   Impact on hardware: ESP32C3.
   
   Impact on documentation: No.
   
   Impact on security: No.
   
   Impact on compatibility: Yes, user must change the USB console to USB Serial 
as the new default is UART0.
   
   ## Testing
   
   The test verifies that nsh is working and nimble example is advertising as 
expected.
   
   ### Building
   - `./tools/configure.sh esp32c3-generic:nimble`
   - `make and flash`
   
   ### Running
   
   Open the serial console and verify NSH is up, than run the nimble 
application.
   
   ```
   ESP-ROM:esp32c3-api1-20210207
   Build:Feb  7 2021
   rst:0x1 (POWERON),boot:0xc (SPI_FAST_FLASH_BOOT)
   SPIWP:0xee
   mode:DIO, clock div:1
   load:0x3fc89c00,len:0x11cc
   load:0x40380000,len:0x9bf8
   load:0x50000010,len:0x18
   SHA-256 comparison failed:
   Calculated: ae484a2e0bd15cd5a0c8c247b554e75fb3a39761a9031d8a39d6a7ee0b1c26b7
   Expected: 00000000e0510000000000000000000000000000000000000000000000000000
   Attempting to boot anyway...
   entry 0x4038985e
   *** Booting NuttX ***
   dram: lma 0x00000020 vma 0x3fc89c00 len 0x11cc   (4556)
   iram: lma 0x000011f4 vma 0x40380000 len 0x9bf8   (39928)
   rtc: lma 0x0000adf4 vma 0x50000010 len 0x18     (24)
   padd: lma 0x0000ae18 vma 0x00000000 len 0x51e0   (20960)
   imap: lma 0x00010000 vma 0x42000000 len 0x43cfc  (277756)
   padd: lma 0x00053d04 vma 0x00000000 len 0xc2f4   (49908)
   dmap: lma 0x00060000 vma 0x3c050000 len 0x7bac   (31660)
   total segments stored 7
   
   NuttShell (NSH) NuttX-10.4.0
   nsh> ifup bnep0
   ifup bnep0...OK
   nsh> nimble &
   nimble [7:100]
   nsh> GAP procedure initiated: stop advertising.
   Failed to restore IRKs from store; status=8
   advertise
   GAP procedure initiated: advertise; disc_mode=2 adv_channel_map=0 
own_addr_type=1 adv_filter_policy=0 adv_itvl_min=0 adv_itvl_max=0
   ```
   
   ### Results
   
   Advertising works.
   
   
![image](https://github.com/user-attachments/assets/970bc1d7-e3fc-4631-a007-1abd1879d724)
   
   


-- 
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: [email protected]

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

Reply via email to