spresense: update Spresense SDK to 2.0.2
This commit is contained in:
parent
97f5d218a5
commit
c5992a3101
|
@ -75,7 +75,7 @@ Bootloader information:
|
|||
|
||||
* You have to accept the End User License Agreement to be able to download and use the Spresense bootloader binary.
|
||||
|
||||
Download the spresense binaries zip archive from: [Spresense firmware v2-0-000](https://developer.sony.com/file/download/download-spresense-firmware-v2-0-000)
|
||||
Download the spresense binaries zip archive from: [Spresense firmware v2-0-002](https://developer.sony.com/file/download/download-spresense-firmware-v2-0-002)
|
||||
|
||||
Extract spresense binaries in your PC to ports/spresense/spresense-exported-sdk/firmware/
|
||||
|
||||
|
|
|
@ -165,6 +165,7 @@ CONFIG_USBDEV=y
|
|||
CONFIG_USBDEV_DMA=y
|
||||
CONFIG_USBDEV_DUALSPEED=y
|
||||
CONFIG_USEC_PER_TICK=1000
|
||||
CONFIG_USERMAIN_STACKSIZE=8192
|
||||
CONFIG_USER_ENTRYPOINT="spresense_main"
|
||||
CONFIG_VIDEO_ISX012=y
|
||||
CONFIG_VIDEO_STREAM=y
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 752c4cd56dd0a270a559c28272ceb61ddcb7806c
|
||||
Subproject commit 2ec2a1538362696118dc3fdf56f33dacaf8f4067
|
|
@ -30,10 +30,10 @@
|
|||
|
||||
/* Prototypes for Remote API */
|
||||
|
||||
int FM_RawWrite(uint32_t offset, const void *buf, uint32_t size);
|
||||
int FM_RawVerifyWrite(uint32_t offset, const void *buf, uint32_t size);
|
||||
int FM_RawRead(uint32_t offset, void *buf, uint32_t size);
|
||||
int FM_RawEraseSector(uint32_t sector);
|
||||
int fw_fm_rawwrite(uint32_t offset, const void *buf, uint32_t size);
|
||||
int fw_fm_rawverifywrite(uint32_t offset, const void *buf, uint32_t size);
|
||||
int fw_fm_rawread(uint32_t offset, void *buf, uint32_t size);
|
||||
int fw_fm_rawerasesector(uint32_t sector);
|
||||
|
||||
#define CXD56_SPIFLASHSIZE (16 * 1024 * 1024)
|
||||
|
||||
|
@ -64,8 +64,8 @@ void port_internal_flash_flush(void) {
|
|||
return;
|
||||
}
|
||||
|
||||
FM_RawEraseSector(flash_sector);
|
||||
FM_RawWrite(flash_sector << SECTOR_SHIFT, flash_cache, SECTOR_SIZE);
|
||||
fw_fm_rawerasesector(flash_sector);
|
||||
fw_fm_rawwrite(flash_sector << SECTOR_SHIFT, flash_cache, SECTOR_SIZE);
|
||||
|
||||
flash_sector = NO_SECTOR;
|
||||
}
|
||||
|
@ -73,7 +73,7 @@ void port_internal_flash_flush(void) {
|
|||
mp_uint_t supervisor_flash_read_blocks(uint8_t *dest, uint32_t block, uint32_t num_blocks) {
|
||||
supervisor_flash_flush();
|
||||
|
||||
if (FM_RawRead(block << PAGE_SHIFT, dest, num_blocks << PAGE_SHIFT) < 0) {
|
||||
if (fw_fm_rawread(block << PAGE_SHIFT, dest, num_blocks << PAGE_SHIFT) < 0) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -92,7 +92,7 @@ mp_uint_t supervisor_flash_write_blocks(const uint8_t *src, uint32_t lba, uint32
|
|||
if (sector != flash_sector) {
|
||||
supervisor_flash_flush();
|
||||
|
||||
if (FM_RawRead(sector << SECTOR_SHIFT, flash_cache, SECTOR_SIZE) < 0) {
|
||||
if (fw_fm_rawread(sector << SECTOR_SHIFT, flash_cache, SECTOR_SIZE) < 0) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue