页次: 1
int sys_spi_flash_read(int addr, void * buf, int count)
{
int r;
uint8_t tx[5];//one more byte required
tx[0] = 0x0b;
tx[1] = (uint8_t)(addr >> 16);
tx[2] = (uint8_t)(addr >> 8);
tx[3] = (uint8_t)(addr >> 0);
tx[4] = 0;//Dummy byte for fast read command
sys_spi_select();
r = sys_spi_write_then_read(tx, 5, buf, count);//one more byte send
sys_spi_deselect();
return r;
}
Please a look for Ch565/Ch569 full open source include USBSS.
Can anyone update any info about R11 based board RTT support(I don't found any info about R11 based board on https://www.rt-thread.org/index.html ).
Will have open source BSP or it is proprietary closed project?
CSI/MIPI camera support?
USB support?
Thanks you.
I'm use Rt-Thread fork for V3s(on Lichee Pi Zero board)
https://github.com/liu2guang/bsp_v3s
this is have windows program for upload compiled code to V3s RAM(and SPI Flash by change command line), have binary spl (I think from UBOOT) for SDRAM/PLL init.
If you are need JLink use - you can use Ozone program form Segger and upload elf file and execute it(with breakpoints, but not profiling).
https://www.segger.com/products/development-tools/ozone-j-link-debugger/
Please dont forget switch some pin back to JTAG mode in demo program , before using Jlink.
for compile under windows you are need
scons-local_3_1_1
Phyton_2_7 python-2.7.16.amd64.msi
6_0_2017-q2-update (arm-none-eabi) gcc-arm-none-eabi-6-2017-q2-update-win32.zip
(or 5_4_2016-q3-update) gcc-arm-none-eabi-5_4-2016q3-20160926-win32.zip
MinGW or CygWin.
Small file for Segger Ozone with some pheripherial description in attachment(as example for extend it).
页次: 1