You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/12/29 10:01:24 UTC
[GitHub] [incubator-nuttx] btashton opened a new pull request #2614: bl602: Update register maps and lower half drivers
btashton opened a new pull request #2614:
URL: https://github.com/apache/incubator-nuttx/pull/2614
## Summary
This brings the BL602 port more in-line with NuttX especially with how registers are handled.
## Testing
Tested on bl602evb board.
Currently having issues with the UART clock divider register changing.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-nuttx] btashton commented on pull request #2614: bl602: Update register maps and lower half drivers
Posted by GitBox <gi...@apache.org>.
btashton commented on pull request #2614:
URL: https://github.com/apache/incubator-nuttx/pull/2614#issuecomment-752020995
@Virus-V @xiaoxiang781216 @v01d Here are my change on top of the original PR.
I am having some issues as after some time the clock register that controls the flash and UART seems to get changed
clk_cfg2 (0x40000008)
After clock configuration
```
(gdb) p /x *0x40000008
$29 = 0xff8f1993
```
Some seconds later
```
(gdb) p /x *0x40000008
$30 = 0xff8f2b97
```
If I send data out the UART right after configuring the clock I have no issue.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-nuttx] btashton commented on pull request #2614: bl602: Update register maps and lower half drivers
Posted by GitBox <gi...@apache.org>.
btashton commented on pull request #2614:
URL: https://github.com/apache/incubator-nuttx/pull/2614#issuecomment-752759314
@Virus-V I found my bug and fixed it. Made a mistake using the signal number instead of mask on the AHB slave reset call.
```
NuttShell (NSH) NuttX-10.0.1
nsh> uname -a
NuttX 10.0.1 91f2f4b76c-dirty Dec 30 2020 12:28:51 risc-v bl602evb
nsh> sleep 3
nsh> ?
help usage: help [-v] [<cmd>]
? echo help ls mh mv ps uname
cat free kill mb mount mw sleep usleep
Builtin Apps:
timer getprime sh hello nsh
nsh> ps
PID PRI POLICY TYPE NPX STATE EVENT SIGMASK STACK USED FILLED COMMAND
0 0 FIFO Kthread N-- Ready 00000000 008192 008172 99.7%! Idle Task
1 100 FIFO Task --- Running 00000000 008196 001564 19.0% init
nsh> free
total used free largest
Umem: 198928 10688 188240 188240
nsh> ls /dev
/dev:
console
null
timer0
zero
nsh>
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-nuttx] v01d commented on pull request #2614: bl602: Update register maps and lower half drivers
Posted by GitBox <gi...@apache.org>.
v01d commented on pull request #2614:
URL: https://github.com/apache/incubator-nuttx/pull/2614#issuecomment-752076157
This reminds me of something I found when working on support for GD32VF103: while debugging I could see a register value change if I stepped code (which actually had an effect on code execution, so it was not just a debugging artifact). I eventually concluded it was a `gdb` issue as I found the problem to not occur by using a different one. I think that latest stable version from SiFive was the functional one (you could try downloading from here: https://github.com/sifive/freedom-tools/releases)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-nuttx] Virus-V commented on pull request #2614: bl602: Update register maps and lower half drivers
Posted by GitBox <gi...@apache.org>.
Virus-V commented on pull request #2614:
URL: https://github.com/apache/incubator-nuttx/pull/2614#issuecomment-752300150
@btashton I have tested your code and I am trying to find out the cause of this problem
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-nuttx] xiaoxiang781216 merged pull request #2614: bl602: Update register maps and lower half drivers
Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 merged pull request #2614:
URL: https://github.com/apache/incubator-nuttx/pull/2614
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org