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

  • 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

  • Hello,

    I am using 

    https://github.com/NordicPlayground/nRF52-ADC-examples

    examples. And after I upload my question, I checked that the same error is not occured in BLE-PC communication(UART).

    The error occured in app_error_weak line 100 NRF_BREAKPOINT_COND and sometimes ERROR 4 [NRF_ERROR_NO_MEM] occurs. I think the DSP-BLE connections or data (start bit, etc.) may be problem.

    Can I change start bit setting in nRF52832 project? (I think this is the problem)

    Thank you for your reply.

    Best regards,

    Yclee

  • Hello,

    The app_error handler is invoked when an error has been passed to one one of the APP_ERROR_CHECK() macros in your code. So we need to find out where this happened. Do you have debug logging enabled?

    The UART/UARTE uses 1 start bit.

    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.

  • Hi,

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

    Yes, you should see the full error message if you expand the terminal window. It should tell you the file name and line number of where error 4 occured.

1 2