Re: Failed to load image to specific NRF52 DK

2017-05-04 Thread then yon
Dear Marko, Thanks, it worked! On 3/5/2017 8:43 AM, marko kiiskila wrote: Hi, I don’t think this is possible at the moment for targets which use JLink. But this hopefully is easy to add. Can you test with this patch: > On Apr 28, 2017, at 1:26 AM, then yon wrote: > > Dear Suppor

Failed to load image to specific NRF52 DK

2017-04-28 Thread then yon
Dear Support, We trying to load image to specific NRF52 DK by the following command, but unfortunately it doesn't work. newt --extrajtagcmd "-select usb=682605585" load PROJECT_NAME Thank you. Regards, Then Yoong Ze

Re: Problem to use newtmgr through ble

2017-03-17 Thread then yon
mgr ...) Chris On Thu, Mar 16, 2017 at 05:22:01PM +0800, then yon wrote: Dear Support, Anyone have answer on this? Some updates on the newtmgr setting: Connection profiles: BT01: type=ble, connstring='nimble-bleprph' Whenever i sent newtmgr command i get the following: 2017/03/16 1

Re: Problem to use newtmgr through ble

2017-03-16 Thread then yon
ed devices available I'm using V2TEC Bluetooth dongle (Bus 001 Device 016: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)) Thank you. Regards, Then Yoong Ze On 10/3/2017 6:59 PM, then yon wrote: Dear Support, After the being success to do image upgrade with sl

how to use newtmgr through ble

2017-03-10 Thread then yon
Dear Support, After the being success to do image upgrade with slinky app, now i moving forward to image upgrade through ble with bleprph example. With the target.yml as below: ### Target: targets/split_slinky target.app: "@apache-mynewt-core/apps/splitty" target.bsp: "@apache-mynewt-core/hw/bsp

Re: image upload error 2

2017-02-24 Thread then yon
On 24/2/2017 9:57 AM, Christopher Collins wrote: On Fri, Feb 24, 2017 at 09:39:37AM +0800, then yon wrote: Dear Chris, i've double enter on each line but it still mix up into 1 line, most probably is my email sw problem. Below is all the step i did: 1. By using slinky app(no changes); bu

Re: image upload error 2

2017-02-23 Thread then yon
do image upgrade. So i sent test command in step 1. (slot 1 flags: active pending; and after many many tried it gave me Error: rc=6) Thank you. Regards, Then Yoong Ze On 24/2/2017 12:56 AM, Christopher Collins wrote: On Thu, Feb 23, 2017 at 06:05:44PM +0800, then yon wrote: Dear Chris,

Re: image upload error 2

2017-02-23 Thread then yon
ytes transmitted and received Thank you. Regards, Then Yoong Ze On 23/2/2017 12:44 AM, Christopher Collins wrote: Hi Then, On Wed, Feb 22, 2017 at 02:11:36PM +0800, then yon wrote: Dear Support, I'm followed the tutorial below: https://mynewt.apache.org/latest/os/module

image upload error 2

2017-02-21 Thread then yon
Dear Support, I'm followed the tutorial below: https://mynewt.apache.org/latest/os/modules/split/split/ But i'm stuck at image upload step; it gave me the following error: $ newtmgr -c mynewt_serial image list Images: slot=0 version: 1.0.0 bootable: true flags: active confirme

Re: Changes in the filesystem on the lastest developer version

2017-02-19 Thread then yon
Dear Chris, Something to add on, even the ESB interrupt not working but filesystem works correctly. Only 1 filesystem is using in our project. Thank you. Regards, Then Yoong Ze On 20/2/2017 1:50 PM, then yon wrote: Dear Chris, Thanks for your fast response. The failure is the ESB

Re: Changes in the filesystem on the lastest developer version

2017-02-19 Thread then yon
rsion is the first released of 1.0.0-dev. Thank you. Regards, Then Yoong Ze On 20/2/2017 1:27 PM, Christopher Collins wrote: Hi Then, On Mon, Feb 20, 2017 at 12:52:30PM +0800, then yon wrote: Dear Support, Can i know that is the changes on the new filesystem? We are working on esb pr

