msp430_bsl 0.1.0 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8513d03e26ca2b1c1950d4f47f3efe26bb96ac4a55a0b9e4495fed64fd2790e2
4
- data.tar.gz: d52247ee6f8585a2fa22609e9fa4e4bfb24db01e16ba31348cfbf508ab3b9aa3
3
+ metadata.gz: 4348c30b38b554c1acc4ae87bf794d41b5b0e093187b0d943a549524bbdb524e
4
+ data.tar.gz: ed9d5f99c55f4f773d30aada91db6e581a4b2a2659b68cf478da4c3c348f4aed
5
5
  SHA512:
6
- metadata.gz: 8096c5b78bed9798b8c3405d2b4301eab387fff7f5160270cd2234ff726c2933d67dd2428037158b9c33cff6da061ac2cdbea8c455bf225b15fef12d149af0d5
7
- data.tar.gz: 1fbd3e41aa11c61ecbb11f3fcec51188e9e5b36c602f9b23de46d7834417ce91b0a6064693ebd8e48fff8e6152c0cac01f390997d1506af2c0b92f05c62d70e0
6
+ metadata.gz: c6d2884fb6079fb1a5211803dfcb9793316a69556287ffd3ddec8d6c9f0fab2f4972484b1eb7bcd97bf9ebf3ce89e46ad113f640ddc8c717ddd8ac7ad0de2724
7
+ data.tar.gz: 642e82aa7eb54c4b60b81f02e311b40e3891820e1b67e0ec51c120f4d99e10af9ae2714375aea899eac64e9bd0c668d09161e9716f768ae86f7075bce31d26a9
data/bin/upload_hex CHANGED
@@ -5,6 +5,9 @@ Bundler.require
5
5
  require 'slop'
6
6
  require_relative '../lib/msp430_bsl'
7
7
 
8
+ # Force sync on STDOUT write. This way the logger flushes its output after every write
9
+ STDOUT.sync = true
10
+
8
11
  include Msp430Bsl::Utils
9
12
 
10
13
  HIGH_SPEED_UART_BAUD = 115200.freeze
@@ -95,7 +98,7 @@ line_groups.each do |group|
95
98
  if curr_data_packet.empty?
96
99
  # Use current line's addr as packet addr
97
100
  curr_data_packet << line
98
- curr_data_size += 2 + line.data_length # 2 is the addr size (2 bytes)
101
+ curr_data_size += line.data_length + Msp430Bsl::Uart::PeripheralInterface::TOTAL_SIZE
99
102
  elsif (curr_data_size + line.data_length) <= Msp430Bsl::Uart::Connection::CORE_COMMANDS_BUFFER_SIZE
100
103
  # If there's still room, append the line data
101
104
  curr_data_packet << line
@@ -11,6 +11,7 @@ module Msp430Bsl
11
11
  HEADER_SIZE = 1.freeze
12
12
  DATA_LEN_SIZE = 2.freeze
13
13
  CRC_SIZE = 2.freeze
14
+ TOTAL_SIZE = (HEADER_SIZE + DATA_LEN_SIZE + CRC_SIZE).freeze
14
15
 
15
16
  class << self
16
17
  include Utils
@@ -1,3 +1,3 @@
1
1
  module Msp430Bsl
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.1.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: msp430_bsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alessandro Verlato
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-30 00:00:00.000000000 Z
11
+ date: 2023-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: zeitwerk
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  - !ruby/object:Gem::Version
113
113
  version: '0'
114
114
  requirements: []
115
- rubygems_version: 3.4.6
115
+ rubygems_version: 3.3.7
116
116
  signing_key:
117
117
  specification_version: 4
118
118
  summary: Texas Instrument MSP430 BSL Ruby library