Rev 258 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 258 | Rev 259 | ||
|---|---|---|---|
| Line 194... | Line 194... | ||
| 194 | flash_init(); |
194 | flash_init(); |
| 195 | //send CAN_NMT_PGM_ACK(offset) |
195 | //send CAN_NMT_PGM_ACK(offset) |
| 196 | tx_msg.Id = CAN_ID_NMT_PGM_ACK; |
196 | tx_msg.Id = CAN_ID_NMT_PGM_ACK; |
| 197 | tx_msg.Data.words[0] = base_addr; |
197 | tx_msg.Data.words[0] = base_addr; |
| 198 | bios_state = BIOS_PGM; |
198 | bios_state = BIOS_PGM; |
| - | 199 | while (Can_Send(&tx_msg) != CAN_OK); |
|
| 199 | } |
200 | } |
| 200 | break; |
201 | break; |
| 201 | case BIOS_PGM: |
202 | case BIOS_PGM: |
| 202 | if (nmt_type == CAN_NMT_PGM_DATA) { |
203 | if (nmt_type == CAN_NMT_PGM_DATA) { |
| 203 | // Set address = base address + offset |
204 | // Set address = base address + offset |