Changes in the filesystem on the lastest developer version

2017-02-19 Thread then yon
Dear Support, Can i know that is the changes on the new filesystem? We are working on esb project instead of ble; somehow after we update to latest developer version the esb part doesn't work anymore. ps: By disabling the filesystem code it worked perfectly. Thank you. Regards, Then Yoong Z

Re: os_msys_get_pkthdr always return null

2017-02-16 Thread then yon
. Please do this change and check if it solves your problem. Cheers, Fabio Utzig On Wed, Feb 15, 2017, at 12:58 AM, then yon wrote: Dear Chris, After i tried on 3 NRF52_DK board, 1 of it worked! This is really weird as the other 2 units only work if i disabled the filesystem. Do you have any clu

Re: os_msys_get_pkthdr always return null

2017-02-14 Thread then yon
Dear Chris, After i tried on 3 NRF52_DK board, 1 of it worked! This is really weird as the other 2 units only work if i disabled the filesystem. Do you have any clue on this? Regards, Then Yoong Ze On 15/2/2017 6:32 AM, then yon wrote: Dear Chris, Thanks for your reply; i've mad

Re: file system fs/fs not working after updated to latest myNewt

2017-02-14 Thread then yon
Tue, Feb 14, 2017, at 08:18 PM, then yon wrote: Dear Fabio, In the previous working version, i'm only included the followind: pkg.deps: - "@apache-mynewt-core/fs/fs" - "@apache-mynewt-core/fs/nffs" code: #include "fs/fs.h" #include "

Re: os_msys_get_pkthdr always return null

2017-02-14 Thread then yon
r the nffs part, even it can build and run without error but it doesn't write/read from file system correctly. (I've sent another post on this) Thank you. Regards, Then Yoong Ze On 15/2/2017 12:48 AM, Christopher Collins wrote: Hi Then, On Tue, Feb 14, 2017 at 06:35:35PM +0800, then y

Re: file system fs/fs not working after updated to latest myNewt

2017-02-14 Thread then yon
r leveling. I actualy only tested with MMC! I will do some testing today to try to find what is causing your problem with NFFS (or with no FS enabled). What FS operations are you doing? Are you using any of the fs_* calls? Could you copy/paste some of your FS usage code as a gist (or pastebin,

os_msys_get_pkthdr always return null

2017-02-14 Thread then yon
Dear Support, I having issue with mqueue that the following code always return me error after i update myNewt to developer version. struct os_mbuf *om = os_msys_get_pkthdr(0, sizeof(some_struct)); if(om == NULL) { console_printf("Spi err 02\n"); return -2; } By disabling nffs filesys

Re: file system fs/fs not working after updated to latest myNewt

2017-02-12 Thread then yon
s, it gave me no exception but the data doesn't wrote into the filesystem. Do i need to do initialize on fatfs? Thank you. Then Yoong Ze On 11/2/2017 12:36 AM, Fabio Utzig wrote: Your english is just fine. What surprised me is that you're using the fs subsystem without any fs enabled

Re: file system fs/fs not working after updated to latest myNewt

2017-02-10 Thread then yon
/os] Thank you. Regards, Then Yoong Ze On 10/2/2017 11:42 PM, Fabio Utzig wrote: No sure what you mean by "removed this fs part". What FS are you using? Could you provide the output of "newt target dep" and "newt target revdep"? Cheers, Fabio Utzig On Fri, Fe

file system fs/fs not working after updated to latest myNewt

2017-02-10 Thread then yon
Dear Support, After updated to latest develop version, the fs code doesn't work anymore. It gave me the following error: 4:Unhandled interrupt (2), exception sp 0x200015a0 4: r0:0x00 r1:0x r2:0x8000 r3:0xe000ed0xcdf r5:0x000168b0 4:ICSR:0x00421802 HFSR:0x000 C:0x0 4

Re: os_time_delay in milliseconds / microseconds

2017-01-26 Thread then yon
OS_CPUTIME_FREQ in syscfg.yml. Jiacheng 在 2017年1月26日,16:00,then yon 写道: Dear Support, I'm working on a timing critical app; but the os_time_delay didn't gave me a precise timing. Currently the min delay i can get is more than 2ms with os_time_delay function. Somehow i notice that the

os_time_delay in milliseconds / microseconds

2017-01-26 Thread then yon
Dear Support, I'm working on a timing critical app; but the os_time_delay didn't gave me a precise timing. Currently the min delay i can get is more than 2ms with os_time_delay function. Somehow i notice that the clock time have up to microsecond precision; but how do i make a delay with t

Re: Firmware update with MyNewt

2017-01-22 Thread then yon
y.img <http://splitty.img/>$ newt load split_slinky 0 Loading app image into slot 2 Loading loader image into slot 1 $ newtmgr echo -c mynewt_serial hello Another possible issue i can think of is i get the following error when issue the newtmgr command: Error: open /dev/ttyACM0: permissi

Re: Firmware update with MyNewt

2017-01-21 Thread then yon
myself, so Im no authority here. But no as written newtmgr is where ota update lives currently On Fri, Jan 20, 2017 at 3:25 AM, then yon wrote: Dear Jacob, I working on OTA firmware upgrade, is there any method i can do without going through newtmgr command? Thank you. Regards, Then Yoong

Re: Firmware update with MyNewt

2017-01-20 Thread then yon
you taken a look at https://mynewt.apache.org/ latest/os/modules/bootloader/bootloader/ <https://mynewt.apache.org/ latest/os/modules/bootloader/bootloader/> ? thanks, aditi On Jan 17, 2017, at 10:00 PM, then yon wrote: Dear Support, I wish to workout with firmware update in mynewt

Firmware update with MyNewt

2017-01-17 Thread then yon
Dear Support, I wish to workout with firmware update in mynewt platform. If i understand correctly the bootloader should able to do this, but i cant found any documentation on this. While i looking into bootloader coding, can you help to give me a hint/guide to start with? Appreciate on yo

Re: Getting Unhandled interrupt (17)

2017-01-10 Thread then yon
Dear Fabio, Thanks for your help, it is working perfectly now. The issues was both radio and swi handler missing. Thank you very much for your help. Regards, Then Yoong Ze On 10/1/2017 8:53 PM, Fabio Utzig wrote: On Tue, Jan 10, 2017, at 07:10 AM, then yon wrote: Beside that the

Re: Getting Unhandled interrupt (17)

2017-01-10 Thread then yon
e IRQ, try adding something like (assuming the IRQ you want to handle is SWI0_EGU0_IRQ): NVIC_SetVector(SWI0_EGU0_IRQn, (uint32_t) my_swi0_handler); Att, Fabio Utzig On Fri, Jan 6, 2017, at 05:02 AM, then yon wrote: Dear Support, I was working on ESB mode in myNewt; what i did was porting the wo

Getting Unhandled interrupt (17)

2017-01-05 Thread then yon
Dear Support, I was working on ESB mode in myNewt; what i did was porting the working code from my original working eclipse code. Some how i was stuck at the ESB_EVT_IRQ(SWI0_EGU0_IRQ), whenever i enable this interrupt it gave me the following error when receiving packet from ESB: 1069: > Un

Re: MyNewt Mqueue not working

2017-01-03 Thread then yon
Dear Chris, Thank you very much. Have a nice day. Regards, Then Yoong Ze On 4/1/2017 3:45 AM, Christopher Collins wrote: Hi Then, On Tue, Jan 03, 2017 at 02:47:44PM +0800, then yon wrote: Beside this, i have a question on the os_msys_get_pkthdr function parameters; because no matter how

Re: MyNewt Mqueue not working

2017-01-02 Thread then yon
hdr(0, 0) ; Can you elaborate more on this so i know how to assign the values to it. Thank you very much. Regards, Then Yoong Ze On 3/1/2017 6:18 AM, Christopher Collins wrote: Hi Then, On Mon, Jan 02, 2017 at 06:26:05PM +0800, then yon wrote: Dear Chris, I tried to apply your solution

Re: MyNewt Mqueue not working

