Initial commit.
This commit is contained in:
commit
a99e748e4e
2
.gitattributes
vendored
Normal file
2
.gitattributes
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
# Auto detect text files and perform LF normalization
|
||||
* text=auto
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
Output/
|
||||
225
main.c
Normal file
225
main.c
Normal file
@ -0,0 +1,225 @@
|
||||
// ~TODO
|
||||
// [ ] Add SPI files (see: fw-mvp), enable SPI interface.
|
||||
// [ ] Add ADS1292 driver, and test (just print for now)
|
||||
// [ ] Increase size of USB receive buffer, and see if we can program the ADS1292 via USB.
|
||||
//
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "nrf.h"
|
||||
#include "nrf_drv_usbd.h"
|
||||
#include "nrf_drv_clock.h"
|
||||
#include "nrf_gpio.h"
|
||||
#include "nrf_delay.h"
|
||||
#include "nrf_drv_power.h"
|
||||
|
||||
#include "app_error.h"
|
||||
#include "app_util.h"
|
||||
#include "app_usbd_core.h"
|
||||
#include "app_usbd.h"
|
||||
#include "app_usbd_string_desc.h"
|
||||
#include "app_usbd_cdc_acm.h"
|
||||
#include "app_usbd_serial_num.h"
|
||||
|
||||
#include "app_timer.h"
|
||||
|
||||
#include "nrf_log.h"
|
||||
#include "nrf_log_ctrl.h"
|
||||
#include "nrf_log_default_backends.h"
|
||||
|
||||
/**
|
||||
* @brief Enable power USB detection
|
||||
*
|
||||
* Configure if example supports USB port connection
|
||||
*/
|
||||
#ifndef USBD_POWER_DETECTION
|
||||
#define USBD_POWER_DETECTION true
|
||||
#endif
|
||||
|
||||
|
||||
static void cdc_acm_user_ev_handler(app_usbd_class_inst_t const * p_inst,
|
||||
app_usbd_cdc_acm_user_event_t event);
|
||||
|
||||
#define CDC_ACM_COMM_INTERFACE 0
|
||||
#define CDC_ACM_COMM_EPIN NRF_DRV_USBD_EPIN2
|
||||
|
||||
#define CDC_ACM_DATA_INTERFACE 1
|
||||
#define CDC_ACM_DATA_EPIN NRF_DRV_USBD_EPIN1
|
||||
#define CDC_ACM_DATA_EPOUT NRF_DRV_USBD_EPOUT1
|
||||
|
||||
|
||||
/**
|
||||
* @brief CDC_ACM class instance
|
||||
* */
|
||||
APP_USBD_CDC_ACM_GLOBAL_DEF(m_app_cdc_acm,
|
||||
cdc_acm_user_ev_handler,
|
||||
CDC_ACM_COMM_INTERFACE,
|
||||
CDC_ACM_DATA_INTERFACE,
|
||||
CDC_ACM_COMM_EPIN,
|
||||
CDC_ACM_DATA_EPIN,
|
||||
CDC_ACM_DATA_EPOUT,
|
||||
APP_USBD_CDC_COMM_PROTOCOL_AT_V250
|
||||
);
|
||||
|
||||
#define READ_SIZE 1
|
||||
|
||||
static char m_rx_buffer[READ_SIZE];
|
||||
static char m_tx_buffer[NRF_DRV_USBD_EPSIZE];
|
||||
static bool m_send_flag = 0;
|
||||
|
||||
/**
|
||||
* @brief User event handler @ref app_usbd_cdc_acm_user_ev_handler_t (headphones)
|
||||
* */
|
||||
static void cdc_acm_user_ev_handler(app_usbd_class_inst_t const * p_inst,
|
||||
app_usbd_cdc_acm_user_event_t event)
|
||||
{
|
||||
app_usbd_cdc_acm_t const * p_cdc_acm = app_usbd_cdc_acm_class_get(p_inst);
|
||||
|
||||
switch (event)
|
||||
{
|
||||
case APP_USBD_CDC_ACM_USER_EVT_PORT_OPEN:
|
||||
{
|
||||
|
||||
/*Setup first transfer*/
|
||||
ret_code_t ret = app_usbd_cdc_acm_read(&m_app_cdc_acm,
|
||||
m_rx_buffer,
|
||||
READ_SIZE);
|
||||
UNUSED_VARIABLE(ret);
|
||||
break;
|
||||
}
|
||||
case APP_USBD_CDC_ACM_USER_EVT_PORT_CLOSE:
|
||||
break;
|
||||
case APP_USBD_CDC_ACM_USER_EVT_TX_DONE:
|
||||
break;
|
||||
case APP_USBD_CDC_ACM_USER_EVT_RX_DONE:
|
||||
{
|
||||
ret_code_t ret;
|
||||
NRF_LOG_INFO("Bytes waiting: %d", app_usbd_cdc_acm_bytes_stored(p_cdc_acm));
|
||||
do
|
||||
{
|
||||
/*Get amount of data transfered*/
|
||||
size_t size = app_usbd_cdc_acm_rx_size(p_cdc_acm);
|
||||
NRF_LOG_INFO("RX: size: %lu char: %c", size, m_rx_buffer[0]);
|
||||
|
||||
if (m_rx_buffer[0] == 1) {
|
||||
m_send_flag = false;
|
||||
}
|
||||
if (m_rx_buffer[0] == 2) {
|
||||
m_send_flag = true;
|
||||
}
|
||||
|
||||
/* Fetch data until internal buffer is empty */
|
||||
ret = app_usbd_cdc_acm_read(&m_app_cdc_acm,
|
||||
m_rx_buffer,
|
||||
READ_SIZE);
|
||||
} while (ret == NRF_SUCCESS);
|
||||
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
static void usbd_user_ev_handler(app_usbd_event_type_t event)
|
||||
{
|
||||
switch (event)
|
||||
{
|
||||
case APP_USBD_EVT_DRV_SUSPEND:
|
||||
break;
|
||||
case APP_USBD_EVT_DRV_RESUME:
|
||||
break;
|
||||
case APP_USBD_EVT_STARTED:
|
||||
break;
|
||||
case APP_USBD_EVT_STOPPED:
|
||||
app_usbd_disable();
|
||||
break;
|
||||
case APP_USBD_EVT_POWER_DETECTED:
|
||||
NRF_LOG_INFO("USB power detected");
|
||||
|
||||
if (!nrf_drv_usbd_is_enabled())
|
||||
{
|
||||
app_usbd_enable();
|
||||
}
|
||||
break;
|
||||
case APP_USBD_EVT_POWER_REMOVED:
|
||||
NRF_LOG_INFO("USB power removed");
|
||||
app_usbd_stop();
|
||||
break;
|
||||
case APP_USBD_EVT_POWER_READY:
|
||||
NRF_LOG_INFO("USB ready");
|
||||
app_usbd_start();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
int main(void) {
|
||||
ret_code_t ret;
|
||||
static const app_usbd_config_t usbd_config = {
|
||||
.ev_state_proc = usbd_user_ev_handler
|
||||
};
|
||||
|
||||
ret = NRF_LOG_INIT(NULL);
|
||||
APP_ERROR_CHECK(ret);
|
||||
|
||||
ret = nrf_drv_clock_init();
|
||||
APP_ERROR_CHECK(ret);
|
||||
|
||||
nrf_drv_clock_lfclk_request(NULL);
|
||||
|
||||
// Wait for LFCLK to init.
|
||||
while(!nrf_drv_clock_lfclk_is_running()) { }
|
||||
|
||||
ret = app_timer_init();
|
||||
APP_ERROR_CHECK(ret);
|
||||
|
||||
app_usbd_serial_num_generate();
|
||||
|
||||
ret = app_usbd_init(&usbd_config);
|
||||
APP_ERROR_CHECK(ret);
|
||||
NRF_LOG_INFO("USBD CDC ACM example started.");
|
||||
|
||||
app_usbd_class_inst_t const * class_cdc_acm = app_usbd_cdc_acm_class_inst_get(&m_app_cdc_acm);
|
||||
ret = app_usbd_class_append(class_cdc_acm);
|
||||
APP_ERROR_CHECK(ret);
|
||||
|
||||
if (USBD_POWER_DETECTION) {
|
||||
ret = app_usbd_power_events_enable();
|
||||
APP_ERROR_CHECK(ret);
|
||||
} else {
|
||||
NRF_LOG_INFO("No USB power detection enabled\r\nStarting USB now");
|
||||
|
||||
app_usbd_enable();
|
||||
app_usbd_start();
|
||||
}
|
||||
// Throughput testing:
|
||||
memset(m_tx_buffer, 0x41/*"A"*/, NRF_DRV_USBD_EPSIZE);
|
||||
size_t size = NRF_DRV_USBD_EPSIZE;
|
||||
//m_send_flag = true;
|
||||
|
||||
while (true) {
|
||||
while (app_usbd_event_queue_process()) {/* Nothing to do */}
|
||||
|
||||
if(m_send_flag) {
|
||||
// static int frame_counter;
|
||||
|
||||
// size_t size = sprintf(m_tx_buffer, "Hello USB CDC FA demo: %u\r\n", frame_counter);
|
||||
|
||||
// ret = app_usbd_cdc_acm_write(&m_app_cdc_acm, m_tx_buffer, size);
|
||||
// if (ret == NRF_SUCCESS) { ++frame_counter; }
|
||||
|
||||
app_usbd_cdc_acm_write(&m_app_cdc_acm, m_tx_buffer, size);
|
||||
}
|
||||
|
||||
UNUSED_RETURN_VALUE(NRF_LOG_PROCESS());
|
||||
/* Sleep CPU only if there was no interrupt since last loop processing */
|
||||
__WFE();
|
||||
}
|
||||
}
|
||||
|
||||
/** @} */
|
||||
4861
pca10056/blank/config/sdk_config.h
Normal file
4861
pca10056/blank/config/sdk_config.h
Normal file
File diff suppressed because it is too large
Load Diff
43
pca10056/blank/ses/flash_placement.xml
Normal file
43
pca10056/blank/ses/flash_placement.xml
Normal file
@ -0,0 +1,43 @@
|
||||
<!DOCTYPE Linker_Placement_File>
|
||||
<Root name="Flash Section Placement">
|
||||
<MemorySegment name="FLASH1" start="$(FLASH_PH_START)" size="$(FLASH_PH_SIZE)">
|
||||
<ProgramSection alignment="0x100" load="Yes" name=".vectors" start="$(FLASH_START)" />
|
||||
<ProgramSection alignment="4" load="Yes" name=".init" />
|
||||
<ProgramSection alignment="4" load="Yes" name=".init_rodata" />
|
||||
<ProgramSection alignment="4" load="Yes" name=".text" />
|
||||
<ProgramSection alignment="4" keep="Yes" load="Yes" name=".log_const_data" inputsections="*(SORT(.log_const_data*))" address_symbol="__start_log_const_data" end_symbol="__stop_log_const_data" />
|
||||
<ProgramSection alignment="4" keep="Yes" load="Yes" name=".log_backends" inputsections="*(SORT(.log_backends*))" address_symbol="__start_log_backends" end_symbol="__stop_log_backends" />
|
||||
<ProgramSection alignment="4" keep="Yes" load="Yes" name=".cli_command" inputsections="*(.cli_command*)" address_symbol="__start_cli_command" end_symbol="__stop_cli_command" />
|
||||
<ProgramSection alignment="4" keep="Yes" load="Yes" name=".pwr_mgmt_data" inputsections="*(SORT(.pwr_mgmt_data*))" address_symbol="__start_pwr_mgmt_data" end_symbol="__stop_pwr_mgmt_data" />
|
||||
<ProgramSection alignment="4" keep="Yes" load="Yes" name=".nrf_queue" inputsections="*(.nrf_queue*)" address_symbol="__start_nrf_queue" end_symbol="__stop_nrf_queue" />
|
||||
<ProgramSection alignment="4" keep="Yes" load="Yes" name=".nrf_balloc" inputsections="*(.nrf_balloc*)" address_symbol="__start_nrf_balloc" end_symbol="__stop_nrf_balloc" />
|
||||
<ProgramSection alignment="4" keep="Yes" load="No" name=".nrf_sections" address_symbol="__start_nrf_sections" />
|
||||
<ProgramSection alignment="4" keep="Yes" load="Yes" name=".log_dynamic_data" inputsections="*(SORT(.log_dynamic_data*))" runin=".log_dynamic_data_run"/>
|
||||
<ProgramSection alignment="4" keep="Yes" load="Yes" name=".log_filter_data" inputsections="*(SORT(.log_filter_data*))" runin=".log_filter_data_run"/>
|
||||
<ProgramSection alignment="4" keep="Yes" load="Yes" name=".cli_sorted_cmd_ptrs" inputsections="*(.cli_sorted_cmd_ptrs*)" runin=".cli_sorted_cmd_ptrs_run"/>
|
||||
<ProgramSection alignment="4" load="Yes" name=".dtors" />
|
||||
<ProgramSection alignment="4" load="Yes" name=".ctors" />
|
||||
<ProgramSection alignment="4" load="Yes" name=".rodata" />
|
||||
<ProgramSection alignment="4" load="Yes" name=".ARM.exidx" address_symbol="__exidx_start" end_symbol="__exidx_end" />
|
||||
<ProgramSection alignment="4" load="Yes" runin=".fast_run" name=".fast" />
|
||||
<ProgramSection alignment="4" load="Yes" runin=".data_run" name=".data" />
|
||||
<ProgramSection alignment="4" load="Yes" runin=".tdata_run" name=".tdata" />
|
||||
</MemorySegment>
|
||||
<MemorySegment name="RAM1" start="$(RAM_PH_START)" size="$(RAM_PH_SIZE)">
|
||||
<ProgramSection alignment="0x100" load="No" name=".vectors_ram" start="$(RAM_START)" address_symbol="__app_ram_start__"/>
|
||||
<ProgramSection alignment="4" keep="Yes" load="No" name=".nrf_sections_run" address_symbol="__start_nrf_sections_run" />
|
||||
<ProgramSection alignment="4" keep="Yes" load="No" name=".log_dynamic_data_run" address_symbol="__start_log_dynamic_data" end_symbol="__stop_log_dynamic_data" />
|
||||
<ProgramSection alignment="4" keep="Yes" load="No" name=".log_filter_data_run" address_symbol="__start_log_filter_data" end_symbol="__stop_log_filter_data" />
|
||||
<ProgramSection alignment="4" keep="Yes" load="No" name=".cli_sorted_cmd_ptrs_run" address_symbol="__start_cli_sorted_cmd_ptrs" end_symbol="__stop_cli_sorted_cmd_ptrs" />
|
||||
<ProgramSection alignment="4" keep="Yes" load="No" name=".nrf_sections_run_end" address_symbol="__end_nrf_sections_run" />
|
||||
<ProgramSection alignment="4" load="No" name=".fast_run" />
|
||||
<ProgramSection alignment="4" load="No" name=".data_run" />
|
||||
<ProgramSection alignment="4" load="No" name=".tdata_run" />
|
||||
<ProgramSection alignment="4" load="No" name=".bss" />
|
||||
<ProgramSection alignment="4" load="No" name=".tbss" />
|
||||
<ProgramSection alignment="4" load="No" name=".non_init" />
|
||||
<ProgramSection alignment="4" size="__HEAPSIZE__" load="No" name=".heap" />
|
||||
<ProgramSection alignment="8" size="__STACKSIZE__" load="No" place_from_segment_end="Yes" name=".stack" address_symbol="__StackLimit" end_symbol="__StackTop"/>
|
||||
<ProgramSection alignment="8" size="__STACKSIZE_PROCESS__" load="No" name=".stack_process" />
|
||||
</MemorySegment>
|
||||
</Root>
|
||||
129
pca10056/blank/ses/usbd_cdc_acm_pca10056.emProject
Normal file
129
pca10056/blank/ses/usbd_cdc_acm_pca10056.emProject
Normal file
@ -0,0 +1,129 @@
|
||||
<!DOCTYPE CrossStudio_Project_File>
|
||||
<solution Name="usbd_cdc_acm_pca10056" target="8" version="2">
|
||||
<configuration
|
||||
Name="Debug"
|
||||
c_preprocessor_definitions="DEBUG; DEBUG_NRF"
|
||||
gcc_optimization_level="None" />
|
||||
<configuration
|
||||
Name="Release"
|
||||
c_preprocessor_definitions="NDEBUG"
|
||||
gcc_optimization_level="Optimize For Size"
|
||||
link_time_optimization="No" />
|
||||
<project Name="usbd_cdc_acm_pca10056">
|
||||
<configuration
|
||||
Name="Common"
|
||||
arm_architecture="v7EM"
|
||||
arm_core_type="Cortex-M4"
|
||||
arm_endian="Little"
|
||||
arm_fp_abi="Hard"
|
||||
arm_fpu_type="FPv4-SP-D16"
|
||||
arm_linker_heap_size="8192"
|
||||
arm_linker_process_stack_size="0"
|
||||
arm_linker_stack_size="8192"
|
||||
arm_linker_treat_warnings_as_errors="No"
|
||||
arm_simulator_memory_simulation_parameter="RWX 00000000,00100000,FFFFFFFF;RWX 20000000,00010000,CDCDCDCD"
|
||||
arm_target_device_name="nRF52840_xxAA"
|
||||
arm_target_interface_type="SWD"
|
||||
c_preprocessor_definitions="APP_TIMER_V2;APP_TIMER_V2_RTC1_ENABLED;BOARD_PCA10056;CONFIG_GPIO_AS_PINRESET;FLOAT_ABI_HARD;INITIALIZE_USER_SECTIONS;NO_VTOR_CONFIG;NRF52840_XXAA;"
|
||||
c_user_include_directories="../../../config;../../../../../../components;../../../../../../components/boards;../../../../../../components/drivers_nrf/nrf_soc_nosd;../../../../../../components/libraries/atomic;../../../../../../components/libraries/atomic_fifo;../../../../../../components/libraries/balloc;../../../../../../components/libraries/bsp;../../../../../../components/libraries/button;../../../../../../components/libraries/cli;../../../../../../components/libraries/cli/uart;../../../../../../components/libraries/delay;../../../../../../components/libraries/experimental_section_vars;../../../../../../components/libraries/fifo;../../../../../../components/libraries/hardfault;../../../../../../components/libraries/hardfault/nrf52;../../../../../../components/libraries/log;../../../../../../components/libraries/log/src;../../../../../../components/libraries/memobj;../../../../../../components/libraries/mutex;../../../../../../components/libraries/pwr_mgmt;../../../../../../components/libraries/queue;../../../../../../components/libraries/ringbuf;../../../../../../components/libraries/scheduler;../../../../../../components/libraries/sortlist;../../../../../../components/libraries/strerror;../../../../../../components/libraries/timer;../../../../../../components/libraries/uart;../../../../../../components/libraries/usbd;../../../../../../components/libraries/usbd/class/cdc;../../../../../../components/libraries/usbd/class/cdc/acm;../../../../../../components/libraries/util;../../../../../../components/toolchain/cmsis/include;../../..;../../../../../../external/fnmatch;../../../../../../external/fprintf;../../../../../../external/segger_rtt;../../../../../../external/utf_converter;../../../../../../integration/nrfx;../../../../../../integration/nrfx/legacy;../../../../../../modules/nrfx;../../../../../../modules/nrfx/drivers/include;../../../../../../modules/nrfx/hal;../../../../../../modules/nrfx/mdk;../config;"
|
||||
debug_register_definition_file="../../../../../../modules/nrfx/mdk/nrf52840.svd"
|
||||
debug_start_from_entry_point_symbol="No"
|
||||
debug_target_connection="J-Link"
|
||||
gcc_debugging_level="Level 3"
|
||||
gcc_entry_point="Reset_Handler"
|
||||
linker_output_format="hex"
|
||||
linker_printf_fmt_level="long"
|
||||
linker_printf_width_precision_supported="Yes"
|
||||
linker_scanf_fmt_level="long"
|
||||
linker_section_placement_file="flash_placement.xml"
|
||||
linker_section_placement_macros="FLASH_PH_START=0x0;FLASH_PH_SIZE=0x100000;RAM_PH_START=0x20000000;RAM_PH_SIZE=0x40000;FLASH_START=0x0;FLASH_SIZE=0x100000;RAM_START=0x20000000;RAM_SIZE=0x40000"
|
||||
linker_section_placements_segments="FLASH1 RX 0x0 0x100000;RAM1 RWX 0x20000000 0x40000"
|
||||
macros="CMSIS_CONFIG_TOOL=../../../../../../external_tools/cmsisconfig/CMSIS_Configuration_Wizard.jar"
|
||||
project_directory=""
|
||||
project_type="Executable" />
|
||||
<folder Name="Application">
|
||||
<file file_name="../../../main.c" />
|
||||
<file file_name="../config/sdk_config.h" />
|
||||
</folder>
|
||||
<folder Name="Board Definition">
|
||||
<file file_name="../../../../../../components/boards/boards.c" />
|
||||
</folder>
|
||||
<folder Name="Board Support">
|
||||
<file file_name="../../../../../../components/libraries/bsp/bsp.c" />
|
||||
<file file_name="../../../../../../components/libraries/bsp/bsp_cli.c" />
|
||||
</folder>
|
||||
<folder Name="None">
|
||||
<file file_name="../../../../../../modules/nrfx/mdk/ses_startup_nrf52840.s" />
|
||||
<file file_name="../../../../../../modules/nrfx/mdk/ses_startup_nrf_common.s" />
|
||||
<file file_name="../../../../../../modules/nrfx/mdk/system_nrf52840.c" />
|
||||
</folder>
|
||||
<folder Name="nRF_Drivers">
|
||||
<file file_name="../../../../../../integration/nrfx/legacy/nrf_drv_clock.c" />
|
||||
<file file_name="../../../../../../integration/nrfx/legacy/nrf_drv_power.c" />
|
||||
<file file_name="../../../../../../integration/nrfx/legacy/nrf_drv_uart.c" />
|
||||
<file file_name="../../../../../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.c" />
|
||||
<file file_name="../../../../../../components/drivers_nrf/nrf_soc_nosd/nrf_soc.c" />
|
||||
<file file_name="../../../../../../modules/nrfx/soc/nrfx_atomic.c" />
|
||||
<file file_name="../../../../../../modules/nrfx/drivers/src/nrfx_clock.c" />
|
||||
<file file_name="../../../../../../modules/nrfx/drivers/src/nrfx_gpiote.c" />
|
||||
<file file_name="../../../../../../modules/nrfx/drivers/src/nrfx_power.c" />
|
||||
<file file_name="../../../../../../modules/nrfx/drivers/src/prs/nrfx_prs.c" />
|
||||
<file file_name="../../../../../../modules/nrfx/drivers/src/nrfx_systick.c" />
|
||||
<file file_name="../../../../../../modules/nrfx/drivers/src/nrfx_uart.c" />
|
||||
<file file_name="../../../../../../modules/nrfx/drivers/src/nrfx_uarte.c" />
|
||||
<file file_name="../../../../../../modules/nrfx/drivers/src/nrfx_usbd.c" />
|
||||
</folder>
|
||||
<folder Name="nRF_Libraries">
|
||||
<file file_name="../../../../../../components/libraries/util/app_error.c" />
|
||||
<file file_name="../../../../../../components/libraries/util/app_error_handler_gcc.c" />
|
||||
<file file_name="../../../../../../components/libraries/util/app_error_weak.c" />
|
||||
<file file_name="../../../../../../components/libraries/fifo/app_fifo.c" />
|
||||
<file file_name="../../../../../../components/libraries/scheduler/app_scheduler.c" />
|
||||
<file file_name="../../../../../../components/libraries/timer/app_timer2.c" />
|
||||
<file file_name="../../../../../../components/libraries/uart/app_uart_fifo.c" />
|
||||
<file file_name="../../../../../../components/libraries/usbd/app_usbd.c" />
|
||||
<file file_name="../../../../../../components/libraries/usbd/class/cdc/acm/app_usbd_cdc_acm.c" />
|
||||
<file file_name="../../../../../../components/libraries/usbd/app_usbd_core.c" />
|
||||
<file file_name="../../../../../../components/libraries/usbd/app_usbd_serial_num.c" />
|
||||
<file file_name="../../../../../../components/libraries/usbd/app_usbd_string_desc.c" />
|
||||
<file file_name="../../../../../../components/libraries/util/app_util_platform.c" />
|
||||
<file file_name="../../../../../../components/libraries/timer/drv_rtc.c" />
|
||||
<file file_name="../../../../../../external/fnmatch/fnmatch.c" />
|
||||
<file file_name="../../../../../../components/libraries/hardfault/nrf52/handler/hardfault_handler_gcc.c" />
|
||||
<file file_name="../../../../../../components/libraries/hardfault/hardfault_implementation.c" />
|
||||
<file file_name="../../../../../../components/libraries/util/nrf_assert.c" />
|
||||
<file file_name="../../../../../../components/libraries/atomic_fifo/nrf_atfifo.c" />
|
||||
<file file_name="../../../../../../components/libraries/atomic/nrf_atomic.c" />
|
||||
<file file_name="../../../../../../components/libraries/balloc/nrf_balloc.c" />
|
||||
<file file_name="../../../../../../components/libraries/cli/nrf_cli.c" />
|
||||
<file file_name="../../../../../../components/libraries/cli/uart/nrf_cli_uart.c" />
|
||||
<file file_name="../../../../../../external/fprintf/nrf_fprintf.c" />
|
||||
<file file_name="../../../../../../external/fprintf/nrf_fprintf_format.c" />
|
||||
<file file_name="../../../../../../components/libraries/memobj/nrf_memobj.c" />
|
||||
<file file_name="../../../../../../components/libraries/pwr_mgmt/nrf_pwr_mgmt.c" />
|
||||
<file file_name="../../../../../../components/libraries/queue/nrf_queue.c" />
|
||||
<file file_name="../../../../../../components/libraries/ringbuf/nrf_ringbuf.c" />
|
||||
<file file_name="../../../../../../components/libraries/experimental_section_vars/nrf_section_iter.c" />
|
||||
<file file_name="../../../../../../components/libraries/sortlist/nrf_sortlist.c" />
|
||||
<file file_name="../../../../../../components/libraries/strerror/nrf_strerror.c" />
|
||||
</folder>
|
||||
<folder Name="nRF_Log">
|
||||
<file file_name="../../../../../../components/libraries/log/src/nrf_log_backend_rtt.c" />
|
||||
<file file_name="../../../../../../components/libraries/log/src/nrf_log_backend_serial.c" />
|
||||
<file file_name="../../../../../../components/libraries/log/src/nrf_log_backend_uart.c" />
|
||||
<file file_name="../../../../../../components/libraries/log/src/nrf_log_default_backends.c" />
|
||||
<file file_name="../../../../../../components/libraries/log/src/nrf_log_frontend.c" />
|
||||
<file file_name="../../../../../../components/libraries/log/src/nrf_log_str_formatter.c" />
|
||||
</folder>
|
||||
<folder Name="nRF_Segger_RTT">
|
||||
<file file_name="../../../../../../external/segger_rtt/SEGGER_RTT.c" />
|
||||
<file file_name="../../../../../../external/segger_rtt/SEGGER_RTT_printf.c" />
|
||||
</folder>
|
||||
<folder Name="Segger Startup Files">
|
||||
<file file_name="$(StudioDir)/source/thumb_crt0.s" />
|
||||
</folder>
|
||||
<folder Name="UTF8/UTF16 converter">
|
||||
<file file_name="../../../../../../external/utf_converter/utf.c" />
|
||||
</folder>
|
||||
</project>
|
||||
</solution>
|
||||
47
pca10056/blank/ses/usbd_cdc_acm_pca10056.emSession
Normal file
47
pca10056/blank/ses/usbd_cdc_acm_pca10056.emSession
Normal file
@ -0,0 +1,47 @@
|
||||
<!DOCTYPE CrossStudio_Session_File>
|
||||
<session>
|
||||
<Bookmarks/>
|
||||
<Breakpoints groups="Breakpoints" active_group="Breakpoints"/>
|
||||
<ExecutionProfileWindow/>
|
||||
<FrameBuffer/>
|
||||
<Memory1/>
|
||||
<Memory2/>
|
||||
<Memory3/>
|
||||
<Memory4/>
|
||||
<Project>
|
||||
<ProjectSessionItem path="usbd_cdc_acm_pca10056"/>
|
||||
<ProjectSessionItem path="usbd_cdc_acm_pca10056;usbd_cdc_acm_pca10056"/>
|
||||
<ProjectSessionItem path="usbd_cdc_acm_pca10056;usbd_cdc_acm_pca10056;Application"/>
|
||||
<ProjectSessionItem path="usbd_cdc_acm_pca10056;usbd_cdc_acm_pca10056;nRF_Drivers"/>
|
||||
<ProjectSessionItem path="usbd_cdc_acm_pca10056;usbd_cdc_acm_pca10056;nRF_Libraries"/>
|
||||
<ProjectSessionItem path="usbd_cdc_acm_pca10056;usbd_cdc_acm_pca10056;Segger Startup Files"/>
|
||||
</Project>
|
||||
<Register1/>
|
||||
<Register2/>
|
||||
<Register3/>
|
||||
<Register4/>
|
||||
<Threads>
|
||||
<ThreadsWindow showLists=""/>
|
||||
</Threads>
|
||||
<TraceWindow>
|
||||
<Trace enabled="Yes"/>
|
||||
</TraceWindow>
|
||||
<Watch1>
|
||||
<Watches active="1" update="Never"/>
|
||||
</Watch1>
|
||||
<Watch2>
|
||||
<Watches active="0" update="Never"/>
|
||||
</Watch2>
|
||||
<Watch3>
|
||||
<Watches active="0" update="Never"/>
|
||||
</Watch3>
|
||||
<Watch4>
|
||||
<Watches active="0" update="Never"/>
|
||||
</Watch4>
|
||||
<Files>
|
||||
<SessionOpenFile windowGroup="DockEditLeft" x="9" y="97" useTextEdit="1" path="../../../main.c" left="0" selected="1" top="46" codecName="Default"/>
|
||||
<SessionOpenFile windowGroup="DockEditLeft" x="4" y="103" useTextEdit="1" openedFrom="D:/Firmware/nRF5_SDK_17.1.0/1.Musa/fw_in_progress/musa_usbd_cdc_acm/main.c" path="../../../../../../components/libraries/usbd/class/cdc/app_usbd_cdc_types.h" left="0" top="64" codecName="Default"/>
|
||||
<SessionOpenFile windowGroup="DockEditLeft" x="30" y="1425" useTextEdit="1" path="../config/sdk_config.h" left="0" top="1425" codecName="Default"/>
|
||||
</Files>
|
||||
<EMStudioWindow activeProject="usbd_cdc_acm_pca10056" fileDialogDefaultFilter="*.c" autoConnectTarget="J-Link" buildConfiguration="Release" sessionSettings="" debugSearchFileMap="" fileDialogInitialDirectory="" debugSearchPath="" autoConnectCapabilities="3711"/>
|
||||
</session>
|
||||
47
pca10056/blank/ses/usbd_cdc_acm_pca10056_Debug.jlink
Normal file
47
pca10056/blank/ses/usbd_cdc_acm_pca10056_Debug.jlink
Normal file
@ -0,0 +1,47 @@
|
||||
[BREAKPOINTS]
|
||||
ForceImpTypeAny = 0
|
||||
ShowInfoWin = 1
|
||||
EnableFlashBP = 2
|
||||
BPDuringExecution = 0
|
||||
[CFI]
|
||||
CFISize = 0x00
|
||||
CFIAddr = 0x00
|
||||
[CPU]
|
||||
MonModeVTableAddr = 0xFFFFFFFF
|
||||
MonModeDebug = 0
|
||||
MaxNumAPs = 0
|
||||
LowPowerHandlingMode = 0
|
||||
OverrideMemMap = 0
|
||||
AllowSimulation = 1
|
||||
ScriptFile=""
|
||||
[FLASH]
|
||||
RMWThreshold = 0x400
|
||||
Loaders=""
|
||||
EraseType = 0x00
|
||||
CacheExcludeSize = 0x00
|
||||
CacheExcludeAddr = 0x00
|
||||
MinNumBytesFlashDL = 0
|
||||
SkipProgOnCRCMatch = 1
|
||||
VerifyDownload = 1
|
||||
AllowCaching = 1
|
||||
EnableFlashDL = 2
|
||||
Override = 0
|
||||
Device="ARM7"
|
||||
[GENERAL]
|
||||
MaxNumTransfers = 0x00
|
||||
WorkRAMSize = 0x00
|
||||
WorkRAMAddr = 0x00
|
||||
RAMUsageLimit = 0x00
|
||||
[SWO]
|
||||
SWOLogFile=""
|
||||
[MEM]
|
||||
RdOverrideOrMask = 0x00
|
||||
RdOverrideAndMask = 0xFFFFFFFF
|
||||
RdOverrideAddr = 0xFFFFFFFF
|
||||
WrOverrideOrMask = 0x00
|
||||
WrOverrideAndMask = 0xFFFFFFFF
|
||||
WrOverrideAddr = 0xFFFFFFFF
|
||||
[RAM]
|
||||
VerifyDownload = 0x01
|
||||
[DYN_MEM_MAP]
|
||||
NumUserRegion = 0x00
|
||||
47
pca10056/blank/ses/usbd_cdc_acm_pca10056_Release.jlink
Normal file
47
pca10056/blank/ses/usbd_cdc_acm_pca10056_Release.jlink
Normal file
@ -0,0 +1,47 @@
|
||||
[BREAKPOINTS]
|
||||
ForceImpTypeAny = 0
|
||||
ShowInfoWin = 1
|
||||
EnableFlashBP = 2
|
||||
BPDuringExecution = 0
|
||||
[CFI]
|
||||
CFISize = 0x00
|
||||
CFIAddr = 0x00
|
||||
[CPU]
|
||||
MonModeVTableAddr = 0xFFFFFFFF
|
||||
MonModeDebug = 0
|
||||
MaxNumAPs = 0
|
||||
LowPowerHandlingMode = 0
|
||||
OverrideMemMap = 0
|
||||
AllowSimulation = 1
|
||||
ScriptFile=""
|
||||
[FLASH]
|
||||
RMWThreshold = 0x400
|
||||
Loaders=""
|
||||
EraseType = 0x00
|
||||
CacheExcludeSize = 0x00
|
||||
CacheExcludeAddr = 0x00
|
||||
MinNumBytesFlashDL = 0
|
||||
SkipProgOnCRCMatch = 1
|
||||
VerifyDownload = 1
|
||||
AllowCaching = 1
|
||||
EnableFlashDL = 2
|
||||
Override = 0
|
||||
Device="ARM7"
|
||||
[GENERAL]
|
||||
MaxNumTransfers = 0x00
|
||||
WorkRAMSize = 0x00
|
||||
WorkRAMAddr = 0x00
|
||||
RAMUsageLimit = 0x00
|
||||
[SWO]
|
||||
SWOLogFile=""
|
||||
[MEM]
|
||||
RdOverrideOrMask = 0x00
|
||||
RdOverrideAndMask = 0xFFFFFFFF
|
||||
RdOverrideAddr = 0xFFFFFFFF
|
||||
WrOverrideOrMask = 0x00
|
||||
WrOverrideAndMask = 0xFFFFFFFF
|
||||
WrOverrideAddr = 0xFFFFFFFF
|
||||
[RAM]
|
||||
VerifyDownload = 0x01
|
||||
[DYN_MEM_MAP]
|
||||
NumUserRegion = 0x00
|
||||
Loading…
Reference in New Issue
Block a user