Sorry to hear you're having trouble. I'll see if I can help out a bit.
First, rather than making changes to the syscfg.yml file in bletiny app itself,
if you look in the targets directory of your project, you'll see that each app
has it's own directory, and in that directory you'll find an app-specific
syscfg.yml file. If that file doesn't exist, you can create it.
$ cat targets/myble//syscfg.yml
# Package: apps/bletiny
syscfg.vals:
# Enable the shell task.
SHELL_TASK: 1
CONSOLE_TICKS: 1
CONSOLE_PROMPT: 1
It's much easier to keep track of changes you've made to your configuration if
you make those changes per-app rather than at the repository level as they
won't get wiped out if/when you update your repos.
That being said, for your app, you can run
$ newt target config bletiny
newt target config myble | more
2016/12/14 09:37:00 [WARNING] Ignoring override of undefined settings:
2016/12/14 09:37:00 [WARNING] CONFIG_FCB_FLASH_AREA
2016/12/14 09:37:00 [WARNING] COREDUMP_FLASH_AREA
2016/12/14 09:37:00 [WARNING] NFFS_FLASH_AREA
2016/12/14 09:37:00 [WARNING] REBOOT_LOG_FLASH_AREA
2016/12/14 09:37:00 [WARNING] Setting history (newest -> oldest):
2016/12/14 09:37:00 [WARNING] CONFIG_FCB_FLASH_AREA:
[hw/bsp/nrf52dk:FLASH_AREA_NFFS]
2016/12/14 09:37:00 [WARNING] COREDUMP_FLASH_AREA:
[hw/bsp/nrf52dk:FLASH_AREA_IMAGE_1]
2016/12/14 09:37:00 [WARNING] NFFS_FLASH_AREA:
[hw/bsp/nrf52dk:FLASH_AREA_NFFS]
2016/12/14 09:37:00 [WARNING] REBOOT_LOG_FLASH_AREA:
[hw/bsp/nrf52dk:FLASH_AREA_REBOOT_LOG]
Syscfg for targets/myble:
* PACKAGE: boot/bootutil
* Setting: BOOTUTIL_SIGN_EC
* Description: TBD
* Value: 0
* Setting: BOOTUTIL_SIGN_RSA
* Description: TBD
* Value: 0
...
You'll see the complete configuration 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, then yon <[email protected]> wrote:
>
> 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 adding STATS_CLI: 1 to
> bletiny/syscfg.yml and -"@apache-mynewt-core/sys/stats" to bletiny/pkg.yml.
>
> But after i build it doesn't change the MYNEWT_VAL_STATS_CLI at
> target/generated/include/syscfg/syscfg.h.
>
> Please help if i missing some important step on this.
>
> ps: stat command is working if i comment out #if MYNEWT_VAL(STATS_CLI)
>
> Thank you.
>
> Regards,
>
> Then Yoong Ze
>
--
David G. Simmons
(919) 534-5099
Web <https://davidgs.com/> • Blog <https://davidgs.com/davidgs_blog> • Linkedin
<http://linkedin.com/in/davidgsimmons> • Twitter
<http://twitter.com/TechEvangelist1> • GitHub <http://github.com/davidgs>
/** Message digitally signed for security and authenticity.
* If you cannot read the PGP.sig attachment, please go to
* http://www.gnupg.com/ <http://www.gnupg.com/> Secure your email!!!
* Public key available at keyserver.pgp.com <http://keyserver.pgp.com/>
**/
♺ This email uses 100% recycled electrons. Don't blow it by printing!
There are only 2 hard things in computer science: Cache invalidation, naming
things, and off-by-one errors.