Re: BBC MicroBit (nRF51822) running NuttX

2020-07-05 Thread Matias N.
The RAM size was correctly defined. I increased the flash size to 256KB while testing also. My problem is not due to a bug, 16KB is just too little. There are other variants of NRF51822 with 32KB RAM. I suspect that should also be OK. Best, Matias On Sun, Jul 5, 2020, at 21:22, saito yutaka wro

Re: BBC MicroBit (nRF51822) running NuttX

2020-07-05 Thread saito yutaka
Hello. > Well, I started to work on the BLE support on NRF51822 and it seems that 16KB is not enough for this, considering all the stack space needed for BLE on NuttX (mainly due to the worker threads and all net stuff). Sorry, I think that linker script is wrong. I modifyed script. https://gith

Re: BBC MicroBit (nRF51822) running NuttX

2020-07-05 Thread Matias N.
Well, I started to work on the BLE support on NRF51822 and it seems that 16KB is not enough for this, considering all the stack space needed for BLE on NuttX (mainly due to the worker threads and all net stuff). I guess I will continue this when the NRF52832 arrives, since it has 64KB of SRAM, w

Re: BBC MicroBit (nRF51822) running NuttX

2020-07-03 Thread Matias N.
On Fri, Jul 3, 2020, at 13:32, Alan Carvalho de Assis wrote: > Hi Saito-san, > > You did an amazing work! > > I found you project by chance, I was searching for NuttX on Twitter > and found it. > > Maybe the I2C and SPI from nRF51 are similar to nRF52, so we could to > reuse it. I didn't compare

Re: BBC MicroBit (nRF51822) running NuttX

2020-07-03 Thread Alan Carvalho de Assis
Hi Saito-san, You did an amazing work! I found you project by chance, I was searching for NuttX on Twitter and found it. Maybe the I2C and SPI from nRF51 are similar to nRF52, so we could to reuse it. I didn't compare them yet. Matias, did you? BR, Alan On 7/3/20, saito yutaka wrote: > Hello

Re: BBC MicroBit (nRF51822) running NuttX

2020-07-03 Thread Matias N.
Hello Saito, I just tested your code on my nrf51822 module and, after changing RX/TX pin definitions, I get console output. So I confirm your port is functional on real board. It would be cool if you could submit a PR against NuttX with your changes. I could try to work on it a bit as well, sinc

Re: BBC MicroBit (nRF51822) running NuttX

2020-07-03 Thread saito yutaka
Hello. Thanks for mail about my project. I don't have much knowledge of the real time os, so I'm writing code while looking it up. I've been able to confirm that Hello World works on micro:bit. And I could debug on micro:bit using gdb and pyocd. I haven't done other things such as lighting of t

Re: BBC MicroBit (nRF51822) running NuttX

2020-07-03 Thread Matias N.
Hi, I can take a look and see if this would work on my nrf51822. Stil, it would be better to have the code author prepare a PR against NuttX. I see recent commits so it appears an actively maintained WIP. On a related subject: I have ordered an NRF52832 board and module, for which my ultimate i

BBC MicroBit (nRF51822) running NuttX

2020-07-02 Thread Alan Carvalho de Assis
Hi Everyone, It appears that someone is porting NuttX to BBC MicroBit board https://github.com/SaitoYutaka/incubator-nuttx Very interesting! He is testing on QEMU, maybe someone with an nRF51822 board could give it a try! ;-) BR, Alan