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

How to solve the ERROR 12 [NRF_ERROR_DATA_SIZE] in UART communication code?

Hi,

I am testing the UART communication using 2 nRF board, 1 DSP board(test completed with PC).

The code had error, NRF_ERROR_NO_MEM, and I just solved the problem by changing memory setting.

Then, the other error occurs. 

<error> app: ERROR 12 [NRF_ERROR_DATA_SIZE]

I searched the same error in here, and show the related answer, method.

However, I don't changing any code in the example, and the 8-character is sending.(also, DSP uart setting is same)

What kind of variables or parameters should I check, modify?

Before I am using DSP, (BLE --- PC), this error(include NO_MEM) is not occured.

cf) NRF_ERROR_NO_MEM is also occured after I connected BLE---DSP uart line.(and after that, when I was re-connected BLE---PC the same error is occured)

Best Regards,

Yclee

Parents
  • Hi,

    Are you able to tell where the errors are returned in your code, is it returned by the UART driver functions? Also, which SDK example did you base your project on?

    Best regards,

    Vidar

  • Hi, yes I had enabled debugging log.

    The debug results is like this. ERROR 4 NO_MEM.. (Should I see more detail debugging results?)

    I was changed the start memory address(RAM_START=0x20002d28) since the earlier error message suggest that

    changing the start memory address. After that, the only NO_MEM error is occured while UART with DSP28335 module.

    So I doubt that the data format between two module maybe different. However, the UART/UARTE has 1 start bit,

    I think the other problem may be exists. 

    cf)

    I connected the RX/TX/GND between 2 modules.

    In PC connection environment, RX/TX/GND/VDD connected with Serial to USB module.

Reply
  • Hi, yes I had enabled debugging log.

    The debug results is like this. ERROR 4 NO_MEM.. (Should I see more detail debugging results?)

    I was changed the start memory address(RAM_START=0x20002d28) since the earlier error message suggest that

    changing the start memory address. After that, the only NO_MEM error is occured while UART with DSP28335 module.

    So I doubt that the data format between two module maybe different. However, the UART/UARTE has 1 start bit,

    I think the other problem may be exists. 

    cf)

    I connected the RX/TX/GND between 2 modules.

    In PC connection environment, RX/TX/GND/VDD connected with Serial to USB module.

Children
Related