Skip to content

add support for p8-watch#1

Merged
daniel-thompson merged 1 commit intowasp-os:wasp-osfrom
pebri86:p8-devel
Jun 25, 2020
Merged

add support for p8-watch#1
daniel-thompson merged 1 commit intowasp-os:wasp-osfrom
pebri86:p8-devel

Conversation

@pebri86
Copy link

@pebri86 pebri86 commented Jun 10, 2020

Hi @daniel-thompson

This is initial PR to add support for P8 watch and for the bootloader i'll wait this PR by @SteveAmor
I'll send PR for the wasp-os once this merged.

P8 watch is hackable to replace the firmware without needed opening the back case using this method by Aaron Christophel a.k.a @atc1441 using his file on his repository and using either DaFlasher or NRFConnect app to replace the bootloader.

Thank You.

#define MICROPY_HW_WDT_BUTTON (17)
#define MICROPY_HW_WDT_BUTTON_ACTIVE (1) // active high
#define MICROPY_HW_WDT_BUTTON_PULL (0) // no pull up/down
//#define MICROPY_HW_WDT_BUTTON_ENABLE (15) // no enable pin
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As with the reloader... no need to leave old comments lying around.

Signed-off-by: Fuji Pebri <pebri86@gmail.com>
@pebri86
Copy link
Author

pebri86 commented Jun 18, 2020

Remove unneeded comment and added Signed-off-by commit message.

@daniel-thompson daniel-thompson merged commit 1dcf4ba into wasp-os:wasp-os Jun 25, 2020
daniel-thompson pushed a commit that referenced this pull request Jul 28, 2021
asan considers that memcmp(p, q, N) is permitted to access N bytes at each
of p and q, even for values of p and q that have a difference earlier.
Accessing additional values is frequently done in practice, reading 4 or
more bytes from each input at a time for efficiency, so when completing
"non_exist<TAB>" in the repl, this causes a diagnostic:

    ==16938==ERROR: AddressSanitizer: global-buffer-overflow on
    address 0x555555cd8dc8 at pc 0x7ffff726457b bp 0x7fffffffda20 sp 0x7fff
    READ of size 9 at 0x555555cd8dc8 thread T0
        #0 0x7ffff726457a  (/usr/lib/x86_64-linux-gnu/libasan.so.5+0xb857a)
        #1 0x555555b0e82a in mp_repl_autocomplete ../../py/repl.c:301
        #2 0x555555c89585 in readline_process_char ../../lib/mp-readline/re
        #3 0x555555c8ac6e in readline ../../lib/mp-readline/readline.c:513
        #4 0x555555b8dcbd in do_repl /home/jepler/src/micropython/ports/uni
        micropython#5 0x555555b90859 in main_ /home/jepler/src/micropython/ports/unix/
        micropython#6 0x555555b90a3a in main /home/jepler/src/micropython/ports/unix/m
        micropython#7 0x7ffff619a09a in __libc_start_main ../csu/libc-start.c:308
        micropython#8 0x55555595fd69 in _start (/home/jepler/src/micropython/ports/uni

    0x555555cd8dc8 is located 0 bytes to the right of global variable
    'import_str' defined in '../../py/repl.c:285:23' (0x555555cd8dc0) of
    size 8
      'import_str' is ascii string 'import '

Signed-off-by: Jeff Epler <jepler@gmail.com>
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

Successfully merging this pull request may close these issues.

2 participants