You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@mynewt.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2017/06/12 21:42:00 UTC

[jira] [Commented] (MYNEWT-681) rb-nano2 remove flash write protection in download script

    [ https://issues.apache.org/jira/browse/MYNEWT-681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16047105#comment-16047105 ] 

ASF subversion and git services commented on MYNEWT-681:
--------------------------------------------------------

Commit 03d311c3e5c6a0f0634791cc45b97b26da88a128 in incubator-mynewt-core's branch refs/heads/master from [~vrahane]
[ https://gitbox.apache.org/repos/asf?p=incubator-mynewt-core.git;h=03d311c ]

MYNEWT-681 remove flash write protection

- Add EXTRA_GDB_CMDS variable which would go to the GDB_CMD_FILE in the
  openocd script.
- removing write protection in download script by setting the write
  protection bits in the BPROT config registers. Also, setting the
  DISABLEINDEBUG register
- Using CFG_POST_INIT instead of EXTRA_GDB_CMDS since openocd can handle
  writing registers and it's a good idea to use openocd rather than
  using gdb to disabel write protection


> rb-nano2 remove flash write protection in download script
> ---------------------------------------------------------
>
>                 Key: MYNEWT-681
>                 URL: https://issues.apache.org/jira/browse/MYNEWT-681
>             Project: Mynewt
>          Issue Type: Bug
>      Security Level: Public(Viewable by anyone) 
>            Reporter: Marko Kiiskila
>            Assignee: Vipul Rahane
>              Labels: rb-nano2
>             Fix For: v1_1_0_rel
>
>
> Red bear nano2 comes with flash write protected for bootloader area. We should remove this protection before trying to update the flash contents. This ticket addresses the following:
> - Remove write protection before flash erase
> - Adding an extra variable EXTRA_GDB_CMDS similar to the jlink script so that gdb commands can be added easily to the download and debug scripts. 
> - Fix indentation in the script



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)