File tree 4 files changed +9
-5
lines changed
libraries/PDM/examples/RecordAndDumpOnSerial
variants/ARDUINO_NANO33BLE
4 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,8 @@ nano33ble.compiler.mbed.extra_ldflags=-lstdc++ -lsupc++ -lm -lc -lgcc -lnosys
86
86
nano33ble.compiler.mbed="{build.variant.path}/libs/libmbed.a" "{build.variant.path}/libs/libcc_310_core.a" "{build.variant.path}/libs/libcc_310_ext.a" "{build.variant.path}/libs/libcc_310_trng.a"
87
87
nano33ble.vid.0=0x2341
88
88
nano33ble.pid.0=0x005a
89
+ nano33ble.vid.1=0x2341
90
+ nano33ble.pid.1=0x805a
89
91
90
92
nano33ble.upload.tool=bossac
91
93
nano33ble.upload.protocol=
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ void loop() {
47
47
#ifdef USE_USB_AUDIO
48
48
audio.write (buffer, DEFAULT_PDM_BUFFER_SIZE);
49
49
#else
50
- SerialUSB.send (buffer, DEFAULT_PDM_BUFFER_SIZE);
50
+ SerialUSB.mbed (). send (buffer, DEFAULT_PDM_BUFFER_SIZE);
51
51
#endif
52
52
idx = 0 ;
53
53
}
Original file line number Diff line number Diff line change @@ -109,10 +109,11 @@ tools.openocd.upload.pattern="{path}/{cmd}" {upload.verbose} -s "{path}/share/op
109
109
#
110
110
# BOSSA
111
111
#
112
- tools.bossac.path={runtime.tools.bossac-1.7.0-arduino3.path}
112
+ #tools.bossac.path={runtime.tools.bossac-1.7.0-arduino3.path}
113
+ tools.bossac.path={runtime.platform.path}/tools
113
114
tools.bossac.cmd=bossac
114
115
tools.bossac.cmd.windows=bossac.exe
115
116
116
- tools.bossac.upload.params.verbose=-i - d
117
+ tools.bossac.upload.params.verbose=-d
117
118
tools.bossac.upload.params.quiet=
118
- tools.bossac.upload.pattern="{path}/{cmd}" {upload.verbose} --port={serial.port.file} -U {upload.native_usb} -i -e -w -v "{build.path}/{build.project_name}.bin" -R
119
+ tools.bossac.upload.pattern="{path}/{cmd}" {upload.verbose} --port={serial.port.file} -U{upload.native_usb} -i -e -w "{build.path}/{build.project_name}.bin" -R
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ static const uint8_t SCK = PIN_SPI_SCK;
116
116
#define BOARD_VENDORID 0x2341
117
117
#define BOARD_PRODUCTID 0x005a
118
118
119
- #define DFU_MAGIC_SERIAL_ONLY_RESET 0x0b
119
+ #define DFU_MAGIC_SERIAL_ONLY_RESET 0xb0
120
120
121
121
#define I2C_SDA (digitalPinToPinName(PIN_WIRE_SDA))
122
122
#define I2C_SCL (digitalPinToPinName(PIN_WIRE_SCL))
@@ -130,6 +130,7 @@ static const uint8_t SCK = PIN_SPI_SCK;
130
130
#define digitalPinToPort (P ) (digitalPinToPinName(P)/32)
131
131
132
132
static inline void _ontouch1200bps_ () {
133
+ __disable_irq ();
133
134
NRF_POWER -> GPREGRET = DFU_MAGIC_SERIAL_ONLY_RESET ;
134
135
NVIC_SystemReset ();
135
136
}
You can’t perform that action at this time.
0 commit comments