Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

board config file for NRF52811 #2152

Open
vvzvlad opened this issue Jan 10, 2020 · 2 comments
Open

board config file for NRF52811 #2152

vvzvlad opened this issue Jan 10, 2020 · 2 comments

Comments

@vvzvlad
Copy link

vvzvlad commented Jan 10, 2020

I'm trying to run mynewt for my board with NRF52811(my board schematic USB_dongle.PDF ).
As far as I can see, this processor is supported but there is no board for it.

I tried to create a board based on nordic_pca10040 but I must have made a mistake somewhere: my firmware does not run.
I make this conclusion because the blink does not light the LED (I tried to configure the blink led to pin 10 or 9, this is my UART, but there are also two LEDs, you can understand better if you look at the schematic).

Му modifed board: nrf_52811board.zip

Could you tell me what I have to do to run the code on NRF52811 processor?
As far as I can see, support for NRF52811 was added by a respected @alvarop. Perhaps you can help me?

@kasjer
Copy link
Contributor

kasjer commented Jan 12, 2020

This does not seems like mynewt issue.
Anyway here are my thoughts.

boot-nrf52xxaa.ld should have correct ram size

MEMORY
{
  FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0xC000
  RAM (rwx) :  ORIGIN = 0x20000000, LENGTH = 0x6000
}

boot-nrf52xxaa.ld has correct ram size but flash size should match slot 0 size

MEMORY
{
  FLASH (rx) : ORIGIN = 0x0000C000, LENGTH = 0xD000
  RAM (rwx) :  ORIGIN = 0x20000000, LENGTH = 0x6000
}

Bootloader in most cases fits in 32KB instead of 48KB.

Blink led would better be pin 9 since pin 10 is also output from FTDI chip.

bsp.h should have correct ram size

#define RAM_SIZE        0x6000

@alvarop
Copy link
Contributor

alvarop commented Jan 14, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants