Re: Sparkfun Pro nRF52840 Mini support?
Hi Rodrigo
The parts you talked about are the easy parts and I have no problem with these changes. (LDO/DC-DC, crystals, gpio aliases, dts, etc.). I think I already have these set up.
The “challenge” with the Sparkfun board is the debugger, and the FLASH space. The Sparkfun board does NOT have an external chip of some kind to do debugging, instead they preload the nRF52840 with a bootloader which presents itself on the native USB interface as a serial port (CDC) and a mass storage device. This way the “usual” tools will work (pyocd) exactly as expected. However the bootloader is “somewhere” in the internal FLASH and it is necessary to change the memory definition in dts to not overwrite the bootloader (and brick the board), also the serial console needs to call the bootloader to output messages on the virtual serial port.
Has anyone looked into these portions of the problem for some other chipset? This is the portion of the problem I am not quite sure how to fix.
Of course my fallback plan is to use an external debugger (J-Link of some kind? Black Majic?). Is there a recommended external debugger I should use for nRF52840?
Lawrence King Principal Developer +1(416)627-7302
From: Rodrigo Peixoto <rodrigopex@...>
Sent: Thursday, April 18, 2019 12:49 PM To: Lawrence King <lawrence.king@...> Cc: Zephyr-users@... Subject: Re: [Zephyr-users] Sparkfun Pro nRF52840 Mini support?
Hi Lawrence,
I am not aware if anyone is bringing up this board, but I can suggest you bring it up yourself. It is not a big deal. The process is copying, pasting, and changing some portion of the files.
How experienced are you on Zephyr?
You can take a look at the link https://docs.zephyrproject.org/latest/application/index.html?highlight=own%20board#custom-board-devicetree-and-soc-definitions. I would suggest you do that based on the https://docs.zephyrproject.org/latest/boards/arm/nrf52840_pca10056/doc/index.html. The main issues I guess you'll have to figure out are:
1 - Is the Bluetooth module using dc-dc or LDO? YES: Do nothing just copy the board files and rename them; NO: You must to disable DCDC by setting the BOARD_ENABLE_DCDC to "default n" at the Kconfig file. 2 - Is the low-frequency oscillator is present on the Bluetooth module? YES: Do nothing NO: You have to add the CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y to the "board_name_defconfig" file.
The last step is to change the DTS to adjust the pins used by your board.
If you need further help let us know.
Best regards, Rodrigo Peixoto Co-founder and Technical advisor
+55 (82) 98144-8585 http://ayna.tech | Skype: rodrigopex
Em qui, 18 de abr de 2019 às 11:09, Lawrence King <lawrence.king@...> escreveu:
|
|