kopia lustrzana https://github.com/piotr022/UV_K5_playground
linker-script-org-isr-fix
rodzic
e10fa8c40d
commit
1762929fb0
|
|
@ -4,7 +4,7 @@
|
||||||
{
|
{
|
||||||
"label": "flash firmware",
|
"label": "flash firmware",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "openocd -f interface/cmsis-dap.cfg -f ./openocd_scripts/dp32g030.cfg -c 'halt' -c 'write_image ./build/src/par_runner/par_runner.bin 0' -c 'shutdown'",
|
"command": "openocd -f interface/cmsis-dap.cfg -f ./openocd_scripts/dp32g030.cfg -c 'reset halt' -c 'write_image ./build/src/par_runner/par_runner.bin 0' -c 'shutdown'",
|
||||||
"presentation": {
|
"presentation": {
|
||||||
"reveal": "always",
|
"reveal": "always",
|
||||||
"panel": "shared"
|
"panel": "shared"
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,14 @@
|
||||||
#include "system/system.hpp"
|
#include "system/system.hpp"
|
||||||
#include "hardware/hardware.hpp"
|
#include "hardware/hardware.hpp"
|
||||||
|
#include "registers.hpp"
|
||||||
|
|
||||||
Hardware::THardware Hw;
|
Hardware::THardware Hw;
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
Hw.Power.EnableDbg();
|
Hw.Power.EnableDbg();
|
||||||
// System::JumpToOrginalFw();
|
__BKPT();
|
||||||
|
System::JumpToOrginalFw();
|
||||||
while(1);
|
while(1);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ SECTIONS
|
||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
__org_vectors_start = .;
|
__org_vectors_start = .;
|
||||||
*(.org_vectors)
|
KEEP(*(.org_vectors))
|
||||||
} > FLASH
|
} > FLASH
|
||||||
|
|
||||||
.text :
|
.text :
|
||||||
|
|
|
||||||
|
|
@ -31,4 +31,5 @@ struct TGpio
|
||||||
};
|
};
|
||||||
|
|
||||||
#define GPIO_BASE 0x400B0000
|
#define GPIO_BASE 0x400B0000
|
||||||
#define GPIO ((TGpio*)GPIO_BASE)
|
#define GPIO ((TGpio*)GPIO_BASE)
|
||||||
|
#define __BKPT(value) __asm volatile ("bkpt "#value)
|
||||||
Ładowanie…
Reference in New Issue