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?

Parents
  • 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();   

Reply
  • 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();   

Children
Related