Skip to content

Commit 81e7b69

Browse files
Fix various typos in boards.txt and variants.h for Ladybug; remove dead code in hooks.c
1 parent 9997545 commit 81e7b69

File tree

4 files changed

+6
-37
lines changed

4 files changed

+6
-37
lines changed

README.md

+4-8
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,6 @@
5454
1. Plugin NUCLEO board
5555
2. Download and install [ST-Link USB Drivers](http://www.st.com/en/embedded-software/stsw-link009.html)
5656

57-
### Flashing the bootloader sketch for Tlera Corp Boards
58-
59-
The Tlera Corp boards require an initial bootloader sketch. This is nothing more than a default program that contains the USB Serial device
60-
61-
1. Plugin STM32L4 board and toggle the RESET button while holding down the BOOT button
62-
2. Select Tools -> Programmer -> STM32 BOOTLOADER
63-
3. Select Tools -> Burn Bootloader
64-
6557
### From git (for core development)
6658

6759
1. Follow steps from Board Manager section above
@@ -73,6 +65,10 @@
7365
4. Clone this repo: ```git clone https://github.com/grumpyoldpizza/arduino-STM32L4.git grumpyoldpizza/stm32l4```
7466
5. Restart the Arduino IDE
7567

68+
## Recovering from a faulty sketch for Tlera Corp Boards
69+
70+
Sometimes a faulty sketch can render the normal USB Serial based integration into the Arduindo IDE not working. In this case plugin the STM32L4 board and toggle the RESET button while holding down the BOOT button and program a known to be working sketch to go ack to a working USB Serial setup.
71+
7672
## Credits
7773

7874
This core is based on the [Arduino SAMD Core](https://github.com/arduino/ArduinoCore-samd)

boards.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ Ladybug-L432KC.upload.native_usb=false
195195

196196
Ladybug-L432KC.bootloader.tool=stm32l4_dfu
197197
Ladybug-L432KC.bootloader.protocol=dfu
198-
Ladybug-L432KC.bootloader.file=butterfly.bin
198+
Ladybug-L432KC.bootloader.file=ladybug.bin
199199

200200
Ladybug-L432KC.build.mcu=cortex-m4
201201
Ladybug-L432KC.build.f_cpu=80000000L

cores/stm32l4/hooks.c

-27
Original file line numberDiff line numberDiff line change
@@ -29,30 +29,3 @@ static void __empty() {
2929
// Empty
3030
}
3131
void yield(void) __attribute__ ((weak, alias("__empty")));
32-
33-
/**
34-
* SysTick hook
35-
*
36-
* This function is called from SysTick handler, before the default
37-
* handler provided by Arduino.
38-
*/
39-
static int __false() {
40-
// Return false
41-
return 0;
42-
}
43-
int sysTickHook(void) __attribute__ ((weak, alias("__false")));
44-
45-
/**
46-
* SVC hook
47-
* PendSV hook
48-
*
49-
* These functions are called from SVC handler, and PensSV handler.
50-
* Default action is halting.
51-
*/
52-
static void __halt() {
53-
// Halts
54-
while (1)
55-
;
56-
}
57-
void svcHook(void) __attribute__ ((weak, alias("__halt")));
58-
void pendSVHook(void) __attribute__ ((weak, alias("__halt")));

variants/STM32L432KC-Ladybug/variant.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ static const uint8_t DAC1 = PIN_DAC1;
100100

101101
// Other pins
102102

103-
#define PIN_BUTTON (44u)
103+
#define PIN_BUTTON (39u)
104104
static const uint8_t BUTTON = PIN_BUTTON;
105105

106106
#define PIN_ATN (38u)

0 commit comments

Comments
 (0)