Re: [Zephyr-devel] How to use BOARD_ROOT to define out-of-tree boards?
Henrik Brix Andersen
Hi,
On 14 Mar 2018, at 16.08, Li, Jun R <jun.r.li@...> wrote:Was the typo intentional (“disoc” vs. “disco)? Otherwise, that may explain why your board definition was not picked up. Regards, Brix -- Henrik Brix Andersen
|
|
How to use BOARD_ROOT to define out-of-tree boards?
Li, Jun R <jun.r.li@...>
Hi, I’m trying to use the new feature implemented by PR #6150 to define my private boards. I just copied samples/hello_word to an out-of-tree directory and copied boards/arm/stm32f4_disco to the directory hello_world to have a try. So, my directory structure is like this: . ├── boards │ └── arm │ └── stm32f4_disco │ ├── board.cmake │ ├── board.h │ ├── CMakeLists.txt │ ├── doc │ │ ├── img │ │ │ └── en.stm32f4_discovery.jpg │ │ └── stm32f4_disco.rst │ ├── Kconfig.board │ ├── Kconfig.defconfig │ ├── pinmux.c │ ├── stm32f4_disco_defconfig │ ├── stm32f4_disco.dts │ ├── stm32f4_disco.yaml │ └── support │ └── openocd.cfg ├── build │ ├── CMakeCache.txt │ └── CMakeFiles │ └── cmake.check_cache ├── CMakeLists.txt ├── prj.conf ├── prj_single.conf ├── README.rst ├── sample.yaml └── src └── main.c
However, I couldn't make cmake to find the board I defined by either of the following two ways: 1. Directly specify the BOARD_ROOT by the command: “cmake -DBOARD=stm32f4_disco -DBOARD_ROOT=./ ..”
2. Specify the BOARD_ROOT in my CMakefile: include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) project(NONE)
set(BOARD_ROOT ./) target_sources(app PRIVATE src/main.c)
For the first way, I got an error: -- Selected BOARD stm32f4_disoc No board named 'stm32f4_disoc' found
For the second way, it can compile and find the board, but the used board directory is still the original one in Zephyr: -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.5.2", minimum required is "3.4") -- Selected BOARD stm32f4_disco Zephyr version: 1.11.99 Parsing Kconfig tree in /home /projects/my_base_1.11/zephyr/Kconfig Using /home/projects/my_base_1.11/zephyr/boards/arm/stm32f4_disco/stm32f4_disco_defconfig as base
I’m wondering what’s wrong on my usage of BOARD_ROOT? Thanks for help!
Regards, Jun Li | NTG | Intel Corporation
|
|
Re: [Zephyr-devel] Bluetooth BLE device not get discount
Luiz Augusto von Dentz
Hi,
On Tue, Mar 13, 2018 at 9:08 PM, Vikrant More <vikrant8051@...> wrote: Hello,ATT/GATT is tied with the ACL connection which is maintained by the controller, so there is very little the host stack can do about it but perhaps if you are running with combined controller + host then we need to check why the controller side cannot detect the ACL has been disconnected.
-- Luiz Augusto von Dentz
|
|
Re: [Zephyr-devel] error while opening file (NFFS)
Vikrant More <vikrant8051@...>
Hi Ram, I worked with your suggestion & it works.
On Tue, Mar 13, 2018 at 3:36 PM, Pallala, Ramakrishna <ramakrishna.pallala@...> wrote:
|
|
Bluetooth BLE device not get discount
Vikrant More <vikrant8051@...>
Hello, Currently I am working on Zephyr Bluetooth APIs to build normal Services-Characteristics based BLE device. I've observed following things: 1) sometimes when app (for eg. nRF Connect) closes even after that device doesn't get disconnected 2) sometimes even smartphone Bluetooth switched off then also device doesn't go from connect state to disconnect state. Success ratio is approx. 60-70% Since device doesn't go in disconnected mode, it stop advertising & I have to restart it for reconnection. Is it because of App or smartphone OS not actually disconnecting at background level ? Thank You !!
|
|
Re: [Zephyr-devel] error while opening file (NFFS)
Pallala, Ramakrishna <ramakrishna.pallala@...>
Hi Vikranth,
The main change is the introduction of mount point which will allow us to have multiple file systems at once. Now the file system mounting responsibility to given to application and it should tie the backend storage which is intended to use.
We have three examples as of today which demonstrate the usage of file systems API’s:
tests/subsys/fs/fat_fs_api/ => Demonstrate FATFS usage, I would suggest you look into it as it is simple and not many files are there. tests/subsys/fs/nffs_fs_api/ => Demonstrate NFFS usage tests/subsys/fs/multi-fs/ => Demonstrate both FATFS and NFFS usage together.
Look into the test_*_mount.c files in these tests which will show how to mount a file system from Application.
This feature is destined for v1.12 release and I will add the documentation accordingly.
Thanks, Ram
From: Vikrant More [mailto:vikrant8051@...]
Sent: Monday, March 12, 2018 4:46 PM To: Pallala, Ramakrishna <ramakrishna.pallala@...> Cc: zephyr-devel@...; zephyr-users@... Subject: Re: [Zephyr-devel] error while opening file (NFFS)
I'm not able to understand it. Why Zephyr did these type of changes when there is no demo examples for modules like NFFS ? Please help to solve this issue. In tests/subsys/fs/nffs_fs_api/ there are multiple files ....which one to refer ?? What is proper sequence for initialization ? Please give me sample code to open, read, write & close for file using NFFS as per latest patches.
On Mon, Mar 12, 2018 at 4:06 PM, Pallala, Ramakrishna <ramakrishna.pallala@...> wrote:
|
|
Re: [STM32L4] looks there is no way to flash and debug?
Erwan Gouriou
Ok, so openoncd support is indeed not provided for this board. And it happens it is not present neither in openocd. Though, it will work by re-using configuration provided for nucleo_l476rg. Duplicate following files and move them into nucleo_l432kc folder: -support/openocd.org -board.cmake
On 13 March 2018 at 09:47, Carles Perello <carles.perello@...> wrote: After the build sequence
|
|
Re: [STM32L4] looks there is no way to flash and debug?
Carles Perello
After the build sequence
toggle quoted messageShow quoted text
cmake -GNinja -DBOARD=nucleo_l432kc .. ninja [1/95] Generating always_rebuild Building for board nucleo_l432kc [90/95] Linking C executable zephyr/zephyr_prebuilt.elf Memory region Used Size Region Size %age Used FLASH: 11376 B 256 KB 4.34% SRAM: 4576 B 64 KB 6.98% IDT_LIST: 132 B 2 KB 6.45% [95/95] Linking C executable zephyr/zephyr.elf ninja flash [0/1] Flashing nucleo_l432kc flash is not supported with this board. Please check the documentation for alternate instructions. I am using zephyr release 1.11.0 under windows (using msys2) regards
On Tue, Mar 13, 2018 at 9:41 AM, Erwan Gouriou <erwan.gouriou@...> wrote:
Hi Carles,
|
|
Re: [STM32L4] looks there is no way to flash and debug?
Erwan Gouriou
Hi Carles, There is no particular limitation on STM32L4 that should prevent you to flash and debug. Can you provide us more details on your set up to understand what is going on (board, SW, environment, error you encounter..)? Cheers Erwan
On 13 March 2018 at 09:35, Carles Perello <carles.perello@...> wrote: Hello
|
|
[STM32L4] looks there is no way to flash and debug?
Carles Perello
Hello
I am starting to do a development on STM32L4 nucleo based boards....but seems that something is misconfigured as I cant do flash or debug (either make or ninja). Any pointer to what I can change to make is work is more than welcome :-) regards Carles
|
|
Re: [Zephyr-devel] error while opening file (NFFS)
Vikrant More <vikrant8051@...>
I'm not able to understand it. Why Zephyr did these type of changes when there is no demo examples for modules like NFFS ? Please help to solve this issue. In tests/subsys/fs/nffs_fs_api/ there are multiple files ....which one to refer ??
On Mon, Mar 12, 2018 at 4:06 PM, Pallala, Ramakrishna <ramakrishna.pallala@...> wrote:
|
|
Re: [Zephyr-devel] error while opening file (NFFS)
Pallala, Ramakrishna <ramakrishna.pallala@...>
Hi Vikranth,
Zephyr VFS patches got merged yesterday. These changes are not part of v1.11 but got merged yesterday.
Please refer to the changes needed to comply with VFS under tests/subsys/fs/nffs_fs_api/ on the latest code.
Thanks, Ram
From: zephyr-devel-bounces@... [mailto:zephyr-devel-bounces@...]
On Behalf Of Vikrant More
Sent: Monday, March 12, 2018 3:52 PM To: zephyr-devel@...; zephyr-users@... Subject: [Zephyr-devel] error while opening file (NFFS)
Hello, I upgrade to Zephyr v.1.11 & getting this error while opening file using NFFS It was working perfectly fine with previous version. Could anybody help me to solve this issue ?
|
|
error while opening file (NFFS)
Vikrant More <vikrant8051@...>
Hello, I upgrade to Zephyr v.1.11 & getting this error while opening file using NFFS[general] [ERR] fs_open: fs_open:mount point not found!! error -2 while opening test.txt
|
|
about to use FOTA & Lightweight flash storage layer for constrained devices from v1.11.0
Vikrant More <vikrant8051@...>
Hello, How to upgrade firmware on #nRF52840_PDK over Bluetooth Link using newly added FOTA feature in v1.11.0 ? Please provide in detail step wise solution if possible.Is it "$zephyr_base/samples/drivers/soc_flash_nrf5" ? If we try to update value of variable stored on flash, then we have to erase complete page or driver should write down new value on new address location. Is newly added flash storage layer take care of that since in general SoC supports only 10K erase cycle ? Thank You !!
|
|
Re: increasing nRF52 Bluetooth range
Chettimada, Vinayak Kariappa
Hi Vikrant,
I tried +8dBm settings and I simply see the increased RSSI value on my iPhone scanning for advertisements.
Regards, Vinayak
From: Vikrant More [mailto:vikrant8051@...]
Sent: Thursday, March 08, 2018 11:46 AM To: Chettimada, Vinayak Kariappa <vinayak.kariappa.chettimada@...> Cc: zephyr-devel@...; zephyr-users@...; Cufi, Carles <Carles.Cufi@...> Subject: Re: [Zephyr-users] increasing nRF52 Bluetooth range
Hello Vinayak, I modified it at stack level so that TX power get set to +8 dBM. For that, I edited these 2 files. But unfortunately didn't found any difference in range. Thank You !!
On Thu, Mar 8, 2018 at 3:47 PM, Chettimada, Vinayak Kariappa <vinayak.kariappa.chettimada@...> wrote:
|
|
Re: increasing nRF52 Bluetooth range
Vikrant More <vikrant8051@...>
Hello Vinayak, I modified it at stack level so that TX power get set to +8 dBM./home/vikrant/projects/zephyr/zephyr/subsys/bluetooth/controller/ll_sw/ll_test.c:189: radio_tx_power_set(8); /home/vikrant/projects/zephyr/zephyr/subsys/bluetooth/controller/ll_sw/ctrl.c:5902: radio_tx_power_set(8); Thank You !!
On Thu, Mar 8, 2018 at 3:47 PM, Chettimada, Vinayak Kariappa <vinayak.kariappa.chettimada@...> wrote:
|
|
Re: increasing nRF52 Bluetooth range
Chettimada, Vinayak Kariappa
Hi Vikrant,
As I said before: «Feel free to supply the correct h/w Tx Power enumeration to callers of https://github.com/zephyrproject-rtos/zephyr/blob/master/subsys/bluetooth/controller/hal/nrf5/radio/radio.c#L112”
Please review the callers of “radio_tx_power_set”
One for sure is https://github.com/zephyrproject-rtos/zephyr/blob/master/subsys/bluetooth/controller/ll_sw/ctrl.c#L5902
Supply 0x08 instead of 0 as the current param.
Regards, Vinayak
From: Vikrant More [mailto:vikrant8051@...]
Sent: Thursday, March 08, 2018 9:56 AM To: Chettimada, Vinayak Kariappa <vinayak.kariappa.chettimada@...> Cc: zephyr-devel@...; zephyr-users@...; Cufi, Carles <Carles.Cufi@...> Subject: Re: [Zephyr-users] increasing nRF52 Bluetooth range
Hello Vinayak, NRF_RADIO->TXPOWER = 0x8; //+8dBm
I modified power to +8 dBM as per your suggestion but didn't find any improvement in the range. Am I missing something besides this ? Thank You !!
On Thu, Mar 8, 2018 at 1:57 PM, Chettimada, Vinayak Kariappa <vinayak.kariappa.chettimada@...> wrote:
|
|
Re: increasing nRF52 Bluetooth range
Vikrant More <vikrant8051@...>
Hello Vinayak, NRF_RADIO->TXPOWER = 0x8; //+8dBmerr = bt_enable(bt_ready); if (err) { printk("Bluetooth init failed (err %d)\n", err); return; } bt_conn_cb_register(&conn_callbacks); bt_conn_auth_cb_register(&auth_cb_display);
On Thu, Mar 8, 2018 at 1:57 PM, Chettimada, Vinayak Kariappa <vinayak.kariappa.chettimada@...> wrote:
|
|
Re: increasing nRF52 Bluetooth range
Chettimada, Vinayak Kariappa
Hi Vikrant,
The Zephyr BLE controller does not implement the Tx power set interface in the upstream code, hence Zephyr controller operates with +0dBm transmit power. Feel free to supply the correct h/w Tx Power enumeration to callers of https://github.com/zephyrproject-rtos/zephyr/blob/master/subsys/bluetooth/controller/hal/nrf5/radio/radio.c#L112
nRF52840 supports +8dBm and Zephyr controller supports external power amplifiers too using the PA/LNA GPIO lines, in case you want your h/w design to have external chips to get further tx power.
Regards, Vinayak
From: zephyr-users-bounces@... [mailto:zephyr-users-bounces@...]
On Behalf Of Vikrant More
Sent: Thursday, March 08, 2018 7:53 AM To: zephyr-devel@...; zephyr-users@...; Cufi, Carles <Carles.Cufi@...> Subject: [Zephyr-users] increasing nRF52 Bluetooth range
Hello, Recently while doing demo test in my office, I found that
Silicon labs demo kit was executing own stack.
Is this because of only +2dbm difference ? How to increase nRF52 range by configuring Zephyr ? Thank You !!
|
|
increasing nRF52 Bluetooth range
Vikrant More <vikrant8051@...>
Hello, Recently while doing demo test in my office, I found that range of silicon labs SoC with max. +10dbm power = 2 * range of nRF52 with max. +8 dbm power Silicon labs demo kit was executing own stack. Is this because of only +2dbm difference ? How to increase nRF52 range by configuring Zephyr ? Thank You !!
|
|