2017-01-02 Thread then yon
eue_task, "queue", queue_task_handler, NULL, QUEUE_TASK_PRIO, OS_WAIT_FOREVER, queue_stack, QUEUE_STACK_SIZE); Thank you for your fast response and happy new year. Regards, Then Yoong Ze On 2/1/2017 2:25 PM, Christopher Collins wrote: Hi Then, On Mon, Jan 02, 2017 at 01:23:33PM +08

MyNewt Mqueue not working

2017-01-01 Thread then yon
Dear Support, I been using MyNewt v1.0.0-dev, and i tried to make use of Mqueue. What i did was following the tutorial below: https://mynewt.apache.org/os/core_os/mqueue/mqueue/ Since the tutorial is not updated, i tried to modify it but unfortunately i can't make it work. Below are what i ha

how to use include path in myNewt

2016-12-21 Thread then yon
Dear Support, Can i know how to use include path in myNewt? Currently i having an existing project that i wish to port into myNewt platform; it will be a big hassle without include path feature. Thank you. Regards, Then Yoong Ze

Re: Problem Enabling The Console and Shell in blinky project

2016-12-19 Thread then yon
handler is instantiated. Best regards, dg On Dec 19, 2016, at 3:50 AM, then yon wrote: Dear Support, After successfully enabled the console and shell in bletiny project; i used the same method with blinky project but the console only echo back the word i typed without any other response. (LE

Problem Enabling The Console and Shell in blinky project

2016-12-19 Thread then yon
Dear Support, After successfully enabled the console and shell in bletiny project; i used the same method with blinky project but the console only echo back the word i typed without any other response. (LED blinking worked as it should) I have attached output.png, main.c, pkg.yml and syscfg.

Re: MyNewt NRF52 enhanced shockburst

2016-12-18 Thread then yon
ec 15, 2016, at 11:38 PM, then yon wrote: Dear Support, Currently i'm working on NRF52 dev; and i wish to make use of the enhanced shockburst feature. Is there anyway i can do that? Please give me some hint for me to start with. Thank you. Regards, Then Yoong Ze -- David G. Simmons

MyNewt NRF52 enhanced shockburst

2016-12-15 Thread then yon
Dear Support, Currently i'm working on NRF52 dev; and i wish to make use of the enhanced shockburst feature. Is there anyway i can do that? Please give me some hint for me to start with. Thank you. Regards, Then Yoong Ze

Re: MYNEWT_VAL_STATS_CLI value cannot be change

2016-12-15 Thread then yon
.vals: STATS_CLI: 1 Finally, you should not need to add the "@apache-mynewt-core/sys/stats" dependency to bletiny. The net/nimble/host package depends on the stats package, so it should already get included in your project. Thanks, Chris On Thu, Dec 15, 2016 at 02:13:55PM +0

Re: MYNEWT_VAL_STATS_CLI value cannot be change

2016-12-14 Thread then yon
nfiguration of your app. Most notably, at the top, you'll see any config values that are ignored, over-ridden, or incorrect. Could you send the output of the target config command so we can see if there are any conflicting configuration settings? Thanks, dg On Dec 14, 2016, at 5:01 AM,

MYNEWT_VAL_STATS_CLI value cannot be change

2016-12-14 Thread then yon
Dear Support, I been using MyNewt v1.0.0-dev, and i tried to enable statistic package for bletiny project so i can use the stat command. What i did was following the tutorial below: http://mynewt.apache.org/network/ble/ini_stack/ble_statpkg/ and i try to change MYNEWT_VAL_STATS_CLI to 1 by a

Re: Stuck with the tutorial with MyNewt 1.0.0-dev

2016-12-04 Thread then yon
response, reply to it (empty reply is fine) to confirm and complete subscription. thanks, aditi > On Dec 3, 2016, at 10:24 PM, then yon wrote: > > Dear support, > > I'm new to MyNewt. > > Since the new update(1.0.0-dev), the file name/naming have been changed while the tu

Stuck with the tutorial with MyNewt 1.0.0-dev

2016-12-03 Thread then yon
Dear support, I'm new to MyNewt. Since the new update(1.0.0-dev), the file name/naming have been changed while the tutorial not updated. So far i managed to figure out until the tutorial below: http://mynewt.apache.org/develop/network/ble/ini_stack/ble_parent_ini/ Do you have any updated tu