kind of works for writing flash. IMPORTANT ISSUE - the memory usage output given by the linker for program size used DOES NOT equal the actual flash space used when programming. INVESTIGATE: did I set a memory space that doesn't lie on a page boundary? or do I just need to increase the flash space allocated to the bootloader
This commit is contained in:
37
common_src/memory.h
Normal file
37
common_src/memory.h
Normal file
@@ -0,0 +1,37 @@
|
||||
/*************************************************************************
|
||||
* Copyright (C) 2019 by Justin Byers
|
||||
*
|
||||
* This file is part of clubdance_v2.
|
||||
*
|
||||
* clubdance_v2 is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* clubdance_v2 is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with clubdance_v2. If not, see <https://www.gnu.org/licenses/>.
|
||||
*************************************************************************/
|
||||
|
||||
/**
|
||||
* @file memory.
|
||||
* @author Justin Byers
|
||||
* @date August 11, 2019
|
||||
* @brief
|
||||
*
|
||||
*/
|
||||
#ifndef MEMORY_
|
||||
#define MEMORY_
|
||||
|
||||
#define APP_FW_MEMORY_OFFSET 0x2000
|
||||
|
||||
#define BOOTLOADER_ENTRYPOINT 0x001C
|
||||
|
||||
#define APP_FW_VERSION_ADDRESS (APP_FW_MEMORY_OFFSET + 0x0016)
|
||||
|
||||
#endif /* MEMORY_ */
|
||||
|
||||
Reference in New Issue
Block a user