Compare commits

...
18 Commits
Author SHA1 Message Date
hathach 2577833136 update changelog 2021-06-02 22:48:12 +07:00
hathach 0ec25a7add update pid for raytac dongle 2021-06-02 22:43:23 +07:00
Ha Thach 81240bfdb9 Merge pull request #206 from jpconstantineau/EByte-E104
EByte-E104: fix to LED direction
2021-05-31 10:07:10 +07:00
Ha Thach 7a728eeaa6 Merge pull request #207 from jpconstantineau/EByte-E73-TBB
EByte E73-TBB (nRF52832): Initial commit of bootloader
2021-05-31 10:05:03 +07:00
Pierre 398ede8f90 swap TX/RX 2021-05-30 16:16:09 -06:00
Pierre cef07b4eeb fix to LED direction 2021-05-30 16:04:33 -06:00
Pierre 0c086c2a4c Adding E73 Test board from EByte 2021-05-30 15:59:51 -06:00
Ha Thach 566410a7e2 Merge pull request #205 from jpconstantineau/EByte-E104
Adding EByte E104-BT5032A module
2021-05-30 14:55:35 +07:00
Pierre 0e87ce6e3e update to comments 2021-05-29 23:04:21 -06:00
Pierre 4c1344c612 fix to buttons 2021-05-29 23:04:14 -06:00
Pierre 4e54deb050 updated CI to include ebyte E104-BT5032A 2021-05-29 23:03:01 -06:00
Pierre 6755bd101c adding EByte E104-BT5032A Module 2021-05-29 23:02:54 -06:00
Ha Thach 7255b55ffe Merge pull request #204 from adafruit/minor-cleanup
clean up
2021-05-19 15:59:17 +07:00
hathach 12d36857c2 clean up 2021-05-12 10:45:15 +07:00
hathach a40d98dca2 add forum link in issue template 2021-04-22 10:43:49 +07:00
Ha Thach f33fdd2e5a Update bug_report.md 2021-04-22 10:40:43 +07:00
Ha Thach 0edf5175a9 Merge pull request #202 from aramcon-badge/aramcon2-badge
Add board definition files for ARAMCON 2 Badge
2021-04-18 21:42:41 +07:00
Benny Meisels 0a677620ab Add board definition files for ARAMCON 2 Badge 2021-04-18 10:07:22 +03:00
13 changed files with 249 additions and 17 deletions

No files matched your search

