mirror of
https://github.com/Fishwaldo/bl_mcu_sdk.git
synced 2025-07-06 21:08:50 +00:00
[sync] sync from internal repo
* use nuttx libc, disable system libc * use tlsf as default * update lhal flash driver * add example readme * add flash ini for new flash tool * add fw header for new flash tool
This commit is contained in:
parent
89592fc9a3
commit
356f258e83
554 changed files with 79150 additions and 46596 deletions
44
examples/shell/shell_no_os/README.md
Normal file
44
examples/shell/shell_no_os/README.md
Normal file
|
@ -0,0 +1,44 @@
|
|||
# shell_no_os
|
||||
|
||||
|
||||
## Support CHIP
|
||||
|
||||
| CHIP | Remark |
|
||||
|:----------------:|:------:|
|
||||
|BL602/BL604 | |
|
||||
|BL702/BL704/BL706 | |
|
||||
|BL616/BL618 | |
|
||||
|BL808 | |
|
||||
|
||||
## Compile
|
||||
|
||||
- BL602/BL604
|
||||
|
||||
```
|
||||
make CHIP=bl602 BOARD=bl602dk
|
||||
```
|
||||
|
||||
- BL702/BL704/BL706
|
||||
|
||||
```
|
||||
make CHIP=bl702 BOARD=bl702dk
|
||||
```
|
||||
|
||||
- BL616/BL618
|
||||
|
||||
```
|
||||
make CHIP=bl616 BOARD=bl616dk
|
||||
```
|
||||
|
||||
- BL808
|
||||
|
||||
```
|
||||
make CHIP=bl808 BOARD=bl808dk CPU_ID=m0
|
||||
make CHIP=bl808 BOARD=bl808dk CPU_ID=d0
|
||||
```
|
||||
|
||||
## Flash
|
||||
|
||||
```
|
||||
make flash CHIP=chip_name COMX=xxx # xxx is your com name
|
||||
```
|
11
examples/shell/shell_no_os/flash_prog_cfg.ini
Normal file
11
examples/shell/shell_no_os/flash_prog_cfg.ini
Normal file
|
@ -0,0 +1,11 @@
|
|||
[cfg]
|
||||
# 0: no erase, 1:programmed section erase, 2: chip erase
|
||||
erase = 1
|
||||
# skip mode set first para is skip addr, second para is skip len, multi-segment region with ; separated
|
||||
skip_mode = 0x0, 0x0
|
||||
# 0: not use isp mode, #1: isp mode
|
||||
boot2_isp_mode = 0
|
||||
|
||||
[FW]
|
||||
filedir = ./build/build_out/shell*_$(CHIPNAME).bin
|
||||
address = 0x000000
|
|
@ -49,7 +49,7 @@
|
|||
#define configMTIMECMP_BASE_ADDRESS (0xE0000000UL + 0x4000UL)
|
||||
#endif
|
||||
|
||||
// #define configSUPPORT_STATIC_ALLOCATION 1
|
||||
#define configSUPPORT_STATIC_ALLOCATION 1
|
||||
#define configUSE_PREEMPTION 1
|
||||
#define configUSE_IDLE_HOOK 0
|
||||
#define configUSE_TICK_HOOK 0
|
||||
|
|
44
examples/shell/shell_os/README.md
Normal file
44
examples/shell/shell_os/README.md
Normal file
|
@ -0,0 +1,44 @@
|
|||
# shell_os
|
||||
|
||||
|
||||
## Support CHIP
|
||||
|
||||
| CHIP | Remark |
|
||||
|:----------------:|:------:|
|
||||
|BL602/BL604 | |
|
||||
|BL702/BL704/BL706 | |
|
||||
|BL616/BL618 | |
|
||||
|BL808 | |
|
||||
|
||||
## Compile
|
||||
|
||||
- BL602/BL604
|
||||
|
||||
```
|
||||
make CHIP=bl602 BOARD=bl602dk
|
||||
```
|
||||
|
||||
- BL702/BL704/BL706
|
||||
|
||||
```
|
||||
make CHIP=bl702 BOARD=bl702dk
|
||||
```
|
||||
|
||||
- BL616/BL618
|
||||
|
||||
```
|
||||
make CHIP=bl616 BOARD=bl616dk
|
||||
```
|
||||
|
||||
- BL808
|
||||
|
||||
```
|
||||
make CHIP=bl808 BOARD=bl808dk CPU_ID=m0
|
||||
make CHIP=bl808 BOARD=bl808dk CPU_ID=d0
|
||||
```
|
||||
|
||||
## Flash
|
||||
|
||||
```
|
||||
make flash CHIP=chip_name COMX=xxx # xxx is your com name
|
||||
```
|
11
examples/shell/shell_os/flash_prog_cfg.ini
Normal file
11
examples/shell/shell_os/flash_prog_cfg.ini
Normal file
|
@ -0,0 +1,11 @@
|
|||
[cfg]
|
||||
# 0: no erase, 1:programmed section erase, 2: chip erase
|
||||
erase = 1
|
||||
# skip mode set first para is skip addr, second para is skip len, multi-segment region with ; separated
|
||||
skip_mode = 0x0, 0x0
|
||||
# 0: not use isp mode, #1: isp mode
|
||||
boot2_isp_mode = 0
|
||||
|
||||
[FW]
|
||||
filedir = ./build/build_out/shell*_$(CHIPNAME).bin
|
||||
address = 0x000000
|
|
@ -5,14 +5,6 @@
|
|||
#include "semphr.h"
|
||||
#include "board.h"
|
||||
|
||||
static uint8_t freertos_heap[configTOTAL_HEAP_SIZE];
|
||||
|
||||
static HeapRegion_t xHeapRegions[] = {
|
||||
{ (uint8_t *)freertos_heap, 0 },
|
||||
{ NULL, 0 }, /* Terminates the array. */
|
||||
{ NULL, 0 } /* Terminates the array. */
|
||||
};
|
||||
|
||||
static struct bflb_device_s *uart0;
|
||||
|
||||
extern void shell_init_with_task(struct bflb_device_s *shell);
|
||||
|
@ -20,8 +12,6 @@ extern void shell_init_with_task(struct bflb_device_s *shell);
|
|||
int main(void)
|
||||
{
|
||||
board_init();
|
||||
xHeapRegions[0].xSizeInBytes = configTOTAL_HEAP_SIZE;
|
||||
vPortDefineHeapRegions(xHeapRegions);
|
||||
|
||||
configASSERT((configMAX_PRIORITIES > 4));
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
set(CONFIG_VLIBC 0)
|
||||
set(CONFIG_BFLOG 0)
|
||||
set(CONFIG_FREERTOS 1)
|
||||
set(CONFIG_SHELL 1)
|
||||
set(CONFIG_SHELL 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue