Compilation Errors

BACKGROUND

We have a new custom board in production and have noticed.

1. We cannot do a DFU. We always have to flash by wiring it

2. Sometime the board crashes and needs restart.

We were told by the Manufacturer to use PCA10100 and S113 as the Processor was nRF52833

On further investigation we realised that the processor is not nRF52833 but its a nRF52840 /resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/IMG_5F00_20230722_5F00_085625.jpg

When we tried to recompile with PCA10100 and S140 (as processor is nRF840)  we got the following errors.

ugmurthy$ nrfjprog --recover --log
ERROR: No debuggers were discovered.

Can the reader provide some clues as to how we may proceed to compile our code

Parents
  • Hello,

    It would be better if you could start with a 'PCA10056' (Supported boards) project which is configured for the 52840 DK board. Just changing the pre-processor definition from 52833 to 52840 is not sufficient, you would also need to change the linker settings, startup files, debugger settings to match the device type. 

    The nrjprog error indicates a connectivity problem between your PC and debugger. It should not be related to the FW or board you are trying to program. Have you tried to see if it works on another PC or USB cable?

    Best regards,

    Vidar

Reply
  • Hello,

    It would be better if you could start with a 'PCA10056' (Supported boards) project which is configured for the 52840 DK board. Just changing the pre-processor definition from 52833 to 52840 is not sufficient, you would also need to change the linker settings, startup files, debugger settings to match the device type. 

    The nrjprog error indicates a connectivity problem between your PC and debugger. It should not be related to the FW or board you are trying to program. Have you tried to see if it works on another PC or USB cable?

    Best regards,

    Vidar

Children
Related