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:
@@ -20,6 +20,7 @@
|
||||
</logicalFolder>
|
||||
</logicalFolder>
|
||||
<itemPath>../../common_src/system.c</itemPath>
|
||||
<itemPath>../../common_src/memory.h</itemPath>
|
||||
</logicalFolder>
|
||||
<logicalFolder name="HeaderFiles"
|
||||
displayName="Header Files"
|
||||
@@ -99,7 +100,7 @@
|
||||
<property key="default-bitfield-type" value="true"/>
|
||||
<property key="default-char-type" value="true"/>
|
||||
<property key="define-macros" value="LINK_FOR_BOOTLOADER"/>
|
||||
<property key="disable-optimizations" value="true"/>
|
||||
<property key="disable-optimizations" value="false"/>
|
||||
<property key="extra-include-directories"
|
||||
value="..\src;..\..\common_src\framework\usb\inc"/>
|
||||
<property key="favor-optimization-for" value="-speed,+space"/>
|
||||
@@ -107,14 +108,14 @@
|
||||
<property key="garbage-collect-functions" value="true"/>
|
||||
<property key="identifier-length" value="255"/>
|
||||
<property key="local-generation" value="false"/>
|
||||
<property key="operation-mode" value="free"/>
|
||||
<property key="operation-mode" value="pro"/>
|
||||
<property key="opt-xc8-compiler-strict_ansi" value="false"/>
|
||||
<property key="optimization-assembler" value="true"/>
|
||||
<property key="optimization-assembler-files" value="true"/>
|
||||
<property key="optimization-assembler-files" value="false"/>
|
||||
<property key="optimization-debug" value="false"/>
|
||||
<property key="optimization-invariant-enable" value="false"/>
|
||||
<property key="optimization-invariant-value" value="16"/>
|
||||
<property key="optimization-level" value="-O0"/>
|
||||
<property key="optimization-level" value="-Os"/>
|
||||
<property key="optimization-speed" value="false"/>
|
||||
<property key="optimization-stable-enable" value="false"/>
|
||||
<property key="pack-struct" value="true"/>
|
||||
@@ -129,7 +130,7 @@
|
||||
</HI-TECH-COMP>
|
||||
<HI-TECH-LINK>
|
||||
<property key="additional-options-checksum" value=""/>
|
||||
<property key="additional-options-code-offset" value="1400"/>
|
||||
<property key="additional-options-code-offset" value="1C00"/>
|
||||
<property key="additional-options-command-line" value=""/>
|
||||
<property key="additional-options-errata" value=""/>
|
||||
<property key="additional-options-extend-address" value="false"/>
|
||||
@@ -140,7 +141,7 @@
|
||||
<property key="calibrate-oscillator-value" value="0x3400"/>
|
||||
<property key="clear-bss" value="true"/>
|
||||
<property key="code-model-external" value="wordwrite"/>
|
||||
<property key="code-model-rom" value="default,-0-13FF,-1406-1407,-1416-1417"/>
|
||||
<property key="code-model-rom" value="default,-0-1BFF,-1C06-1C07,-1C16-1C17"/>
|
||||
<property key="create-html-files" value="false"/>
|
||||
<property key="data-model-ram" value=""/>
|
||||
<property key="data-model-size-of-double" value="32"/>
|
||||
@@ -251,6 +252,7 @@
|
||||
<archiverTool>
|
||||
</archiverTool>
|
||||
<loading>
|
||||
<loadableFile>../../bootloader/clubdance_v2_bootloader.X/dist/default/production/clubdance_v2_bootloader.X.production.hex</loadableFile>
|
||||
<useAlternateLoadableFile>false</useAlternateLoadableFile>
|
||||
<parseOnProdLoad>false</parseOnProdLoad>
|
||||
<alternateLoadableFile></alternateLoadableFile>
|
||||
|
||||
@@ -22,16 +22,17 @@
|
||||
* @date 6 Aug 2019
|
||||
* @brief USB interface to 6-sensor DDR pads.
|
||||
*/
|
||||
const unsigned int VersionWord __at(0x1C16) = 0x0100;
|
||||
#pragma warning disable 1510
|
||||
|
||||
#include "usb.h"
|
||||
#include "padhal.h"
|
||||
#include "dancepad.h"
|
||||
|
||||
#ifdef LINK_FOR_BOOTLOADER
|
||||
//#ifdef LINK_FOR_BOOTLOADER
|
||||
// only define this if building fw to be used with the bootloader
|
||||
const unsigned int VersionWord __at(0x1416) = 0x0100;
|
||||
#endif
|
||||
|
||||
//#endif
|
||||
|
||||
void main(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user