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

Bootloader s120 port from nRF51422 to nRF51822

Hello,

Finally, after some struggle, I achieved to port the bootloader to s120 V2.1.0 and work just great on a dev. board with nRF51422. But now I have another problem:

All the examples from SDK are for nRF51422 and I need to use a custom board with nRF51822. With the app I managed to make the proper changes and it works in my board but not the bootloaders.

I have a 32MHz system clock in my board and for the soft device I use the default internal clock (NRF_CLOCK_LFCLKSRC_RC_250_PPM_TEMP_4000MS_CALIBRATION).

Ports work good for the apps, but not for the bootloader. Both s120 and s130 bootloaders works in a dev board I have with nRF51422 but I am not able to port them to nRF51822.

As far as I understand ANT feature is one of the important differences between the chips and I tried to exclude all the files and defines related to it from the bootloader project... but without success.

Any advice about how should I port it would be much appreciated. Thank you...

Parents
  • Hi Gabriel, You have two problems

    1. you have selected wrong hci_mempool_internal.h file. you have to use the one which is designed for BLE not uart. change its contents to this

      #ifndef MEM_POOL_INTERNAL_H__ #define MEM_POOL_INTERNAL_H__

      #define TX_BUF_SIZE 4u /< TX buffer size in bytes. */ #define RX_BUF_SIZE 32u /< RX buffer size in bytes. */

      #define RX_BUF_QUEUE_SIZE 8u /**< RX buffer element size. */

      #endif // MEM_POOL_INTERNAL_H__

    2. your IRAM1 settings does not match your device, you made the IRAM1 size for 32KB but your device has only 16KB. Fix these two and it should be fixed.

  • Thanks a lot Aryan. After one week of struggle with this problem, you finally helped me solve it. I could not have done it without you. I mark this as answer, in case it could help someone in the future. Thanks again!!

    Regards,

    Gabriel.

Reply Children
No Data
Related