Commit Graph
42 Commits
Author SHA1 Message Date
Eric Callahan 95e8a707ca flash_can: attempt to reset the mcu if an error is encountered
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-04-26 12:12:46 -04:00
Eric Callahan c5163674ed src: remove references to the magic key
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-04-26 08:26:45 -04:00
Eric Callahan 76474d6efd flash_can: update for latest changes
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-04-26 08:20:24 -04:00
Eric Callahan 76b1de0574 canbus: send the node ID command in the query response
This is use to identify the application

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-04-26 08:12:13 -04:00
Eric Callahan e2c58fb6a6 arm: make sure the signature is aligned
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-04-26 08:04:04 -04:00
Eric Callahan b5303fa5f7 flash_can: fix error in uuid reporting
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-04-25 20:06:57 -04:00
Eric Callahan f0d7bb7f9c flash_can: add retries to verification
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-04-25 17:18:35 -04:00
Eric Callahan f754ae2746 flash_can: update for latest changes
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-04-25 17:14:02 -04:00
Eric Callahan 6351e2b1be canbus: use Klipper's admin ids
Rather than use different admin IDs from Klipper, use different commands.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-04-25 17:14:02 -04:00
Eric Callahan b944d094b3 arm: add canboot signature to request handler
Implement through inline assembly as recommended by Kevin O'Connor.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-04-25 15:26:02 -04:00
Eric Callahan 9b4c95ee9a canboot: improve bootloader request method
Use a cross platform request signature to enter the
bootloader.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-04-25 14:20:42 -04:00
Eric Callahan 3541dd1f2f .gitignore: add build files
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-04-25 13:45:45 -04:00
Eric Callahan b6572909b2 readme: suggest a full chip erase
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-04-17 19:29:58 -04:00
Eric Callahan 8313f425d0 readme: add clarification to notes
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-04-15 08:05:20 -04:00
Eric Callahan 65667f8516 readme: clarify flash page size
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-04-14 17:27:15 -04:00
Eric Callahan b5ff2ce29b kconfig: fix page size description
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-04-14 17:22:51 -04:00
Eric Callahan 2ac0f6be56 readme: add note about alternative methods of flashing
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-04-14 15:15:16 -04:00
Eric Callahan c464b63a99 readme: note that stm32f0x2 devices are supported
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-04-14 14:13:36 -04:00
Eric Callahan 0f1bd588a8 kconfig: fix stm32f072 flash size
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-04-14 09:15:32 -04:00
Eric Callahan 3a29a4d0da kconfig: disable stm32f4 choices
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-04-14 08:55:09 -04:00
Eric Callahan 9dc0f90d21 readme: add flash_can usage
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-04-14 08:21:59 -04:00
Eric Callahan db1123d69d flash_can: add query option
It is possible that a user will flash the bootloader before
ever having flashed Klipper.  In this case they would be
unable to supply a UUID.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-04-14 08:21:58 -04:00
Eric Callahan 0838d844e9 flash_can: make executable
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-04-13 19:34:50 -04:00
Eric Callahan f42f6c5090 readme: update can docs
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-04-13 19:30:07 -04:00
Eric Callahan a6afacea62 scripts: remove the canserial service files
This service is no longer necessary to communicate with
can devices running Klipper.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-04-13 18:25:54 -04:00
Eric Callahan 3686db10fd flash_can: add interface argument
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-04-13 18:23:44 -04:00
Eric Callahan abb966713e canboot: fix typo
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-04-13 17:46:37 -04:00
Eric Callahan 9d894c7190 flash_can: bring module in line with latest mcu code
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-04-13 17:08:10 -04:00
Eric Callahan 1e79868003 canbus: add a clear node id admin command
This broadcasts a command to clear the id for all nodes running
the bootloader, which should prevent ID collisions.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-04-13 15:04:52 -04:00
Eric Callahan 26c89e8b0e canboot: modify command bytes IDs
This is just to avoid confusion between RX_EOF and the command trailer.
Having both as 0x03 could potential lead to issues.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-04-12 14:18:22 -04:00
Eric Callahan 11e96a8f3e canbus: remove get_node_id() method
This method isn't necessary as the bootloader shouldnt need to discover
multiple node ids.  Change the decoded node ID offset to 0x200 in an
effort to avoid collisions with nodes assigned by Klipper.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-04-12 14:16:17 -04:00
Eric Callahan 5ff2ce1c4a kconfig; fix canbus frequency definition
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-04-12 11:27:07 -04:00
Eric Callahan f5ccbbfaa4 src: change the admin IDs
This will prevent collisions between Klipper's admin
commands and the bootloader's.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-04-11 20:03:53 -04:00
Eric Callahan 26b12a658b src: update stm32 source
Bring in the latest changes from Klipper.  The STM32F4 variants are
still unsupported at this time.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-04-11 19:59:56 -04:00
Eric Callahan 73d7ddd5aa src: update generic files
Bring up generic files to accommodate the latest version of
Klipper.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-04-11 17:18:24 -04:00
Eric Callahan 72bde3bbf8 lib: update to latest source from Klipper
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2022-04-11 15:18:47 -04:00
Arksine 1d2ce10dbd canboot: add application code check
Enter the bootloader if the first block of the application area contains 0xFF.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2021-02-07 14:29:00 -05:00
Arksine 4cd17a6f5e stm32f0: intiial attempt at canboot support
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2021-02-07 14:29:00 -05:00
Arksine 292ef90dde readme: Add basic instructions
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2021-02-07 09:04:33 -05:00
Arksine 927f603e60 pycanserial: can serial test module rewritten in python
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2021-02-06 20:05:10 -05:00
Arksine 2762299895 canboot: initial source commit
Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
2021-02-06 20:04:47 -05:00
Arksine 55f89916cf Initial commit 2021-01-23 15:46:43 -05:00