This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Can I modify source code for the vitual com of nRF52833 USB CDC ACM in \examples\peripheral\usbd_cdc_acm?

Hi, 

   we are using D- and D+ in our nRf52833 board,    I want to use the CDC ACM USB class  as Virtual COM port.

  I found that there has a demo example in the \examples\peripheral\usbd_cdc_acm,  but it is only used for nRf52840,  

  Could I modify it for nRF52833?

  • I have already modified, it works well in nRF52388

    but I have other question:

    when I add usb cdc acm module files to ..\examples\dfu\dfu_nrf52833_xxAA_s113_7_0_1.emProject , and compile successful, then flash fw to EV board,  it shows messasge, as follow:

    app_error_weak.c,  115, Mesh error 133 at 0x00000000 (:0)

    Could you tell me why it happens , please?

  • Hi

    Yes, it should be possible to modify the USB CDC ACM project to fit the nRF52833 without to many problems. Please refer to the Developing for nRF52811 user guide and the "Transferring to nRF52811 HW". The process will be similar for the nRF52833, but the names with nRF52811 should be replaced with nRF52833, and the ROM and RAM end addresses will have to match the nRF52833 RAM and Flash memory sizes.

    The app_error_weak.c,  115, Mesh error 133 at 0x00000000 (:0) message does not seem related to this merge however, as it suggests that you've tried implementing Bluetooth Mesh into the nRF5 SDK as well. Can you confirm this?

    Please start out by just modifying the USBD_cdc_acm example to fit the nRF52833, and then move onto merging more examples, as it will get very hard pinpointing your problem if you do a bunch of changes.

    Best regards,

    Simon

  • Hi Simonr,

        Thnaks for your reply.

        I have already merge usb cdc modules fie to  ..\examples\dfu\dfu_nrf52833_xxAA_s113_7_0_1.emProject ,  if I comment

        initialize() and start() in main() of main.c of this project(as follow code),  then there no error

       "app_error_weak.c,  115,    Mesh error 133      at 0x00000000 (:0)".

         the USB cdc modules works well, since I can see "USB CDC ..." com port in manage device of my pc.

         when cancel commnet initialize() and start(),the error happens again.

        Do you think what reason it will be?

        int main(void)
    {
       // initialize();
       // start();   

  • Hi,

     I just want to implement DFU function.

    1) Plug a Dongle with a USB port into My PC (Dongle's usb  connect to D- and D+ of nRF52)

    2)  send fw to Dongle from PC

    3)  Donle receive fw data , then send data out to update other node  with ble mesh

    Is there any example to reference? 

  • What does the initialize() and start() functions call to exactly? I need some details as to what they do. Do you see the same error if you call the initialize() but not start()? 

    Best regards,

    Simon

Related