Изменения на новые настройки пинов и устройств
This commit is contained in:
parent
8ba8cce156
commit
8f01c8895e
|
|
@ -23,6 +23,7 @@ ENTRY(Reset_Handler)
|
|||
|
||||
/* Highest address of the user mode stack */
|
||||
_estack = 0x20080000; /* end of RAM */
|
||||
/*_estack = 0x20060000;*/
|
||||
|
||||
/* Generate a link error if heap and stack don't fit into RAM */
|
||||
_Min_Heap_Size = 0x200; /* required amount of heap */
|
||||
|
|
@ -31,7 +32,8 @@ _Min_Stack_Size = 0x400; /* required amount of stack */
|
|||
_FullFirmwareSize = 1024K ;
|
||||
_MetadataSize = 256 ;
|
||||
_FirmwareSize = _FullFirmwareSize - _MetadataSize ;
|
||||
_FirmwareBegin = 0x08100000;
|
||||
/*_FirmwareBegin = 0x08100000;*/
|
||||
_FirmwareBegin = 0x08000000;
|
||||
|
||||
/* Specify the memory areas */
|
||||
MEMORY
|
||||
|
|
|
|||
37
APP/main.c
37
APP/main.c
|
|
@ -99,9 +99,10 @@ osMessageQueueId_t EthDataQueue;
|
|||
// ++a;
|
||||
//}
|
||||
|
||||
void mx_clkout1_init();
|
||||
|
||||
int main(void) {
|
||||
system_clock_config();
|
||||
|
||||
// asm(".rept 2 ; bl loop ; .endr");
|
||||
asm("nop");
|
||||
asm("nop");
|
||||
|
|
@ -109,13 +110,10 @@ int main(void) {
|
|||
asm("nop");
|
||||
asm("nop");
|
||||
|
||||
|
||||
memset(bufFreeOperation, 0, sizeof(bufFreeOperation));
|
||||
memset(bufFreeOperationKV, 0x56, sizeof(bufFreeOperationKV));
|
||||
memset(bufFillOperation, 0x55, sizeof(bufFillOperation));
|
||||
|
||||
// extend_sram();
|
||||
|
||||
|
||||
// md5a_context md5ctx;
|
||||
// uint8_t md5sum[16];
|
||||
|
|
@ -136,35 +134,13 @@ int main(void) {
|
|||
|
||||
InitPeripheralInterfaces();
|
||||
|
||||
/*
|
||||
struct tm dateTime;
|
||||
memset(&dateTime, 0, sizeof(dateTime));
|
||||
dateTime.tm_year = 123;
|
||||
dateTime.tm_mon = 0;
|
||||
dateTime.tm_mday = 1;
|
||||
dateTime.tm_hour = 0;
|
||||
dateTime.tm_min = 0;
|
||||
dateTime.tm_sec = 0;
|
||||
RTCS.rtcI0.setTM(&RTCS, &dateTime);
|
||||
*/
|
||||
|
||||
Mma_Init(&MAIN_ENV, &GPIOS, &ADCS, &SERIAL_PORTS, &SPI_PORTS, &RTCS, &NVM_STORAGE, &FIRMWARE_MAIN_LOADER,
|
||||
Mma_Init(&MAIN_ENV, &GPIOS, &ADCS, &SERIAL_PORTS, &RTCS, &NVM_STORAGE, &FIRMWARE_MAIN_LOADER,
|
||||
&FIRMWARE_BOOT_LOADER);
|
||||
|
||||
// GpioPinSet(&MAIN_ENV.gpios->Power.tx_pwr_5, true);
|
||||
// GpioPinSet(&MAIN_ENV.gpios->Power.tx_pwr_en, true);
|
||||
// delay_ms(200);
|
||||
// nvic_priority_group_config(NVIC_PRIORITY_GROUP_4);
|
||||
// sendI2c();
|
||||
|
||||
// FS_Init(&MAIN_ENV.fs);
|
||||
Mma_InitFs(&MAIN_ENV);
|
||||
|
||||
|
||||
DeviceStorageIni_Init(&MAIN_ENV.storageIni, file_setup, file_counter, &MAIN_ENV.fs, settings, SettingSizeTbl);
|
||||
|
||||
// DeviceStorage_Init(&MAIN_ENV.storage, &MAIN_ENV.flash->interface);
|
||||
|
||||
EthDataQueue = osMessageQueueNew(256, 4, NULL);
|
||||
|
||||
adc_ordinary_software_trigger_enable(MAIN_ENV.adcs->vcc.ADCx, TRUE);
|
||||
|
|
@ -175,7 +151,6 @@ int main(void) {
|
|||
|
||||
|
||||
error_status status = emac_system_init_eth();
|
||||
// while (status == ERROR);
|
||||
tcpip_stack_init(data);
|
||||
|
||||
Mma_StartThread(&MAIN_ENV);
|
||||
|
|
@ -183,5 +158,11 @@ int main(void) {
|
|||
osKernelStart();
|
||||
|
||||
while (1) {
|
||||
asm("nop");
|
||||
asm("nop");
|
||||
asm("nop");
|
||||
asm("nop");
|
||||
asm("nop");
|
||||
asm("nop");
|
||||
}
|
||||
}
|
||||
|
|
@ -3,15 +3,11 @@
|
|||
# http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/PF259090
|
||||
#
|
||||
|
||||
source [find interface/stlink.cfg]
|
||||
source [find interface/atlink.cfg]
|
||||
|
||||
transport select hla_swd
|
||||
#transport select hla_swd
|
||||
|
||||
adapter list
|
||||
|
||||
#adapter serial 36006000080000315151524E
|
||||
|
||||
source [find target/at32f435xM.cfg]
|
||||
source [find target/at32f437xM.cfg]
|
||||
|
||||
#reset_config trst_only
|
||||
#reset_config srst_only
|
||||
|
|
@ -21,9 +17,6 @@ source [find target/at32f435xM.cfg]
|
|||
#reset_config srst_gates_jtag
|
||||
#reset_config trst_push_pull
|
||||
#reset_config trst_push_pull
|
||||
adapter srst delay 100
|
||||
|
||||
adapter speed 2000
|
||||
|
||||
reset_config none
|
||||
|
||||
|
|
|
|||
35
modular.json
35
modular.json
|
|
@ -253,41 +253,6 @@
|
|||
},
|
||||
|
||||
|
||||
{
|
||||
"type": "git",
|
||||
"provider": "GONEC_NEW",
|
||||
"repo": "SpiPortInterface"
|
||||
},
|
||||
|
||||
{
|
||||
"type": "git",
|
||||
"provider": "GONEC_NEW",
|
||||
"repo": "SpiPort"
|
||||
},
|
||||
|
||||
{
|
||||
"type": "git",
|
||||
"provider": "GONEC_NEW",
|
||||
"repo": "SpiPort_ARTERY_AT32"
|
||||
},
|
||||
|
||||
{
|
||||
"type": "git",
|
||||
"provider": "GONEC_NEW",
|
||||
"repo": "GONEC_ARTERY_SpiPorts"
|
||||
},
|
||||
{
|
||||
"type": "git",
|
||||
"provider": "GONEC_NEW",
|
||||
"repo": "Flash_EN25QH128A_104HIP"
|
||||
},
|
||||
|
||||
{
|
||||
"type": "git",
|
||||
"provider": "GONEC_NEW",
|
||||
"repo": "Flash_MT29F2G01ABAGDWB"
|
||||
},
|
||||
|
||||
{
|
||||
"type": "git",
|
||||
"provider": "GONEC_NEW",
|
||||
|
|
|
|||
Loading…
Reference in New Issue