+13 -13
View File
@@ -1,32 +1,32 @@
---
name: Bug report
about: Create a report to help us improve
title: "[Bug]"
labels: ''
title: 'Please provide all details at least for Setup/Describe/Reproduce'
labels: 'Bug'
assignees: ''
---
**Describe the bug**
A clear and concise description of what the bug is.
**Set up (please complete the following information)**
**Set up**
- Your Board and BSP version
- Your OS (mac/windows/linux) and its version
- Serial debug log (enable IDE's Debug Mode Level to 1 or 2)
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior**
A clear and concise description of what you expected to happen.
3. See error
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Additional context**
Add any other context about the problem here.
**Log**
If applicable, provide your Serial log. If the log is too long, attach it as txt file instead.
+4
View File
@@ -0,0 +1,4 @@
contact_links:
- name: Adafruit Support Forum
url: https://forums.adafruit.com
about: If you have other questions or need help, post it here.
+3
View File
@@ -27,10 +27,13 @@ jobs:
- 'adm_b_nrf52840_1'
- 'ae_bl652_bo'
- 'aramcon_badge_2019'
- 'aramcon2_badge'
- 'arcade_feather_nrf52840_express'
- 'arduino_nano_33_ble'
- 'bast_ble'
- 'bluemicro_nrf52840'
- 'ebyte_e104_bt5032a'
- 'ebyte_e73_tbb'
- 'electronut_labs_papyr'
- 'ikigaisense_vita'
- 'mdk_nrf52840_dongle'
+4
View File
@@ -1,5 +1,9 @@
# Adafruit nRF52 Bootloader Changelog
## 0.5.1 - 2021.06.02
- more boards support
## 0.5.0 - 2021.04.04
- Update tinyusb to latest to fix the race condition causing cdc out dropping packet. Which cause DFU failed occasionally
+65
View File
@@ -0,0 +1,65 @@
/*
* The MIT License (MIT)
*
* Copyright (c) 2021 Benjamin Meisels
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef _ARAMCON2_BADGE_H
#define _ARAMCON2_BADGE_H
#define _PINNUM(port, pin) ((port)*32 + (pin))
/*------------------------------------------------------------------*/
/* LED
*------------------------------------------------------------------*/
#define LEDS_NUMBER 1
#define LED_PRIMARY_PIN _PINNUM(1, 11) // Red
#define LED_NEOPIXEL _PINNUM(0, 8)
#define NEOPIXELS_NUMBER 2
#define BOARD_RGB_BRIGHTNESS 0x040404
/*------------------------------------------------------------------*/
/* BUTTON
*------------------------------------------------------------------*/
#define BUTTONS_NUMBER 2
#define BUTTON_1 _PINNUM(0, 2) // left Button
#define BUTTON_2 _PINNUM(0, 29) // middle button
#define BUTTON_PULL NRF_GPIO_PIN_PULLUP
// Used as model string in OTA mode
#define BLEDIS_MANUFACTURER "ARAMCON Badge Team"
#define BLEDIS_MODEL "ARAMCON2 Badge"
//--------------------------------------------------------------------+
// USB
//--------------------------------------------------------------------+
#define USB_DESC_VID 0x239A
#define USB_DESC_UF2_PID 0x007B
#define USB_DESC_CDC_ONLY_PID 0x007B
//------------- UF2 -------------//
#define UF2_PRODUCT_NAME "ARAMCON2 Badge"
#define UF2_VOLUME_LABEL "ARAMBOOT"
#define UF2_BOARD_ID "nrf52840-ARAMCON2-Badge"
#define UF2_INDEX_URL "https://github.com/aramcon-badge"
#endif // _ARAMCON2_BADGE_H
+1
View File
@@ -0,0 +1 @@
MCU_SUB_VARIANT = nrf52840
+19
View File
@@ -0,0 +1,19 @@
#include "boards.h"
#include "uf2/configkeys.h"
__attribute__((used, section(".bootloaderConfig")))
const uint32_t bootloaderConfig[] =
{
/* CF2 START */
CFG_MAGIC0, CFG_MAGIC1, // magic
5, 100, // used entries, total entries
204, 0x100000, // FLASH_BYTES = 0x100000
205, 0x40000, // RAM_BYTES = 0x40000
208, (USB_DESC_VID << 16) | USB_DESC_UF2_PID, // BOOTLOADER_BOARD_ID = USB VID+PID, used for verification when updating bootloader via uf2
209, 0xada52840, // UF2_FAMILY = 0xada52840
210, 0x20, // PINS_PORT_SIZE = PA_32
0, 0, 0, 0, 0, 0, 0, 0
/* CF2 END */
};
+66
View File
@@ -0,0 +1,66 @@
/*
* The MIT License (MIT)
*
* Copyright (c) 2021 Pierre Constantineau
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef _EBYTE_E104_BT5032A_H
#define _EBYTE_E104_BT5032A_H
/*------------------------------------------------------------------*/
/* LED
*------------------------------------------------------------------*/
#define LEDS_NUMBER 2
#define LED_PRIMARY_PIN 31 // Red - named "Data"
#define LED_SECONDARY_PIN 30 // Blue - named "Link" (also a red one on the Test Board)
#define LED_STATE_ON 0
/*------------------------------------------------------------------*/
/* BUTTON
*------------------------------------------------------------------*/
#define BUTTONS_NUMBER 2
#define BUTTON_1 29 // DISC Button on E104-BT5032A-TB Test Board
// BUTTON_1 is DFU. The module does not have reset circuitry.
// The Test Board from Ebyte (E104-BT5032A-TB) also does not have reset circuitry
// To be able to upload using the Arduino IDE, (To enter DFU mode)
// Press "DISC", press and release "RST", then release "DISC"
#define BUTTON_2 28 // No button - WKP pin
#define BUTTON_PULL NRF_GPIO_PIN_PULLUP
/*------------------------------------------------------------------*/
/* UART (only used by nRF52832)
*------------------------------------------------------------------*/
#define RX_PIN_NUMBER 14
#define TX_PIN_NUMBER 18
#define CTS_PIN_NUMBER 20
#define RTS_PIN_NUMBER 19
#define HWFC false // leaving it false to make GPIO available
//--------------------------------------------------------------------+
// BLE OTA
//--------------------------------------------------------------------+
#define BLEDIS_MANUFACTURER "CDEBYTE"
#define BLEDIS_MODEL "E104-BT5032A"
#define UF2_PRODUCT_NAME "Ebyte E104-BT5032A nRF52832"
#define UF2_INDEX_URL "https://www.ebyte.com/en/product-view-news.html?id=756"
#endif // _EBYTE_E104_BT5032A_H
+2
View File
@@ -0,0 +1,2 @@
# nrf52 is nrf52832
MCU_SUB_VARIANT = nrf52
+67
View File
@@ -0,0 +1,67 @@
/*
* The MIT License (MIT)
*
* Copyright (c) 2021 Pierre Constantineau
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef _EBYTE_E73_TBB_H
#define _EBYTE_E73_TBB_H
/*------------------------------------------------------------------*/
/* LED
*------------------------------------------------------------------*/
#define LEDS_NUMBER 2
#define LED_PRIMARY_PIN 17 // Red - named "LED1"
#define LED_SECONDARY_PIN 18 // Blue - named "LED2" (also a red one on the Test Board)
#define LED_STATE_ON 0
/*------------------------------------------------------------------*/
/* BUTTON
*------------------------------------------------------------------*/
#define BUTTONS_NUMBER 2
#define BUTTON_1 14 // BUTTON_1 is DFU. SW1 on E73-TBB Test Board.
// This Test board uses the E73-2G4M04S1B module which contains a nrf52832.
// The module does not have reset circuitry.
// The Test Board from Ebyte (E73-TBB) also does not have reset circuitry
// To be able to upload using the Arduino IDE, (To enter DFU mode)
// Press "SW1", momentarily ground "RST/P0.21", then release "SW1"
#define BUTTON_2 13 // SW2 on board
#define BUTTON_PULL NRF_GPIO_PIN_PULLUP
/*------------------------------------------------------------------*/
/* UART (only used by nRF52832)
*------------------------------------------------------------------*/
#define RX_PIN_NUMBER 8
#define TX_PIN_NUMBER 6
#define CTS_PIN_NUMBER 5
#define RTS_PIN_NUMBER 7
#define HWFC false // leaving it false to make GPIO available
//--------------------------------------------------------------------+
// BLE OTA
//--------------------------------------------------------------------+
#define BLEDIS_MANUFACTURER "CDEBYTE"
#define BLEDIS_MODEL "E73-TBB"
#define UF2_PRODUCT_NAME "Ebyte E73-TBB nRF52832"
#define UF2_INDEX_URL "https://www.ebyte.com/en/product-view-news.aspx?id=889"
#endif // _EBYTE_E73_TBB_H
+2
View File
@@ -0,0 +1,2 @@
# nrf52 is nrf52832
MCU_SUB_VARIANT = nrf52
+2 -3
View File
@@ -53,10 +53,9 @@
// USB
//--------------------------------------------------------------------+
// Shared VID/PID with Feather nRF52840, will be disabled for building in the future
#define USB_DESC_VID 0x239A
#define USB_DESC_UF2_PID 0x0029
#define USB_DESC_CDC_ONLY_PID 0x0029
#define USB_DESC_UF2_PID 0x010B
#define USB_DESC_CDC_ONLY_PID 0x010B
//------------- UF2 -------------//
#define UF2_PRODUCT_NAME "Raytac MDBT50Q-RX"
+1 -1
View File
@@ -207,7 +207,7 @@ int main(void)
if ( !dfu_skip )
{
// DFU button pressed
dfu_start = dfu_start || (button_pressed(BUTTON_DFU) && !dfu_skip);
dfu_start = dfu_start || button_pressed(BUTTON_DFU);
// DFU + FRESET are pressed --> OTA
_ota_dfu = _ota_dfu || ( button_pressed(BUTTON_DFU) && button_pressed(BUTTON_FRESET) ) ;