SparkFun Forums 

Where electronics enthusiasts find answers.

Topics pertaining to the Arduino Core & software used with the Artemis module and Artemis development boards.
User avatar
By RSYOUNG
#208543
Howdy,

I realize time has passed on the Blackboard products, but I was wondering if there was a way to use the Blackboard Nano, with the latest Arduino support package.

The device is no longer a selection, and choosing the Redboard Nano errors out.

Thanks,

Randy
User avatar
By RSYOUNG
#208546
Just a short addendum ...

I can see right where the bootloader python script is choking ... lots of cool features, auto-bauding etc.

# ***********************************************************************************
#
# Wait for a packet
#
# ***********************************************************************************
def wait_for_packet(ser):

packet = {'len':0, 'cmd':0, 'data':0, 'crc':1, 'timeout':1}

n = ser.read(2) # get the number of bytes
if(len(n) < 2):
return packet

packet['len'] = int.from_bytes(n, byteorder='big', signed=False) #
payload = ser.read(packet['len'])

if(len(payload) != packet['len']):
return packet

packet['timeout'] = 0 # all bytes received, so timeout is not true
packet['cmd'] = payload[0] # cmd is the first byte of the payload
packet['data'] = payload[1:packet['len']-2] # the data is the part of the payload that is not cmd or crc
packet['crc'] = get_crc16(payload) # performing the crc on the whole payload should return 0

File "C:\Users\randa\Desktop\Sparkfun Artemis\toolchain\Arduino_Apollo3-master\tools\artemis\artemis_svl.py", line 132, in wait_for_packet packet['cmd'] = payload[0] # cmd is the first byte of the payload

R.
User avatar
By RSYOUNG
#208617
Thought about this a few days, and reasoned since the Artemis Nano Blackboard was a beta release, the fundamental software should/could be different.

So I decided to test the factory Ambiq boot loader option in the Arduino IDE, at a reasonable baud-rate.

Voila! (I'm rather disappointed that someone form Sparkfun didn't field this easy to answer issue, are they monitoring this forum?)

C:\Users\randa\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\1.0.15/tools/ambiq/windows/ambiq_bin2board.exe --bin C:\Users\randa\AppData\Local\Temp\arduino_build_214891/Example1_Blink.ino.bin --load-address-blob 0x20000 --magic-num 0xCB -o C:\Users\randa\AppData\Local\Temp\arduino_build_214891/Example1_Blink.ino --version 0x0 --load-address-wired 0xC000 -i 6 --options 0x1 -b 115200 -port COM23 -r 2 -v
Header Size = 0x80
original app_size 0x1d00 ( 7424 )
load_address 0xc000 ( 49152 )
app_size 0x1d00 ( 7424 )
w0 = 0xcb001d80
Security Value 0x10
w2 = 0x10008080
addrWord = 0xc000
versionKeyWord = 0x0
child0/feature = 0xffffffff
child1 = 0xffffffff
crc = 0x3d925b40
Writing to file C:\Users\randa\AppData\Local\Temp\arduino_build_214891/Example1_Blink.ino_OTA_blob.bin
testing: C:\Users\randa\AppData\Local\Temp\arduino_build_214891/Example1_Blink.ino_OTA_blob.bin
Header Size = 0x60
app_size 0x1d80 ( 7552 )
Writing to file C:\Users\randa\AppData\Local\Temp\arduino_build_214891/Example1_Blink.ino_Wired_OTA_blob.bin
Image from 0x0 to 0x1d80 will be loaded at 0x20000
Connecting over serial port COM23...
Sending Hello.
Received response for Hello
Bootloader connected
Received Status
length = 0x58
version = 0x3
Max Storage = 0x4ffa0
Status = 0x2
State = 0x7
AMInfo =
0x1
0xff2da3ff
0x55fff
0x1
0x49f40003
0xffffffff
0xffffffff
0xffffffff
0xffffffff
0xffffffff
0xffffffff
0xffffffff
0xffffffff
0xffffffff
0xffffffff
0xffffffff
Sending OTA Descriptor = 0xfe000
Sending Update Command.
number of updates needed = 1
Sending block of size 0x1de0 from 0x0 to 0x1de0
Sending Data Packet of length 7648
Sending Reset Command.
Tries = 0
Upload complete!
 Topic permissions

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum